@eslint-react/eslint-plugin 3.0.0-next.2 → 3.0.0-next.20
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 +11 -6
- package/dist/index.js +16 -10
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
- [Rules](#rules)
|
|
29
29
|
- [Benchmark](#benchmark)
|
|
30
30
|
- [FAQ](#faq)
|
|
31
|
+
- [Changelog](#changelog)
|
|
31
32
|
- [Roadmap](#roadmap)
|
|
32
33
|
- [Disclaimer](#disclaimer)
|
|
33
34
|
- [Contributing](#contributing)
|
|
@@ -44,15 +45,15 @@
|
|
|
44
45
|
|
|
45
46
|
### Unified ESLint Plugin
|
|
46
47
|
|
|
47
|
-
- [`@eslint-react/eslint-plugin`](https://
|
|
48
|
+
- [`@eslint-react/eslint-plugin`](https://npmx.dev/package/@eslint-react/eslint-plugin) - A unified plugin that combines all individual plugins into one.
|
|
48
49
|
|
|
49
50
|
### Modular ESLint Plugins
|
|
50
51
|
|
|
51
|
-
- [`eslint-plugin-react-x`](https://
|
|
52
|
-
- [`eslint-plugin-react-rsc`](https://
|
|
53
|
-
- [`eslint-plugin-react-dom`](https://
|
|
54
|
-
- [`eslint-plugin-react-web-api`](https://
|
|
55
|
-
- [`eslint-plugin-react-naming-convention`](https://
|
|
52
|
+
- [`eslint-plugin-react-x`](https://npmx.dev/package/eslint-plugin-react-x) - X rules (renderer-agnostic, compatible with x-platform).
|
|
53
|
+
- [`eslint-plugin-react-rsc`](https://npmx.dev/package/eslint-plugin-react-rsc) - Rules for React Server Components.
|
|
54
|
+
- [`eslint-plugin-react-dom`](https://npmx.dev/package/eslint-plugin-react-dom) - DOM-specific rules for React DOM.
|
|
55
|
+
- [`eslint-plugin-react-web-api`](https://npmx.dev/package/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
|
|
56
|
+
- [`eslint-plugin-react-naming-convention`](https://npmx.dev/package/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
56
57
|
|
|
57
58
|
> [!NOTE]\
|
|
58
59
|
> Don't know which one to use? See our [FAQ](https://eslint-react.xyz/docs/faq#which-one-should-i-use-unified-plugin-or-individual-plugins) for guidance.
|
|
@@ -195,6 +196,10 @@ export default defineConfig(
|
|
|
195
196
|
|
|
196
197
|
[Frequently Asked Questions ↗](https://eslint-react.xyz/docs/faq)
|
|
197
198
|
|
|
199
|
+
## Changelog
|
|
200
|
+
|
|
201
|
+
[Changelog ↗](https://www.eslint-react.xyz/docs/changelog)
|
|
202
|
+
|
|
198
203
|
## Roadmap
|
|
199
204
|
|
|
200
205
|
- [Milestone 3.0 ↗](https://eslint-react.xyz/docs/roadmap#milestone-30-tbd)
|
package/dist/index.js
CHANGED
|
@@ -24,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region package.json
|
|
26
26
|
var name$19 = "@eslint-react/eslint-plugin";
|
|
27
|
-
var version = "3.0.0-next.
|
|
27
|
+
var version = "3.0.0-next.20";
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/configs/dom.ts
|
|
@@ -95,6 +95,8 @@ const rules$17 = {
|
|
|
95
95
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
96
96
|
"@eslint-react/no-forward-ref": "warn",
|
|
97
97
|
"@eslint-react/no-missing-key": "error",
|
|
98
|
+
"@eslint-react/use-memo": "error",
|
|
99
|
+
"@eslint-react/use-state": "warn",
|
|
98
100
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
99
101
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
100
102
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
@@ -108,11 +110,11 @@ const rules$17 = {
|
|
|
108
110
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
109
111
|
"@eslint-react/no-use-context": "warn",
|
|
110
112
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
111
|
-
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
112
113
|
"@eslint-react/purity": "warn",
|
|
113
114
|
"@eslint-react/rules-of-hooks": "error",
|
|
114
115
|
"@eslint-react/set-state-in-effect": "warn",
|
|
115
|
-
"@eslint-react/set-state-in-render": "error"
|
|
116
|
+
"@eslint-react/set-state-in-render": "error",
|
|
117
|
+
"@eslint-react/unsupported-syntax": "error"
|
|
116
118
|
};
|
|
117
119
|
const plugins$9 = { "@eslint-react": react };
|
|
118
120
|
const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
@@ -134,7 +136,6 @@ const rules$16 = {
|
|
|
134
136
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
135
137
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
136
138
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
137
|
-
"@eslint-react/jsx-no-iife": "warn",
|
|
138
139
|
"@eslint-react/jsx-no-undef": "error",
|
|
139
140
|
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
140
141
|
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
@@ -161,6 +162,8 @@ const rules$16 = {
|
|
|
161
162
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
162
163
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
163
164
|
"@eslint-react/no-missing-key": "error",
|
|
165
|
+
"@eslint-react/use-memo": "error",
|
|
166
|
+
"@eslint-react/use-state": "warn",
|
|
164
167
|
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
165
168
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
166
169
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
@@ -183,10 +186,12 @@ const rules$16 = {
|
|
|
183
186
|
"@eslint-react/no-useless-fragment": "warn",
|
|
184
187
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
185
188
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
186
|
-
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
187
189
|
"@eslint-react/purity": "warn",
|
|
190
|
+
"@eslint-react/refs": "error",
|
|
188
191
|
"@eslint-react/rules-of-hooks": "error",
|
|
189
192
|
"@eslint-react/set-state-in-effect": "warn",
|
|
193
|
+
"@eslint-react/set-state-in-render": "error",
|
|
194
|
+
"@eslint-react/unsupported-syntax": "error",
|
|
190
195
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
191
196
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
192
197
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -213,8 +218,7 @@ const rules$16 = {
|
|
|
213
218
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
214
219
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
215
220
|
"@eslint-react/naming-convention/id-name": "warn",
|
|
216
|
-
"@eslint-react/naming-convention/ref-name": "warn"
|
|
217
|
-
"@eslint-react/naming-convention/use-state": "warn"
|
|
221
|
+
"@eslint-react/naming-convention/ref-name": "warn"
|
|
218
222
|
};
|
|
219
223
|
const plugins$8 = {
|
|
220
224
|
...plugins$9,
|
|
@@ -299,8 +303,8 @@ var disable_experimental_exports = /* @__PURE__ */ __exportAll({
|
|
|
299
303
|
});
|
|
300
304
|
const name$12 = "@eslint-react/disable-experimental";
|
|
301
305
|
const rules$13 = {
|
|
306
|
+
"@eslint-react/exhaustive-deps": "off",
|
|
302
307
|
"@eslint-react/jsx-key-before-spread": "off",
|
|
303
|
-
"@eslint-react/jsx-no-iife": "off",
|
|
304
308
|
"@eslint-react/no-duplicate-key": "off",
|
|
305
309
|
"@eslint-react/no-implicit-key": "off",
|
|
306
310
|
"@eslint-react/no-misused-capture-owner-stack": "off",
|
|
@@ -308,6 +312,9 @@ const rules$13 = {
|
|
|
308
312
|
"@eslint-react/no-unnecessary-use-memo": "off",
|
|
309
313
|
"@eslint-react/no-unused-props": "off",
|
|
310
314
|
"@eslint-react/prefer-read-only-props": "off",
|
|
315
|
+
"@eslint-react/refs": "off",
|
|
316
|
+
"@eslint-react/rules-of-hooks": "off",
|
|
317
|
+
"@eslint-react/set-state-in-render": "off",
|
|
311
318
|
"@eslint-react/rsc/function-definition": "off"
|
|
312
319
|
};
|
|
313
320
|
|
|
@@ -414,7 +421,7 @@ const rules$6 = {
|
|
|
414
421
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
415
422
|
"@eslint-react/naming-convention/id-name": "warn",
|
|
416
423
|
"@eslint-react/naming-convention/ref-name": "warn",
|
|
417
|
-
"@eslint-react/
|
|
424
|
+
"@eslint-react/use-state": "warn"
|
|
418
425
|
};
|
|
419
426
|
const plugins$5 = {
|
|
420
427
|
...plugins$9,
|
|
@@ -483,7 +490,6 @@ var strict_exports = /* @__PURE__ */ __exportAll({
|
|
|
483
490
|
const name$2 = "@eslint-react/strict";
|
|
484
491
|
const rules$2 = {
|
|
485
492
|
...rules$6,
|
|
486
|
-
"@eslint-react/jsx-no-iife": "error",
|
|
487
493
|
"@eslint-react/no-children-prop": "error",
|
|
488
494
|
"@eslint-react/no-class-component": "error",
|
|
489
495
|
"@eslint-react/no-misused-capture-owner-stack": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.20",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -41,18 +41,18 @@
|
|
|
41
41
|
"./package.json"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@typescript-eslint/scope-manager": "
|
|
45
|
-
"@typescript-eslint/type-utils": "
|
|
46
|
-
"@typescript-eslint/types": "
|
|
47
|
-
"@typescript-eslint/utils": "
|
|
44
|
+
"@typescript-eslint/scope-manager": "canary",
|
|
45
|
+
"@typescript-eslint/type-utils": "canary",
|
|
46
|
+
"@typescript-eslint/types": "canary",
|
|
47
|
+
"@typescript-eslint/utils": "canary",
|
|
48
48
|
"ts-api-utils": "^2.4.0",
|
|
49
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
50
|
-
"eslint-
|
|
51
|
-
"
|
|
52
|
-
"eslint-plugin-react-naming-convention": "3.0.0-next.
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-x": "3.0.0-next.
|
|
49
|
+
"@eslint-react/eff": "3.0.0-next.20",
|
|
50
|
+
"@eslint-react/shared": "3.0.0-next.20",
|
|
51
|
+
"eslint-plugin-react-dom": "3.0.0-next.20",
|
|
52
|
+
"eslint-plugin-react-naming-convention": "3.0.0-next.20",
|
|
53
|
+
"eslint-plugin-react-rsc": "3.0.0-next.20",
|
|
54
|
+
"eslint-plugin-react-web-api": "3.0.0-next.20",
|
|
55
|
+
"eslint-plugin-react-x": "3.0.0-next.20"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsdown": "^0.20.3",
|