Open
Description
What version of Oxlint are you using?
0.16.5
What command did you run?
oxlint --fix --fix-suggestions --quiet
What happened?
Missing lot of quick auto-fixes:
- eslint-plugin-unicorn(prefer-number-properties): Use
Number.parseFloat
instead of the globalparseFloat
=> Same for parseInt, isNaN feat(linter): implement fixer for unicorn/prefer-number-properties #10693- Should add
Number.
beforeparseFloat
- Should add
- eslint(radix): Missing radix parameter feat(linter): add auto-fix for eslint/radix #10652
- Should add
, 10
in the code asNumber.parseInt(str, 10)
- Should add
- eslint-plugin-unicorn(prefer-spread): Prefer the spread operator (
...
) over Array.from()- Should replace
Array.from(store.getItems())
with[...store.getItems()]
feat(linter): add fixer to unicorn/prefer-spread #10691 - Should replace
store.getItems()?.concat(anotherItem) ?? [anotherItem]
with[...store.getItems() ?? [], anotherItem]
// More complex
- Should replace
- eslint-plugin-react(jsx-curly-brace-presence): Curly braces are unnecessary here
- Should replace
<div id={'my-div'} />
with<div id="my-div" />
- Should replace
- eslint(require-await): Async function has no 'await' expression
- Should strip out
async
// Maybe a dangerous fix
- Should strip out
- eslint-plugin-react(self-closing-comp): Unnecessary closing tag
- Should replace to self closing tag
- eslint-plugin-react(jsx-no-useless-fragment): Fragments should contain more than one child. feat(linter): implement suggestion for
jsx/no-useless-fragment
#10800- Should replace to
<></>
withnull
<>{something}</>
withsomething
- Should replace to
- eslint(eqeqeq): Expected === and instead saw ==
- Should replace
==
to===
feat(linter): alloweqeqeq
to always be dangerously fixable #10499
- Should replace
- eslint-plugin-react(exhaustive-deps): React Hook useMyHook has a missing dependency myDep
- Should add to the dependencies array myDep