@eslint-react/eslint-plugin 5.24.2 → 5.24.4
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 +7 -42
- package/package.json +8 -8
package/dist/index.js
CHANGED
|
@@ -5,23 +5,17 @@ import reactJsxPlugin from "eslint-plugin-react-jsx";
|
|
|
5
5
|
import reactNamingConventionPlugin from "eslint-plugin-react-naming-convention";
|
|
6
6
|
import reactRscPlugin from "eslint-plugin-react-rsc";
|
|
7
7
|
import reactWebApiPlugin from "eslint-plugin-react-web-api";
|
|
8
|
-
|
|
9
8
|
//#region \0rolldown/runtime.js
|
|
10
9
|
var __defProp = Object.defineProperty;
|
|
11
10
|
var __exportAll = (all, no_symbols) => {
|
|
12
11
|
let target = {};
|
|
13
|
-
for (var name in all) {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
if (!no_symbols) {
|
|
20
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
21
|
-
}
|
|
12
|
+
for (var name in all) __defProp(target, name, {
|
|
13
|
+
get: all[name],
|
|
14
|
+
enumerable: true
|
|
15
|
+
});
|
|
16
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
22
17
|
return target;
|
|
23
18
|
};
|
|
24
|
-
|
|
25
19
|
//#endregion
|
|
26
20
|
//#region src/configs/x.ts
|
|
27
21
|
var x_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -70,7 +64,6 @@ const rules$22 = {
|
|
|
70
64
|
"@eslint-react/use-state": "warn"
|
|
71
65
|
};
|
|
72
66
|
const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
73
|
-
|
|
74
67
|
//#endregion
|
|
75
68
|
//#region src/configs/all.ts
|
|
76
69
|
var all_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -164,7 +157,6 @@ const rules$21 = {
|
|
|
164
157
|
"@eslint-react/naming-convention-ref-name": "warn"
|
|
165
158
|
};
|
|
166
159
|
const settings$7 = { ...settings$8 };
|
|
167
|
-
|
|
168
160
|
//#endregion
|
|
169
161
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
170
162
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -173,7 +165,6 @@ var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __exportAll({
|
|
|
173
165
|
});
|
|
174
166
|
const name$21 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
175
167
|
const rules$20 = reactX.configs["disable-conflict-eslint-plugin-react"].rules ?? {};
|
|
176
|
-
|
|
177
168
|
//#endregion
|
|
178
169
|
//#region src/configs/disable-conflict-eslint-plugin-react-hooks.ts
|
|
179
170
|
var disable_conflict_eslint_plugin_react_hooks_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -182,7 +173,6 @@ var disable_conflict_eslint_plugin_react_hooks_exports = /* @__PURE__ */ __expor
|
|
|
182
173
|
});
|
|
183
174
|
const name$20 = "@eslint-react/disable-conflict-eslint-plugin-react-hooks";
|
|
184
175
|
const rules$19 = reactX.configs["disable-conflict-eslint-plugin-react-hooks"].rules ?? {};
|
|
185
|
-
|
|
186
176
|
//#endregion
|
|
187
177
|
//#region src/configs/dom.ts
|
|
188
178
|
var dom_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -203,7 +193,6 @@ const rules$18 = {
|
|
|
203
193
|
"@eslint-react/dom-no-use-form-state": "error",
|
|
204
194
|
"@eslint-react/dom-no-void-elements-with-children": "error"
|
|
205
195
|
};
|
|
206
|
-
|
|
207
196
|
//#endregion
|
|
208
197
|
//#region src/configs/disable-dom.ts
|
|
209
198
|
var disable_dom_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -212,7 +201,6 @@ var disable_dom_exports = /* @__PURE__ */ __exportAll({
|
|
|
212
201
|
});
|
|
213
202
|
const name$18 = "@eslint-react/disable-dom";
|
|
214
203
|
const rules$17 = Object.fromEntries(Object.entries(rules$18).map(([key]) => [key, "off"]));
|
|
215
|
-
|
|
216
204
|
//#endregion
|
|
217
205
|
//#region src/configs/disable-experimental.ts
|
|
218
206
|
var disable_experimental_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -236,7 +224,6 @@ const rules$16 = {
|
|
|
236
224
|
"@eslint-react/rsc-function-definition": "off",
|
|
237
225
|
"@eslint-react/web-api-no-leaked-fetch": "off"
|
|
238
226
|
};
|
|
239
|
-
|
|
240
227
|
//#endregion
|
|
241
228
|
//#region src/configs/jsx.ts
|
|
242
229
|
var jsx_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -253,7 +240,6 @@ const rules$15 = {
|
|
|
253
240
|
"@eslint-react/jsx-no-leaked-semicolon": "warn",
|
|
254
241
|
"@eslint-react/jsx-no-namespace": "error"
|
|
255
242
|
};
|
|
256
|
-
|
|
257
243
|
//#endregion
|
|
258
244
|
//#region src/configs/disable-jsx.ts
|
|
259
245
|
var disable_jsx_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -262,7 +248,6 @@ var disable_jsx_exports = /* @__PURE__ */ __exportAll({
|
|
|
262
248
|
});
|
|
263
249
|
const name$15 = "@eslint-react/disable-jsx";
|
|
264
250
|
const rules$14 = Object.fromEntries(Object.entries(rules$15).map(([key]) => [key, "off"]));
|
|
265
|
-
|
|
266
251
|
//#endregion
|
|
267
252
|
//#region src/configs/naming-convention.ts
|
|
268
253
|
var naming_convention_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -275,7 +260,6 @@ const rules$13 = {
|
|
|
275
260
|
"@eslint-react/naming-convention-id-name": "warn",
|
|
276
261
|
"@eslint-react/naming-convention-ref-name": "warn"
|
|
277
262
|
};
|
|
278
|
-
|
|
279
263
|
//#endregion
|
|
280
264
|
//#region src/configs/disable-naming-convention.ts
|
|
281
265
|
var disable_naming_convention_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -284,7 +268,6 @@ var disable_naming_convention_exports = /* @__PURE__ */ __exportAll({
|
|
|
284
268
|
});
|
|
285
269
|
const name$13 = "@eslint-react/disable-naming-convention";
|
|
286
270
|
const rules$12 = Object.fromEntries(Object.entries(rules$13).map(([key]) => [key, "off"]));
|
|
287
|
-
|
|
288
271
|
//#endregion
|
|
289
272
|
//#region src/configs/rsc.ts
|
|
290
273
|
var rsc_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -293,7 +276,6 @@ var rsc_exports = /* @__PURE__ */ __exportAll({
|
|
|
293
276
|
});
|
|
294
277
|
const name$12 = "@eslint-react/rsc";
|
|
295
278
|
const rules$11 = { "@eslint-react/rsc-function-definition": "error" };
|
|
296
|
-
|
|
297
279
|
//#endregion
|
|
298
280
|
//#region src/configs/disable-rsc.ts
|
|
299
281
|
var disable_rsc_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -302,7 +284,6 @@ var disable_rsc_exports = /* @__PURE__ */ __exportAll({
|
|
|
302
284
|
});
|
|
303
285
|
const name$11 = "@eslint-react/disable-rsc";
|
|
304
286
|
const rules$10 = Object.fromEntries(Object.entries(rules$11).map(([key]) => [key, "off"]));
|
|
305
|
-
|
|
306
287
|
//#endregion
|
|
307
288
|
//#region src/configs/disable-type-checked.ts
|
|
308
289
|
var disable_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -317,7 +298,6 @@ const rules$9 = {
|
|
|
317
298
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
318
299
|
"@eslint-react/no-unused-props": "off"
|
|
319
300
|
};
|
|
320
|
-
|
|
321
301
|
//#endregion
|
|
322
302
|
//#region src/configs/web-api.ts
|
|
323
303
|
var web_api_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -335,7 +315,6 @@ const rules$8 = {
|
|
|
335
315
|
"@eslint-react/web-api-no-leaked-timeout": "warn"
|
|
336
316
|
};
|
|
337
317
|
const settings$6 = { ...settings$8 };
|
|
338
|
-
|
|
339
318
|
//#endregion
|
|
340
319
|
//#region src/configs/disable-web-api.ts
|
|
341
320
|
var disable_web_api_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -344,7 +323,6 @@ var disable_web_api_exports = /* @__PURE__ */ __exportAll({
|
|
|
344
323
|
});
|
|
345
324
|
const name$8 = "@eslint-react/disable-web-api";
|
|
346
325
|
const rules$7 = Object.fromEntries(Object.entries(rules$8).map(([key]) => [key, "off"]));
|
|
347
|
-
|
|
348
326
|
//#endregion
|
|
349
327
|
//#region src/configs/off.ts
|
|
350
328
|
var off_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -356,7 +334,6 @@ const rules$6 = {
|
|
|
356
334
|
...Object.fromEntries(Object.entries(rules$21).map(([key]) => [key, "off"])),
|
|
357
335
|
...rules$9
|
|
358
336
|
};
|
|
359
|
-
|
|
360
337
|
//#endregion
|
|
361
338
|
//#region src/configs/recommended.ts
|
|
362
339
|
var recommended_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -374,7 +351,6 @@ const rules$5 = {
|
|
|
374
351
|
...rules$13
|
|
375
352
|
};
|
|
376
353
|
const settings$5 = { ...settings$8 };
|
|
377
|
-
|
|
378
354
|
//#endregion
|
|
379
355
|
//#region src/configs/recommended-typescript.ts
|
|
380
356
|
var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -385,7 +361,6 @@ var recommended_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
|
385
361
|
const name$5 = "@eslint-react/recommended-typescript";
|
|
386
362
|
const rules$4 = { ...rules$5 };
|
|
387
363
|
const settings$4 = { ...settings$5 };
|
|
388
|
-
|
|
389
364
|
//#endregion
|
|
390
365
|
//#region src/configs/recommended-type-checked.ts
|
|
391
366
|
var recommended_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -399,7 +374,6 @@ const rules$3 = {
|
|
|
399
374
|
"@eslint-react/no-leaked-conditional-rendering": "error"
|
|
400
375
|
};
|
|
401
376
|
const settings$3 = { ...settings$4 };
|
|
402
|
-
|
|
403
377
|
//#endregion
|
|
404
378
|
//#region src/configs/strict.ts
|
|
405
379
|
var strict_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -421,7 +395,6 @@ const rules$2 = {
|
|
|
421
395
|
"@eslint-react/dom-no-unsafe-target-blank": "warn"
|
|
422
396
|
};
|
|
423
397
|
const settings$2 = { ...settings$5 };
|
|
424
|
-
|
|
425
398
|
//#endregion
|
|
426
399
|
//#region src/configs/strict-typescript.ts
|
|
427
400
|
var strict_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -432,7 +405,6 @@ var strict_typescript_exports = /* @__PURE__ */ __exportAll({
|
|
|
432
405
|
const name$2 = "@eslint-react/strict-typescript";
|
|
433
406
|
const rules$1 = { ...rules$2 };
|
|
434
407
|
const settings$1 = { ...settings$2 };
|
|
435
|
-
|
|
436
408
|
//#endregion
|
|
437
409
|
//#region src/configs/strict-type-checked.ts
|
|
438
410
|
var strict_type_checked_exports = /* @__PURE__ */ __exportAll({
|
|
@@ -447,18 +419,15 @@ const rules = {
|
|
|
447
419
|
"@eslint-react/no-unused-props": "warn"
|
|
448
420
|
};
|
|
449
421
|
const settings = { ...settings$1 };
|
|
450
|
-
|
|
451
422
|
//#endregion
|
|
452
423
|
//#region package.json
|
|
453
424
|
var name = "@eslint-react/eslint-plugin";
|
|
454
|
-
var version = "5.24.
|
|
455
|
-
|
|
425
|
+
var version = "5.24.4";
|
|
456
426
|
//#endregion
|
|
457
427
|
//#region src/utils/type-of.ts
|
|
458
428
|
function typeOf(t) {
|
|
459
429
|
return Object.prototype.toString.call(t).replace(/^\[object (.+)\]$/, "$1").toLowerCase();
|
|
460
430
|
}
|
|
461
|
-
|
|
462
431
|
//#endregion
|
|
463
432
|
//#region src/utils/transform-keys.ts
|
|
464
433
|
function transformKeys(obj, transform) {
|
|
@@ -467,13 +436,11 @@ function transformKeys(obj, transform) {
|
|
|
467
436
|
for (const key in obj) res[transform(key)] = obj[key];
|
|
468
437
|
return res;
|
|
469
438
|
}
|
|
470
|
-
|
|
471
439
|
//#endregion
|
|
472
440
|
//#region src/utils/pad-keys-left.ts
|
|
473
441
|
function padKeysLeft(obj, left) {
|
|
474
442
|
return transformKeys(obj, (key) => `${left}${key}`);
|
|
475
443
|
}
|
|
476
|
-
|
|
477
444
|
//#endregion
|
|
478
445
|
//#region src/plugin.ts
|
|
479
446
|
const plugin = {
|
|
@@ -491,7 +458,6 @@ const plugin = {
|
|
|
491
458
|
...padKeysLeft(reactNamingConventionPlugin.rules, "naming-convention-")
|
|
492
459
|
}
|
|
493
460
|
};
|
|
494
|
-
|
|
495
461
|
//#endregion
|
|
496
462
|
//#region src/index.ts
|
|
497
463
|
function createConfig(base) {
|
|
@@ -533,6 +499,5 @@ const finalPlugin = {
|
|
|
533
499
|
["x"]: createConfig(x_exports)
|
|
534
500
|
}
|
|
535
501
|
};
|
|
536
|
-
|
|
537
502
|
//#endregion
|
|
538
|
-
export { finalPlugin as default };
|
|
503
|
+
export { finalPlugin as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "5.24.
|
|
3
|
+
"version": "5.24.4",
|
|
4
4
|
"description": "ESLint React's unified ESLint plugin that combines all individual plugins into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -42,13 +42,13 @@
|
|
|
42
42
|
"dist"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@eslint-react/shared": "5.24.
|
|
46
|
-
"eslint-plugin-react-dom": "5.24.
|
|
47
|
-
"eslint-plugin-react-jsx": "5.24.
|
|
48
|
-
"eslint-plugin-react-naming-convention": "5.24.
|
|
49
|
-
"eslint-plugin-react-rsc": "5.24.
|
|
50
|
-
"eslint-plugin-react-web-api": "5.24.
|
|
51
|
-
"eslint-plugin-react-x": "5.24.
|
|
45
|
+
"@eslint-react/shared": "5.24.4",
|
|
46
|
+
"eslint-plugin-react-dom": "5.24.4",
|
|
47
|
+
"eslint-plugin-react-jsx": "5.24.4",
|
|
48
|
+
"eslint-plugin-react-naming-convention": "5.24.4",
|
|
49
|
+
"eslint-plugin-react-rsc": "5.24.4",
|
|
50
|
+
"eslint-plugin-react-web-api": "5.24.4",
|
|
51
|
+
"eslint-plugin-react-x": "5.24.4"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@local/configs": "0.0.0",
|