@eslint-react/eslint-plugin 2.1.1-next.3 → 2.1.1
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/README.md +1 -1
- package/dist/index.d.ts +577 -178
- package/dist/index.js +45 -30
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -9,16 +9,16 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from "@eslint-react/shared";
|
|
|
9
9
|
|
|
10
10
|
//#region package.json
|
|
11
11
|
var name = "@eslint-react/eslint-plugin";
|
|
12
|
-
var version = "2.1.1
|
|
12
|
+
var version = "2.1.1";
|
|
13
13
|
|
|
14
14
|
//#endregion
|
|
15
15
|
//#region src/configs/dom.ts
|
|
16
16
|
var dom_exports = /* @__PURE__ */ __export({
|
|
17
|
-
name: () => name$
|
|
17
|
+
name: () => name$18,
|
|
18
18
|
plugins: () => plugins$11,
|
|
19
19
|
rules: () => rules$13
|
|
20
20
|
});
|
|
21
|
-
const name$
|
|
21
|
+
const name$18 = "@eslint-react/dom";
|
|
22
22
|
const rules$13 = {
|
|
23
23
|
"@eslint-react/dom/no-dangerously-set-innerhtml": "warn",
|
|
24
24
|
"@eslint-react/dom/no-dangerously-set-innerhtml-with-children": "error",
|
|
@@ -38,12 +38,12 @@ const plugins$11 = { "@eslint-react/dom": reactDom };
|
|
|
38
38
|
//#endregion
|
|
39
39
|
//#region src/configs/x.ts
|
|
40
40
|
var x_exports = /* @__PURE__ */ __export({
|
|
41
|
-
name: () => name$
|
|
41
|
+
name: () => name$17,
|
|
42
42
|
plugins: () => plugins$10,
|
|
43
43
|
rules: () => rules$18,
|
|
44
44
|
settings: () => settings$8
|
|
45
45
|
});
|
|
46
|
-
const name$
|
|
46
|
+
const name$17 = "@eslint-react/x";
|
|
47
47
|
const rules$18 = {
|
|
48
48
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
49
49
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
@@ -91,12 +91,12 @@ const settings$8 = { "react-x": DEFAULT_ESLINT_REACT_SETTINGS };
|
|
|
91
91
|
//#endregion
|
|
92
92
|
//#region src/configs/all.ts
|
|
93
93
|
var all_exports = /* @__PURE__ */ __export({
|
|
94
|
-
name: () => name$
|
|
94
|
+
name: () => name$16,
|
|
95
95
|
plugins: () => plugins$9,
|
|
96
96
|
rules: () => rules$7,
|
|
97
97
|
settings: () => settings$7
|
|
98
98
|
});
|
|
99
|
-
const name$
|
|
99
|
+
const name$16 = "@eslint-react/all";
|
|
100
100
|
const rules$7 = {
|
|
101
101
|
"@eslint-react/jsx-key-before-spread": "warn",
|
|
102
102
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
@@ -202,11 +202,11 @@ const settings$7 = { ...settings$8 };
|
|
|
202
202
|
//#endregion
|
|
203
203
|
//#region src/configs/debug.ts
|
|
204
204
|
var debug_exports = /* @__PURE__ */ __export({
|
|
205
|
-
name: () => name$
|
|
205
|
+
name: () => name$15,
|
|
206
206
|
plugins: () => plugins$8,
|
|
207
207
|
rules: () => rules$15
|
|
208
208
|
});
|
|
209
|
-
const name$
|
|
209
|
+
const name$15 = "@eslint-react/debug";
|
|
210
210
|
const rules$15 = {
|
|
211
211
|
"@eslint-react/debug/class-component": "warn",
|
|
212
212
|
"@eslint-react/debug/function-component": "warn",
|
|
@@ -219,7 +219,7 @@ const plugins$8 = { "@eslint-react/debug": reactDebug };
|
|
|
219
219
|
//#endregion
|
|
220
220
|
//#region src/configs/disable-conflict-eslint-plugin-react.ts
|
|
221
221
|
var disable_conflict_eslint_plugin_react_exports = /* @__PURE__ */ __export({
|
|
222
|
-
name: () => name$
|
|
222
|
+
name: () => name$14,
|
|
223
223
|
rules: () => rules$17
|
|
224
224
|
});
|
|
225
225
|
const conflictingRules = [
|
|
@@ -270,34 +270,34 @@ const conflictingRules = [
|
|
|
270
270
|
"prop-types",
|
|
271
271
|
"void-dom-elements-no-children"
|
|
272
272
|
];
|
|
273
|
-
const name$
|
|
273
|
+
const name$14 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
274
274
|
const rules$17 = Object.fromEntries(conflictingRules.map((key) => [key, "off"]));
|
|
275
275
|
|
|
276
276
|
//#endregion
|
|
277
277
|
//#region src/configs/disable-debug.ts
|
|
278
278
|
var disable_debug_exports = /* @__PURE__ */ __export({
|
|
279
|
-
name: () => name$
|
|
279
|
+
name: () => name$13,
|
|
280
280
|
rules: () => rules$16
|
|
281
281
|
});
|
|
282
|
-
const name$
|
|
282
|
+
const name$13 = "@eslint-react/disable-debug";
|
|
283
283
|
const rules$16 = Object.fromEntries(Object.entries(rules$15).map(([rule]) => [rule, "off"]));
|
|
284
284
|
|
|
285
285
|
//#endregion
|
|
286
286
|
//#region src/configs/disable-dom.ts
|
|
287
287
|
var disable_dom_exports = /* @__PURE__ */ __export({
|
|
288
|
-
name: () => name$
|
|
288
|
+
name: () => name$12,
|
|
289
289
|
rules: () => rules$14
|
|
290
290
|
});
|
|
291
|
-
const name$
|
|
291
|
+
const name$12 = "@eslint-react/disable-dom";
|
|
292
292
|
const rules$14 = Object.fromEntries(Object.entries(rules$13).map(([key]) => [key, "off"]));
|
|
293
293
|
|
|
294
294
|
//#endregion
|
|
295
295
|
//#region src/configs/disable-type-checked.ts
|
|
296
296
|
var disable_type_checked_exports = /* @__PURE__ */ __export({
|
|
297
|
-
name: () => name$
|
|
297
|
+
name: () => name$11,
|
|
298
298
|
rules: () => rules$8
|
|
299
299
|
});
|
|
300
|
-
const name$
|
|
300
|
+
const name$11 = "@eslint-react/disable-type-checked";
|
|
301
301
|
const rules$8 = {
|
|
302
302
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
303
303
|
"@eslint-react/no-unused-props": "off",
|
|
@@ -306,6 +306,13 @@ const rules$8 = {
|
|
|
306
306
|
|
|
307
307
|
//#endregion
|
|
308
308
|
//#region src/configs/web-api.ts
|
|
309
|
+
var web_api_exports = /* @__PURE__ */ __export({
|
|
310
|
+
name: () => name$10,
|
|
311
|
+
plugins: () => plugins$7,
|
|
312
|
+
rules: () => rules$11,
|
|
313
|
+
settings: () => settings$6
|
|
314
|
+
});
|
|
315
|
+
const name$10 = "@eslint-react/web-api";
|
|
309
316
|
const rules$11 = {
|
|
310
317
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
311
318
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
@@ -318,20 +325,20 @@ const settings$6 = { ...settings$8 };
|
|
|
318
325
|
//#endregion
|
|
319
326
|
//#region src/configs/disable-web-api.ts
|
|
320
327
|
var disable_web_api_exports = /* @__PURE__ */ __export({
|
|
321
|
-
name: () => name$
|
|
328
|
+
name: () => name$9,
|
|
322
329
|
rules: () => rules$12
|
|
323
330
|
});
|
|
324
|
-
const name$
|
|
331
|
+
const name$9 = "@eslint-react/disable-web-api";
|
|
325
332
|
const rules$12 = Object.fromEntries(Object.entries(rules$11).map(([key]) => [key, "off"]));
|
|
326
333
|
|
|
327
334
|
//#endregion
|
|
328
335
|
//#region src/configs/no-deprecated.ts
|
|
329
336
|
var no_deprecated_exports = /* @__PURE__ */ __export({
|
|
330
|
-
name: () => name$
|
|
337
|
+
name: () => name$8,
|
|
331
338
|
plugins: () => plugins$6,
|
|
332
339
|
rules: () => rules$10
|
|
333
340
|
});
|
|
334
|
-
const name$
|
|
341
|
+
const name$8 = "@eslint-react/no-deprecated";
|
|
335
342
|
const rules$10 = {
|
|
336
343
|
"@eslint-react/no-component-will-mount": "error",
|
|
337
344
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
@@ -351,10 +358,10 @@ const plugins$6 = {
|
|
|
351
358
|
//#endregion
|
|
352
359
|
//#region src/configs/off.ts
|
|
353
360
|
var off_exports = /* @__PURE__ */ __export({
|
|
354
|
-
name: () => name$
|
|
361
|
+
name: () => name$7,
|
|
355
362
|
rules: () => rules$9
|
|
356
363
|
});
|
|
357
|
-
const name$
|
|
364
|
+
const name$7 = "@eslint-react/off";
|
|
358
365
|
const rules$9 = {
|
|
359
366
|
...Object.fromEntries(Object.entries(rules$7).map(([key]) => [key, "off"])),
|
|
360
367
|
...rules$8
|
|
@@ -363,12 +370,12 @@ const rules$9 = {
|
|
|
363
370
|
//#endregion
|
|
364
371
|
//#region src/configs/recommended.ts
|
|
365
372
|
var recommended_exports = /* @__PURE__ */ __export({
|
|
366
|
-
name: () => name$
|
|
373
|
+
name: () => name$6,
|
|
367
374
|
plugins: () => plugins$5,
|
|
368
375
|
rules: () => rules$6,
|
|
369
376
|
settings: () => settings$5
|
|
370
377
|
});
|
|
371
|
-
const name$
|
|
378
|
+
const name$6 = "@eslint-react/recommended";
|
|
372
379
|
const rules$6 = {
|
|
373
380
|
...rules$18,
|
|
374
381
|
...rules$13,
|
|
@@ -404,12 +411,12 @@ const rules$5 = {
|
|
|
404
411
|
//#endregion
|
|
405
412
|
//#region src/configs/recommended-typescript.ts
|
|
406
413
|
var recommended_typescript_exports = /* @__PURE__ */ __export({
|
|
407
|
-
name: () => name$
|
|
414
|
+
name: () => name$5,
|
|
408
415
|
plugins: () => plugins$4,
|
|
409
416
|
rules: () => rules$4,
|
|
410
417
|
settings: () => settings$4
|
|
411
418
|
});
|
|
412
|
-
const name$
|
|
419
|
+
const name$5 = "@eslint-react/recommended-typescript";
|
|
413
420
|
const rules$4 = {
|
|
414
421
|
...rules$6,
|
|
415
422
|
...rules$5
|
|
@@ -420,12 +427,12 @@ const settings$4 = { ...settings$5 };
|
|
|
420
427
|
//#endregion
|
|
421
428
|
//#region src/configs/recommended-type-checked.ts
|
|
422
429
|
var recommended_type_checked_exports = /* @__PURE__ */ __export({
|
|
423
|
-
name: () => name$
|
|
430
|
+
name: () => name$4,
|
|
424
431
|
plugins: () => plugins$3,
|
|
425
432
|
rules: () => rules$3,
|
|
426
433
|
settings: () => settings$3
|
|
427
434
|
});
|
|
428
|
-
const name$
|
|
435
|
+
const name$4 = "@eslint-react/recommended-type-checked";
|
|
429
436
|
const rules$3 = {
|
|
430
437
|
...rules$4,
|
|
431
438
|
"@eslint-react/no-leaked-conditional-rendering": "error"
|
|
@@ -435,6 +442,13 @@ const settings$3 = { ...settings$4 };
|
|
|
435
442
|
|
|
436
443
|
//#endregion
|
|
437
444
|
//#region src/configs/strict.ts
|
|
445
|
+
var strict_exports = /* @__PURE__ */ __export({
|
|
446
|
+
name: () => name$3,
|
|
447
|
+
plugins: () => plugins$2,
|
|
448
|
+
rules: () => rules$2,
|
|
449
|
+
settings: () => settings$2
|
|
450
|
+
});
|
|
451
|
+
const name$3 = "@eslint-react/strict";
|
|
438
452
|
const rules$2 = {
|
|
439
453
|
...rules$6,
|
|
440
454
|
"@eslint-react/jsx-no-iife": "error",
|
|
@@ -446,7 +460,6 @@ const rules$2 = {
|
|
|
446
460
|
"@eslint-react/no-unnecessary-use-memo": "warn",
|
|
447
461
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
448
462
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
449
|
-
"@eslint-react/no-unused-props": "warn",
|
|
450
463
|
"@eslint-react/no-unused-state": "warn",
|
|
451
464
|
"@eslint-react/no-useless-fragment": "warn",
|
|
452
465
|
"@eslint-react/prefer-destructuring-assignment": "warn",
|
|
@@ -558,8 +571,10 @@ var src_default = {
|
|
|
558
571
|
["recommended"]: recommended_exports,
|
|
559
572
|
["recommended-type-checked"]: recommended_type_checked_exports,
|
|
560
573
|
["recommended-typescript"]: recommended_typescript_exports,
|
|
574
|
+
["strict"]: strict_exports,
|
|
561
575
|
["strict-type-checked"]: strict_type_checked_exports,
|
|
562
576
|
["strict-typescript"]: strict_typescript_exports,
|
|
577
|
+
["web-api"]: web_api_exports,
|
|
563
578
|
["x"]: x_exports
|
|
564
579
|
}
|
|
565
580
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.1.1
|
|
3
|
+
"version": "2.1.1",
|
|
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,15 +42,15 @@
|
|
|
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.1.1
|
|
46
|
-
"eslint-
|
|
47
|
-
"eslint-plugin-react-
|
|
48
|
-
"@eslint-react/
|
|
49
|
-
"eslint-plugin-react-
|
|
50
|
-
"
|
|
51
|
-
"eslint-plugin-react-
|
|
52
|
-
"eslint-plugin-react-
|
|
53
|
-
"eslint-plugin-react-x": "2.1.1
|
|
45
|
+
"@eslint-react/eff": "2.1.1",
|
|
46
|
+
"@eslint-react/kit": "2.1.1",
|
|
47
|
+
"eslint-plugin-react-debug": "2.1.1",
|
|
48
|
+
"@eslint-react/shared": "2.1.1",
|
|
49
|
+
"eslint-plugin-react-hooks-extra": "2.1.1",
|
|
50
|
+
"eslint-plugin-react-dom": "2.1.1",
|
|
51
|
+
"eslint-plugin-react-web-api": "2.1.1",
|
|
52
|
+
"eslint-plugin-react-naming-convention": "2.1.1",
|
|
53
|
+
"eslint-plugin-react-x": "2.1.1"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"tsdown": "^0.15.6",
|