Pre-commit Hooks and Commit Message Validation in Next.js & React Projects
Pre-commit Hooks with Husky
Installation & Setup
First, install Husky and enable it in your project:
npm install --save-dev husky
npx husky install
Also, make sure you add this to your package.json:
"scripts": {
"prepare": "husky install"
}
Confi...
fillics.hashnode.dev3 min read
Developer Avocado
Frontend developer. Debugging this world one console.log() at a time
Nice — nothing like Husky yelling at me at 2 AM to remind me I forgot a semicolon. 😂
Do you run yours strict enough to block commits, or just warn so teammates don’t revolt?