commitlint-config-cog
v1.0.1
Published
Commitlint configuration file for personal projects
Downloads
2
Maintainers
Readme
Commitlint config
Gears projects config for commitlint.
Usage
Install:
npm install --save-dev husky \
@commitlint/{cli,config-conventional,prompt-cli} \
commitlint-config-cog
Add prepare
and commit
scripts in package.json
:
npm set-script prepare "husky install"
npm set-script commit "commit"
Run prepare
script:
npm run prepare
Add husky hooks:
npx husky add .husky/commit-msg 'npx --no-install commitlint --edit "$1"'
git add .husky/commit-msg
Add file commitlint.config.cjs
with content (and extend it if you need):
module.exports = { extends: ['commitlint-config-cog'] };