Description
oxlint-plugin-react-features is the oxlint and Vite+ name for eslint-plugin-react-features. It carries the same rules under the same IDs (react-features/<rule>), always at the same version, because it re-exports that package rather than copying it. Installing it does not install ESLint.
Covered natively by oxlint
oxlint already ships 33 of these 68 rules as built-ins. Enable the built-in instead: it is the same check, runs natively, and running both would report every finding twice. Each rule carries the mapping as meta.interop.nativeEquivalent.
| This plugin |
oxlint built-in |
react-features/checked-requires-onchange-or-readonly |
react/checked-requires-onchange-or-readonly |
react-features/display-name |
react/display-name |
react-features/jsx-handler-names |
react/jsx-handler-names |
react-features/jsx-key |
react/jsx-key |
react-features/jsx-max-depth |
react/jsx-max-depth |
react-features/jsx-no-duplicate-props |
react/jsx-no-duplicate-props |
react-features/jsx-no-literals |
react/jsx-no-literals |
react-features/jsx-no-script-url |
react/jsx-no-script-url |
react-features/jsx-no-target-blank |
react/jsx-no-target-blank |
react-features/no-children-prop |
react/no-children-prop |
react-features/no-danger |
react/no-danger |
react-features/no-danger-with-children |
react/no-danger-with-children |
react-features/no-did-mount-set-state |
react/no-did-mount-set-state |
react-features/no-did-update-set-state |
react/no-did-update-set-state |
react-features/no-direct-mutation-state |
react/no-direct-mutation-state |
react-features/no-find-dom-node |
react/no-find-dom-node |
react-features/no-is-mounted |
react/no-is-mounted |
react-features/no-multi-comp |
react/no-multi-comp |
react-features/no-namespace |
react/no-namespace |
react-features/no-object-type-as-default-prop |
react/no-object-type-as-default-prop |
react-features/no-redundant-should-component-update |
react/no-redundant-should-component-update |
react-features/no-render-return-value |
react/no-render-return-value |
react-features/no-set-state |
react/no-set-state |
react-features/no-string-refs |
react/no-string-refs |
react-features/no-this-in-sfc |
react/no-this-in-sfc |
react-features/no-unescaped-entities |
react/no-unescaped-entities |
react-features/no-unknown-property |
react/no-unknown-property |
react-features/no-unsafe |
react/no-unsafe |
react-features/prefer-es6-class |
react/prefer-es6-class |
react-features/react-in-jsx-scope |
react/react-in-jsx-scope |
react-features/require-render-return |
react/require-render-return |
react-features/state-in-constructor |
react/state-in-constructor |
react-features/void-dom-elements-no-children |
react/void-dom-elements-no-children |
What this package adds to oxlint is the other 35: every rule in the table below that is not listed here.
- Why — a linter nobody reads protects nothing. We would rather miss a finding
than spend your attention on one that was never real.
- How — evidence, not names. A rule fires on what the code does, resolved
through the AST and ESLint's own scope analysis.
- What — every finding carries its fix, in prose for a human and as structured
JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
That trade costs recall, and we measure it:
methodology
· results
· a false positive is a bug.
Getting Started
npm install oxlint-plugin-react-features --save-dev
Vite+
// vite.config.ts
import { defineConfig } from 'vite-plus';
export default defineConfig({
lint: {
jsPlugins: ['oxlint-plugin-react-features'],
rules: {
'react-features/default-props-match-prop-types': 'error',
},
},
});
oxlint
{
"jsPlugins": ["oxlint-plugin-react-features"],
"rules": {
"react-features/default-props-match-prop-types": "error"
}
}
That enables one rule as an example; add the ones you want from the table below.
ESLint
Install eslint-plugin-react-features instead. It has the same rules, plus presets for ESLint's flat config.
📦 Compatibility
| Package |
Version |
| oxlint |
verified on 1.94.0: CI loads every rule ID through jsPlugins |
| Vite+ |
lint.jsPlugins in vite.config.ts |
| Node.js |
^20.19.0 \|\| ^22.13.0 \|\| >=24 |
Rules
Legend
| Icon |
Description |
| 💼 |
Recommended: Included in the recommended preset. |
| ⚠️ |
Warns: Set to warn in recommended preset. |
| 🔧 |
Auto-fixable: Automatically fixable by the --fix CLI option. |
| 💡 |
Suggestions: Providing code suggestions in IDE. |
| 🚫 |
Deprecated: This rule is deprecated. |
| 🟢 |
Type-unaware: AST-only, runs in oxlint JS-plugin tier. |
| 🟡 |
Type-aware (refining): pure-AST primary path; types refine precision. |
| 🟠 |
Type-aware (graceful): requires TS program; silent without it. |