Pārlūkot izejas kodu

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.
MHSanaei 11 stundas atpakaļ
vecāks
revīzija
da6872a3b8
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      frontend/package.json

+ 2 - 2
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": {