From 0f9431cf1ec5d070b42730435f369279f60a319f Mon Sep 17 00:00:00 2001 From: feige996 <1020102647@qq.com> Date: Tue, 3 Jun 2025 20:03:45 +0800 Subject: [PATCH] =?UTF-8?q?chore(husky):=20=E5=9C=A8pre-commit=E9=92=A9?= =?UTF-8?q?=E5=AD=90=E4=B8=AD=E6=B7=BB=E5=8A=A0--allow-empty=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 允许在git commit时即使没有变更也能执行lint-staged --- .husky/pre-commit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index d0a7784..c3ec64b 100644 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1 +1 @@ -npx lint-staged \ No newline at end of file +npx lint-staged --allow-empty \ No newline at end of file