@eslint-react/eslint-plugin 2.0.0-beta.18 → 2.0.0-beta.2
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 +8 -2
- package/dist/index.d.ts +469 -85
- package/dist/index.js +11 -5
- package/package.json +16 -15
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import reactDebug from 'eslint-plugin-react-debug';
|
|
2
2
|
import reactDom from 'eslint-plugin-react-dom';
|
|
3
|
+
import reactHooksExtra from 'eslint-plugin-react-hooks-extra';
|
|
3
4
|
import reactNamingConvention from 'eslint-plugin-react-naming-convention';
|
|
4
5
|
import reactWebApi from 'eslint-plugin-react-web-api';
|
|
5
6
|
import react from 'eslint-plugin-react-x';
|
|
@@ -13,7 +14,7 @@ var __export = (target, all) => {
|
|
|
13
14
|
|
|
14
15
|
// package.json
|
|
15
16
|
var name = "@eslint-react/eslint-plugin";
|
|
16
|
-
var version = "2.0.0-beta.
|
|
17
|
+
var version = "2.0.0-beta.2";
|
|
17
18
|
|
|
18
19
|
// src/configs/all.ts
|
|
19
20
|
var all_exports = {};
|
|
@@ -67,8 +68,8 @@ __export(x_exports, {
|
|
|
67
68
|
});
|
|
68
69
|
var name3 = "@eslint-react/x";
|
|
69
70
|
var rules2 = {
|
|
70
|
-
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
71
71
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
72
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
72
73
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
73
74
|
// "@eslint-react/jsx-no-undef": "error",
|
|
74
75
|
"@eslint-react/jsx-uses-react": "warn",
|
|
@@ -93,7 +94,6 @@ var rules2 = {
|
|
|
93
94
|
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
94
95
|
// "@eslint-react/prefer-namespace-import": "warn",
|
|
95
96
|
// "@eslint-react/prefer-read-only-props": "error",
|
|
96
|
-
"@eslint-react/no-direct-set-state-in-use-effect": "warn",
|
|
97
97
|
"@eslint-react/no-duplicate-key": "warn",
|
|
98
98
|
"@eslint-react/no-forward-ref": "warn",
|
|
99
99
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -109,6 +109,8 @@ var rules2 = {
|
|
|
109
109
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
110
110
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
111
111
|
"@eslint-react/no-string-refs": "error",
|
|
112
|
+
// "@eslint-react/no-unnecessary-use-callback": "warn",
|
|
113
|
+
// "@eslint-react/no-unnecessary-use-memo": "warn",
|
|
112
114
|
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
113
115
|
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
114
116
|
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
@@ -133,6 +135,7 @@ var name4 = "@eslint-react/all";
|
|
|
133
135
|
var rules3 = {
|
|
134
136
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
135
137
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
138
|
+
"@eslint-react/jsx-no-iife": "warn",
|
|
136
139
|
"@eslint-react/jsx-no-undef": "error",
|
|
137
140
|
"@eslint-react/jsx-uses-react": "warn",
|
|
138
141
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
@@ -153,8 +156,6 @@ var rules3 = {
|
|
|
153
156
|
"@eslint-react/no-create-ref": "error",
|
|
154
157
|
"@eslint-react/no-default-props": "error",
|
|
155
158
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
156
|
-
"@eslint-react/no-direct-set-state-in-use-effect": "warn",
|
|
157
|
-
"@eslint-react/no-direct-set-state-in-use-layout-effect": "warn",
|
|
158
159
|
"@eslint-react/no-duplicate-key": "warn",
|
|
159
160
|
"@eslint-react/no-forward-ref": "warn",
|
|
160
161
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -185,6 +186,8 @@ var rules3 = {
|
|
|
185
186
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
186
187
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
187
188
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
189
|
+
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
190
|
+
"@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
188
191
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
189
192
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
190
193
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -215,6 +218,7 @@ var plugins3 = {
|
|
|
215
218
|
...plugins2,
|
|
216
219
|
...plugins,
|
|
217
220
|
"@eslint-react/debug": reactDebug,
|
|
221
|
+
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
218
222
|
"@eslint-react/naming-convention": reactNamingConvention,
|
|
219
223
|
"@eslint-react/web-api": reactWebApi
|
|
220
224
|
};
|
|
@@ -324,6 +328,7 @@ var plugins6 = {
|
|
|
324
328
|
...plugins,
|
|
325
329
|
...plugins5,
|
|
326
330
|
"@eslint-react/debug": reactDebug,
|
|
331
|
+
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
327
332
|
"@eslint-react/naming-convention": reactNamingConvention
|
|
328
333
|
};
|
|
329
334
|
var settings5 = {
|
|
@@ -440,6 +445,7 @@ var index_default = {
|
|
|
440
445
|
...react.rules,
|
|
441
446
|
...padKeysLeft(reactDom.rules, "dom/"),
|
|
442
447
|
...padKeysLeft(reactWebApi.rules, "web-api/"),
|
|
448
|
+
...padKeysLeft(reactHooksExtra, "hooks-extra/"),
|
|
443
449
|
...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
|
|
444
450
|
...padKeysLeft(reactDebug.rules, "debug/")
|
|
445
451
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.2",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,25 +37,26 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
41
|
-
"@typescript-eslint/type-utils": "^8.
|
|
42
|
-
"@typescript-eslint/types": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"@eslint-react/eff": "2.0.0-beta.
|
|
45
|
-
"@eslint-react/
|
|
46
|
-
"eslint-plugin-react-
|
|
47
|
-
"eslint-
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"
|
|
50
|
-
"eslint-plugin-react-web-api": "2.0.0-beta.
|
|
51
|
-
"eslint-plugin-react-x": "2.0.0-beta.
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.35.0",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.35.0",
|
|
42
|
+
"@typescript-eslint/types": "^8.35.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.35.0",
|
|
44
|
+
"@eslint-react/eff": "2.0.0-beta.2",
|
|
45
|
+
"@eslint-react/shared": "2.0.0-beta.2",
|
|
46
|
+
"eslint-plugin-react-debug": "2.0.0-beta.2",
|
|
47
|
+
"@eslint-react/kit": "2.0.0-beta.2",
|
|
48
|
+
"eslint-plugin-react-dom": "2.0.0-beta.2",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.0.0-beta.2",
|
|
50
|
+
"eslint-plugin-react-web-api": "2.0.0-beta.2",
|
|
51
|
+
"eslint-plugin-react-x": "2.0.0-beta.2",
|
|
52
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-beta.2"
|
|
52
53
|
},
|
|
53
54
|
"devDependencies": {
|
|
54
|
-
"tsup": "^8.
|
|
55
|
+
"tsup": "^8.5.0",
|
|
55
56
|
"@local/configs": "0.0.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|
|
58
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.29.0",
|
|
59
60
|
"typescript": "^4.9.5 || ^5.4.5"
|
|
60
61
|
},
|
|
61
62
|
"peerDependenciesMeta": {
|