@eslint-react/eslint-plugin 2.14.0-next.0 → 3.0.0-next.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/README.md +0 -1
- package/dist/index.js +13 -13
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
- [`eslint-plugin-react-rsc`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-rsc) - Rules for React Server Components.
|
|
53
53
|
- [`eslint-plugin-react-dom`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) - DOM-specific rules for React DOM.
|
|
54
54
|
- [`eslint-plugin-react-web-api`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-web-api) - Rules for interacting with Web APIs.
|
|
55
|
-
- [`eslint-plugin-react-hooks-extra`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-hooks-extra) - Extra React Hooks rules.
|
|
56
55
|
- [`eslint-plugin-react-naming-convention`](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-naming-convention) - Naming convention rules.
|
|
57
56
|
|
|
58
57
|
> [!NOTE]\
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import react from "eslint-plugin-react-x";
|
|
2
|
-
import reactHooksExtra from "eslint-plugin-react-hooks-extra";
|
|
3
2
|
import reactNamingConvention from "eslint-plugin-react-naming-convention";
|
|
4
3
|
import reactWebApi from "eslint-plugin-react-web-api";
|
|
5
4
|
import reactDom from "eslint-plugin-react-dom";
|
|
@@ -25,7 +24,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
25
24
|
//#endregion
|
|
26
25
|
//#region package.json
|
|
27
26
|
var name$19 = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "
|
|
27
|
+
var version = "3.0.0-next.0";
|
|
29
28
|
|
|
30
29
|
//#endregion
|
|
31
30
|
//#region src/configs/dom.ts
|
|
@@ -72,6 +71,9 @@ var x_exports = /* @__PURE__ */ __exportAll({
|
|
|
72
71
|
});
|
|
73
72
|
const name$16 = "@eslint-react/x";
|
|
74
73
|
const rules$17 = {
|
|
74
|
+
"@eslint-react/component-hook-factories": "error",
|
|
75
|
+
"@eslint-react/error-boundaries": "error",
|
|
76
|
+
"@eslint-react/exhaustive-deps": "warn",
|
|
75
77
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
76
78
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
77
79
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
@@ -90,18 +92,15 @@ const rules$17 = {
|
|
|
90
92
|
"@eslint-react/no-component-will-update": "error",
|
|
91
93
|
"@eslint-react/no-context-provider": "warn",
|
|
92
94
|
"@eslint-react/no-create-ref": "error",
|
|
93
|
-
"@eslint-react/no-default-props": "error",
|
|
94
95
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
95
96
|
"@eslint-react/no-forward-ref": "warn",
|
|
96
97
|
"@eslint-react/no-missing-key": "error",
|
|
97
98
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
98
99
|
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
99
|
-
"@eslint-react/no-prop-types": "error",
|
|
100
100
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
101
101
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
102
102
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
103
103
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
104
|
-
"@eslint-react/no-string-refs": "error",
|
|
105
104
|
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
106
105
|
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
107
106
|
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
@@ -109,7 +108,10 @@ const rules$17 = {
|
|
|
109
108
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
110
109
|
"@eslint-react/no-use-context": "warn",
|
|
111
110
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
112
|
-
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
111
|
+
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
112
|
+
"@eslint-react/rules-of-hooks": "error",
|
|
113
|
+
"@eslint-react/set-state-in-effect": "warn",
|
|
114
|
+
"@eslint-react/set-state-in-render": "error"
|
|
113
115
|
};
|
|
114
116
|
const plugins$9 = { "@eslint-react": react };
|
|
115
117
|
const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
@@ -124,6 +126,9 @@ var all_exports = /* @__PURE__ */ __exportAll({
|
|
|
124
126
|
});
|
|
125
127
|
const name$15 = "@eslint-react/all";
|
|
126
128
|
const rules$16 = {
|
|
129
|
+
"@eslint-react/component-hook-factories": "error",
|
|
130
|
+
"@eslint-react/error-boundaries": "error",
|
|
131
|
+
"@eslint-react/exhaustive-deps": "warn",
|
|
127
132
|
"@eslint-react/jsx-dollar": "warn",
|
|
128
133
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
129
134
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
@@ -162,7 +167,6 @@ const rules$16 = {
|
|
|
162
167
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
163
168
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
164
169
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
165
|
-
"@eslint-react/no-unnecessary-key": "warn",
|
|
166
170
|
"@eslint-react/no-unnecessary-use-callback": "warn",
|
|
167
171
|
"@eslint-react/no-unnecessary-use-memo": "warn",
|
|
168
172
|
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
@@ -179,6 +183,8 @@ const rules$16 = {
|
|
|
179
183
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
180
184
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
181
185
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
186
|
+
"@eslint-react/rules-of-hooks": "error",
|
|
187
|
+
"@eslint-react/set-state-in-effect": "warn",
|
|
182
188
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
183
189
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
184
190
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -202,7 +208,6 @@ const rules$16 = {
|
|
|
202
208
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
203
209
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
204
210
|
"@eslint-react/web-api/no-leaked-timeout": "warn",
|
|
205
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
206
211
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
207
212
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
208
213
|
"@eslint-react/naming-convention/id-name": "warn",
|
|
@@ -213,7 +218,6 @@ const plugins$8 = {
|
|
|
213
218
|
...plugins$9,
|
|
214
219
|
...plugins$10,
|
|
215
220
|
...plugins$11,
|
|
216
|
-
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
217
221
|
"@eslint-react/naming-convention": reactNamingConvention,
|
|
218
222
|
"@eslint-react/web-api": reactWebApi
|
|
219
223
|
};
|
|
@@ -298,10 +302,8 @@ const rules$13 = {
|
|
|
298
302
|
"@eslint-react/no-duplicate-key": "off",
|
|
299
303
|
"@eslint-react/no-implicit-key": "off",
|
|
300
304
|
"@eslint-react/no-misused-capture-owner-stack": "off",
|
|
301
|
-
"@eslint-react/no-unnecessary-key": "off",
|
|
302
305
|
"@eslint-react/no-unnecessary-use-callback": "off",
|
|
303
306
|
"@eslint-react/no-unnecessary-use-memo": "off",
|
|
304
|
-
"@eslint-react/no-unnecessary-use-ref": "off",
|
|
305
307
|
"@eslint-react/no-unused-props": "off",
|
|
306
308
|
"@eslint-react/prefer-read-only-props": "off",
|
|
307
309
|
"@eslint-react/rsc/function-definition": "off"
|
|
@@ -407,7 +409,6 @@ const rules$6 = {
|
|
|
407
409
|
...rules$18,
|
|
408
410
|
...rules$19,
|
|
409
411
|
...rules$10,
|
|
410
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
411
412
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
412
413
|
"@eslint-react/naming-convention/id-name": "warn",
|
|
413
414
|
"@eslint-react/naming-convention/ref-name": "warn",
|
|
@@ -418,7 +419,6 @@ const plugins$5 = {
|
|
|
418
419
|
...plugins$10,
|
|
419
420
|
...plugins$11,
|
|
420
421
|
...plugins$7,
|
|
421
|
-
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
422
422
|
"@eslint-react/naming-convention": reactNamingConvention
|
|
423
423
|
};
|
|
424
424
|
const settings$5 = { ...settings$8 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-next.0",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"eslint-react",
|
|
9
9
|
"eslint-plugin",
|
|
10
10
|
"eslint-plugin-react-x",
|
|
11
|
+
"eslint-plugin-react-rsc",
|
|
11
12
|
"eslint-plugin-react-dom",
|
|
12
13
|
"eslint-plugin-react-web-api",
|
|
13
14
|
"eslint-plugin-react-naming-convention"
|
|
@@ -40,19 +41,18 @@
|
|
|
40
41
|
"./package.json"
|
|
41
42
|
],
|
|
42
43
|
"dependencies": {
|
|
43
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
44
|
-
"@typescript-eslint/type-utils": "^8.
|
|
45
|
-
"@typescript-eslint/types": "^8.
|
|
46
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
+
"@typescript-eslint/scope-manager": "^8.56.0",
|
|
45
|
+
"@typescript-eslint/type-utils": "^8.56.0",
|
|
46
|
+
"@typescript-eslint/types": "^8.56.0",
|
|
47
|
+
"@typescript-eslint/utils": "^8.56.0",
|
|
47
48
|
"ts-api-utils": "^2.4.0",
|
|
48
|
-
"@eslint-react/eff": "
|
|
49
|
-
"
|
|
50
|
-
"eslint-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-x": "
|
|
55
|
-
"eslint-plugin-react-naming-convention": "2.14.0-next.0"
|
|
49
|
+
"@eslint-react/eff": "3.0.0-next.0",
|
|
50
|
+
"eslint-plugin-react-dom": "3.0.0-next.0",
|
|
51
|
+
"@eslint-react/shared": "3.0.0-next.0",
|
|
52
|
+
"eslint-plugin-react-naming-convention": "3.0.0-next.0",
|
|
53
|
+
"eslint-plugin-react-web-api": "3.0.0-next.0",
|
|
54
|
+
"eslint-plugin-react-rsc": "3.0.0-next.0",
|
|
55
|
+
"eslint-plugin-react-x": "3.0.0-next.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsdown": "^0.20.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": ">=4.8.4 <6.0.0"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
|
-
"node": ">=
|
|
66
|
+
"node": ">=22.0.0"
|
|
67
67
|
},
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|