all: use treefmt for formatting everything
This commit is contained in:
parent
6505bbb4ae
commit
cdef7656ff
@ -101,6 +101,8 @@ let
|
||||
ssh-to-age
|
||||
ssh-to-pgp
|
||||
statix
|
||||
treefmt2
|
||||
perlPackages.PerlTidy
|
||||
];
|
||||
};
|
||||
|
||||
|
28
treefmt.toml
Normal file
28
treefmt.toml
Normal file
@ -0,0 +1,28 @@
|
||||
[formatter.statix]
|
||||
command = "statix"
|
||||
options = ["check"]
|
||||
priority = 1
|
||||
|
||||
[formatter.deadnix]
|
||||
command = "deadnix"
|
||||
options = ["-f"]
|
||||
includes = [ "*.nix" ]
|
||||
priority = 2
|
||||
|
||||
[formatter.nix]
|
||||
command = "nix"
|
||||
options = ["fmt"]
|
||||
includes = ["*.nix"]
|
||||
priority = 3
|
||||
|
||||
[formatter.shfmt]
|
||||
command = "shfmt"
|
||||
options = ["-w"]
|
||||
includes = ["*.sh", "bin/*"]
|
||||
priority = 1
|
||||
|
||||
[formatter.perltidy]
|
||||
command = "perltidy"
|
||||
options = ["-b"]
|
||||
includes = ["*.pl", "*.PL"]
|
||||
priority = 1
|
Loading…
Reference in New Issue
Block a user