@eslint-react/eslint-plugin 2.0.0-next.0 → 2.0.0-next.10
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.d.ts +186 -289
- package/dist/index.js +37 -58
- package/package.json +17 -27
- package/dist/index.d.mts +0 -3186
- package/dist/index.mjs +0 -457
package/dist/index.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var reactWebApi = require('eslint-plugin-react-web-api');
|
|
8
|
-
var react = require('eslint-plugin-react-x');
|
|
9
|
-
var shared = require('@eslint-react/shared');
|
|
10
|
-
|
|
11
|
-
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
|
|
13
|
-
var reactDebug__default = /*#__PURE__*/_interopDefault(reactDebug);
|
|
14
|
-
var reactDom__default = /*#__PURE__*/_interopDefault(reactDom);
|
|
15
|
-
var reactHooksExtra__default = /*#__PURE__*/_interopDefault(reactHooksExtra);
|
|
16
|
-
var reactNamingConvention__default = /*#__PURE__*/_interopDefault(reactNamingConvention);
|
|
17
|
-
var reactWebApi__default = /*#__PURE__*/_interopDefault(reactWebApi);
|
|
18
|
-
var react__default = /*#__PURE__*/_interopDefault(react);
|
|
1
|
+
import reactDebug from 'eslint-plugin-react-debug';
|
|
2
|
+
import reactDom from 'eslint-plugin-react-dom';
|
|
3
|
+
import reactNamingConvention from 'eslint-plugin-react-naming-convention';
|
|
4
|
+
import reactWebApi from 'eslint-plugin-react-web-api';
|
|
5
|
+
import react from 'eslint-plugin-react-x';
|
|
6
|
+
import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
19
7
|
|
|
20
8
|
var __defProp = Object.defineProperty;
|
|
21
9
|
var __export = (target, all) => {
|
|
@@ -25,7 +13,7 @@ var __export = (target, all) => {
|
|
|
25
13
|
|
|
26
14
|
// package.json
|
|
27
15
|
var name = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "2.0.0-next.
|
|
16
|
+
var version = "2.0.0-next.10";
|
|
29
17
|
|
|
30
18
|
// src/configs/all.ts
|
|
31
19
|
var all_exports = {};
|
|
@@ -63,10 +51,10 @@ var rules = {
|
|
|
63
51
|
"@eslint-react/dom/no-void-elements-with-children": "error"
|
|
64
52
|
};
|
|
65
53
|
var plugins = {
|
|
66
|
-
"@eslint-react/dom":
|
|
54
|
+
"@eslint-react/dom": reactDom
|
|
67
55
|
};
|
|
68
56
|
var settings = {
|
|
69
|
-
"react-x":
|
|
57
|
+
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
70
58
|
};
|
|
71
59
|
|
|
72
60
|
// src/configs/x.ts
|
|
@@ -82,8 +70,6 @@ var rules2 = {
|
|
|
82
70
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
83
71
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
84
72
|
// "@eslint-react/jsx-no-undef": "error",
|
|
85
|
-
// "@eslint-react/jsx-shorthand-boolean": "warn",
|
|
86
|
-
// "@eslint-react/jsx-shorthand-fragment": "warn",
|
|
87
73
|
"@eslint-react/jsx-uses-react": "warn",
|
|
88
74
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
89
75
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -103,6 +89,10 @@ var rules2 = {
|
|
|
103
89
|
"@eslint-react/no-create-ref": "error",
|
|
104
90
|
"@eslint-react/no-default-props": "error",
|
|
105
91
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
92
|
+
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
93
|
+
// "@eslint-react/prefer-namespace-import": "warn",
|
|
94
|
+
// "@eslint-react/prefer-read-only-props": "error",
|
|
95
|
+
"@eslint-react/no-direct-set-state-in-use-effect": "warn",
|
|
106
96
|
"@eslint-react/no-duplicate-key": "warn",
|
|
107
97
|
"@eslint-react/no-forward-ref": "warn",
|
|
108
98
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -118,6 +108,7 @@ var rules2 = {
|
|
|
118
108
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
119
109
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
120
110
|
"@eslint-react/no-string-refs": "error",
|
|
111
|
+
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
121
112
|
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
122
113
|
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
123
114
|
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
@@ -126,17 +117,14 @@ var rules2 = {
|
|
|
126
117
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
127
118
|
"@eslint-react/no-unused-state": "warn",
|
|
128
119
|
"@eslint-react/no-use-context": "warn",
|
|
129
|
-
"@eslint-react/no-useless-forward-ref": "warn"
|
|
130
|
-
|
|
131
|
-
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
132
|
-
// "@eslint-react/prefer-namespace-import": "warn",
|
|
133
|
-
// "@eslint-react/prefer-read-only-props": "error",
|
|
120
|
+
"@eslint-react/no-useless-forward-ref": "warn",
|
|
121
|
+
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
134
122
|
};
|
|
135
123
|
var plugins2 = {
|
|
136
|
-
"@eslint-react":
|
|
124
|
+
"@eslint-react": react
|
|
137
125
|
};
|
|
138
126
|
var settings2 = {
|
|
139
|
-
"react-x":
|
|
127
|
+
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
140
128
|
};
|
|
141
129
|
|
|
142
130
|
// src/configs/all.ts
|
|
@@ -145,8 +133,6 @@ var rules3 = {
|
|
|
145
133
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
146
134
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
147
135
|
"@eslint-react/jsx-no-undef": "error",
|
|
148
|
-
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
149
|
-
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
150
136
|
"@eslint-react/jsx-uses-react": "warn",
|
|
151
137
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
152
138
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -166,6 +152,8 @@ var rules3 = {
|
|
|
166
152
|
"@eslint-react/no-create-ref": "error",
|
|
167
153
|
"@eslint-react/no-default-props": "error",
|
|
168
154
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
155
|
+
"@eslint-react/no-direct-set-state-in-use-effect": "warn",
|
|
156
|
+
"@eslint-react/no-direct-set-state-in-use-layout-effect": "warn",
|
|
169
157
|
"@eslint-react/no-duplicate-key": "warn",
|
|
170
158
|
"@eslint-react/no-forward-ref": "warn",
|
|
171
159
|
"@eslint-react/no-implicit-key": "warn",
|
|
@@ -181,6 +169,9 @@ var rules3 = {
|
|
|
181
169
|
"@eslint-react/no-set-state-in-component-did-update": "warn",
|
|
182
170
|
"@eslint-react/no-set-state-in-component-will-update": "warn",
|
|
183
171
|
"@eslint-react/no-string-refs": "error",
|
|
172
|
+
"@eslint-react/no-unnecessary-use-callback": "warn",
|
|
173
|
+
"@eslint-react/no-unnecessary-use-memo": "warn",
|
|
174
|
+
"@eslint-react/no-unnecessary-use-prefix": "warn",
|
|
184
175
|
"@eslint-react/no-unsafe-component-will-mount": "warn",
|
|
185
176
|
"@eslint-react/no-unsafe-component-will-receive-props": "warn",
|
|
186
177
|
"@eslint-react/no-unsafe-component-will-update": "warn",
|
|
@@ -190,9 +181,9 @@ var rules3 = {
|
|
|
190
181
|
"@eslint-react/no-unused-state": "warn",
|
|
191
182
|
"@eslint-react/no-use-context": "warn",
|
|
192
183
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
193
|
-
"@eslint-react/no-useless-fragment": "warn",
|
|
194
184
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
195
185
|
"@eslint-react/prefer-namespace-import": "warn",
|
|
186
|
+
"@eslint-react/prefer-use-state-lazy-initialization": "warn",
|
|
196
187
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
197
188
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
198
189
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -213,12 +204,6 @@ var rules3 = {
|
|
|
213
204
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
214
205
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
215
206
|
"@eslint-react/web-api/no-leaked-timeout": "warn",
|
|
216
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
217
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-layout-effect": "warn",
|
|
218
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-callback": "warn",
|
|
219
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-memo": "warn",
|
|
220
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
|
|
221
|
-
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
222
207
|
"@eslint-react/naming-convention/component-name": "warn",
|
|
223
208
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
224
209
|
"@eslint-react/naming-convention/filename": "warn",
|
|
@@ -228,10 +213,9 @@ var rules3 = {
|
|
|
228
213
|
var plugins3 = {
|
|
229
214
|
...plugins2,
|
|
230
215
|
...plugins,
|
|
231
|
-
"@eslint-react/debug":
|
|
232
|
-
"@eslint-react/
|
|
233
|
-
"@eslint-react/
|
|
234
|
-
"@eslint-react/web-api": reactWebApi__default.default
|
|
216
|
+
"@eslint-react/debug": reactDebug,
|
|
217
|
+
"@eslint-react/naming-convention": reactNamingConvention,
|
|
218
|
+
"@eslint-react/web-api": reactWebApi
|
|
235
219
|
};
|
|
236
220
|
var settings3 = {
|
|
237
221
|
...settings
|
|
@@ -253,7 +237,7 @@ var rules4 = {
|
|
|
253
237
|
"@eslint-react/debug/jsx": "warn"
|
|
254
238
|
};
|
|
255
239
|
var plugins4 = {
|
|
256
|
-
"@eslint-react/debug":
|
|
240
|
+
"@eslint-react/debug": reactDebug
|
|
257
241
|
};
|
|
258
242
|
|
|
259
243
|
// src/configs/disable-debug.ts
|
|
@@ -299,7 +283,7 @@ var rules8 = {
|
|
|
299
283
|
"@eslint-react/web-api/no-leaked-timeout": "warn"
|
|
300
284
|
};
|
|
301
285
|
var plugins5 = {
|
|
302
|
-
"@eslint-react/web-api":
|
|
286
|
+
"@eslint-react/web-api": reactWebApi
|
|
303
287
|
};
|
|
304
288
|
|
|
305
289
|
// src/configs/disable-web-api.ts
|
|
@@ -331,9 +315,6 @@ var rules11 = {
|
|
|
331
315
|
...rules2,
|
|
332
316
|
...rules,
|
|
333
317
|
...rules8,
|
|
334
|
-
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
335
|
-
"@eslint-react/hooks-extra/no-unnecessary-use-prefix": "warn",
|
|
336
|
-
"@eslint-react/hooks-extra/prefer-use-state-lazy-initialization": "warn",
|
|
337
318
|
"@eslint-react/naming-convention/context-name": "warn"
|
|
338
319
|
// "@eslint-react/naming-convention/use-state": "warn",
|
|
339
320
|
};
|
|
@@ -341,9 +322,8 @@ var plugins6 = {
|
|
|
341
322
|
...plugins2,
|
|
342
323
|
...plugins,
|
|
343
324
|
...plugins5,
|
|
344
|
-
"@eslint-react/debug":
|
|
345
|
-
"@eslint-react/
|
|
346
|
-
"@eslint-react/naming-convention": reactNamingConvention__default.default
|
|
325
|
+
"@eslint-react/debug": reactDebug,
|
|
326
|
+
"@eslint-react/naming-convention": reactNamingConvention
|
|
347
327
|
};
|
|
348
328
|
var settings5 = {
|
|
349
329
|
...settings
|
|
@@ -456,13 +436,12 @@ var index_default = {
|
|
|
456
436
|
["x-legacy"]: toLegacyConfig(x_exports)
|
|
457
437
|
},
|
|
458
438
|
rules: {
|
|
459
|
-
...
|
|
460
|
-
...padKeysLeft(
|
|
461
|
-
...padKeysLeft(
|
|
462
|
-
...padKeysLeft(
|
|
463
|
-
...padKeysLeft(
|
|
464
|
-
...padKeysLeft(reactDebug__default.default.rules, "debug/")
|
|
439
|
+
...react.rules,
|
|
440
|
+
...padKeysLeft(reactDom.rules, "dom/"),
|
|
441
|
+
...padKeysLeft(reactWebApi.rules, "web-api/"),
|
|
442
|
+
...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
|
|
443
|
+
...padKeysLeft(reactDebug.rules, "debug/")
|
|
465
444
|
}
|
|
466
445
|
};
|
|
467
446
|
|
|
468
|
-
|
|
447
|
+
export { index_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.10",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"eslint-plugin-react-x",
|
|
11
11
|
"eslint-plugin-react-dom",
|
|
12
12
|
"eslint-plugin-react-web-api",
|
|
13
|
-
"eslint-plugin-react-hooks-extra",
|
|
14
13
|
"eslint-plugin-react-naming-convention"
|
|
15
14
|
],
|
|
16
15
|
"homepage": "https://github.com/Rel1cx/eslint-react",
|
|
@@ -25,47 +24,38 @@
|
|
|
25
24
|
"license": "MIT",
|
|
26
25
|
"author": "Rel1cx<rel1cx@proton.me>",
|
|
27
26
|
"sideEffects": false,
|
|
27
|
+
"type": "module",
|
|
28
28
|
"exports": {
|
|
29
29
|
".": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"default": "./dist/index.mjs"
|
|
33
|
-
},
|
|
34
|
-
"require": {
|
|
35
|
-
"types": "./dist/index.d.ts",
|
|
36
|
-
"default": "./dist/index.js"
|
|
37
|
-
}
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
38
32
|
},
|
|
39
33
|
"./package.json": "./package.json"
|
|
40
34
|
},
|
|
41
|
-
"main": "dist/index.js",
|
|
42
|
-
"module": "dist/index.mjs",
|
|
43
|
-
"types": "dist/index.d.ts",
|
|
44
35
|
"files": [
|
|
45
36
|
"dist",
|
|
46
37
|
"./package.json"
|
|
47
38
|
],
|
|
48
39
|
"dependencies": {
|
|
49
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
50
|
-
"@typescript-eslint/type-utils": "^8.
|
|
51
|
-
"@typescript-eslint/types": "^8.
|
|
52
|
-
"@typescript-eslint/utils": "^8.
|
|
53
|
-
"@eslint-react/eff": "2.0.0-next.
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"
|
|
56
|
-
"eslint-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-naming-convention": "2.0.0-next.0"
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.31.1",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.31.1",
|
|
42
|
+
"@typescript-eslint/types": "^8.31.1",
|
|
43
|
+
"@typescript-eslint/utils": "^8.31.1",
|
|
44
|
+
"@eslint-react/eff": "2.0.0-next.10",
|
|
45
|
+
"@eslint-react/kit": "2.0.0-next.10",
|
|
46
|
+
"eslint-plugin-react-dom": "2.0.0-next.10",
|
|
47
|
+
"@eslint-react/shared": "2.0.0-next.10",
|
|
48
|
+
"eslint-plugin-react-debug": "2.0.0-next.10",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.0.0-next.10",
|
|
50
|
+
"eslint-plugin-react-web-api": "2.0.0-next.10",
|
|
51
|
+
"eslint-plugin-react-x": "2.0.0-next.10"
|
|
62
52
|
},
|
|
63
53
|
"devDependencies": {
|
|
64
54
|
"tsup": "^8.4.0",
|
|
65
55
|
"@local/configs": "0.0.0"
|
|
66
56
|
},
|
|
67
57
|
"peerDependencies": {
|
|
68
|
-
"eslint": "^9.
|
|
58
|
+
"eslint": "^9.25.1",
|
|
69
59
|
"typescript": "^4.9.5 || ^5.4.5"
|
|
70
60
|
},
|
|
71
61
|
"peerDependenciesMeta": {
|