@eslint-react/eslint-plugin 2.2.0-next.0 → 2.2.1-beta.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/dist/index.d.ts +141 -287
- package/dist/index.js +25 -57
- package/package.json +8 -9
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { __export } from "./chunk-CTAAG5j7.js";
|
|
2
|
-
import reactDebug from "eslint-plugin-react-debug";
|
|
3
2
|
import reactDom from "eslint-plugin-react-dom";
|
|
4
3
|
import reactHooksExtra from "eslint-plugin-react-hooks-extra";
|
|
5
4
|
import reactNamingConvention from "eslint-plugin-react-naming-convention";
|
|
@@ -9,16 +8,16 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
|
9
8
|
|
|
10
9
|
//#region package.json
|
|
11
10
|
var name = "@eslint-react/eslint-plugin";
|
|
12
|
-
var version = "2.2.
|
|
11
|
+
var version = "2.2.1-beta.0";
|
|
13
12
|
|
|
14
13
|
//#endregion
|
|
15
14
|
//#region src/configs/dom.ts
|
|
16
15
|
var dom_exports = /* @__PURE__ */ __export({
|
|
17
|
-
name: () => name$
|
|
18
|
-
plugins: () => plugins$
|
|
16
|
+
name: () => name$16,
|
|
17
|
+
plugins: () => plugins$10,
|
|
19
18
|
rules: () => rules$13
|
|
20
19
|
});
|
|
21
|
-
const name$
|
|
20
|
+
const name$16 = "@eslint-react/dom";
|
|
22
21
|
const rules$13 = {
|
|
23
22
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
24
23
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
@@ -33,18 +32,18 @@ const rules$13 = {
|
|
|
33
32
|
"@eslint-react/dom/no-use-form-state": "error",
|
|
34
33
|
"@eslint-react/dom/no-void-elements-with-children": "error"
|
|
35
34
|
};
|
|
36
|
-
const plugins$
|
|
35
|
+
const plugins$10 = { "@eslint-react/dom": reactDom };
|
|
37
36
|
|
|
38
37
|
//#endregion
|
|
39
38
|
//#region src/configs/x.ts
|
|
40
39
|
var x_exports = /* @__PURE__ */ __export({
|
|
41
|
-
name: () => name$
|
|
42
|
-
plugins: () => plugins$
|
|
43
|
-
rules: () => rules$
|
|
40
|
+
name: () => name$15,
|
|
41
|
+
plugins: () => plugins$9,
|
|
42
|
+
rules: () => rules$16,
|
|
44
43
|
settings: () => settings$8
|
|
45
44
|
});
|
|
46
|
-
const name$
|
|
47
|
-
const rules$
|
|
45
|
+
const name$15 = "@eslint-react/x";
|
|
46
|
+
const rules$16 = {
|
|
48
47
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
49
48
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
50
49
|
"@eslint-react/jsx-uses-react": "warn",
|
|
@@ -85,18 +84,18 @@ const rules$18 = {
|
|
|
85
84
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
86
85
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
87
86
|
};
|
|
88
|
-
const plugins$
|
|
87
|
+
const plugins$9 = { "@eslint-react": react };
|
|
89
88
|
const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
90
89
|
|
|
91
90
|
//#endregion
|
|
92
91
|
//#region src/configs/all.ts
|
|
93
92
|
var all_exports = /* @__PURE__ */ __export({
|
|
94
|
-
name: () => name$
|
|
95
|
-
plugins: () => plugins$
|
|
93
|
+
name: () => name$14,
|
|
94
|
+
plugins: () => plugins$8,
|
|
96
95
|
rules: () => rules$7,
|
|
97
96
|
settings: () => settings$7
|
|
98
97
|
});
|
|
99
|
-
const name$
|
|
98
|
+
const name$14 = "@eslint-react/all";
|
|
100
99
|
const rules$7 = {
|
|
101
100
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
102
101
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
@@ -189,38 +188,20 @@ const rules$7 = {
|
|
|
189
188
|
"@eslint-react/naming-convention/filename-extension": "off",
|
|
190
189
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
191
190
|
};
|
|
192
|
-
const plugins$
|
|
191
|
+
const plugins$8 = {
|
|
192
|
+
...plugins$9,
|
|
193
193
|
...plugins$10,
|
|
194
|
-
...plugins$11,
|
|
195
|
-
"@eslint-react/debug": reactDebug,
|
|
196
194
|
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
197
195
|
"@eslint-react/naming-convention": reactNamingConvention,
|
|
198
196
|
"@eslint-react/web-api": reactWebApi
|
|
199
197
|
};
|
|
200
198
|
const settings$7 = { ...settings$8 };
|
|
201
199
|
|
|
202
|
-
//#endregion
|
|
203
|
-
//#region src/configs/debug.ts
|
|
204
|
-
var debug_exports = /* @__PURE__ */ __export({
|
|
205
|
-
name: () => name$15,
|
|
206
|
-
plugins: () => plugins$8,
|
|
207
|
-
rules: () => rules$15
|
|
208
|
-
});
|
|
209
|
-
const name$15 = "@eslint-react/debug";
|
|
210
|
-
const rules$15 = {
|
|
211
|
-
"@eslint-react/debug/class-component": "warn",
|
|
212
|
-
"@eslint-react/debug/function-component": "warn",
|
|
213
|
-
"@eslint-react/debug/hook": "warn",
|
|
214
|
-
"@eslint-react/debug/is-from-react": "warn",
|
|
215
|
-
"@eslint-react/debug/jsx": "warn"
|
|
216
|
-
};
|
|
217
|
-
const plugins$8 = { "@eslint-react/debug": reactDebug };
|
|
218
|
-
|
|
219
200
|
//#endregion
|
|
220
201
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
221
202
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __export({
|
|
222
|
-
name: () => name$
|
|
223
|
-
rules: () => rules$
|
|
203
|
+
name: () => name$13,
|
|
204
|
+
rules: () => rules$15
|
|
224
205
|
});
|
|
225
206
|
const conflictingRules = [
|
|
226
207
|
"button-has-type",
|
|
@@ -270,17 +251,8 @@ const conflictingRules = [
|
|
|
270
251
|
"prop-types",
|
|
271
252
|
"void-dom-elements-no-children"
|
|
272
253
|
];
|
|
273
|
-
const name$
|
|
274
|
-
const rules$
|
|
275
|
-
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/configs/disable-debug.ts
|
|
278
|
-
var disable_debug_exports = /* @__PURE__ */ __export({
|
|
279
|
-
name: () => name$13,
|
|
280
|
-
rules: () => rules$16
|
|
281
|
-
});
|
|
282
|
-
const name$13 = "@eslint-react/disable-debug";
|
|
283
|
-
const rules$16 = Object.fromEntries(Object.entries(rules$15).map(([rule]) => [rule, "off"]));
|
|
254
|
+
const name$13 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
255
|
+
const rules$15 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
|
|
284
256
|
|
|
285
257
|
//#endregion
|
|
286
258
|
//#region src/configs/disable-dom.ts
|
|
@@ -351,8 +323,8 @@ const rules$10 = {
|
|
|
351
323
|
"@eslint-react/dom/no-render-return-value": "error"
|
|
352
324
|
};
|
|
353
325
|
const plugins$6 = {
|
|
354
|
-
...plugins$
|
|
355
|
-
...plugins$
|
|
326
|
+
...plugins$9,
|
|
327
|
+
...plugins$10
|
|
356
328
|
};
|
|
357
329
|
|
|
358
330
|
//#endregion
|
|
@@ -377,7 +349,7 @@ var recommended_exports = /* @__PURE__ */ __export({
|
|
|
377
349
|
});
|
|
378
350
|
const name$6 = "@eslint-react/recommended";
|
|
379
351
|
const rules$6 = {
|
|
380
|
-
...rules$
|
|
352
|
+
...rules$16,
|
|
381
353
|
...rules$13,
|
|
382
354
|
...rules$11,
|
|
383
355
|
"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect": "warn",
|
|
@@ -385,10 +357,9 @@ const rules$6 = {
|
|
|
385
357
|
"@eslint-react/naming-convention/use-state": "warn"
|
|
386
358
|
};
|
|
387
359
|
const plugins$5 = {
|
|
360
|
+
...plugins$9,
|
|
388
361
|
...plugins$10,
|
|
389
|
-
...plugins$11,
|
|
390
362
|
...plugins$7,
|
|
391
|
-
"@eslint-react/debug": reactDebug,
|
|
392
363
|
"@eslint-react/hooks-extra": reactHooksExtra,
|
|
393
364
|
"@eslint-react/naming-convention": reactNamingConvention
|
|
394
365
|
};
|
|
@@ -551,17 +522,14 @@ const plugin = {
|
|
|
551
522
|
...padKeysLeft(reactDom.rules, "dom/"),
|
|
552
523
|
...padKeysLeft(reactWebApi.rules, "web-api/"),
|
|
553
524
|
...padKeysLeft(reactHooksExtra.rules, "hooks-extra/"),
|
|
554
|
-
...padKeysLeft(reactNamingConvention.rules, "naming-convention/")
|
|
555
|
-
...padKeysLeft(reactDebug.rules, "debug/")
|
|
525
|
+
...padKeysLeft(reactNamingConvention.rules, "naming-convention/")
|
|
556
526
|
}
|
|
557
527
|
};
|
|
558
528
|
var src_default = {
|
|
559
529
|
...plugin,
|
|
560
530
|
configs: {
|
|
561
531
|
["all"]: all_exports,
|
|
562
|
-
["debug"]: debug_exports,
|
|
563
532
|
["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
|
|
564
|
-
["disable-debug"]: disable_debug_exports,
|
|
565
533
|
["disable-dom"]: disable_dom_exports,
|
|
566
534
|
["disable-type-checked"]: disable_type_checked_exports,
|
|
567
535
|
["disable-web-api"]: disable_web_api_exports,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-beta.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",
|
|
@@ -42,14 +42,13 @@
|
|
|
42
42
|
"@typescript-eslint/types": "^8.46.0",
|
|
43
43
|
"@typescript-eslint/utils": "^8.46.0",
|
|
44
44
|
"ts-api-utils": "^2.1.0",
|
|
45
|
-
"@eslint-react/eff": "2.2.
|
|
46
|
-
"@eslint-react/shared": "2.2.
|
|
47
|
-
"eslint-plugin-react-
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"eslint-plugin-react-
|
|
50
|
-
"eslint-plugin-react-hooks-extra": "2.2.
|
|
51
|
-
"eslint-plugin-react-x": "2.2.
|
|
52
|
-
"eslint-plugin-react-web-api": "2.2.0-next.0"
|
|
45
|
+
"@eslint-react/eff": "2.2.1-beta.0",
|
|
46
|
+
"@eslint-react/shared": "2.2.1-beta.0",
|
|
47
|
+
"eslint-plugin-react-dom": "2.2.1-beta.0",
|
|
48
|
+
"eslint-plugin-react-naming-convention": "2.2.1-beta.0",
|
|
49
|
+
"eslint-plugin-react-web-api": "2.2.1-beta.0",
|
|
50
|
+
"eslint-plugin-react-hooks-extra": "2.2.1-beta.0",
|
|
51
|
+
"eslint-plugin-react-x": "2.2.1-beta.0"
|
|
53
52
|
},
|
|
54
53
|
"devDependencies": {
|
|
55
54
|
"tsdown": "^0.15.6",
|