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
oxlint --max-warnings=0 AND oxlint --max-warnings=0 --fix
What does your .oxlint.json config file look like?
I don't have one.
What happened?
I'm brand new to oxlint, testing it for the first time. I added it to an existing project and I ran it using the commands I specified above. What I'm seeing is that if I use --fix, one of the warnings just disappears from the output but no code is changed. ie, the problem is ignored entirely.
The specific issue that disappears is this:
⚠ eslint-plugin-unicorn(no-useless-spread): Using a spread operator here creates a new array unnecessarily.
╭─[test/msw-server/index.ts:26:5]
25 │ const server: SetupServer = setupServer(
26 │ ...[
· ───
27 │ ...importHandlers,
╰────
help: This function accepts a rest parameter, it's unnecessary to create a new array and then spread it. Instead, supply the arguments directly.
For example, replace `foo(...[1, 2, 3])` with `foo(1, 2, 3)`.
Again, that will appear when running oxlint --max-warnings=0 but not when running oxlint --max-warnings=0 --fix, but the file in question is not modified when using --fix.
Thanks in advance.
The text was updated successfully, but these errors were encountered:
What version of Oxlint are you using?
0.15.3
What command did you run?
oxlint --max-warnings=0 AND oxlint --max-warnings=0 --fix
What does your
.oxlint.json
config file look like?I don't have one.
What happened?
I'm brand new to oxlint, testing it for the first time. I added it to an existing project and I ran it using the commands I specified above. What I'm seeing is that if I use --fix, one of the warnings just disappears from the output but no code is changed. ie, the problem is ignored entirely.
The specific issue that disappears is this:
Again, that will appear when running
oxlint --max-warnings=0
but not when runningoxlint --max-warnings=0 --fix
, but the file in question is not modified when using --fix.Thanks in advance.
The text was updated successfully, but these errors were encountered: