Skip to content

Commitlint

Easy — everyone uses thisCI/CD & DevOps

ELI5 — The Vibe Check

Commitlint is the grammar police for your commit messages. Try to commit with 'asdf fixed stuff'? Rejected. It enforces Conventional Commits format so your history is clean and tools can parse it. Works with Husky to catch bad messages before they even reach the repo.

Real Talk

Commitlint is a tool that lints commit messages against configurable rules, typically enforcing the Conventional Commits specification. It integrates with Git hooks (via Husky) to validate messages at commit time, ensuring consistent, parseable commit history for automated tooling.

Show Me The Code

// commitlint.config.js
module.exports = {
  extends: ['@commitlint/config-conventional'],
  rules: {
    'scope-enum': [2, 'always', ['api', 'auth', 'ui']],
    'subject-max-length': [2, 'always', 72]
  }
};

When You'll Hear This

"Commitlint rejected my commit — I forgot the 'feat:' prefix." / "Commitlint + Husky means nobody can push a badly formatted commit message."

Made with passive-aggressive love by manoga.digital. Powered by Claude.