7 lines
260 B
Bash
7 lines
260 B
Bash
|
commitlint_init() {
|
||
|
yarn add husky @commitlint/{config-conventional,cli} -D
|
||
|
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
|
||
|
yarn husky install
|
||
|
yarn husky add .husky/commit-msg 'yarn commitlint --edit $1'
|
||
|
}
|