Skip to content
Discussion options

You must be logged in to vote

You don't need to specify all default plugins. Just configure the rule directly:

{
  "rules": {
    "react/rules-of-hooks": "error"
  }
}

Oxlint will automatically enable the necessary plugin when you reference a rule from it. The plugins field is only needed when you want to completely customize which plugins are active (e.g., to disable default plugins or enable all rules from a specific plugin at once).

So for your use case, the second approach (just adding the rule) is the correct one.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brandonleichty
Comment options

@overlookmotel
Comment options

@silvenon
Comment options

Answer selected by brandonleichty
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants