📑 Treefmt formatter for nix, json, css, sh and more
This commit is contained in:
18
treefmt.toml
Normal file
18
treefmt.toml
Normal 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",
|
||||
]
|
Reference in New Issue
Block a user