Skip to content
All projects

Conventional Commit Linter

Git hook that enforces commit conventions and rejects the ones that say nothing.

gitclitooling

Conventional commits only pay off if the messages are real. fix: bug passes every format checker and tells you nothing in six months.

What it enforces

  • A valid type prefix — feat, fix, docs, refactor, test, chore
  • Subject under 72 characters, imperative mood, no trailing period
  • A rejection list for empty subjects: fix, update, changes, wip, stuff
  • Body required when the diff exceeds a configurable size — large changes need explaining

Install

npx commit-linter install

Writes a commit-msg hook. Runs in about 20ms, so it never gets in the way.