Skip to content

Commit ef2b2b0

Browse files
VdustRclaude
andauthored
fix: add --no-error-on-unmatched-pattern to oxfmt commands (#34)
Prevents oxfmt from erroring when no matching files are found during linting and lint-staged operations. Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 335a2bf commit ef2b2b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lint-staged.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const config = isFormat
88
? {
99
"**/*": [
1010
"eslint --report-unused-disable-directives --fix --max-warnings=0 --no-error-on-unmatched-pattern --no-warn-ignored",
11-
"oxfmt --write",
11+
"oxfmt --write --no-error-on-unmatched-pattern",
1212
],
1313
}
1414
: {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"lint:cspell": "cspell --no-summary --no-progress",
1414
"lint:es": "eslint . --fix --report-unused-disable-directives --max-warnings 0",
1515
"lint:es:dry": "eslint . --report-unused-disable-directives --max-warnings 0",
16-
"lint:oxfmt": "oxfmt --write .",
17-
"lint:oxfmt:dry": "oxfmt --check .",
16+
"lint:oxfmt": "oxfmt --write . --no-error-on-unmatched-pattern",
17+
"lint:oxfmt:dry": "oxfmt --check . --no-error-on-unmatched-pattern",
1818
"prepare": "husky",
1919
"release": "changeset publish",
2020
"test": "vitest",

0 commit comments

Comments
 (0)