From f809b706a00a9bb3377a613c49a4272e3ff1ea30 Mon Sep 17 00:00:00 2001 From: lyzno1 Date: Wed, 10 Sep 2025 23:49:04 +0800 Subject: [PATCH] Configure husky to use lint-staged MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .husky/pre-commit | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index 578eab2..cb2c84d 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -pnpm eslint-fix +pnpm lint-staged diff --git a/package.json b/package.json index cce9fec..07276b1 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "next lint", "fix": "eslint . --fix", "eslint-fix": "eslint . --fix", + "lint-staged": "lint-staged", "prepare": "husky" }, "dependencies": {