From c6060958cf5baed5f4e1890e7b95e3461c70bcbb Mon Sep 17 00:00:00 2001 From: "Yanghai.Lin" Date: Thu, 7 May 2026 18:23:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(other):=20=E4=BF=AE=E5=A4=8D=20oxlint=20ign?= =?UTF-8?q?orePatterns=20=E5=AF=BC=E8=87=B4=20pre-commit=20hook=20?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lefthook.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lefthook.yml b/lefthook.yml index a37ae775b..fec09546b 100644 --- a/lefthook.yml +++ b/lefthook.yml @@ -50,10 +50,10 @@ pre-commit: run: pnpm oxfmt {staged_files} glob: '*.md' lint-vue: - run: pnpm oxfmt {staged_files} && pnpm oxlint --fix {staged_files} && pnpm eslint --cache --fix {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} + run: pnpm oxfmt {staged_files} && pnpm oxlint --fix --no-error-on-unmatched-pattern {staged_files} && pnpm eslint --cache --fix {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files} glob: '*.vue' lint-js: - run: pnpm oxfmt {staged_files} && pnpm oxlint --fix {staged_files} && pnpm eslint --cache --fix {staged_files} + run: pnpm oxfmt {staged_files} && pnpm oxlint --fix --no-error-on-unmatched-pattern {staged_files} && pnpm eslint --cache --fix {staged_files} glob: '*.{js,jsx,ts,tsx}' lint-style: run: pnpm oxfmt {staged_files} && pnpm stylelint --fix --allow-empty-input {staged_files}