oxlint-plugin-react-features 0.0.0-stage → 1.8.0
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.
- package/LICENSE +23 -0
- package/README.md +274 -2
- package/index.d.ts +5 -0
- package/index.js +1 -0
- package/package.json +60 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Ofri Peretz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
22
|
+
|
|
23
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,275 @@
|
|
|
1
|
-
|
|
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
|
+
|
|
4
|
+
<a href="https://react.dev" target="_blank"><img src="https://eslint.interlace.tools/logos/react.svg" alt="React" height="90" /></a>
|
|
5
|
+
|
|
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
|
-
|
|
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
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
npm install oxlint-plugin-react-features --save-dev
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Vite+
|
|
90
|
+
|
|
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
|
+
});
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### oxlint
|
|
106
|
+
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"jsPlugins": ["oxlint-plugin-react-features"],
|
|
110
|
+
"rules": {
|
|
111
|
+
"react-features/default-props-match-prop-types": "error"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
```
|
|
115
|
+
|
|
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.88.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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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) | [](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-cli-floor`](https://www.npmjs.com/package/eslint-plugin-cli-floor) | [](https://www.npmjs.com/package/eslint-plugin-cli-floor) | CLI floor for commander, yargs and burgee. |
|
|
247
|
+
| [`eslint-plugin-conventions`](https://www.npmjs.com/package/eslint-plugin-conventions) | [](https://www.npmjs.com/package/eslint-plugin-conventions) | Team-specific habits and styles. |
|
|
248
|
+
| [`eslint-plugin-import-next`](https://www.npmjs.com/package/eslint-plugin-import-next) | [](https://www.npmjs.com/package/eslint-plugin-import-next) | Fast cycle + import-graph analysis. |
|
|
249
|
+
| [`eslint-plugin-maintainability`](https://www.npmjs.com/package/eslint-plugin-maintainability) | [](https://www.npmjs.com/package/eslint-plugin-maintainability) | Cognitive load and clean-code patterns. |
|
|
250
|
+
| [`eslint-plugin-modernization`](https://www.npmjs.com/package/eslint-plugin-modernization) | [](https://www.npmjs.com/package/eslint-plugin-modernization) | ESNext migration + syntax evolution. |
|
|
251
|
+
| [`eslint-plugin-modularity`](https://www.npmjs.com/package/eslint-plugin-modularity) | [](https://www.npmjs.com/package/eslint-plugin-modularity) | Structural integrity and DDD patterns. |
|
|
252
|
+
| [`eslint-plugin-operability`](https://www.npmjs.com/package/eslint-plugin-operability) | [](https://www.npmjs.com/package/eslint-plugin-operability) | Production readiness and resource health. |
|
|
253
|
+
| [`eslint-plugin-react-a11y`](https://www.npmjs.com/package/eslint-plugin-react-a11y) | [](https://www.npmjs.com/package/eslint-plugin-react-a11y) | React accessibility / WCAG. |
|
|
254
|
+
| [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-plugin-react-features) | [](https://www.npmjs.com/package/eslint-plugin-react-features) | React best practices and optimization. |
|
|
255
|
+
| [`eslint-plugin-reliability`](https://www.npmjs.com/package/eslint-plugin-reliability) | [](https://www.npmjs.com/package/eslint-plugin-reliability) | Runtime stability and error safety. |
|
|
256
|
+
|
|
257
|
+
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:END -->
|
|
258
|
+
|
|
259
|
+
## ⭐ Support & follow
|
|
260
|
+
|
|
261
|
+
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.
|
|
262
|
+
|
|
263
|
+
[](https://github.com/ofri-peretz/eslint)
|
|
264
|
+
|
|
265
|
+
## 📄 License
|
|
266
|
+
|
|
267
|
+
MIT © [Ofri Peretz](https://github.com/ofri-peretz)
|
|
268
|
+
|
|
269
|
+
<p align="center">
|
|
270
|
+
<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>
|
|
271
|
+
</p>
|
|
272
|
+
|
|
273
|
+
<p align="center">
|
|
274
|
+
<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>
|
|
275
|
+
</p>
|
package/index.d.ts
ADDED
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports=require("eslint-plugin-react-features/oxlint");
|
package/package.json
CHANGED
|
@@ -1,6 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-react-features",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "1.8.0",
|
|
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",
|
|
8
|
+
"files": [
|
|
9
|
+
"index.js",
|
|
10
|
+
"index.d.ts",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"keywords": [
|
|
15
|
+
"oxlint",
|
|
16
|
+
"oxlint-plugin",
|
|
17
|
+
"vite-plus",
|
|
18
|
+
"eslint",
|
|
19
|
+
"static-analysis",
|
|
20
|
+
"linting",
|
|
21
|
+
"code-quality",
|
|
22
|
+
"interlace-quality",
|
|
23
|
+
"react",
|
|
24
|
+
"jsx",
|
|
25
|
+
"hooks",
|
|
26
|
+
"react-hooks",
|
|
27
|
+
"exhaustive-deps",
|
|
28
|
+
"prop-types",
|
|
29
|
+
"eslint-plugin-react",
|
|
30
|
+
"eslint-plugin-react-alternative",
|
|
31
|
+
"component-api",
|
|
32
|
+
"performance",
|
|
33
|
+
"migration",
|
|
34
|
+
"llm-optimized",
|
|
35
|
+
"ai-assistant",
|
|
36
|
+
"typescript"
|
|
37
|
+
],
|
|
38
|
+
"homepage": "https://eslint.interlace.tools/docs/quality/plugin-react-features?utm_source=npm&utm_medium=referral&utm_campaign=oxlint-plugin-react-features",
|
|
39
|
+
"repository": {
|
|
40
|
+
"type": "git",
|
|
41
|
+
"url": "git+https://github.com/ofri-peretz/eslint.git",
|
|
42
|
+
"directory": "packages/oxlint-plugin-react-features"
|
|
43
|
+
},
|
|
44
|
+
"bugs": {
|
|
45
|
+
"url": "https://github.com/ofri-peretz/eslint/issues"
|
|
46
|
+
},
|
|
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.0"
|
|
61
|
+
}
|
|
62
|
+
}
|