-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreefmt.nix
72 lines (66 loc) · 1.22 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs = {
actionlint.enable = true;
deadnix.enable = true;
fish_indent.enable = true;
isort.enable = true;
jsonfmt.enable = true;
mdformat.enable = true;
nixfmt = {
enable = true;
package = pkgs.nixfmt-rfc-style;
};
nufmt.enable = true;
prettier.enable = true;
shfmt = {
enable = true;
indent_size = 4;
};
statix.enable = true;
taplo.enable = true;
yamlfmt.enable = true;
};
settings = {
global.excludes = [
"*.editorconfig"
"*.envrc"
"*.gitconfig"
"*.git-blame-ignore-revs"
"*.gitignore"
"*.gitattributes"
"*CODEOWNERS"
"*LICENSE"
"*flake.lock"
"*.svg"
"*.png"
"*.gif"
"*.ico"
"*.jpg"
"*.webp"
"*.conf"
"*.age"
"*.pub"
"*.org"
];
formatter = {
deadnix = {
priority = 1;
};
statix = {
priority = 2;
};
nixfmt = {
priority = 3;
};
prettier = {
options = [
"--tab-width"
"4"
];
includes = [ "*.{css,html,js,json,jsx,md,mdx,scss,ts,yaml}" ];
};
};
};
}