typicode/husky
Git hooks for JS projects
What
Manages Git hooks (pre-commit, commit-msg, etc.) from your repo so the whole team runs them.
How to use
npm install --save-dev husky
npx husky init # creates .husky/pre-commit and a prepare scriptEdit .husky/pre-commit to run what you want (e.g. npm test).
Reach for it when
you want lint/test checks before every commit.