Skip to content

Commit 0d0c58d

Browse files
authored
chore: pass --no-error-on-unmatched-pattern to oxlint in lint-staged (#3611)
## Summary When a commit only touches files under `test/e2e/**` (skipped by oxlint's `ignorePatterns`), `oxlint --fix` exits with an error because no files match, breaking the lint-staged hook. Mirrors the flag already used for `oxfmt` so the hook succeeds in this case. Closes #3610 🤖 Generated with [Claude Code](https://claude.com/claude-code)
1 parent a15f61c commit 0d0c58d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
},
116116
"lint-staged": {
117117
"{packages,test,docs}/**/*.{js,ts,mjs,mts,cjs,cts}": [
118-
"oxlint --fix",
118+
"oxlint --fix --no-error-on-unmatched-pattern",
119119
"oxfmt --write --no-error-on-unmatched-pattern"
120120
]
121121
},

0 commit comments

Comments
 (0)