Configure husky to use lint-staged

- Update pre-commit hook to run lint-staged instead of full eslint
- Add lint-staged script to package.json
- Only lint staged files during commit for better performance

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
lyzno1
2025-09-10 23:49:04 +08:00
parent 05dcfcf0ca
commit f809b706a0
2 changed files with 2 additions and 1 deletions

View File

@ -1 +1 @@
pnpm eslint-fix
pnpm lint-staged

View File

@ -9,6 +9,7 @@
"lint": "next lint",
"fix": "eslint . --fix",
"eslint-fix": "eslint . --fix",
"lint-staged": "lint-staged",
"prepare": "husky"
},
"dependencies": {