@repodog/commitlint-config
v19.0.3
Published
The Repodog Commitlint config module.
Downloads
276
Readme
@repodog/commitlint-config
The Repodog Commitlint config.
Install package and peer dependencies
# terminal
npm install @repodog/commitlint-config @commitlint/cli husky --save-dev
Initialize husky
# terminal
npx husky init
echo "npx --no -- commitlint --edit \$1" > .husky/commit-msg
Use package
// commitlint.config.cjs
module.exports = {
extends: ['@repodog/commitlint-config'],
};
Make .husky/ executable
If you get the error The '.husky/commit-msg' hook was ignored because it's not set as executable.
when trying to create a commit, please run the command chmod ug+x .husky/*
from your project root and then create the commit again.