Husky can prevent bad git commit
, git push
and more 🐶 ❤️ woof!
https://www.npmjs.com/package/husky
npm install husky --save-dev
"husky": {
"hooks": {
"pre-commit": "npm test",
"pre-push": "npm test",
"...": "..."
}
}