feat: add pre-commit hook to enforce linting
- Install husky for git hook management - Add pre-commit hook that runs 'npm run lint' - Ensures all commits pass linting before being allowed
This commit is contained in:
parent
09f78df1da
commit
b2475a845c
3 changed files with 100 additions and 78 deletions
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
|
@ -0,0 +1 @@
|
|||
npm run lint
|
Loading…
Add table
Add a link
Reference in a new issue