Skip to content

linter: react-refresh rule can only be disabled using react namespace #18070

@MichielTondeur

Description

@MichielTondeur

What version of Oxlint are you using?

1.39.0

What command did you run?

npx oxlint --deny-warnings

What does your .oxlintrc.json config file look like?

"rules": {
    "react/only-export-components": "off",
}

What happened?

Just spend some time trying to disable the rule eslint-plugin-react-refresh(only-export-components).

I would've expected to be able to do the following: 'react-refresh/only-export-components': 'off'
This is comparable to what is currently there in ESLint.

But the one I needed was 'react/only-export-components': 'off'

I think the confusing part is mentioning eslint-plugin-react-refresh in the error message, but the rule itself lives under rules/react.

Should this be changed to be more clearer?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions