-
-
Notifications
You must be signed in to change notification settings - Fork 641
Open
Labels
A-linterArea - LinterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaboratorsgood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers
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
- eslint-plugin-import(no-named-as-default): Module "@testing-library/user-event" has named export "userEvent"
- Should transform
import userEvent
toimport { userEvent }
- Should transform
- eslint-plugin-import(consistent-type-specifier-style): Prefer using a top-level type-only import instead of inline type specifiers.
- Should rework import according to config (here top-level)
- eslint(arrow-body-style): Unexpected block statement surrounding arrow body; move the returned value immediately after the
=>
.- Should remove body and inline return
Metadata
Metadata
Assignees
Labels
A-linterArea - LinterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsExperience level - For the experienced collaboratorsgood first issueExperience Level - Good for newcomersExperience Level - Good for newcomers