From 58824886bcb145aaabdb4f258519984661d3d505 Mon Sep 17 00:00:00 2001 From: Hiroshi Ogawa <4232207+hi-ogawa@users.noreply.github.com> Date: Tue, 20 Oct 2026 12:16:55 +0900 Subject: [PATCH] chore: don't fail lint-staged when oxlint ignores every staged file `oxlint.config.ts` ignores `packages/plugin-rsc/**`, so a commit that stages only plugin-rsc sources passes oxlint no files and the pre-commit hook fails with "No files found to lint". ESLint only warned in that case. Co-Authored-By: Claude Opus 5.5 --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4b84d4956..f45d3785b 100644 --- a/package.json +++ b/package.json @@ -56,13 +56,13 @@ "oxfmt --no-error-on-unmatched-pattern" ], "packages/*/{src,types}/**/*.ts": [ - "oxlint --fix" + "oxlint --fix --no-error-on-unmatched-pattern" ], "packages/**/*.d.ts": [ - "oxlint --fix" + "oxlint --fix --no-error-on-unmatched-pattern" ], "playground/**/__tests__/**/*.ts": [ - "oxlint --fix" + "oxlint --fix --no-error-on-unmatched-pattern" ] }, "engines": {