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
|
# Used to find the project root
|
||||||
projectRootFile = ".git/config";
|
projectRootFile = ".git/config";
|
||||||
|
|
||||||
package = pkgs.treefmt2;
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
|
actionlint.enable = true;
|
||||||
deadnix.enable = true;
|
deadnix.enable = true;
|
||||||
nixpkgs-fmt.enable = true;
|
nixpkgs-fmt.enable = true;
|
||||||
prettier.enable = true;
|
prettier.enable = true;
|
||||||
|
@ -30,20 +29,15 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
settings.global.excludes = [
|
settings.global.excludes = [
|
||||||
|
"*.age"
|
||||||
# vendored from external source
|
# vendored from external source
|
||||||
"hosts/build02/packages-with-update-script.nix"
|
"hosts/build02/packages-with-update-script.nix"
|
||||||
];
|
];
|
||||||
|
|
||||||
settings.formatter = {
|
settings.formatter = {
|
||||||
actionlint = {
|
|
||||||
command = pkgs.actionlint;
|
|
||||||
includes = [ ".github/workflows/*.yml" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
editorconfig-checker = {
|
editorconfig-checker = {
|
||||||
command = pkgs.editorconfig-checker;
|
command = pkgs.editorconfig-checker;
|
||||||
includes = [ "*" ];
|
includes = [ "*" ];
|
||||||
excludes = [ "*.age" ];
|
|
||||||
priority = 9; # last
|
priority = 9; # last
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue