From b26db07d1b8dae25c70cd6370ffcb3314093b725 Mon Sep 17 00:00:00 2001 From: h_mo <596417202@qq.com> Date: Wed, 26 Jun 2024 15:48:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20eslint=20=E6=89=81?= =?UTF-8?q?=E5=B9=B3=E5=8C=96=E9=85=8D=E7=BD=AE=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 lint-staged 配置中的 eslint 命令修改为 "eslint . --fix",以正确处理所有需要 lint 的文件。 之前的配置遗漏了对根目录下文件的处理,导致部分文件未被 lint。 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 0c3bd7e..0a14a84 100644 --- a/package.json +++ b/package.json @@ -96,6 +96,6 @@ "commit-msg": "npx tsx ./scripts/verify-commit.ts" }, "lint-staged": { - "*": "eslint --fix --ignore-pattern '*/androidPrivacy.json' --ignore-pattern 'README.md'" + "*": "eslint . --fix" } }