Lint commit messages
Demo generated with svg-term-cli
commitlint helps your team adhere to a commit convention. By supporting npm-installed configurations it makes sharing of commit conventions easy.
npm install -g @commitlint/cli @commitlint/config-conventionalecho "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js# Lint from stdin
echo 'foo: bar' | commitlint
⧗ input: foo: bar
✖ type must be one of [build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test] [type-enum]
✖ found 1 problems, 0 warnings
ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint# Lint last commit from history
commitlint --from=HEAD~1?> To get the most out of commitlint you'll want to automate it in your project lifecycle. See our Local setup guide for next steps.
- Guides - Common use cases explained in a step-by-step pace
- Concepts - Overarching topics important to understand the use of
commitlint - Reference - Mostly technical documentation
commitlintis possible because of the hard work of the folks of theconventional-changelogproject- Thanks @markusoelhafen for providing
the
commitlinticon