From da6872a3b8b7cc58669d756f77145abd1c689392 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Sun, 11 Oct 2026 10:56:39 +0200 Subject: [PATCH] chore(frontend): let lint-staged pass commits that stage only generated files lint-staged hands every staged src/**/*.ts file to oxfmt and oxlint, but both ignore src/generated, so a commit whose only TypeScript change is a regenerated schema (a validator tag edit plus make gen) aborts with "Expected at least one target file". Tell both tools an empty selection is not an error. --- frontend/package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index abb3c5c1f..861bc6f2e 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -29,8 +29,8 @@ }, "lint-staged": { "src/**/*.{ts,tsx}": [ - "oxfmt", - "oxlint --fix" + "oxfmt --no-error-on-unmatched-pattern", + "oxlint --fix --no-error-on-unmatched-pattern" ] }, "dependencies": {