treefmt.toml
Rama main · réplica de lectura del repositorio original.
# One CLI to format the code tree - https://git.numtide.com/numtide/treefmt
#
# GENERATED FILE - DO NOT EDIT.
# Source of truth: nix/flake-modules/formatter.nix
# Regenerate with: nix run .#update-treefmt-toml
#
# This copy exists for contributors without Nix, who run a bare `treefmt`.
# Nix users (`nix fmt`, `nix run .#lint`) and CI use the generated config
# directly and never read this file. Note that it resolves formatters from
# PATH, so their versions are not pinned the way the Nix config pins them.
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",
"*.lock",
"*.patch",
"package-lock.json",
"go.mod",
"go.sum",
".gitattributes",
".gitignore",
".gitmodules",
".hgignore",
".svnignore",
"LICENSE",
]
[formatter.mix-format]
command = "env"
excludes = []
includes = [
"*.ex",
"*.exs",
"*.heex",
"*.ex",
"*.exs",
"*.{heex,eex}",
]
options = ["MIX_EXS=elixir/mix.exs", "mix", "format", "--dot-formatter", "./.formatter.exs"]
[formatter.nixfmt]
command = "nixfmt"
excludes = []
includes = ["*.nix"]
options = []
[formatter.prettier]
command = "prettier"
excludes = []
includes = [
"*.cjs",
"*.css",
"*.html",
"*.js",
"*.json",
"*.json5",
"*.jsx",
"*.md",
"*.mdx",
"*.mjs",
"*.scss",
"*.ts",
"*.tsx",
"*.vue",
"*.yaml",
"*.yml",
]
options = ["--write"]
stdin-options = ["--stdin-filepath", "$path"]
[formatter.rustfmt]
command = "rustfmt"
excludes = []
includes = ["*.rs"]
options = ["--config", "skip_children=true", "--edition", "2024"]
[formatter.shellcheck]
command = "shellcheck"
excludes = []
includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"]
options = []
priority = 0
[formatter.shfmt]
command = "shfmt"
excludes = []
includes = ["*.sh", "*.bash", "*.envrc", "*.envrc.*"]
options = ["-w", "-i", "0", "-s"]
priority = 1