📑 Treefmt formatter for nix, json, css, sh and more

This commit is contained in:
2025-01-05 20:36:01 +01:00
parent b30376cdcf
commit 573f2c459e
11 changed files with 390 additions and 274 deletions

18
treefmt.toml Normal file
View File

@ -0,0 +1,18 @@
[formatter.nixfmt-rfc-style]
command = "nixfmt"
includes = ["*.nix"]
[formatter.prettier]
command = "prettier"
includes = ["*.css", "*.json", "*.jsonc", "*.yaml"]
options = ["--write"]
[formatter.shell]
command = "shfmt"
includes = ["fmt", "test", "switch"]
excludes = []
options = [
"--indent", "2",
"--simplify",
"--write",
]