From c3abc3df09cf037d09754aeaab78db974de42d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9D=92=E8=8F=9C=E7=99=BD=E7=8E=89=E6=B1=A4?= <79054161+Azir-11@users.noreply.github.com> Date: Mon, 28 Apr 2025 19:17:43 +0800 Subject: [PATCH] ci(hooks): remove lint-staged in git hook. (#743) close #724 --- package.json | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package.json b/package.json index b03a73e4..31a170f3 100644 --- a/package.json +++ b/package.json @@ -89,7 +89,6 @@ "eslint": "9.22.0", "eslint-plugin-vue": "10.0.0", "kolorist": "1.8.0", - "lint-staged": "15.5.0", "sass": "1.86.0", "simple-git-hooks": "2.11.1", "tsx": "4.19.3", @@ -105,10 +104,7 @@ }, "simple-git-hooks": { "commit-msg": "pnpm sa git-commit-verify", - "pre-commit": "pnpm typecheck && pnpm lint-staged" - }, - "lint-staged": { - "*": "eslint --fix" + "pre-commit": "pnpm typecheck && pnpm lint && git diff --exit-code" }, "website": "https://admin.soybeanjs.cn" }