-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtreefmt.nix
36 lines (34 loc) · 899 Bytes
/
treefmt.nix
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
_: {
# Used to find the project root
projectRootFile = "flake.nix";
# Enabled programs
programs = {
# Enable alejandra for nix formatting
alejandra.enable = true;
# Enable deadnix for nix checking
deadnix.enable = true;
# Enable keep-sorted for general sorting
keep-sorted.enable = true;
# Enable prettier for formatting
prettier.enable = true;
# Enable stylua for lua formatting
stylua.enable = true;
# Enable shellcheck for shell checking
shellcheck.enable = true;
# Enable shfmt for shell formatting
shfmt.enable = true;
# Enable statix for nix checking
statix.enable = true;
# Enable typos for spell checking
typos.enable = true;
# Enable yamlfmt for yaml formatting
yamlfmt.enable = true;
};
# Settings
settings.formatter = {
typos.excludes = [
"secrets/*"
"static/*"
];
};
}