forked from payjoin/rust-payjoin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtreefmt.nix
More file actions
42 lines (42 loc) · 937 Bytes
/
treefmt.nix
File metadata and controls
42 lines (42 loc) · 937 Bytes
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
{ pkgs, ... }:
{
projectRootFile = "flake.nix";
programs = {
dart-format.enable = true;
nixfmt.enable = true;
prettier.enable = true;
ruff-format.enable = true;
rustfmt = {
enable = true;
package = pkgs.rustToolchains.nightly;
edition = "2018";
};
shellcheck.enable = true;
shfmt = {
enable = true;
indent_size = 4;
};
taplo.enable = true;
};
settings = {
formatter = {
dart-format.options = [
"--language-version"
"latest"
]; # https://github.com/dart-lang/sdk/issues/60163#issuecomment-2668274823
rustfmt.options = [
"--config-path"
"./rustfmt.toml"
];
shellcheck.includes = [ "*.sh" ];
shellcheck.excludes = [ "*.envrc" ];
shfmt = {
includes = [ "*.sh" ];
excludes = [ "*.envrc" ];
options = [
"--case-indent"
];
};
};
};
}