mirror of
https://github.com/callumio/nixfiles.git
synced 2025-12-17 03:29:20 +00:00
commit hooks initial
This commit is contained in:
parent
cd2ed1be6e
commit
2a6fb7caf6
2 changed files with 23 additions and 0 deletions
|
|
@ -53,6 +53,14 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nur.url = "github:nix-community/NUR";
|
nur.url = "github:nix-community/NUR";
|
||||||
|
pre-commit-hooks = {
|
||||||
|
url = "github:cachix/pre-commit-hooks.nix";
|
||||||
|
inputs = {
|
||||||
|
nixpkgs.follows = "nixpkgs";
|
||||||
|
flake-compat.follows = "flake-compat";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
flake-compat.url = "github:edolstra/flake-compat";
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = {
|
outputs = {
|
||||||
|
|
|
||||||
15
pre-commit-hooks.nix
Normal file
15
pre-commit-hooks.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{inputs, ...}: {
|
||||||
|
imports = [inputs.pre-commit-hooks.flakeModule];
|
||||||
|
|
||||||
|
perSystem.pre-commit = {
|
||||||
|
settings.excludes = ["flake.lock"];
|
||||||
|
|
||||||
|
settings.hooks = {
|
||||||
|
alejandra.enable = true;
|
||||||
|
prettier = {
|
||||||
|
enable = true;
|
||||||
|
excludes = [".js" ".md" ".ts"];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue