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
1 changed files with 14 additions and 0 deletions
14
flake.nix
14
flake.nix
|
|
@ -44,6 +44,20 @@
|
|||
nixpkgs-fmt = {
|
||||
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…
Add table
Add a link
Reference in a new issue