From b2ce4dde42fdf1d0374f5b8588f691a90b856ea8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Tue, 9 Sep 2025 11:49:09 +0800 Subject: [PATCH] =?UTF-8?q?build:=20=E6=9B=B4=E6=96=B0=20oxlint=20?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 package.json 中更新了 lint:oxlint 脚本的命令参数 - 新增了 -D correctness 参数,以提高代码正确性检查的严格度 - 添加了 --ignore-path .gitignore 参数,忽略 .gitignore 中的文件 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 34dd681..61f04b2 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "lint": "run-s lint:*", "_oxlint_cfg": "oxlint . --fix --ignore-path=.gitignore --print-config", "__oxlint_-D": "oxlint . --fix --deny=correctness", - "lint:oxlint": "oxlint --fix", + "lint:oxlint": "oxlint . --fix -D correctness --ignore-path .gitignore", "lint:eslint": "eslint . --fix", "prepare": "husky", "test:unit": "vitest",