Setup prettier pre-commit formatting with husky and lint-staged
- Install husky and lint-staged dev dependencies - Configure pre-commit hook to run prettier on staged files - Only format changed files to improve performance - Prevents CI formatting failures by formatting locally
This commit is contained in:
parent
24ef31905e
commit
f7b1cd6f43
1 changed files with 614 additions and 8 deletions
1
.husky/pre-commit
Normal file
1
.husky/pre-commit
Normal file
|
|
@ -0,0 +1 @@
|
|||
npx lint-staged
|
||||
Loading…
Reference in a new issue