Skip to content

Commit f7b1cd6

Browse files
committed
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
1 parent 24ef319 commit f7b1cd6

File tree

3 files changed

+614
-8
lines changed

3 files changed

+614
-8
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

0 commit comments

Comments
 (0)