fix: Add formatter
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
{ pkgs, sources, ... }:
|
||||
let
|
||||
treefmt-nix = import sources.treefmt-nix;
|
||||
in
|
||||
treefmt-nix.mkWrapper pkgs {
|
||||
projectRootFile = ".git/config";
|
||||
programs = {
|
||||
nixfmt.enable = true;
|
||||
deadnix.enable = true;
|
||||
statix = {
|
||||
enable = true;
|
||||
disabled-lints = [
|
||||
"manual_inherit_from"
|
||||
"repeated_keys"
|
||||
];
|
||||
};
|
||||
shellcheck.enable = true;
|
||||
};
|
||||
settings.global.excludes = [
|
||||
"npins/default.nix"
|
||||
];
|
||||
}
|
||||
Reference in New Issue
Block a user