@eslint-react/eslint-plugin 4.0.2-beta.6 → 4.0.3-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.js +87 -87
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import reactNamingConvention from "eslint-plugin-react-naming-convention";
|
|
2
|
-
import reactWebApi from "eslint-plugin-react-web-api";
|
|
3
|
-
import reactDom from "eslint-plugin-react-dom";
|
|
4
|
-
import reactJsx from "eslint-plugin-react-jsx";
|
|
5
|
-
import reactRsc from "eslint-plugin-react-rsc";
|
|
6
1
|
import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
7
2
|
import reactX from "eslint-plugin-react-x";
|
|
3
|
+
import reactDomPlugin from "eslint-plugin-react-dom";
|
|
4
|
+
import reactJsxPlugin from "eslint-plugin-react-jsx";
|
|
5
|
+
import reactNamingConventionPlugin from "eslint-plugin-react-naming-convention";
|
|
6
|
+
import reactRscPlugin from "eslint-plugin-react-rsc";
|
|
7
|
+
import reactWebApiPlugin from "eslint-plugin-react-web-api";
|
|
8
8
|
|
|
9
9
|
//#region \0rolldown/runtime.js
|
|
10
10
|
var __defProp = Object.defineProperty;
|
|
@@ -22,60 +22,15 @@ var __exportAll = (all, no_symbols) => {
|
|
|
22
22
|
return target;
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
-
//#endregion
|
|
26
|
-
//#region src/configs/dom.ts
|
|
27
|
-
var dom_exports = /* @__PURE__ */ __exportAll({
|
|
28
|
-
name: () => name$21,
|
|
29
|
-
rules: () => rules$21
|
|
30
|
-
});
|
|
31
|
-
const name$21 = "@eslint-react/dom";
|
|
32
|
-
const rules$21 = {
|
|
33
|
-
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
34
|
-
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
35
|
-
"@eslint-react/dom-no-find-dom-node": "error",
|
|
36
|
-
"@eslint-react/dom-no-flush-sync": "error",
|
|
37
|
-
"@eslint-react/dom-no-hydrate": "error",
|
|
38
|
-
"@eslint-react/dom-no-render": "error",
|
|
39
|
-
"@eslint-react/dom-no-render-return-value": "error",
|
|
40
|
-
"@eslint-react/dom-no-script-url": "warn",
|
|
41
|
-
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
42
|
-
"@eslint-react/dom-no-use-form-state": "error",
|
|
43
|
-
"@eslint-react/dom-no-void-elements-with-children": "error"
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/configs/jsx.ts
|
|
48
|
-
var jsx_exports = /* @__PURE__ */ __exportAll({
|
|
49
|
-
name: () => name$20,
|
|
50
|
-
rules: () => rules$20
|
|
51
|
-
});
|
|
52
|
-
const name$20 = "@eslint-react/jsx";
|
|
53
|
-
const rules$20 = {
|
|
54
|
-
"@eslint-react/jsx-no-children-prop": "warn",
|
|
55
|
-
"@eslint-react/jsx-no-children-prop-with-children": "error",
|
|
56
|
-
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
57
|
-
"@eslint-react/jsx-no-deoptimization": "error",
|
|
58
|
-
"@eslint-react/jsx-no-namespace": "error"
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
//#endregion
|
|
62
|
-
//#region src/configs/rsc.ts
|
|
63
|
-
var rsc_exports = /* @__PURE__ */ __exportAll({
|
|
64
|
-
name: () => name$19,
|
|
65
|
-
rules: () => rules$19
|
|
66
|
-
});
|
|
67
|
-
const name$19 = "@eslint-react/rsc";
|
|
68
|
-
const rules$19 = { "@eslint-react/rsc-function-definition": "error" };
|
|
69
|
-
|
|
70
25
|
//#endregion
|
|
71
26
|
//#region src/configs/x.ts
|
|
72
27
|
var x_exports = /* @__PURE__ */ __exportAll({
|
|
73
|
-
name: () => name$
|
|
74
|
-
rules: () => rules$
|
|
28
|
+
name: () => name$21,
|
|
29
|
+
rules: () => rules$21,
|
|
75
30
|
settings: () => settings$8
|
|
76
31
|
});
|
|
77
|
-
const name$
|
|
78
|
-
const rules$
|
|
32
|
+
const name$21 = "@eslint-react/x";
|
|
33
|
+
const rules$21 = {
|
|
79
34
|
"@eslint-react/component-hook-factories": "error",
|
|
80
35
|
"@eslint-react/error-boundaries": "error",
|
|
81
36
|
"@eslint-react/exhaustive-deps": "warn",
|
|
@@ -120,12 +75,12 @@ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
120
75
|
//#endregion
|
|
121
76
|
//#region src/configs/all.ts
|
|
122
77
|
var all_exports = /* @__PURE__ */ __exportAll({
|
|
123
|
-
name: () => name$
|
|
124
|
-
rules: () => rules$
|
|
78
|
+
name: () => name$20,
|
|
79
|
+
rules: () => rules$20,
|
|
125
80
|
settings: () => settings$7
|
|
126
81
|
});
|
|
127
|
-
const name$
|
|
128
|
-
const rules$
|
|
82
|
+
const name$20 = "@eslint-react/all";
|
|
83
|
+
const rules$20 = {
|
|
129
84
|
"@eslint-react/component-hook-factories": "error",
|
|
130
85
|
"@eslint-react/error-boundaries": "error",
|
|
131
86
|
"@eslint-react/exhaustive-deps": "warn",
|
|
@@ -215,38 +170,59 @@ const settings$7 = { ...settings$8 };
|
|
|
215
170
|
//#endregion
|
|
216
171
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
217
172
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
|
|
218
|
-
name: () => name$
|
|
219
|
-
rules: () => rules$
|
|
173
|
+
name: () => name$19,
|
|
174
|
+
rules: () => rules$19
|
|
220
175
|
});
|
|
221
|
-
const name$
|
|
222
|
-
const rules$
|
|
176
|
+
const name$19 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
177
|
+
const rules$19 = reactX.configs["disable-conflict-eslint-plugin-react"].rules ?? {};
|
|
223
178
|
|
|
224
179
|
//#endregion
|
|
225
180
|
//#region src/configs/disable-conflict-eslint-plugin-react-hooks.ts
|
|
226
181
|
var disable_conflict_eslint_plugin_react_hooks_exports = /* @__PURE__ */ __exportAll({
|
|
227
|
-
name: () => name$
|
|
228
|
-
rules: () => rules$
|
|
182
|
+
name: () => name$18,
|
|
183
|
+
rules: () => rules$18
|
|
229
184
|
});
|
|
230
|
-
const name$
|
|
231
|
-
const rules$
|
|
185
|
+
const name$18 = "@eslint-react/disable-conflict-eslint-plugin-react-hooks";
|
|
186
|
+
const rules$18 = reactX.configs["disable-conflict-eslint-plugin-react-hooks"].rules ?? {};
|
|
187
|
+
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region src/configs/dom.ts
|
|
190
|
+
var dom_exports = /* @__PURE__ */ __exportAll({
|
|
191
|
+
name: () => name$17,
|
|
192
|
+
rules: () => rules$17
|
|
193
|
+
});
|
|
194
|
+
const name$17 = "@eslint-react/dom";
|
|
195
|
+
const rules$17 = {
|
|
196
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml": "warn",
|
|
197
|
+
"@eslint-react/dom-no-dangerously-set-innerhtml-with-children": "error",
|
|
198
|
+
"@eslint-react/dom-no-find-dom-node": "error",
|
|
199
|
+
"@eslint-react/dom-no-flush-sync": "error",
|
|
200
|
+
"@eslint-react/dom-no-hydrate": "error",
|
|
201
|
+
"@eslint-react/dom-no-render": "error",
|
|
202
|
+
"@eslint-react/dom-no-render-return-value": "error",
|
|
203
|
+
"@eslint-react/dom-no-script-url": "warn",
|
|
204
|
+
"@eslint-react/dom-no-unsafe-iframe-sandbox": "warn",
|
|
205
|
+
"@eslint-react/dom-no-use-form-state": "error",
|
|
206
|
+
"@eslint-react/dom-no-void-elements-with-children": "error"
|
|
207
|
+
};
|
|
232
208
|
|
|
233
209
|
//#endregion
|
|
234
210
|
//#region src/configs/disable-dom.ts
|
|
235
211
|
var disable_dom_exports = /* @__PURE__ */ __exportAll({
|
|
236
|
-
name: () => name$
|
|
237
|
-
rules: () => rules$
|
|
212
|
+
name: () => name$16,
|
|
213
|
+
rules: () => rules$16
|
|
238
214
|
});
|
|
239
|
-
const name$
|
|
240
|
-
const rules$
|
|
215
|
+
const name$16 = "@eslint-react/disable-dom";
|
|
216
|
+
const rules$16 = Object.fromEntries(Object.entries(rules$17).map(([key]) => [key, "off"]));
|
|
241
217
|
|
|
242
218
|
//#endregion
|
|
243
219
|
//#region src/configs/disable-experimental.ts
|
|
244
220
|
var disable_experimental_exports = /* @__PURE__ */ __exportAll({
|
|
245
|
-
name: () => name$
|
|
246
|
-
rules: () => rules$
|
|
221
|
+
name: () => name$15,
|
|
222
|
+
rules: () => rules$15
|
|
247
223
|
});
|
|
248
|
-
const name$
|
|
249
|
-
const rules$
|
|
224
|
+
const name$15 = "@eslint-react/disable-experimental";
|
|
225
|
+
const rules$15 = {
|
|
250
226
|
"@eslint-react/immutability": "off",
|
|
251
227
|
"@eslint-react/no-duplicate-key": "off",
|
|
252
228
|
"@eslint-react/no-implicit-children": "off",
|
|
@@ -265,14 +241,38 @@ const rules$13 = {
|
|
|
265
241
|
"@eslint-react/rsc-function-definition": "off"
|
|
266
242
|
};
|
|
267
243
|
|
|
244
|
+
//#endregion
|
|
245
|
+
//#region src/configs/jsx.ts
|
|
246
|
+
var jsx_exports = /* @__PURE__ */ __exportAll({
|
|
247
|
+
name: () => name$14,
|
|
248
|
+
rules: () => rules$14
|
|
249
|
+
});
|
|
250
|
+
const name$14 = "@eslint-react/jsx";
|
|
251
|
+
const rules$14 = {
|
|
252
|
+
"@eslint-react/jsx-no-children-prop": "warn",
|
|
253
|
+
"@eslint-react/jsx-no-children-prop-with-children": "error",
|
|
254
|
+
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
255
|
+
"@eslint-react/jsx-no-deoptimization": "error",
|
|
256
|
+
"@eslint-react/jsx-no-namespace": "error"
|
|
257
|
+
};
|
|
258
|
+
|
|
268
259
|
//#endregion
|
|
269
260
|
//#region src/configs/disable-jsx.ts
|
|
270
261
|
var disable_jsx_exports = /* @__PURE__ */ __exportAll({
|
|
262
|
+
name: () => name$13,
|
|
263
|
+
rules: () => rules$13
|
|
264
|
+
});
|
|
265
|
+
const name$13 = "@eslint-react/disable-jsx";
|
|
266
|
+
const rules$13 = Object.fromEntries(Object.entries(rules$14).map(([key]) => [key, "off"]));
|
|
267
|
+
|
|
268
|
+
//#endregion
|
|
269
|
+
//#region src/configs/rsc.ts
|
|
270
|
+
var rsc_exports = /* @__PURE__ */ __exportAll({
|
|
271
271
|
name: () => name$12,
|
|
272
272
|
rules: () => rules$12
|
|
273
273
|
});
|
|
274
|
-
const name$12 = "@eslint-react/
|
|
275
|
-
const rules$12 =
|
|
274
|
+
const name$12 = "@eslint-react/rsc";
|
|
275
|
+
const rules$12 = { "@eslint-react/rsc-function-definition": "error" };
|
|
276
276
|
|
|
277
277
|
//#endregion
|
|
278
278
|
//#region src/configs/disable-rsc.ts
|
|
@@ -281,7 +281,7 @@ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
|
|
|
281
281
|
rules: () => rules$11
|
|
282
282
|
});
|
|
283
283
|
const name$11 = "@eslint-react/disable-rsc";
|
|
284
|
-
const rules$11 = Object.fromEntries(Object.entries(rules$
|
|
284
|
+
const rules$11 = Object.fromEntries(Object.entries(rules$12).map(([key]) => [key, "off"]));
|
|
285
285
|
|
|
286
286
|
//#endregion
|
|
287
287
|
//#region src/configs/disable-type-checked.ts
|
|
@@ -331,7 +331,7 @@ var off_exports = /* @__PURE__ */ __exportAll({
|
|
|
331
331
|
});
|
|
332
332
|
const name$7 = "@eslint-react/off";
|
|
333
333
|
const rules$7 = {
|
|
334
|
-
...Object.fromEntries(Object.entries(rules$
|
|
334
|
+
...Object.fromEntries(Object.entries(rules$20).map(([key]) => [key, "off"])),
|
|
335
335
|
...rules$10
|
|
336
336
|
};
|
|
337
337
|
|
|
@@ -344,10 +344,10 @@ var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
|
344
344
|
});
|
|
345
345
|
const name$6 = "@eslint-react/recommended";
|
|
346
346
|
const rules$6 = {
|
|
347
|
-
...rules$18,
|
|
348
|
-
...rules$20,
|
|
349
|
-
...rules$19,
|
|
350
347
|
...rules$21,
|
|
348
|
+
...rules$14,
|
|
349
|
+
...rules$12,
|
|
350
|
+
...rules$17,
|
|
351
351
|
...rules$9,
|
|
352
352
|
"@eslint-react/naming-convention-context-name": "warn",
|
|
353
353
|
"@eslint-react/naming-convention-id-name": "warn",
|
|
@@ -452,7 +452,7 @@ const settings = { ...settings$1 };
|
|
|
452
452
|
//#endregion
|
|
453
453
|
//#region package.json
|
|
454
454
|
var name = "@eslint-react/eslint-plugin";
|
|
455
|
-
var version = "4.0.
|
|
455
|
+
var version = "4.0.3-beta.0";
|
|
456
456
|
|
|
457
457
|
//#endregion
|
|
458
458
|
//#region src/utils/type-of.ts
|
|
@@ -500,11 +500,11 @@ const plugin = {
|
|
|
500
500
|
rules: {
|
|
501
501
|
...reactX.rules,
|
|
502
502
|
...padKeysLeft(reactX.rules, "x-"),
|
|
503
|
-
...padKeysLeft(
|
|
504
|
-
...padKeysLeft(
|
|
505
|
-
...padKeysLeft(
|
|
506
|
-
...padKeysLeft(
|
|
507
|
-
...padKeysLeft(
|
|
503
|
+
...padKeysLeft(reactJsxPlugin.rules, "jsx-"),
|
|
504
|
+
...padKeysLeft(reactRscPlugin.rules, "rsc-"),
|
|
505
|
+
...padKeysLeft(reactDomPlugin.rules, "dom-"),
|
|
506
|
+
...padKeysLeft(reactWebApiPlugin.rules, "web-api-"),
|
|
507
|
+
...padKeysLeft(reactNamingConventionPlugin.rules, "naming-convention-")
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.3-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",
|
|
@@ -47,18 +47,18 @@
|
|
|
47
47
|
"@typescript-eslint/types": "^8.57.2",
|
|
48
48
|
"@typescript-eslint/utils": "^8.57.2",
|
|
49
49
|
"ts-api-utils": "^2.5.0",
|
|
50
|
-
"@eslint-react/shared": "4.0.
|
|
51
|
-
"eslint-plugin-react-dom": "4.0.
|
|
52
|
-
"eslint-plugin-react-jsx": "4.0.
|
|
53
|
-
"eslint-plugin-react-naming-convention": "4.0.
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
50
|
+
"@eslint-react/shared": "4.0.3-beta.0",
|
|
51
|
+
"eslint-plugin-react-dom": "4.0.3-beta.0",
|
|
52
|
+
"eslint-plugin-react-jsx": "4.0.3-beta.0",
|
|
53
|
+
"eslint-plugin-react-naming-convention": "4.0.3-beta.0",
|
|
54
|
+
"eslint-plugin-react-web-api": "4.0.3-beta.0",
|
|
55
|
+
"eslint-plugin-react-x": "4.0.3-beta.0",
|
|
56
|
+
"eslint-plugin-react-rsc": "4.0.3-beta.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"tsdown": "^0.21.7",
|
|
60
|
-
"@local/
|
|
61
|
-
"@local/
|
|
60
|
+
"@local/configs": "0.0.0",
|
|
61
|
+
"@local/eff": "3.0.0-beta.72"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"eslint": "^10.0.0",
|