Smallest simplest conventional commit validator to use with eg husky
npx --no validate-conventional-commit < .git/COMMIT_EDITMSGAdd --strict to also require the commit type to be one of the exact conventional commit types (build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test), eg to catch test: vs tests: or testing::
npx --no validate-conventional-commit --strict < .git/COMMIT_EDITMSG(Or simply just copy and paste the cli.js file into your project if you want to avoid a dependency)
@commitlint/cli– a much more comprehensive and much more heavy alternativehusky– my preferred git hook managermtfoley/pr-compliance-action– an action that helps validating conventional commit style in PR:s, something this module is not really geared towards