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

bash
npm install --save-dev husky
npx husky init   # creates .husky/pre-commit and a prepare script

Edit .husky/pre-commit to run what you want (e.g. npm test).

Reach for it when

you want lint/test checks before every commit.