mirror of
https://github.com/langgenius/webapp-conversation.git
synced 2025-12-08 17:32:27 +08:00
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:
@ -1 +1 @@
|
|||||||
pnpm eslint-fix
|
pnpm lint-staged
|
||||||
|
|||||||
@ -9,6 +9,7 @@
|
|||||||
"lint": "next lint",
|
"lint": "next lint",
|
||||||
"fix": "eslint . --fix",
|
"fix": "eslint . --fix",
|
||||||
"eslint-fix": "eslint . --fix",
|
"eslint-fix": "eslint . --fix",
|
||||||
|
"lint-staged": "lint-staged",
|
||||||
"prepare": "husky"
|
"prepare": "husky"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user