Skip to content

linter: unable to load react compiler rules #15258

@juliusmarminge

Description

@juliusmarminge

What version of Oxlint are you using?

1.25.0

What command did you run?

oxlint

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

{
  "$schema": "./node_modules/oxlint/configuration_schema.json",
  "env": {
    "builtin": true
  },
  "jsPlugins": ["eslint-plugin-react-hooks"],
  "rules": {
    "react-hooks/unsupported-syntax": "error",
    "react-hooks/use-memo": "error",
    "react-hooks/void-use-memo": "error",
    "react-hooks/incompatible-library": "error"
  }
}

What happened?

I am trying to use Oxlint with these React Compiler rules babel plugin source, but I cannot enable the eslint-plugin-react-hooks (the plugin that has these rules as defined here.

But the react-hooks is apparently a reserved name so you can't use this?

afaik oxlint hasn't implemented any of the compiler rules into the built-in react plugin so how are we supposed to use this?

Metadata

Metadata

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions