about summary refs log tree commit diff
path: root/treefmt.toml
blob: ff039ef513d4f88a518b89c25ac2c94b8dbb064b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
[formatter.haskell]
command = ""
includes = ["*.hs"]

[formatter.shell]
command = "/bin/sh"
options = [
    "-euc",
    """
shellcheck "$@"
shfmt -s -w "$@"
    """,
    "--",
]
includes = ["*.sh"]

[formatter.prettier]
command = "prettier"
options = ["--write"]
includes = ["*.yaml"]

[formatter.nix]
command = "nixfmt"
includes = ["*.nix"]

Consider giving Nix/NixOS a try! <3