Files
archived-teslamate/treefmt.toml
JakobLichterfeld 31c082a69b docs: update Home Assistant integration documentation with configuration URL and model name hints (#4359)
* feat: add CONTRIBUTING file to exclusion lists for treefmt

* docs: update Home Assistant integration documentation with configuration URL and model name hints

* docs: update changelog

* docs: improve Home Assistant integration documentation with additional configuration details and clarifications

* docs: update Home Assistant integration documentation with placeholders for car model and name

* docs: move car ID configuration details to the Configuration section in Home Assistant integration documentation
2024-11-06 15:50:05 +01:00

64 lines
1.3 KiB
TOML

# One CLI to format the code tree - https://git.numtide.com/numtide/treefmt
[global]
excludes = [
"*.gitignore",
"*.dockerignore",
".envrc",
"*.node-version",
"CONTRIBUTING",
"Dockerfile",
"grafana/Dockerfile",
"Makefile",
"VERSION",
"LICENSE",
"*.metadata",
"*.manifest",
"*.webmanifest",
"*.dat",
"*.lock",
"*.txt",
"*.csv",
"*.ico",
"*.png",
"*.svg",
"*.properties",
"*.xml",
"*.po",
"*.pot",
"*.json.example",
"*.typos.toml",
"treefmt.toml",
"grafana/dashboards/*.json", #we use the grafana export style
]
[formatter.mix-format]
command = "mix"
excludes = []
includes = ["*.ex", "*.exs" ,"*.{heex,eex}"]
options = ["format"]
# run shellcheck first
[formatter.shellcheck]
command = "shellcheck"
includes = ["*.sh"]
priority = 0 # default is 0, but we set it here for clarity
# shfmt second
[formatter.shfmt]
command = "shfmt"
options = ["-s", "-w"]
includes = ["*.sh"]
priority = 1
[formatter.prettier]
command = "prettier"
excludes = []
includes = ["*.cjs", "*.css", "*.html", "*.js", "*.json", "*.json5", "*.jsx", "*.md", "*.mdx", "*.mjs", "*.scss", "*.ts", "*.tsx", "*.vue", "*.yaml", "*.yml"]
options = ["--write"]
[formatter.nixfmt]
command = "nixfmt"
excludes = []
includes = ["*.nix"]
options = []