-
Install this package and husky:
npm i silver-commit husky -D
-
Config commit-msg hook to run silver-commit in package.json
{
"husky": {
"hooks": {
"commit-msg": "node node_modules/silver-commit/index.js"
}
}
}