Commit 2f70a98
committed
fix(scripts/lint): pass --no-error-on-unmatched-pattern to oxfmt
When pre-commit lints only files that fall under oxfmt's ignorePatterns
(e.g. .claude/** when only a hook is staged), oxfmt receives a non-empty
file list but its own ignore filter knocks them all out, then exits with
"Expected at least one target file" — blocking the commit.
The flag tells oxfmt to exit 0 with "No files found matching the given
patterns" instead. Matches socket-repo-template/template/scripts/lint.mts
behavior.1 parent 11737cc commit 2f70a98
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
171 | 181 | | |
172 | 182 | | |
173 | 183 | | |
| |||
0 commit comments