@eslint-react/eslint-plugin 1.48.4-next.0 → 2.0.0-next.1
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 +2 -2
- package/dist/index.d.ts +176 -432
- package/dist/index.js +46 -60
- package/package.json +16 -24
- package/dist/index.d.mts +0 -3442
- package/dist/index.mjs +0 -460
package/dist/index.js
CHANGED
|
@@ -1,21 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 reactHooksExtra from 'eslint-plugin-react-hooks-extra';
|
|
4
|
+
import reactNamingConvention from 'eslint-plugin-react-naming-convention';
|
|
5
|
+
import reactWebApi from 'eslint-plugin-react-web-api';
|
|
6
|
+
import react from 'eslint-plugin-react-x';
|
|
7
|
+
import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
19
8
|
|
|
20
9
|
var __defProp = Object.defineProperty;
|
|
21
10
|
var __export = (target, all) => {
|
|
@@ -25,7 +14,7 @@ var __export = (target, all) => {
|
|
|
25
14
|
|
|
26
15
|
// package.json
|
|
27
16
|
var name = "@eslint-react/eslint-plugin";
|
|
28
|
-
var version = "
|
|
17
|
+
var version = "2.0.0-next.1";
|
|
29
18
|
|
|
30
19
|
// src/configs/all.ts
|
|
31
20
|
var all_exports = {};
|
|
@@ -63,10 +52,10 @@ var rules = {
|
|
|
63
52
|
"@eslint-react/dom/no-void-elements-with-children": "error"
|
|
64
53
|
};
|
|
65
54
|
var plugins = {
|
|
66
|
-
"@eslint-react/dom":
|
|
55
|
+
"@eslint-react/dom": reactDom
|
|
67
56
|
};
|
|
68
57
|
var settings = {
|
|
69
|
-
"react-x":
|
|
58
|
+
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
70
59
|
};
|
|
71
60
|
|
|
72
61
|
// src/configs/x.ts
|
|
@@ -79,7 +68,11 @@ __export(x_exports, {
|
|
|
79
68
|
});
|
|
80
69
|
var name3 = "@eslint-react/x";
|
|
81
70
|
var rules2 = {
|
|
71
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
82
72
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
73
|
+
// "@eslint-react/jsx-no-undef": "error",
|
|
74
|
+
// "@eslint-react/jsx-shorthand-boolean": "warn",
|
|
75
|
+
// "@eslint-react/jsx-shorthand-fragment": "warn",
|
|
83
76
|
"@eslint-react/jsx-uses-react": "warn",
|
|
84
77
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
85
78
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -88,9 +81,10 @@ var rules2 = {
|
|
|
88
81
|
"@eslint-react/no-children-for-each": "warn",
|
|
89
82
|
"@eslint-react/no-children-map": "warn",
|
|
90
83
|
"@eslint-react/no-children-only": "warn",
|
|
84
|
+
// "@eslint-react/no-children-prop": "warn",
|
|
91
85
|
"@eslint-react/no-children-to-array": "warn",
|
|
86
|
+
// "@eslint-react/no-class-component": "warn",
|
|
92
87
|
"@eslint-react/no-clone-element": "warn",
|
|
93
|
-
"@eslint-react/no-comment-textnodes": "warn",
|
|
94
88
|
"@eslint-react/no-component-will-mount": "error",
|
|
95
89
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
96
90
|
"@eslint-react/no-component-will-update": "error",
|
|
@@ -101,8 +95,10 @@ var rules2 = {
|
|
|
101
95
|
"@eslint-react/no-duplicate-key": "warn",
|
|
102
96
|
"@eslint-react/no-forward-ref": "warn",
|
|
103
97
|
"@eslint-react/no-implicit-key": "warn",
|
|
98
|
+
// "@eslint-react/no-missing-component-display-name": "warn",
|
|
99
|
+
// "@eslint-react/no-missing-context-display-name": "warn",
|
|
104
100
|
"@eslint-react/no-missing-key": "error",
|
|
105
|
-
"@eslint-react/no-misused-capture-owner-stack": "error",
|
|
101
|
+
// "@eslint-react/no-misused-capture-owner-stack": "error",
|
|
106
102
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
107
103
|
"@eslint-react/no-nested-lazy-component-declarations": "warn",
|
|
108
104
|
"@eslint-react/no-prop-types": "error",
|
|
@@ -120,21 +116,26 @@ var rules2 = {
|
|
|
120
116
|
"@eslint-react/no-unused-state": "warn",
|
|
121
117
|
"@eslint-react/no-use-context": "warn",
|
|
122
118
|
"@eslint-react/no-useless-forward-ref": "warn"
|
|
119
|
+
// "@eslint-react/no-useless-fragment": "warn",
|
|
120
|
+
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
121
|
+
// "@eslint-react/prefer-namespace-import": "warn",
|
|
122
|
+
// "@eslint-react/prefer-read-only-props": "error",
|
|
123
123
|
};
|
|
124
124
|
var plugins2 = {
|
|
125
|
-
"@eslint-react":
|
|
125
|
+
"@eslint-react": react
|
|
126
126
|
};
|
|
127
127
|
var settings2 = {
|
|
128
|
-
"react-x":
|
|
128
|
+
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
129
129
|
};
|
|
130
130
|
|
|
131
131
|
// src/configs/all.ts
|
|
132
132
|
var name4 = "@eslint-react/all";
|
|
133
133
|
var rules3 = {
|
|
134
|
-
"@eslint-react/
|
|
135
|
-
"@eslint-react/avoid-shorthand-fragment": "warn",
|
|
134
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
136
135
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
137
136
|
"@eslint-react/jsx-no-undef": "error",
|
|
137
|
+
"@eslint-react/jsx-shorthand-boolean": "warn",
|
|
138
|
+
"@eslint-react/jsx-shorthand-fragment": "warn",
|
|
138
139
|
"@eslint-react/jsx-uses-react": "warn",
|
|
139
140
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
140
141
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -147,8 +148,6 @@ var rules3 = {
|
|
|
147
148
|
"@eslint-react/no-children-to-array": "warn",
|
|
148
149
|
"@eslint-react/no-class-component": "warn",
|
|
149
150
|
"@eslint-react/no-clone-element": "warn",
|
|
150
|
-
"@eslint-react/no-comment-textnodes": "warn",
|
|
151
|
-
"@eslint-react/no-complex-conditional-rendering": "warn",
|
|
152
151
|
"@eslint-react/no-component-will-mount": "error",
|
|
153
152
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
154
153
|
"@eslint-react/no-component-will-update": "error",
|
|
@@ -159,7 +158,6 @@ var rules3 = {
|
|
|
159
158
|
"@eslint-react/no-duplicate-key": "warn",
|
|
160
159
|
"@eslint-react/no-forward-ref": "warn",
|
|
161
160
|
"@eslint-react/no-implicit-key": "warn",
|
|
162
|
-
// "@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
163
161
|
"@eslint-react/no-missing-component-display-name": "warn",
|
|
164
162
|
"@eslint-react/no-missing-context-display-name": "warn",
|
|
165
163
|
"@eslint-react/no-missing-key": "error",
|
|
@@ -183,10 +181,7 @@ var rules3 = {
|
|
|
183
181
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
184
182
|
"@eslint-react/no-useless-fragment": "warn",
|
|
185
183
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
186
|
-
"@eslint-react/prefer-
|
|
187
|
-
// "@eslint-react/prefer-read-only-props": "warn",
|
|
188
|
-
"@eslint-react/prefer-shorthand-boolean": "off",
|
|
189
|
-
"@eslint-react/prefer-shorthand-fragment": "off",
|
|
184
|
+
"@eslint-react/prefer-namespace-import": "warn",
|
|
190
185
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
191
186
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
192
187
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -222,10 +217,10 @@ var rules3 = {
|
|
|
222
217
|
var plugins3 = {
|
|
223
218
|
...plugins2,
|
|
224
219
|
...plugins,
|
|
225
|
-
"@eslint-react/debug":
|
|
226
|
-
"@eslint-react/hooks-extra":
|
|
227
|
-
"@eslint-react/naming-convention":
|
|
228
|
-
"@eslint-react/web-api":
|
|
220
|
+
"@eslint-react/debug": reactDebug,
|
|
221
|
+
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
222
|
+
"@eslint-react/naming-convention": reactNamingConvention,
|
|
223
|
+
"@eslint-react/web-api": reactWebApi
|
|
229
224
|
};
|
|
230
225
|
var settings3 = {
|
|
231
226
|
...settings
|
|
@@ -247,7 +242,7 @@ var rules4 = {
|
|
|
247
242
|
"@eslint-react/debug/jsx": "warn"
|
|
248
243
|
};
|
|
249
244
|
var plugins4 = {
|
|
250
|
-
"@eslint-react/debug":
|
|
245
|
+
"@eslint-react/debug": reactDebug
|
|
251
246
|
};
|
|
252
247
|
|
|
253
248
|
// src/configs/disable-debug.ts
|
|
@@ -293,7 +288,7 @@ var rules8 = {
|
|
|
293
288
|
"@eslint-react/web-api/no-leaked-timeout": "warn"
|
|
294
289
|
};
|
|
295
290
|
var plugins5 = {
|
|
296
|
-
"@eslint-react/web-api":
|
|
291
|
+
"@eslint-react/web-api": reactWebApi
|
|
297
292
|
};
|
|
298
293
|
|
|
299
294
|
// src/configs/disable-web-api.ts
|
|
@@ -335,9 +330,9 @@ var plugins6 = {
|
|
|
335
330
|
...plugins2,
|
|
336
331
|
...plugins,
|
|
337
332
|
...plugins5,
|
|
338
|
-
"@eslint-react/debug":
|
|
339
|
-
"@eslint-react/hooks-extra":
|
|
340
|
-
"@eslint-react/naming-convention":
|
|
333
|
+
"@eslint-react/debug": reactDebug,
|
|
334
|
+
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
335
|
+
"@eslint-react/naming-convention": reactNamingConvention
|
|
341
336
|
};
|
|
342
337
|
var settings5 = {
|
|
343
338
|
...settings
|
|
@@ -447,25 +442,16 @@ var index_default = {
|
|
|
447
442
|
["recommended-typescript"]: recommended_typescript_exports,
|
|
448
443
|
["recommended-typescript-legacy"]: toLegacyConfig(recommended_typescript_exports),
|
|
449
444
|
["x"]: x_exports,
|
|
450
|
-
["x-legacy"]: toLegacyConfig(x_exports)
|
|
451
|
-
// Part: deprecated presets
|
|
452
|
-
/** @deprecated Use `x` instead */
|
|
453
|
-
["core"]: x_exports,
|
|
454
|
-
/** @deprecated Use `x-legacy` instead */
|
|
455
|
-
["core-legacy"]: toLegacyConfig(x_exports),
|
|
456
|
-
/** @deprecated Use `disable-dom` instead */
|
|
457
|
-
["off-dom"]: disable_dom_exports,
|
|
458
|
-
/** @deprecated Use `disable-dom-legacy` instead */
|
|
459
|
-
["off-dom-legacy"]: toLegacyConfig(disable_dom_exports)
|
|
445
|
+
["x-legacy"]: toLegacyConfig(x_exports)
|
|
460
446
|
},
|
|
461
447
|
rules: {
|
|
462
|
-
...
|
|
463
|
-
...padKeysLeft(
|
|
464
|
-
...padKeysLeft(
|
|
465
|
-
...padKeysLeft(
|
|
466
|
-
...padKeysLeft(
|
|
467
|
-
...padKeysLeft(
|
|
448
|
+
...react.rules,
|
|
449
|
+
...padKeysLeft(reactDom.rules, "dom/"),
|
|
450
|
+
...padKeysLeft(reactWebApi.rules, "web-api/"),
|
|
451
|
+
...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
|
|
452
|
+
...padKeysLeft(reactNamingConvention.rules, "naming-convention/"),
|
|
453
|
+
...padKeysLeft(reactDebug.rules, "debug/")
|
|
468
454
|
}
|
|
469
455
|
};
|
|
470
456
|
|
|
471
|
-
|
|
457
|
+
export { index_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-next.1",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -25,22 +25,14 @@
|
|
|
25
25
|
"license": "MIT",
|
|
26
26
|
"author": "Rel1cx<rel1cx@proton.me>",
|
|
27
27
|
"sideEffects": false,
|
|
28
|
+
"type": "module",
|
|
28
29
|
"exports": {
|
|
29
30
|
".": {
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
"default": "./dist/index.mjs"
|
|
33
|
-
},
|
|
34
|
-
"require": {
|
|
35
|
-
"types": "./dist/index.d.ts",
|
|
36
|
-
"default": "./dist/index.js"
|
|
37
|
-
}
|
|
31
|
+
"types": "./dist/index.d.ts",
|
|
32
|
+
"import": "./dist/index.js"
|
|
38
33
|
},
|
|
39
34
|
"./package.json": "./package.json"
|
|
40
35
|
},
|
|
41
|
-
"main": "dist/index.js",
|
|
42
|
-
"module": "dist/index.mjs",
|
|
43
|
-
"types": "dist/index.d.ts",
|
|
44
36
|
"files": [
|
|
45
37
|
"dist",
|
|
46
38
|
"./package.json"
|
|
@@ -50,23 +42,23 @@
|
|
|
50
42
|
"@typescript-eslint/type-utils": "^8.30.1",
|
|
51
43
|
"@typescript-eslint/types": "^8.30.1",
|
|
52
44
|
"@typescript-eslint/utils": "^8.30.1",
|
|
53
|
-
"@eslint-react/eff": "
|
|
54
|
-
"@eslint-react/
|
|
55
|
-
"eslint-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"
|
|
58
|
-
"eslint-plugin-react-hooks-extra": "
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-x": "
|
|
61
|
-
"eslint-plugin-react-
|
|
45
|
+
"@eslint-react/eff": "2.0.0-next.1",
|
|
46
|
+
"@eslint-react/kit": "2.0.0-next.1",
|
|
47
|
+
"@eslint-react/shared": "2.0.0-next.1",
|
|
48
|
+
"eslint-plugin-react-debug": "2.0.0-next.1",
|
|
49
|
+
"eslint-plugin-react-dom": "2.0.0-next.1",
|
|
50
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-next.1",
|
|
51
|
+
"eslint-plugin-react-naming-convention": "2.0.0-next.1",
|
|
52
|
+
"eslint-plugin-react-x": "2.0.0-next.1",
|
|
53
|
+
"eslint-plugin-react-web-api": "2.0.0-next.1"
|
|
62
54
|
},
|
|
63
55
|
"devDependencies": {
|
|
64
56
|
"tsup": "^8.4.0",
|
|
65
57
|
"@local/configs": "0.0.0"
|
|
66
58
|
},
|
|
67
59
|
"peerDependencies": {
|
|
68
|
-
"eslint": "^
|
|
69
|
-
"typescript": "^4.9.5 || ^5.
|
|
60
|
+
"eslint": "^9.24.0",
|
|
61
|
+
"typescript": "^4.9.5 || ^5.4.5"
|
|
70
62
|
},
|
|
71
63
|
"peerDependenciesMeta": {
|
|
72
64
|
"eslint": {
|
|
@@ -78,7 +70,7 @@
|
|
|
78
70
|
},
|
|
79
71
|
"engines": {
|
|
80
72
|
"bun": ">=1.0.15",
|
|
81
|
-
"node": ">=
|
|
73
|
+
"node": ">=20.19.0"
|
|
82
74
|
},
|
|
83
75
|
"publishConfig": {
|
|
84
76
|
"access": "public"
|