Skip to main content

Commitlint

Usage

// commitlint.config.js
import config from '@rtorcato/js-tooling/commitlint/config'
export default config

The preset enforces Conventional Commits with stricter subject-line length limits.

With Husky

The setup wizard wires Husky + lint-staged + commitlint automatically. To add it manually:

npx husky init
echo "npx commitlint --edit \$1" > .husky/commit-msg