oxlint-plugin-react-features 2.3.1 β 2.4.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.
- package/README.md +6 -3
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
|
|
27
27
|
## Covered natively by oxlint
|
|
28
28
|
|
|
29
|
-
oxlint already ships 33 of these
|
|
29
|
+
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`.
|
|
30
30
|
|
|
31
31
|
| This plugin | oxlint built-in |
|
|
32
32
|
| :----------------------------------------------------- | :-------------------------------------------- |
|
|
@@ -64,7 +64,7 @@ oxlint already ships 33 of these 65 rules as built-ins. Enable the built-in inst
|
|
|
64
64
|
| `react-features/state-in-constructor` | `react/state-in-constructor` |
|
|
65
65
|
| `react-features/void-dom-elements-no-children` | `react/void-dom-elements-no-children` |
|
|
66
66
|
|
|
67
|
-
What this package adds to oxlint is the other
|
|
67
|
+
What this package adds to oxlint is the other 35: every rule in the table below that is not listed here.
|
|
68
68
|
|
|
69
69
|
- **Why** β a linter nobody reads protects nothing. We would rather miss a finding
|
|
70
70
|
than spend your attention on one that was never real.
|
|
@@ -123,7 +123,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
|
|
|
123
123
|
| :------ | :--------------------------------------------------------------- |
|
|
124
124
|
| oxlint | verified on `1.90.0`: CI loads every rule ID through `jsPlugins` |
|
|
125
125
|
| Vite+ | `lint.jsPlugins` in `vite.config.ts` |
|
|
126
|
-
| Node.js |
|
|
126
|
+
| Node.js | `^20.19.0 \|\| ^22.13.0 \|\| >=24` |
|
|
127
127
|
|
|
128
128
|
## Rules
|
|
129
129
|
|
|
@@ -145,6 +145,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
|
|
|
145
145
|
| [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 | π’ | | | | π‘ | |
|
|
146
146
|
| [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 | π’ | | | | π‘ | |
|
|
147
147
|
| [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 | π’ | | | | π‘ | |
|
|
148
|
+
| [forbid-foreign-prop-types](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/forbid-foreign-prop-types?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Disallow using another component's propTypes | π’ | | | | | |
|
|
148
149
|
| [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 | π’ | | β οΈ | | π‘ | |
|
|
149
150
|
| [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 | π’ | | | | π‘ | |
|
|
150
151
|
| [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 | π’ | πΌ | | | π‘ | |
|
|
@@ -156,6 +157,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
|
|
|
156
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β¦ | π’ | πΌ | | | π‘ | |
|
|
157
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β¦ | π’ | πΌ | | | π‘ | |
|
|
158
159
|
| [jsx-no-undef](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-undef?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Disallow undeclared variables in JSX | π’ | | | | | |
|
|
160
|
+
| [jsx-pascal-case](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-pascal-case?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Enforce PascalCase for user-defined JSX components | π’ | | | | | |
|
|
159
161
|
| [jsx-uses-react](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-uses-react?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Disallow React to be incorrectly marked as unused | π’ | | | | | |
|
|
160
162
|
| [jsx-uses-vars](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-uses-vars?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Disallow variables used in JSX to be incorrectly marked as unused | π’ | | | | | |
|
|
161
163
|
| [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 | π’ | | | | π‘ | |
|
|
@@ -206,6 +208,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
|
|
|
206
208
|
| [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 | π’ | | | | π‘ | |
|
|
207
209
|
| [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 | π’ | | | | π‘ | |
|
|
208
210
|
| [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 | π’ | | | | π‘ | |
|
|
211
|
+
| [style-prop-object](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/style-prop-object?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Enforce style prop value is an object | π’ | | | | | |
|
|
209
212
|
| [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β¦ | π’ | | | | π‘ | |
|
|
210
213
|
|
|
211
214
|
<!-- AUTO-GENERATED:ECOSYSTEM_TABLE:START - Do not edit manually -->
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oxlint-plugin-react-features",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"description": "Oxlint React hooks and JSX rules β prop-types, JSX correctness, render performance, and class-to-hooks migration for modern React codebases. Same rules and rule IDs as eslint-plugin-react-features, for oxlint and Vite+.",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -59,12 +59,12 @@
|
|
|
59
59
|
"author": "Ofri Peretz <ofriperetzdev@gmail.com>",
|
|
60
60
|
"license": "MIT",
|
|
61
61
|
"engines": {
|
|
62
|
-
"node": "
|
|
62
|
+
"node": "^20.19.0 || ^22.13.0 || >=24"
|
|
63
63
|
},
|
|
64
64
|
"publishConfig": {
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"eslint-plugin-react-features": "2.
|
|
68
|
+
"eslint-plugin-react-features": "2.4.1"
|
|
69
69
|
}
|
|
70
70
|
}
|