Lint commit messages
- π Enforce commit conventions
- π€ Plays nicely with
conventional-changelog - π¦ Supports shareable configuration
npm install --save-dev @commitlint/{angular,cli}
echo "module.exports = {extends: ['@commitlint/config-angular']}" > commitlint.config.js- Primary way to interact with commitlint.
npm install --save-dev @commitlint/cli- Packages: cli
- Configuration is picked up from
commitlint.config.jsfiles - Packages: cli, core
- See Rules for a complete list of possible rules
- An example configurations can be found at @commitlint/config-angular
A number of shared configurations are available to install and use with commitlint:
- @commitlint/config-angular
- @commitlint/config-lerna-scopes
- @commitlint/config-patternplate
- conventional-changelog-lint-config-atom
- conventional-changelog-lint-config-canonical
- Alternative, programatic way to interact with
commitlint npm install --save @commitlint/core- Packages: core
- See API for a complete list of methods and examples
- Node.js LTS version and higher:
>= 4 - git
>= 2
- conventional-changelog β Generate a changelog from conventional commit history
- commitizen β Simple commit conventions for internet citizens
Copyright by @marionebl. All commitlint packages are released under the MIT license.
commitlint is developed in a mono repository.
git clone git@github.com:marionebl/commitlint.git
cd commitlint
npm install
npm start # run tests, again on change
npm run build # run build tasks