-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreefmt.toml
49 lines (39 loc) · 834 Bytes
/
treefmt.toml
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
# One CLI to format the code tree - https://git.numtide.com/numtide/treefmt
[formatter.toml]
command = "taplo"
options = ["fmt"]
includes = ["*.toml"]
[formatter.json]
command = "fixjson"
options = ["-w"]
includes = ["*.json"]
[formatter.yaml]
command = "yamlfmt"
includes = ["*.yaml", "*.yml"]
[formatter.nix]
command = "nixfmt"
includes = ["*.nix"]
[formatter.python]
command = "ruff"
options = ["format"]
includes = ["*.py"]
[formatter.lua]
command = "stylua"
includes = ["*.lua"]
[formatter.fennel]
command = "fnlfmt"
options = ["--fix"]
includes = ["*.fnl"]
[formatter.markdown]
command = "prettier"
options = ["--parser", "markdown"]
includes = ["*.md"]
# shfmt second
[formatter.shfmt]
command = "shfmt"
options = ["-s", "-w"]
includes = ["*.sh"]
[formatter.go]
command = "gofmt"
options = ["-w"]
includes = ["*.go"]