You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making Oxc! It's fast and very helpful. 🙂
I've noticed that, in certain cases, "ignorePatterns" in .oxlintrc.json does not ignore certain files when running oxlint --fix. This only seems to occur with deep directories, and only when adding . to the end of the CLI command.
PS D:\shulaoda\repro-oxlint-ignore-issue> pnpm oxlint -c .oxlintrc.json --fix
Found 0 warnings and 0 errors.
Finished in 2ms on 0 files with 61 rules using 20 threads.
PS D:\shulaoda\repro-oxlint-ignore-issue> pnpm oxlint -c .oxlintrc.json --fix .
Found 0 warnings and 0 errors.
Finished in 2ms on 0 files with 61 rules using 20 threads.
Could you tell me the operating system you are using?
Thanks for making Oxc! It's fast and very helpful. 🙂
I've noticed that, in certain cases,
"ignorePatterns"
in.oxlintrc.json
does not ignore certain files when runningoxlint --fix
. This only seems to occur with deep directories, and only when adding.
to the end of the CLI command.Here is a minimal repro of the issue:
git clone git@github.com:nolanlawson/repro-oxlint-ignore-issue.git repro cd repro npm i npm run lint
Here is what's happening.
"ignorePatterns"
:This works, and ignores both files:
However, adding
.
to the end of the command causesbar.js
to no longer be ignored:oxlint -c .oxlintrc.json --fix .
If you run this second command, you'll see that
foo.js
is correctly ignored, buta/bar.js
is not:The text was updated successfully, but these errors were encountered: