This is adapted from Commit convention.
npm i verify-commit-msg -D
"scripts": {
"verify-commit": "verify-commit-msg"
},
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npm run verify-commit
"git-hooks": {
"commit-msg": "npm run verify-commit"
},