1.0.0 • Published 4 years ago
@kopplin/commitlint-config v1.0.0
@kopplin/commitlint-config
Kopplin's shared CommitLint configuration.
Setup
- Install the packages
$ npm i -D @kopplin/commitlint-config @commitlint/cli husky
- Install Husky
$ npx husky install
- Add Hook
$ npx husky add .husky/commit-msg 'npx --no-install commitlint --edit $1'
- Setup config file
After installing it, apply the config to commitlint by running the following command:
echo "module.exports = { extends: ['@kopplin/commitlint-config'] };" > .commitlintrc.js