@fe-lints/commitlint-config
v0.0.4
Published
git commitlint
Downloads
4
Readme
@fe-lints/commitlint-config
Support matching commitlint configuration (https://commitlint.js.org/#/concepts-shareable-config), used for git commit message
calibration.
Installation
npm install @fe-lints/commitlint-config --save-dev
Configuration .commitlintrc
update commitlintrc
file extends
:
{
"extends": ["@fe-lints/commitlint-config"]
}
commit message
<type>[optional scope]: <subject>
[optional body]
[optional footer(s)]
setting git hook
husky set in git commit
triggered when commitlint
.
install husky:
npm install husky --save-dev
add commit-msg
:
npx husky add .husky/commit-msg 'npx commitlint --edit $1'
See commitlint document。