@eslint-react/eslint-plugin 2.0.0-next.0 → 2.0.0-next.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/dist/index.js +28 -39
- package/package.json +13 -21
- package/dist/index.d.mts +0 -3186
- package/dist/index.mjs +0 -457
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 = "2.0.0-next.
|
|
17
|
+
var version = "2.0.0-next.2";
|
|
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
|
|
@@ -133,10 +122,10 @@ var rules2 = {
|
|
|
133
122
|
// "@eslint-react/prefer-read-only-props": "error",
|
|
134
123
|
};
|
|
135
124
|
var plugins2 = {
|
|
136
|
-
"@eslint-react":
|
|
125
|
+
"@eslint-react": react
|
|
137
126
|
};
|
|
138
127
|
var settings2 = {
|
|
139
|
-
"react-x":
|
|
128
|
+
"react-x": DEFAULT_ESLINT_REACT_SETTINGS
|
|
140
129
|
};
|
|
141
130
|
|
|
142
131
|
// src/configs/all.ts
|
|
@@ -228,10 +217,10 @@ var rules3 = {
|
|
|
228
217
|
var plugins3 = {
|
|
229
218
|
...plugins2,
|
|
230
219
|
...plugins,
|
|
231
|
-
"@eslint-react/debug":
|
|
232
|
-
"@eslint-react/hooks-extra":
|
|
233
|
-
"@eslint-react/naming-convention":
|
|
234
|
-
"@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
|
|
235
224
|
};
|
|
236
225
|
var settings3 = {
|
|
237
226
|
...settings
|
|
@@ -253,7 +242,7 @@ var rules4 = {
|
|
|
253
242
|
"@eslint-react/debug/jsx": "warn"
|
|
254
243
|
};
|
|
255
244
|
var plugins4 = {
|
|
256
|
-
"@eslint-react/debug":
|
|
245
|
+
"@eslint-react/debug": reactDebug
|
|
257
246
|
};
|
|
258
247
|
|
|
259
248
|
// src/configs/disable-debug.ts
|
|
@@ -299,7 +288,7 @@ var rules8 = {
|
|
|
299
288
|
"@eslint-react/web-api/no-leaked-timeout": "warn"
|
|
300
289
|
};
|
|
301
290
|
var plugins5 = {
|
|
302
|
-
"@eslint-react/web-api":
|
|
291
|
+
"@eslint-react/web-api": reactWebApi
|
|
303
292
|
};
|
|
304
293
|
|
|
305
294
|
// src/configs/disable-web-api.ts
|
|
@@ -341,9 +330,9 @@ var plugins6 = {
|
|
|
341
330
|
...plugins2,
|
|
342
331
|
...plugins,
|
|
343
332
|
...plugins5,
|
|
344
|
-
"@eslint-react/debug":
|
|
345
|
-
"@eslint-react/hooks-extra":
|
|
346
|
-
"@eslint-react/naming-convention":
|
|
333
|
+
"@eslint-react/debug": reactDebug,
|
|
334
|
+
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
335
|
+
"@eslint-react/naming-convention": reactNamingConvention
|
|
347
336
|
};
|
|
348
337
|
var settings5 = {
|
|
349
338
|
...settings
|
|
@@ -456,13 +445,13 @@ var index_default = {
|
|
|
456
445
|
["x-legacy"]: toLegacyConfig(x_exports)
|
|
457
446
|
},
|
|
458
447
|
rules: {
|
|
459
|
-
...
|
|
460
|
-
...padKeysLeft(
|
|
461
|
-
...padKeysLeft(
|
|
462
|
-
...padKeysLeft(
|
|
463
|
-
...padKeysLeft(
|
|
464
|
-
...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/")
|
|
465
454
|
}
|
|
466
455
|
};
|
|
467
456
|
|
|
468
|
-
|
|
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": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.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",
|
|
@@ -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,15 +42,15 @@
|
|
|
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": "2.0.0-next.
|
|
54
|
-
"@eslint-react/shared": "2.0.0-next.
|
|
55
|
-
"
|
|
56
|
-
"eslint-plugin-react-dom": "2.0.0-next.
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-
|
|
59
|
-
"eslint-plugin-react-
|
|
60
|
-
"eslint-plugin-react-
|
|
61
|
-
"eslint-plugin-react-
|
|
45
|
+
"@eslint-react/eff": "2.0.0-next.2",
|
|
46
|
+
"@eslint-react/shared": "2.0.0-next.2",
|
|
47
|
+
"eslint-plugin-react-debug": "2.0.0-next.2",
|
|
48
|
+
"eslint-plugin-react-dom": "2.0.0-next.2",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.0.0-next.2",
|
|
50
|
+
"@eslint-react/kit": "2.0.0-next.2",
|
|
51
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-next.2",
|
|
52
|
+
"eslint-plugin-react-x": "2.0.0-next.2",
|
|
53
|
+
"eslint-plugin-react-web-api": "2.0.0-next.2"
|
|
62
54
|
},
|
|
63
55
|
"devDependencies": {
|
|
64
56
|
"tsup": "^8.4.0",
|