0.0.2 • Published 2 years ago
@yangss/lint-msg v0.0.2
Check your commit messages with the conventional commit format
Usage
Install @yangss/lint-msg, need to install husky as well:
npm install -D @yangss/lint-msg husky
npx husky install
Add a commit-msg hook:
npx husky add .husky/commit-msg "npx lint-msg"
Make a commit:
git add .husky/pre-commit
git commit -m "cannot pass the message check"