nix: flake: add markdownlint pre-commit hook
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dc8a3ca8d1
commit
f9eaffdaf3
14
flake.nix
14
flake.nix
|
@ -44,6 +44,20 @@
|
||||||
nixpkgs-fmt = {
|
nixpkgs-fmt = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
markdown-lint = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
name = "Lint each post's markdown";
|
||||||
|
|
||||||
|
entry =
|
||||||
|
let
|
||||||
|
pkg = pkgs.nodePackages.markdownlint-cli;
|
||||||
|
in
|
||||||
|
"${pkg}/bin/markdownlint";
|
||||||
|
|
||||||
|
types = [ "markdown" ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue