oxlint-plugin-react-features 1.7.11 → 1.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/README.md +263 -11
  2. package/index.d.ts +3 -0
  3. package/index.js +1 -1
  4. package/package.json +22 -11
package/README.md CHANGED
@@ -1,22 +1,274 @@
1
- # oxlint-plugin-react-features
1
+ <p align="center">
2
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="90" /></picture></a>
3
+ &nbsp;&nbsp;
4
+ <a href="https://react.dev" target="_blank"><img src="https://eslint.interlace.tools/logos/react.svg" alt="React" height="90" /></a>
5
+ &nbsp;&nbsp;
6
+ <a href="https://oxc.rs" target="_blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/oxlint-dark.svg"><img src="https://eslint.interlace.tools/logos/oxlint-light.svg" alt="oxlint" height="90" /></picture></a>
7
+ </p>
2
8
 
3
- [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) for [Oxlint](https://oxc.rs) and [Vite+](https://viteplus.dev).
4
- Same rules, same `react-features/*` rule IDs, one implementation — this package re-exports `eslint-plugin-react-features/oxlint`.
9
+ <p align="center">
10
+ Advanced React patterns, hook usage, and best practices enforcement.
11
+ </p>
12
+
13
+ <p align="center">
14
+ <a href="https://www.npmjs.com/package/oxlint-plugin-react-features" target="_blank"><img src="https://img.shields.io/npm/v/oxlint-plugin-react-features.svg" alt="NPM Version" /></a>
15
+ <a href="https://www.npmjs.com/package/oxlint-plugin-react-features" target="_blank"><img src="https://img.shields.io/npm/dm/oxlint-plugin-react-features.svg" alt="NPM Downloads" /></a>
16
+ <a href="https://packagephobia.com/result?p=oxlint-plugin-react-features" target="_blank"><img src="https://badgen.net/packagephobia/install/oxlint-plugin-react-features" alt="Install Size" /></a>
17
+ <a href="https://opensource.org/licenses/MIT" target="_blank"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="Package License" /></a>
18
+ <a href="https://app.codecov.io/gh/ofri-peretz/eslint/components?components%5B0%5D=eslint-plugin-react-features" target="_blank"><img src="https://codecov.io/gh/ofri-peretz/eslint/graph/badge.svg?component=eslint-plugin-react-features" alt="Codecov" /></a>
19
+ <a href="https://github.com/ofri-peretz/eslint" target="_blank"><img src="https://img.shields.io/badge/Since-Dec_2025-blue?logo=rocket&logoColor=white" alt="Since Dec 2025" /></a>
20
+ <a href="https://scorecard.dev/viewer/?uri=github.com/ofri-peretz/eslint" target="_blank"><img src="https://api.securityscorecards.dev/projects/github.com/ofri-peretz/eslint/badge" alt="OpenSSF Scorecard" /></a>
21
+ </p>
22
+
23
+ > ⭐ If this plugin caught a real bug for you, [**star the repo**](https://github.com/ofri-peretz/eslint) — it's the signal that keeps these rules maintained.
24
+
25
+ ## Description
26
+
27
+ `oxlint-plugin-react-features` is the [oxlint](https://oxc.rs/docs/guide/usage/linter/js-plugins) and [Vite+](https://viteplus.dev/guide/lint) name for [`eslint-plugin-react-features`](https://www.npmjs.com/package/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.
28
+
29
+ ## Covered natively by oxlint
30
+
31
+ oxlint already ships 33 of these 61 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`.
32
+
33
+ | This plugin | oxlint built-in |
34
+ | :----------------------------------------------------- | :-------------------------------------------- |
35
+ | `react-features/checked-requires-onchange-or-readonly` | `react/checked-requires-onchange-or-readonly` |
36
+ | `react-features/display-name` | `react/display-name` |
37
+ | `react-features/jsx-handler-names` | `react/jsx-handler-names` |
38
+ | `react-features/jsx-key` | `react/jsx-key` |
39
+ | `react-features/jsx-max-depth` | `react/jsx-max-depth` |
40
+ | `react-features/jsx-no-duplicate-props` | `react/jsx-no-duplicate-props` |
41
+ | `react-features/jsx-no-literals` | `react/jsx-no-literals` |
42
+ | `react-features/jsx-no-script-url` | `react/jsx-no-script-url` |
43
+ | `react-features/jsx-no-target-blank` | `react/jsx-no-target-blank` |
44
+ | `react-features/no-children-prop` | `react/no-children-prop` |
45
+ | `react-features/no-danger` | `react/no-danger` |
46
+ | `react-features/no-danger-with-children` | `react/no-danger-with-children` |
47
+ | `react-features/no-did-mount-set-state` | `react/no-did-mount-set-state` |
48
+ | `react-features/no-did-update-set-state` | `react/no-did-update-set-state` |
49
+ | `react-features/no-direct-mutation-state` | `react/no-direct-mutation-state` |
50
+ | `react-features/no-find-dom-node` | `react/no-find-dom-node` |
51
+ | `react-features/no-is-mounted` | `react/no-is-mounted` |
52
+ | `react-features/no-multi-comp` | `react/no-multi-comp` |
53
+ | `react-features/no-namespace` | `react/no-namespace` |
54
+ | `react-features/no-object-type-as-default-prop` | `react/no-object-type-as-default-prop` |
55
+ | `react-features/no-redundant-should-component-update` | `react/no-redundant-should-component-update` |
56
+ | `react-features/no-render-return-value` | `react/no-render-return-value` |
57
+ | `react-features/no-set-state` | `react/no-set-state` |
58
+ | `react-features/no-string-refs` | `react/no-string-refs` |
59
+ | `react-features/no-this-in-sfc` | `react/no-this-in-sfc` |
60
+ | `react-features/no-unescaped-entities` | `react/no-unescaped-entities` |
61
+ | `react-features/no-unknown-property` | `react/no-unknown-property` |
62
+ | `react-features/no-unsafe` | `react/no-unsafe` |
63
+ | `react-features/prefer-es6-class` | `react/prefer-es6-class` |
64
+ | `react-features/react-in-jsx-scope` | `react/react-in-jsx-scope` |
65
+ | `react-features/require-render-return` | `react/require-render-return` |
66
+ | `react-features/state-in-constructor` | `react/state-in-constructor` |
67
+ | `react-features/void-dom-elements-no-children` | `react/void-dom-elements-no-children` |
68
+
69
+ What this package adds to oxlint is the other 28: every rule in the table below that is not listed here.
70
+
71
+ - **Why** — a linter nobody reads protects nothing. We would rather miss a finding
72
+ than spend your attention on one that was never real.
73
+ - **How** — evidence, not names. A rule fires on what the code _does_, resolved
74
+ through the AST and ESLint's own scope analysis.
75
+ - **What** — every finding carries its fix, in prose for a human and as structured
76
+ JSON for an agent. Security rules add a CWE mapping and, where assigned, a CVSS score.
77
+
78
+ That trade costs recall, and we measure it:
79
+ [methodology](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-METHODOLOGY.md)
80
+ · [results](https://github.com/ofri-peretz/eslint/blob/main/BENCHMARK-RESULTS.md)
81
+ · [a false positive is a bug](https://github.com/ofri-peretz/eslint/issues).
82
+
83
+ ## Getting Started
5
84
 
6
85
  ```bash
7
- npm i -D oxlint-plugin-react-features
86
+ npm install oxlint-plugin-react-features --save-dev
8
87
  ```
9
88
 
10
- `.oxlintrc.json`:
89
+ ### Vite+
11
90
 
12
- ```json
13
- { "jsPlugins": ["oxlint-plugin-react-features"] }
91
+ ```ts
92
+ // vite.config.ts
93
+ import { defineConfig } from 'vite-plus';
94
+
95
+ export default defineConfig({
96
+ lint: {
97
+ jsPlugins: ['oxlint-plugin-react-features'],
98
+ rules: {
99
+ 'react-features/default-props-match-prop-types': 'error',
100
+ },
101
+ },
102
+ });
14
103
  ```
15
104
 
16
- `vite.config.ts`:
105
+ ### oxlint
17
106
 
18
- ```ts
19
- export default defineConfig({ lint: { jsPlugins: ['oxlint-plugin-react-features'] } });
107
+ ```json
108
+ {
109
+ "jsPlugins": ["oxlint-plugin-react-features"],
110
+ "rules": {
111
+ "react-features/default-props-match-prop-types": "error"
112
+ }
113
+ }
20
114
  ```
21
115
 
22
- Rule list and docs: [eslint-plugin-react-features](https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-react-features).
116
+ That enables one rule as an example; add the ones you want from the table below.
117
+
118
+ ### ESLint
119
+
120
+ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) instead. It has the same rules, plus presets for ESLint's flat config.
121
+
122
+ ## 📦 Compatibility
123
+
124
+ | Package | Version |
125
+ | :------ | :--------------------------------------------------------------- |
126
+ | oxlint | verified on `1.90.0`: CI loads every rule ID through `jsPlugins` |
127
+ | Vite+ | `lint.jsPlugins` in `vite.config.ts` |
128
+ | Node.js | `>=18.0.0` |
129
+
130
+ ## Rules
131
+
132
+ **Legend**
133
+
134
+ | Icon | Description |
135
+ | :--: | :------------------------------------------------------------------------ |
136
+ | 💼 | **Recommended**: Included in the recommended preset. |
137
+ | ⚠️ | **Warns**: Set to warn in recommended preset. |
138
+ | 🔧 | **Auto-fixable**: Automatically fixable by the `--fix` CLI option. |
139
+ | 💡 | **Suggestions**: Providing code suggestions in IDE. |
140
+ | 🚫 | **Deprecated**: This rule is deprecated. |
141
+ | 🟢 | **Type-unaware**: AST-only, runs in oxlint JS-plugin tier. |
142
+ | 🟡 | **Type-aware (refining)**: pure-AST primary path; types refine precision. |
143
+ | 🟠 | **Type-aware (graceful)**: requires TS program; silent without it. |
144
+
145
+ | Rule | CWE | OWASP | CVSS | Description | 🧠 | 💼 | ⚠️ | 🔧 | 💡 | 🚫 |
146
+ | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | :---: | :--: | :----------------------------------------------------------------------------------------------------------- | :-: | :-: | :-: | :-: | :-: | :-: |
147
+ | [checked-requires-onchange-or-readonly](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/checked-requires-onchange-or-readonly?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | checked-requires-onchange-or-readonly rule | 🟢 | | | | 💡 | |
148
+ | [default-props-match-prop-types](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/default-props-match-prop-types?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | default-props-match-prop-types rule | 🟢 | | | | 💡 | |
149
+ | [display-name](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/display-name?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | display-name rule | 🟢 | | | | 💡 | |
150
+ | [hooks-exhaustive-deps](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/hooks-exhaustive-deps?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | hooks-exhaustive-deps rule | 🟢 | | ⚠️ | | 💡 | |
151
+ | [jsx-handler-names](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-handler-names?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | jsx-handler-names rule | 🟢 | | | | 💡 | |
152
+ | [jsx-key](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-key?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | jsx-key rule | 🟢 | 💼 | | | 💡 | |
153
+ | [jsx-max-depth](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-max-depth?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | jsx-max-depth rule | 🟢 | | | | 💡 | |
154
+ | [jsx-no-bind](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-bind?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | jsx-no-bind rule | 🟢 | | | | 💡 | |
155
+ | [jsx-no-duplicate-props](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-duplicate-props?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Prevent duplicate props in JSX elements. This rule is part of eslint-plugin-react-features and provides LLM… | 🟢 | 💼 | | | 💡 | |
156
+ | [jsx-no-literals](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-literals?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | jsx-no-literals rule | 🟢 | | | | 💡 | |
157
+ | [jsx-no-script-url](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-script-url?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Prevent javascript: URLs in JSX. This rule is part of eslint-plugin-react-features and provides LLM-optimiz… | 🟢 | 💼 | | | 💡 | |
158
+ | [jsx-no-target-blank](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-target-blank?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Require rel='noopener noreferrer' with target='_blank'. This rule is part of eslint-plugin-react-features a… | 🟢 | 💼 | | | 💡 | |
159
+ | [no-access-state-in-setstate](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-access-state-in-setstate?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-access-state-in-setstate rule | 🟢 | | | | 💡 | |
160
+ | [no-adjacent-inline-elements](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-adjacent-inline-elements?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-adjacent-inline-elements rule | 🟢 | | | | 💡 | |
161
+ | [no-arbitrary-token-class](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-arbitrary-token-class?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
162
+ | [no-arrow-function-lifecycle](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-arrow-function-lifecycle?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-arrow-function-lifecycle rule | 🟢 | | | | 💡 | |
163
+ | [no-children-prop](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-children-prop?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-children-prop rule | 🟢 | | ⚠️ | | 💡 | |
164
+ | [no-danger](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-danger?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | CWE-79 | | | no-danger rule | 🟢 | | ⚠️ | | 💡 | |
165
+ | [no-danger-with-children](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-danger-with-children?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Prevent using children and dangerouslySetInnerHTML together. This rule is part of eslint-plugin-react-featu… | 🟢 | 💼 | | | 💡 | |
166
+ | [no-default-test-id](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-default-test-id?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
167
+ | [no-deprecated](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-deprecated?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Warn about using deprecated React APIs. This rule is part of eslint-plugin-react-features and provides LLM-… | 🟢 | | ⚠️ | | 💡 | |
168
+ | [no-did-mount-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-did-mount-set-state?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-did-mount-set-state rule | 🟢 | | | | 💡 | |
169
+ | [no-did-update-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-did-update-set-state?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-did-update-set-state rule | 🟢 | | | | 💡 | |
170
+ | [no-direct-mutation-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-direct-mutation-state?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-direct-mutation-state rule | 🟢 | | | | 💡 | |
171
+ | [no-find-dom-node](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-find-dom-node?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Prevent using findDOMNode. This rule is part of eslint-plugin-react-features and provides LLM-optimized err… | 🟢 | | | | 💡 | |
172
+ | [no-inline-style](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-inline-style?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
173
+ | [no-invalid-html-attribute](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-invalid-html-attribute?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-invalid-html-attribute rule | 🟢 | | | | 💡 | |
174
+ | [no-is-mounted](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-is-mounted?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-is-mounted rule | 🟢 | | | | 💡 | |
175
+ | [no-is-prefix-prop](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-is-prefix-prop?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
176
+ | [no-kind-prop-discriminator](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-kind-prop-discriminator?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
177
+ | [no-multi-comp](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-multi-comp?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-multi-comp rule | 🟢 | | | | 💡 | |
178
+ | [no-namespace](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-namespace?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-namespace rule | 🟢 | | | | 💡 | |
179
+ | [no-object-type-as-default-prop](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-object-type-as-default-prop?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-object-type-as-default-prop rule | 🟢 | | | | 💡 | |
180
+ | [no-raw-color-literal](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-raw-color-literal?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
181
+ | [no-redundant-should-component-update](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-redundant-should-component-update?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-redundant-should-component-update rule | 🟢 | | | | 💡 | |
182
+ | [no-render-return-value](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-render-return-value?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-render-return-value rule | 🟢 | | | | 💡 | |
183
+ | [no-set-state](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-set-state?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-set-state rule | 🟢 | | | | 💡 | |
184
+ | [no-string-refs](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-string-refs?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-string-refs rule | 🟢 | 💼 | | | 💡 | |
185
+ | [no-this-in-sfc](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-this-in-sfc?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-this-in-sfc rule | 🟢 | | | | 💡 | |
186
+ | [no-typos](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-typos?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-typos rule | 🟢 | | | | 💡 | |
187
+ | [no-unescaped-entities](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unescaped-entities?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-unescaped-entities rule | 🟢 | | | | 💡 | |
188
+ | [no-unknown-property](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unknown-property?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-unknown-property rule | 🟢 | 💼 | | | 💡 | |
189
+ | [no-unnecessary-rerenders](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unnecessary-rerenders?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | no-unnecessary-rerenders rule | 🟢 | | | | 💡 | |
190
+ | [no-unsafe](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-unsafe?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Warn about UNSAFE_ lifecycle methods. This rule is part of eslint-plugin-react-features and provides LLM-op… | 🟢 | | | | 💡 | |
191
+ | [no-wrapper-sub-component](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/no-wrapper-sub-component?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
192
+ | [prefer-es6-class](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prefer-es6-class?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | prefer-es6-class rule | 🟢 | | | | 💡 | |
193
+ | [prefer-stateless-function](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prefer-stateless-function?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | prefer-stateless-function rule | 🟢 | | | | 💡 | |
194
+ | [prop-types](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/prop-types?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | prop-types rule | 🟢 | | | | 💡 | |
195
+ | [react-class-to-hooks](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-class-to-hooks?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | react-class-to-hooks rule | 🟢 | | | | 💡 | |
196
+ | [react-in-jsx-scope](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-in-jsx-scope?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | react-in-jsx-scope rule | 🟢 | | | | 💡 | |
197
+ | [react-no-inline-functions](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-no-inline-functions?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | react-no-inline-functions rule | 🟢 | | | | 💡 | |
198
+ | [react-render-optimization](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/react-render-optimization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | react-render-optimization rule | 🟢 | | | | 💡 | |
199
+ | [require-data-slot](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-data-slot?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | | 🟢 | | | | | |
200
+ | [require-default-props](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-default-props?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | require-default-props rule | 🟢 | | | | 💡 | |
201
+ | [require-optimization](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-optimization?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | require-optimization rule | 🟢 | | | | 💡 | |
202
+ | [require-render-return](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/require-render-return?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | require-render-return rule | 🟢 | | | | 💡 | |
203
+ | [required-attributes](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/required-attributes?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | required-attributes rule | 🟢 | | | | 💡 | |
204
+ | [sort-comp](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/sort-comp?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | sort-comp rule | 🟢 | | | | 💡 | |
205
+ | [state-in-constructor](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/state-in-constructor?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | state-in-constructor rule | 🟢 | | | | 💡 | |
206
+ | [static-property-placement](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/static-property-placement?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | static-property-placement rule | 🟢 | | | | 💡 | |
207
+ | [void-dom-elements-no-children](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/void-dom-elements-no-children?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Prevent void DOM elements from receiving children. This rule is part of eslint-plugin-react-features and pr… | 🟢 | | | | 💡 | |
208
+
209
+ <!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
210
+
211
+ ## 🔗 Related ESLint Plugins
212
+
213
+ Part of the **Interlace ESLint ecosystem** — AI-native rules with LLM-optimized error messages:
214
+
215
+ **Security**
216
+
217
+ | Plugin | Downloads | Description |
218
+ | :----------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------- |
219
+ | [`eslint-plugin-anthropic-security`](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-anthropic-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-anthropic-security) | Anthropic SDK security. |
220
+ | [`eslint-plugin-browser-security`](https://www.npmjs.com/package/eslint-plugin-browser-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-browser-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-browser-security) | XSS, DOM security. |
221
+ | [`eslint-plugin-drizzle-security`](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-drizzle-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-drizzle-security) | Drizzle security. |
222
+ | [`eslint-plugin-express-security`](https://www.npmjs.com/package/eslint-plugin-express-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-express-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-express-security) | Express middleware hardening. |
223
+ | [`eslint-plugin-gemini-security`](https://www.npmjs.com/package/eslint-plugin-gemini-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-gemini-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-gemini-security) | Google Gemini SDK security. |
224
+ | [`eslint-plugin-jwt-security`](https://www.npmjs.com/package/eslint-plugin-jwt-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-jwt-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-jwt-security) | Token security. |
225
+ | [`eslint-plugin-knex-security`](https://www.npmjs.com/package/eslint-plugin-knex-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-knex-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-knex-security) | Knex security. |
226
+ | [`eslint-plugin-lambda-security`](https://www.npmjs.com/package/eslint-plugin-lambda-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-lambda-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-lambda-security) | AWS Lambda hardening. |
227
+ | [`eslint-plugin-mcp-sdk-security`](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mcp-sdk-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mcp-sdk-security) | MCP SDK security. |
228
+ | [`eslint-plugin-mongodb-security`](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mongodb-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mongodb-security) | MongoDB injection. |
229
+ | [`eslint-plugin-mysql-security`](https://www.npmjs.com/package/eslint-plugin-mysql-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-mysql-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-mysql-security) | MySQL security. |
230
+ | [`eslint-plugin-nestjs-security`](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-nestjs-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-nestjs-security) | NestJS framework hardening. |
231
+ | [`eslint-plugin-node-security`](https://www.npmjs.com/package/eslint-plugin-node-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-node-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-node-security) | Server-side patterns. |
232
+ | [`eslint-plugin-openai-security`](https://www.npmjs.com/package/eslint-plugin-openai-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-openai-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-openai-security) | OpenAI SDK security. |
233
+ | [`eslint-plugin-postgresql-security`](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-postgresql-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-postgresql-security) | PostgreSQL security. |
234
+ | [`eslint-plugin-prisma-security`](https://www.npmjs.com/package/eslint-plugin-prisma-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-prisma-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-prisma-security) | Prisma security. |
235
+ | [`eslint-plugin-secure-coding`](https://www.npmjs.com/package/eslint-plugin-secure-coding) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-secure-coding.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-secure-coding) | Injection prevention. |
236
+ | [`eslint-plugin-sequelize-security`](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-sequelize-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-sequelize-security) | Sequelize ORM security. |
237
+ | [`eslint-plugin-sqlite-security`](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-sqlite-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-sqlite-security) | SQLite security. |
238
+ | [`eslint-plugin-supabase-security`](https://www.npmjs.com/package/eslint-plugin-supabase-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-supabase-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-supabase-security) | Supabase security. |
239
+ | [`eslint-plugin-typeorm-security`](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-typeorm-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-typeorm-security) | TypeORM security. |
240
+ | [`eslint-plugin-vercel-ai-security`](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-vercel-ai-security.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-vercel-ai-security) | AI SDK security. |
241
+
242
+ **Code quality**
243
+
244
+ | Plugin | Downloads | Description |
245
+ | :--------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------: | :---------------------------------------- |
246
+ | [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-conventions.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
247
+ | [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-import-next.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-import-next) | Fast cycle + import-graph analysis. |
248
+ | [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-maintainability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
249
+ | [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-modernization.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
250
+ | [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-modularity.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
251
+ | [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-operability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
252
+ | [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-react-a11y.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility / WCAG. |
253
+ | [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-react-features.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
254
+ | [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [![downloads](https://img.shields.io/npm/dt/eslint-plugin-reliability.svg?style=flat-square)](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
255
+
256
+ <!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
257
+
258
+ ## ⭐ Support & follow
259
+
260
+ If this plugin caught a real bug for you, **[star the repo](https://github.com/ofri-peretz/eslint)** — stars are the signal that keeps the Interlace ESLint ecosystem maintained — and **[follow the writeups on Dev.to](https://dev.to/ofri-peretz)** for the benchmarks and security research behind these rules.
261
+
262
+ [![GitHub stars](https://img.shields.io/github/stars/ofri-peretz/eslint?style=social)](https://github.com/ofri-peretz/eslint)
263
+
264
+ ## 📄 License
265
+
266
+ MIT © [Ofri Peretz](https://github.com/ofri-peretz)
267
+
268
+ <p align="center">
269
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features"><img src="https://eslint.interlace.tools/images/og-react-features.png" alt="ESLint Interlace Plugin" width="100%" /></a>
270
+ </p>
271
+
272
+ <p align="center">
273
+ <a href="https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features" target="blank"><picture><source media="(prefers-color-scheme: dark)" srcset="https://eslint.interlace.tools/logos/interlace-dark.svg"><img src="https://eslint.interlace.tools/logos/interlace-light.svg" alt="Interlace" height="70" /></picture></a>
274
+ </p>
package/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
+ // Generated by scripts/generate-oxlint-aliases.mts. Do not edit by hand.
2
+ // The rules live in eslint-plugin-react-features; this package only gives them an oxlint name.
1
3
  import plugin = require('eslint-plugin-react-features/oxlint');
4
+
2
5
  export = plugin;
package/index.js CHANGED
@@ -1 +1 @@
1
- module.exports = require('eslint-plugin-react-features/oxlint');
1
+ module.exports=require("eslint-plugin-react-features/oxlint");
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-features",
3
- "version": "1.7.11",
4
- "description": "eslint-plugin-react-features for Oxlint and Vite+: the same react-features/* rules.",
5
- "main": "index.js",
6
- "types": "index.d.ts",
3
+ "version": "1.8.1",
4
+ "description": "The react-features rules for oxlint and Vite+. Same rules and rule IDs as eslint-plugin-react-features.",
5
+ "type": "commonjs",
6
+ "main": "./index.js",
7
+ "types": "./index.d.ts",
7
8
  "files": [
8
9
  "index.js",
9
10
  "index.d.ts",
@@ -14,7 +15,7 @@
14
15
  "oxlint",
15
16
  "oxlint-plugin",
16
17
  "vite-plus",
17
- "eslintplugin",
18
+ "eslint",
18
19
  "static-analysis",
19
20
  "linting",
20
21
  "code-quality",
@@ -34,18 +35,28 @@
34
35
  "ai-assistant",
35
36
  "typescript"
36
37
  ],
37
- "dependencies": {
38
- "eslint-plugin-react-features": "1.7.11"
39
- },
40
- "license": "MIT",
38
+ "homepage": "https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-react-features",
41
39
  "repository": {
42
40
  "type": "git",
43
41
  "url": "git+https://github.com/ofri-peretz/eslint.git",
44
42
  "directory": "packages/oxlint-plugin-react-features"
45
43
  },
46
- "homepage": "https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=npm&utm_medium=referral&utm_campaign=eslint-plugin-react-features",
47
44
  "bugs": {
48
45
  "url": "https://github.com/ofri-peretz/eslint/issues"
49
46
  },
50
- "author": "Ofri Peretz <ofriperetzdev@gmail.com>"
47
+ "author": "Ofri Peretz <ofriperetzdev@gmail.com>",
48
+ "license": "MIT",
49
+ "engines": {
50
+ "node": ">=18.0.0"
51
+ },
52
+ "funding": {
53
+ "type": "github",
54
+ "url": "git+https://github.com/ofri-peretz/eslint.git"
55
+ },
56
+ "publishConfig": {
57
+ "access": "public"
58
+ },
59
+ "dependencies": {
60
+ "eslint-plugin-react-features": "1.8.1"
61
+ }
51
62
  }