-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreefmt.toml
More file actions
54 lines (47 loc) Β· 895 Bytes
/
Copy pathtreefmt.toml
File metadata and controls
54 lines (47 loc) Β· 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# One CLI to format the code tree - https://github.com/numtide/treefmt
# https://github.com/numtide/treefmt/blob/36dd785a73f40215abdfb7b37ba1c59324d835e8/docs/content/guides/unmatched-formatters.md
# https://github.com/numtide/treefmt/issues/317
on-unmatched = "info"
[global]
# "/*" means recursive
excludes = [
".git/*",
".direnv/*",
"dist/*",
"result/*",
"dependencies/*",
"*.lock",
]
[formatter.dprint]
command = "dprint"
options = ["fmt"]
includes = [
"*.json",
"*.jsonc",
"*.toml",
"*.md",
"*.yaml",
"*.yml",
"*.kdl",
]
[formatter.nixfmt]
command = "nixfmt"
includes = ["*.nix"]
[formatter.go]
command = "gofmt"
options = ["-w"]
includes = ["*.go"]
[formatter.shfmt]
command = "shfmt"
options = [
"--language-dialect",
"auto",
"--write",
]
includes = [
"*.sh",
"*.bash",
"*.envrc",
# shfmt supports zsh since 3.13.0. See GH-1482
"*.zsh",
]