Skip to content

linter: bunch of small auto-fix missing #10477

Open
@Hideman42

Description

@Hideman42

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 global parseFloat => Same for parseInt, isNaN feat(linter): implement fixer for unicorn/prefer-number-properties #10693
    • Should add Number. before parseFloat
  • eslint(radix): Missing radix parameter feat(linter): add auto-fix for eslint/radix #10652
    • Should add , 10 in the code as Number.parseInt(str, 10)
  • eslint-plugin-unicorn(prefer-spread): Prefer the spread operator (...) over Array.from()
  • eslint-plugin-react(jsx-curly-brace-presence): Curly braces are unnecessary here
    • Should replace <div id={'my-div'} /> with <div id="my-div" />
  • eslint(require-await): Async function has no 'await' expression
    • Should strip out async // Maybe a dangerous fix
  • 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 <></> with null <>{something}</> with something
  • eslint(eqeqeq): Expected === and instead saw ==
  • eslint-plugin-react(exhaustive-deps): React Hook useMyHook has a missing dependency myDep
    • Should add to the dependencies array myDep

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterE-Help WantedExperience level - For the experienced collaboratorsgood first issueExperience Level - Good for newcomers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions