treefmt: various
- default is now treefmt2 - actionlint is now in treefmt-nix - move *.age to global excludes to suppress treefmt warning
This commit is contained in:
parent
c5867588e1
commit
8f4c02bed9
1 changed files with 2 additions and 8 deletions
|
@ -2,9 +2,8 @@
|
|||
# Used to find the project root
|
||||
projectRootFile = ".git/config";
|
||||
|
||||
package = pkgs.treefmt2;
|
||||
|
||||
programs = {
|
||||
actionlint.enable = true;
|
||||
deadnix.enable = true;
|
||||
nixpkgs-fmt.enable = true;
|
||||
prettier.enable = true;
|
||||
|
@ -30,20 +29,15 @@
|
|||
};
|
||||
|
||||
settings.global.excludes = [
|
||||
"*.age"
|
||||
# vendored from external source
|
||||
"hosts/build02/packages-with-update-script.nix"
|
||||
];
|
||||
|
||||
settings.formatter = {
|
||||
actionlint = {
|
||||
command = pkgs.actionlint;
|
||||
includes = [ ".github/workflows/*.yml" ];
|
||||
};
|
||||
|
||||
editorconfig-checker = {
|
||||
command = pkgs.editorconfig-checker;
|
||||
includes = [ "*" ];
|
||||
excludes = [ "*.age" ];
|
||||
priority = 9; # last
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue