try fufexans git hooks setup
This commit is contained in:
26
fmt-hooks.nix
Normal file
26
fmt-hooks.nix
Normal file
@@ -0,0 +1,26 @@
|
||||
{inputs, ...}: {
|
||||
imports = [
|
||||
inputs.git-hooks.flakeModule
|
||||
inputs.treefmt-nix.flakeModule
|
||||
];
|
||||
|
||||
perSystem = {
|
||||
pre-commit.settings = {
|
||||
excludes = ["flake.lock"];
|
||||
hooks.treefmt.enable = true;
|
||||
};
|
||||
|
||||
treefmt.programs = {
|
||||
nixfmt.enable = true;
|
||||
|
||||
prettier = {
|
||||
enable = true;
|
||||
excludes = [
|
||||
".js"
|
||||
".md"
|
||||
".ts"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user