@eslint-react/eslint-plugin 3.0.0-next.43 → 3.0.0-next.44
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 +1 -1
- package/dist/index.js +51 -27
- package/package.json +8 -8
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompatibleConfig, CompatiblePlugin } from "@eslint-react/shared";
|
|
2
2
|
|
|
3
3
|
//#region src/index.d.ts
|
|
4
|
-
type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-dom" | "disable-rsc" | "disable-experimental" | "disable-type-checked" | "disable-web-api" | "dom" | "rsc" | "no-deprecated" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
|
|
4
|
+
type ConfigName = "all" | "disable-conflict-eslint-plugin-react" | "disable-conflict-eslint-plugin-react-hooks" | "disable-dom" | "disable-rsc" | "disable-experimental" | "disable-type-checked" | "disable-web-api" | "dom" | "rsc" | "no-deprecated" | "off" | "recommended" | "recommended-type-checked" | "recommended-typescript" | "strict" | "strict-type-checked" | "strict-typescript" | "web-api" | "x";
|
|
5
5
|
declare const plugin: CompatiblePlugin & {
|
|
6
6
|
/**
|
|
7
7
|
* For more information about each preset, please refer to the documentation.
|
package/dist/index.js
CHANGED
|
@@ -23,18 +23,18 @@ var __exportAll = (all, no_symbols) => {
|
|
|
23
23
|
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region package.json
|
|
26
|
-
var name$
|
|
27
|
-
var version = "3.0.0-next.
|
|
26
|
+
var name$20 = "@eslint-react/eslint-plugin";
|
|
27
|
+
var version = "3.0.0-next.44";
|
|
28
28
|
|
|
29
29
|
//#endregion
|
|
30
30
|
//#region src/configs/dom.ts
|
|
31
31
|
var dom_exports = /* @__PURE__ */ __exportAll({
|
|
32
|
-
name: () => name$
|
|
32
|
+
name: () => name$19,
|
|
33
33
|
plugins: () => plugins$11,
|
|
34
|
-
rules: () => rules$
|
|
34
|
+
rules: () => rules$20
|
|
35
35
|
});
|
|
36
|
-
const name$
|
|
37
|
-
const rules$
|
|
36
|
+
const name$19 = "@eslint-react/dom";
|
|
37
|
+
const rules$20 = {
|
|
38
38
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
39
39
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
40
40
|
"@eslint-react/dom/no-find-dom-node": "error",
|
|
@@ -53,24 +53,24 @@ const plugins$11 = { "@eslint-react/dom": reactDom };
|
|
|
53
53
|
//#endregion
|
|
54
54
|
//#region src/configs/rsc.ts
|
|
55
55
|
var rsc_exports = /* @__PURE__ */ __exportAll({
|
|
56
|
-
name: () => name$
|
|
56
|
+
name: () => name$18,
|
|
57
57
|
plugins: () => plugins$10,
|
|
58
|
-
rules: () => rules$
|
|
58
|
+
rules: () => rules$19
|
|
59
59
|
});
|
|
60
|
-
const name$
|
|
61
|
-
const rules$
|
|
60
|
+
const name$18 = "@eslint-react/rsc";
|
|
61
|
+
const rules$19 = { "@eslint-react/rsc/function-definition": "error" };
|
|
62
62
|
const plugins$10 = { "@eslint-react/rsc": reactRsc };
|
|
63
63
|
|
|
64
64
|
//#endregion
|
|
65
65
|
//#region src/configs/x.ts
|
|
66
66
|
var x_exports = /* @__PURE__ */ __exportAll({
|
|
67
|
-
name: () => name$
|
|
67
|
+
name: () => name$17,
|
|
68
68
|
plugins: () => plugins$9,
|
|
69
|
-
rules: () => rules$
|
|
69
|
+
rules: () => rules$18,
|
|
70
70
|
settings: () => settings$8
|
|
71
71
|
});
|
|
72
|
-
const name$
|
|
73
|
-
const rules$
|
|
72
|
+
const name$17 = "@eslint-react/x";
|
|
73
|
+
const rules$18 = {
|
|
74
74
|
"@eslint-react/component-hook-factories": "error",
|
|
75
75
|
"@eslint-react/error-boundaries": "error",
|
|
76
76
|
"@eslint-react/exhaustive-deps": "warn",
|
|
@@ -121,13 +121,13 @@ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
121
121
|
//#endregion
|
|
122
122
|
//#region src/configs/all.ts
|
|
123
123
|
var all_exports = /* @__PURE__ */ __exportAll({
|
|
124
|
-
name: () => name$
|
|
124
|
+
name: () => name$16,
|
|
125
125
|
plugins: () => plugins$8,
|
|
126
|
-
rules: () => rules$
|
|
126
|
+
rules: () => rules$17,
|
|
127
127
|
settings: () => settings$7
|
|
128
128
|
});
|
|
129
|
-
const name$
|
|
130
|
-
const rules$
|
|
129
|
+
const name$16 = "@eslint-react/all";
|
|
130
|
+
const rules$17 = {
|
|
131
131
|
"@eslint-react/component-hook-factories": "error",
|
|
132
132
|
"@eslint-react/error-boundaries": "error",
|
|
133
133
|
"@eslint-react/exhaustive-deps": "warn",
|
|
@@ -230,10 +230,10 @@ const settings$7 = { ...settings$8 };
|
|
|
230
230
|
//#endregion
|
|
231
231
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
232
232
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
|
|
233
|
-
name: () => name$
|
|
234
|
-
rules: () => rules$
|
|
233
|
+
name: () => name$15,
|
|
234
|
+
rules: () => rules$16
|
|
235
235
|
});
|
|
236
|
-
const conflictingRules = [
|
|
236
|
+
const conflictingRules$1 = [
|
|
237
237
|
"react/button-has-type",
|
|
238
238
|
"react/destructuring-assignment",
|
|
239
239
|
"react/display-name",
|
|
@@ -279,7 +279,30 @@ const conflictingRules = [
|
|
|
279
279
|
"react/prop-types",
|
|
280
280
|
"react/void-dom-elements-no-children"
|
|
281
281
|
];
|
|
282
|
-
const name$
|
|
282
|
+
const name$15 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
283
|
+
const rules$16 = Object.fromEntries(conflictingRules$1.map((key) => [key, "off"]));
|
|
284
|
+
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region src/configs/disable-conflict-eslint-plugin-react-hooks.ts
|
|
287
|
+
var disable_conflict_eslint_plugin_react_hooks_exports = /* @__PURE__ */ __exportAll({
|
|
288
|
+
name: () => name$14,
|
|
289
|
+
rules: () => rules$15
|
|
290
|
+
});
|
|
291
|
+
const conflictingRules = [
|
|
292
|
+
"react-hooks/exhaustive-deps",
|
|
293
|
+
"react-hooks/rules-of-hooks",
|
|
294
|
+
"react-hooks/component-hook-factories",
|
|
295
|
+
"react-hooks/error-boundaries",
|
|
296
|
+
"react-hooks/immutability",
|
|
297
|
+
"react-hooks/purity",
|
|
298
|
+
"react-hooks/refs",
|
|
299
|
+
"react-hooks/set-state-in-effect",
|
|
300
|
+
"react-hooks/set-state-in-render",
|
|
301
|
+
"react-hooks/static-components",
|
|
302
|
+
"react-hooks/unsupported-syntax",
|
|
303
|
+
"react-hooks/use-memo"
|
|
304
|
+
];
|
|
305
|
+
const name$14 = "@eslint-react/disable-conflict-eslint-plugin-react-hooks";
|
|
283
306
|
const rules$15 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
|
|
284
307
|
|
|
285
308
|
//#endregion
|
|
@@ -289,7 +312,7 @@ var disable_dom_exports = /* @__PURE__ */ __exportAll({
|
|
|
289
312
|
rules: () => rules$14
|
|
290
313
|
});
|
|
291
314
|
const name$13 = "@eslint-react/disable-dom";
|
|
292
|
-
const rules$14 = Object.fromEntries(Object.entries(rules$
|
|
315
|
+
const rules$14 = Object.fromEntries(Object.entries(rules$20).map(([key]) => [key, "off"]));
|
|
293
316
|
|
|
294
317
|
//#endregion
|
|
295
318
|
//#region src/configs/disable-experimental.ts
|
|
@@ -320,7 +343,7 @@ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
|
|
|
320
343
|
rules: () => rules$12
|
|
321
344
|
});
|
|
322
345
|
const name$11 = "@eslint-react/disable-rsc";
|
|
323
|
-
const rules$12 = Object.fromEntries(Object.entries(rules$
|
|
346
|
+
const rules$12 = Object.fromEntries(Object.entries(rules$19).map(([key]) => [key, "off"]));
|
|
324
347
|
|
|
325
348
|
//#endregion
|
|
326
349
|
//#region src/configs/disable-type-checked.ts
|
|
@@ -394,7 +417,7 @@ var off_exports = /* @__PURE__ */ __exportAll({
|
|
|
394
417
|
});
|
|
395
418
|
const name$6 = "@eslint-react/off";
|
|
396
419
|
const rules$7 = {
|
|
397
|
-
...Object.fromEntries(Object.entries(rules$
|
|
420
|
+
...Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"])),
|
|
398
421
|
...rules$11
|
|
399
422
|
};
|
|
400
423
|
|
|
@@ -408,9 +431,9 @@ var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
|
408
431
|
});
|
|
409
432
|
const name$5 = "@eslint-react/recommended";
|
|
410
433
|
const rules$6 = {
|
|
411
|
-
...rules$17,
|
|
412
434
|
...rules$18,
|
|
413
435
|
...rules$19,
|
|
436
|
+
...rules$20,
|
|
414
437
|
...rules$10,
|
|
415
438
|
"@eslint-react/naming-convention/context-name": "warn",
|
|
416
439
|
"@eslint-react/naming-convention/id-name": "warn",
|
|
@@ -538,12 +561,13 @@ const settings = { ...settings$1 };
|
|
|
538
561
|
//#region src/index.ts
|
|
539
562
|
const plugin = {
|
|
540
563
|
meta: {
|
|
541
|
-
name: name$
|
|
564
|
+
name: name$20,
|
|
542
565
|
version
|
|
543
566
|
},
|
|
544
567
|
configs: {
|
|
545
568
|
["all"]: all_exports,
|
|
546
569
|
["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
|
|
570
|
+
["disable-conflict-eslint-plugin-react-hooks"]: disable_conflict_eslint_plugin_react_hooks_exports,
|
|
547
571
|
["disable-dom"]: disable_dom_exports,
|
|
548
572
|
["disable-experimental"]: disable_experimental_exports,
|
|
549
573
|
["disable-rsc"]: disable_rsc_exports,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "3.0.0-next.
|
|
3
|
+
"version": "3.0.0-next.44",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -46,13 +46,13 @@
|
|
|
46
46
|
"@typescript-eslint/types": "canary",
|
|
47
47
|
"@typescript-eslint/utils": "canary",
|
|
48
48
|
"ts-api-utils": "^2.4.0",
|
|
49
|
-
"@eslint-react/eff": "3.0.0-next.
|
|
50
|
-
"eslint-
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"
|
|
49
|
+
"@eslint-react/eff": "3.0.0-next.44",
|
|
50
|
+
"@eslint-react/shared": "3.0.0-next.44",
|
|
51
|
+
"eslint-plugin-react-dom": "3.0.0-next.44",
|
|
52
|
+
"eslint-plugin-react-naming-convention": "3.0.0-next.44",
|
|
53
|
+
"eslint-plugin-react-rsc": "3.0.0-next.44",
|
|
54
|
+
"eslint-plugin-react-web-api": "3.0.0-next.44",
|
|
55
|
+
"eslint-plugin-react-x": "3.0.0-next.44"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"tsdown": "^0.20.3",
|