Add pre-commit hooks with husky and lint staged

This commit is contained in:
Raza Rauf
2026-01-19 22:15:39 +05:00
parent 2702a7c63a
commit dd04429482
9 changed files with 194 additions and 73 deletions

4
.husky/pre-commit Normal file
View File

@@ -0,0 +1,4 @@
# Run lint-staged for formatting and linting on staged files only
npx lint-staged
# Everything else (tests, type checking) should run in CI