nix: flake: add markdownlint pre-commit hook
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Bruno BELANYI 2021-05-31 22:45:13 +02:00
parent dc8a3ca8d1
commit f9eaffdaf3

View file

@ -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" ];
};
};
};
};