-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtreefmt.nix
46 lines (42 loc) · 1.2 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
{ config }:
{
settings.global.excludes = [ ".archive/**" ];
programs.statix.enable = true;
programs.nixfmt-rfc-style.enable = true;
programs.ruff.enable = true;
programs.ruff.format = true;
programs.isort.enable = true;
programs.isort.profile = "black";
programs.biome.enable = true;
programs.biome.settings = {
javascript.formatter = {
indentStyle = "space";
semicolons = "asNeeded";
};
json.formatter = {
indentStyle = "space";
};
};
programs.prettier.enable = true;
programs.prettier.settings = {
semi = false;
overrides = [
{
# Note: need to add `*(../)` at the beginning, to match using any
# patterns in prettier settings. That is because the file path expands
# to a relative value with `../` at the beginning, and in micromatch
# extglob (`**/`) does not match against `../`.
files = [ "*(../)**/evaluation/results.md" ];
options = {
proseWrap = "always";
};
}
];
};
programs.prettier.excludes = [
"pnpm-lock.yaml"
"charts/*/templates/*.yaml"
] ++ config.programs.biome.includes;
programs.shellcheck.enable = true;
programs.shfmt.enable = true;
}