os/treefmt.toml
teutat3s 5b44e97088
lint: exclude file generated by nvfetcher
Fix pre-commit hook to only format staged files
2023-05-05 18:32:40 +02:00

24 lines
318 B
TOML

[formatter.nix]
command = "alejandra"
includes = ["*.nix"]
excludes = ["pkgs/_sources/generated.nix"]
[formatter.prettier]
command = "prettier"
options = ["--write"]
includes = [
"*.json",
"*.yaml",
"*.md",
]
[formatter.shell]
command = "shfmt"
options = [
"-s",
"-w",
"-i",
"2",
]
includes = ["*.sh"]