oxlint-plugin-react-features 2.0.3 β†’ 2.1.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.
Files changed (2) hide show
  1. package/README.md +8 -4
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  ## Covered natively by oxlint
30
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`.
31
+ oxlint already ships 33 of these 65 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
32
 
33
33
  | This plugin | oxlint built-in |
34
34
  | :----------------------------------------------------- | :-------------------------------------------- |
@@ -66,7 +66,7 @@ oxlint already ships 33 of these 61 rules as built-ins. Enable the built-in inst
66
66
  | `react-features/state-in-constructor` | `react/state-in-constructor` |
67
67
  | `react-features/void-dom-elements-no-children` | `react/void-dom-elements-no-children` |
68
68
 
69
- What this package adds to oxlint is the other 28: every rule in the table below that is not listed here.
69
+ What this package adds to oxlint is the other 32: every rule in the table below that is not listed here.
70
70
 
71
71
  - **Why** β€” a linter nobody reads protects nothing. We would rather miss a finding
72
72
  than spend your attention on one that was never real.
@@ -152,10 +152,14 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
152
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
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
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-comment-textnodes](https://eslint.interlace.tools/docs/quality/plugin-react-features/rules/jsx-no-comment-textnodes?utm_source=github&utm_medium=referral&utm_campaign=oxlint-plugin-react-features) | | | | Disallow comments from being inserted as text nodes | 🟒 | | | | | |
155
156
  | [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
157
  | [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
158
  | [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
159
  | [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… | 🟒 | πŸ’Ό | | | πŸ’‘ | |
160
+ | [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 | 🟒 | | | | | |
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 | 🟒 | | | | | |
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 | 🟒 | | | | | |
159
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 | 🟒 | | | | πŸ’‘ | |
160
164
  | [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
165
  | [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) | | | | | 🟒 | | | | | |
@@ -186,7 +190,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
186
190
  | [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
191
  | [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
192
  | [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 | 🟒 | | | | πŸ’‘ | |
193
+ | [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) | | | | Report an object, array or function created during render and passed to a component that compares props by… | 🟒 | | | | πŸ’‘ | |
190
194
  | [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
195
  | [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
196
  | [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 | 🟒 | | | | πŸ’‘ | |
@@ -195,7 +199,7 @@ Install [`eslint-plugin-react-features`](https://www.npmjs.com/package/eslint-pl
195
199
  | [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
200
  | [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
201
  | [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 | 🟒 | | | | πŸ’‘ | |
202
+ | [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) | | | | Report inline object, array and function props passed to a component that compares props by identity, and p… | 🟒 | | | | πŸ’‘ | |
199
203
  | [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
204
  | [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
205
  | [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 | 🟒 | | | | πŸ’‘ | |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oxlint-plugin-react-features",
3
- "version": "2.0.3",
3
+ "version": "2.1.0",
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,
@@ -65,6 +65,6 @@
65
65
  "access": "public"
66
66
  },
67
67
  "dependencies": {
68
- "eslint-plugin-react-features": "2.0.3"
68
+ "eslint-plugin-react-features": "2.1.0"
69
69
  }
70
70
  }