@eslint-react/eslint-plugin 1.12.1 → 1.12.2-beta.5
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.mts +24 -24
- package/dist/index.d.ts +24 -24
- package/dist/index.js +11 -23
- package/dist/index.mjs +11 -23
- package/package.json +14 -14
package/dist/index.d.mts
CHANGED
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
42
42
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
43
43
|
readonly "@eslint-react/no-missing-key": "error";
|
|
44
|
-
readonly "@eslint-react/no-nested-components": "
|
|
44
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
45
45
|
readonly "@eslint-react/no-prop-types": "error";
|
|
46
46
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
47
47
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -51,8 +51,8 @@ declare const _default: {
|
|
|
51
51
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
52
52
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
53
53
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
54
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
55
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
54
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
55
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
56
56
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
57
57
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
58
58
|
};
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
89
89
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
90
90
|
readonly "@eslint-react/no-missing-key": "error";
|
|
91
|
-
readonly "@eslint-react/no-nested-components": "
|
|
91
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
92
92
|
readonly "@eslint-react/no-prop-types": "error";
|
|
93
93
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
94
94
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -98,8 +98,8 @@ declare const _default: {
|
|
|
98
98
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
99
99
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
100
100
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
101
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
102
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
101
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
102
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
103
103
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
104
104
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
105
105
|
};
|
|
@@ -262,7 +262,7 @@ declare const _default: {
|
|
|
262
262
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
263
263
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
264
264
|
readonly "@eslint-react/no-missing-key": "error";
|
|
265
|
-
readonly "@eslint-react/no-nested-components": "
|
|
265
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
266
266
|
readonly "@eslint-react/no-prop-types": "error";
|
|
267
267
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
268
268
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -272,8 +272,8 @@ declare const _default: {
|
|
|
272
272
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
273
273
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
274
274
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
275
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
276
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
275
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
276
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
277
277
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
278
278
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
279
279
|
};
|
|
@@ -327,7 +327,7 @@ declare const _default: {
|
|
|
327
327
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
328
328
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
329
329
|
readonly "@eslint-react/no-missing-key": "error";
|
|
330
|
-
readonly "@eslint-react/no-nested-components": "
|
|
330
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
331
331
|
readonly "@eslint-react/no-prop-types": "error";
|
|
332
332
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
333
333
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -337,8 +337,8 @@ declare const _default: {
|
|
|
337
337
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
338
338
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
339
339
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
340
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
341
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
340
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
341
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
342
342
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
343
343
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
344
344
|
};
|
|
@@ -400,7 +400,7 @@ declare const _default: {
|
|
|
400
400
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
401
401
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
402
402
|
readonly "@eslint-react/no-missing-key": "error";
|
|
403
|
-
readonly "@eslint-react/no-nested-components": "
|
|
403
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
404
404
|
readonly "@eslint-react/no-prop-types": "error";
|
|
405
405
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
406
406
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -410,8 +410,8 @@ declare const _default: {
|
|
|
410
410
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
411
411
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
412
412
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
413
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
414
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
413
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
414
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
415
415
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
416
416
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
417
417
|
};
|
|
@@ -466,7 +466,7 @@ declare const _default: {
|
|
|
466
466
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
467
467
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
468
468
|
readonly "@eslint-react/no-missing-key": "error";
|
|
469
|
-
readonly "@eslint-react/no-nested-components": "
|
|
469
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
470
470
|
readonly "@eslint-react/no-prop-types": "error";
|
|
471
471
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
472
472
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -476,8 +476,8 @@ declare const _default: {
|
|
|
476
476
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
477
477
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
478
478
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
479
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
480
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
479
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
480
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
481
481
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
482
482
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
483
483
|
};
|
|
@@ -668,7 +668,7 @@ declare const _default: {
|
|
|
668
668
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
669
669
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
670
670
|
readonly "@eslint-react/no-missing-key": "error";
|
|
671
|
-
readonly "@eslint-react/no-nested-components": "
|
|
671
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
672
672
|
readonly "@eslint-react/no-prop-types": "error";
|
|
673
673
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
674
674
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -678,8 +678,8 @@ declare const _default: {
|
|
|
678
678
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
679
679
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
680
680
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
681
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
682
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
681
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
682
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
683
683
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
684
684
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
685
685
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
@@ -750,7 +750,7 @@ declare const _default: {
|
|
|
750
750
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
751
751
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
752
752
|
readonly "@eslint-react/no-missing-key": "error";
|
|
753
|
-
readonly "@eslint-react/no-nested-components": "
|
|
753
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
754
754
|
readonly "@eslint-react/no-prop-types": "error";
|
|
755
755
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
756
756
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -760,8 +760,8 @@ declare const _default: {
|
|
|
760
760
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
761
761
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
762
762
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
763
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
764
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
763
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
764
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
765
765
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
766
766
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
767
767
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
package/dist/index.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ declare const _default: {
|
|
|
41
41
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
42
42
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
43
43
|
readonly "@eslint-react/no-missing-key": "error";
|
|
44
|
-
readonly "@eslint-react/no-nested-components": "
|
|
44
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
45
45
|
readonly "@eslint-react/no-prop-types": "error";
|
|
46
46
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
47
47
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -51,8 +51,8 @@ declare const _default: {
|
|
|
51
51
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
52
52
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
53
53
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
54
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
55
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
54
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
55
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
56
56
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
57
57
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
58
58
|
};
|
|
@@ -88,7 +88,7 @@ declare const _default: {
|
|
|
88
88
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
89
89
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
90
90
|
readonly "@eslint-react/no-missing-key": "error";
|
|
91
|
-
readonly "@eslint-react/no-nested-components": "
|
|
91
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
92
92
|
readonly "@eslint-react/no-prop-types": "error";
|
|
93
93
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
94
94
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -98,8 +98,8 @@ declare const _default: {
|
|
|
98
98
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
99
99
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
100
100
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
101
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
102
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
101
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
102
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
103
103
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
104
104
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
105
105
|
};
|
|
@@ -262,7 +262,7 @@ declare const _default: {
|
|
|
262
262
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
263
263
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
264
264
|
readonly "@eslint-react/no-missing-key": "error";
|
|
265
|
-
readonly "@eslint-react/no-nested-components": "
|
|
265
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
266
266
|
readonly "@eslint-react/no-prop-types": "error";
|
|
267
267
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
268
268
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -272,8 +272,8 @@ declare const _default: {
|
|
|
272
272
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
273
273
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
274
274
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
275
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
276
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
275
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
276
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
277
277
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
278
278
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
279
279
|
};
|
|
@@ -327,7 +327,7 @@ declare const _default: {
|
|
|
327
327
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
328
328
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
329
329
|
readonly "@eslint-react/no-missing-key": "error";
|
|
330
|
-
readonly "@eslint-react/no-nested-components": "
|
|
330
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
331
331
|
readonly "@eslint-react/no-prop-types": "error";
|
|
332
332
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
333
333
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -337,8 +337,8 @@ declare const _default: {
|
|
|
337
337
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
338
338
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
339
339
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
340
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
341
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
340
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
341
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
342
342
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
343
343
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
344
344
|
};
|
|
@@ -400,7 +400,7 @@ declare const _default: {
|
|
|
400
400
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
401
401
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
402
402
|
readonly "@eslint-react/no-missing-key": "error";
|
|
403
|
-
readonly "@eslint-react/no-nested-components": "
|
|
403
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
404
404
|
readonly "@eslint-react/no-prop-types": "error";
|
|
405
405
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
406
406
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -410,8 +410,8 @@ declare const _default: {
|
|
|
410
410
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
411
411
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
412
412
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
413
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
414
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
413
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
414
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
415
415
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
416
416
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
417
417
|
};
|
|
@@ -466,7 +466,7 @@ declare const _default: {
|
|
|
466
466
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
467
467
|
readonly "@eslint-react/no-duplicate-key": "error";
|
|
468
468
|
readonly "@eslint-react/no-missing-key": "error";
|
|
469
|
-
readonly "@eslint-react/no-nested-components": "
|
|
469
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
470
470
|
readonly "@eslint-react/no-prop-types": "error";
|
|
471
471
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
472
472
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -476,8 +476,8 @@ declare const _default: {
|
|
|
476
476
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
477
477
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
478
478
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
479
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
480
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
479
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
480
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
481
481
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
482
482
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
483
483
|
};
|
|
@@ -668,7 +668,7 @@ declare const _default: {
|
|
|
668
668
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
669
669
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
670
670
|
readonly "@eslint-react/no-missing-key": "error";
|
|
671
|
-
readonly "@eslint-react/no-nested-components": "
|
|
671
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
672
672
|
readonly "@eslint-react/no-prop-types": "error";
|
|
673
673
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
674
674
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -678,8 +678,8 @@ declare const _default: {
|
|
|
678
678
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
679
679
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
680
680
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
681
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
682
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
681
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
682
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
683
683
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
684
684
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
685
685
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
|
@@ -750,7 +750,7 @@ declare const _default: {
|
|
|
750
750
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
751
751
|
readonly "@eslint-react/no-missing-component-display-name": "warn";
|
|
752
752
|
readonly "@eslint-react/no-missing-key": "error";
|
|
753
|
-
readonly "@eslint-react/no-nested-components": "
|
|
753
|
+
readonly "@eslint-react/no-nested-components": "error";
|
|
754
754
|
readonly "@eslint-react/no-prop-types": "error";
|
|
755
755
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
756
756
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -760,8 +760,8 @@ declare const _default: {
|
|
|
760
760
|
readonly "@eslint-react/no-unsafe-component-will-mount": "warn";
|
|
761
761
|
readonly "@eslint-react/no-unsafe-component-will-receive-props": "warn";
|
|
762
762
|
readonly "@eslint-react/no-unsafe-component-will-update": "warn";
|
|
763
|
-
readonly "@eslint-react/no-unstable-context-value": "
|
|
764
|
-
readonly "@eslint-react/no-unstable-default-props": "
|
|
763
|
+
readonly "@eslint-react/no-unstable-context-value": "warn";
|
|
764
|
+
readonly "@eslint-react/no-unstable-default-props": "warn";
|
|
765
765
|
readonly "@eslint-react/no-unused-class-component-members": "warn";
|
|
766
766
|
readonly "@eslint-react/no-unused-state": "warn";
|
|
767
767
|
readonly "@eslint-react/no-useless-fragment": "warn";
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var shared = require('@eslint-react/shared');
|
|
4
3
|
var tools = require('@eslint-react/tools');
|
|
5
4
|
var reactDebug = require('eslint-plugin-react-debug');
|
|
6
5
|
var reactDom = require('eslint-plugin-react-dom');
|
|
@@ -38,7 +37,7 @@ var react__namespace = /*#__PURE__*/_interopNamespace(react);
|
|
|
38
37
|
|
|
39
38
|
// package.json
|
|
40
39
|
var name = "@eslint-react/eslint-plugin";
|
|
41
|
-
var version = "1.12.
|
|
40
|
+
var version = "1.12.2-beta.5";
|
|
42
41
|
function transformKeys(obj, transform) {
|
|
43
42
|
if (tools.typeOf(obj) !== "object") return obj;
|
|
44
43
|
const res = {};
|
|
@@ -82,7 +81,7 @@ var allPreset = {
|
|
|
82
81
|
// "no-leaked-conditional-rendering": "warn", // This rule requires type information
|
|
83
82
|
"no-missing-component-display-name": "warn",
|
|
84
83
|
"no-missing-key": "error",
|
|
85
|
-
"no-nested-components": "
|
|
84
|
+
"no-nested-components": "error",
|
|
86
85
|
"no-prop-types": "error",
|
|
87
86
|
"no-redundant-should-component-update": "error",
|
|
88
87
|
"no-set-state-in-component-did-mount": "warn",
|
|
@@ -92,8 +91,8 @@ var allPreset = {
|
|
|
92
91
|
"no-unsafe-component-will-mount": "warn",
|
|
93
92
|
"no-unsafe-component-will-receive-props": "warn",
|
|
94
93
|
"no-unsafe-component-will-update": "warn",
|
|
95
|
-
"no-unstable-context-value": "
|
|
96
|
-
"no-unstable-default-props": "
|
|
94
|
+
"no-unstable-context-value": "warn",
|
|
95
|
+
"no-unstable-default-props": "warn",
|
|
97
96
|
"no-unused-class-component-members": "warn",
|
|
98
97
|
"no-unused-state": "warn",
|
|
99
98
|
"no-useless-fragment": "warn",
|
|
@@ -156,7 +155,7 @@ var corePreset = {
|
|
|
156
155
|
// "no-leaked-conditional-rendering": "warn",
|
|
157
156
|
// "no-missing-component-display-name": "warn",
|
|
158
157
|
"no-missing-key": "error",
|
|
159
|
-
"no-nested-components": "
|
|
158
|
+
"no-nested-components": "error",
|
|
160
159
|
"no-prop-types": "error",
|
|
161
160
|
"no-redundant-should-component-update": "error",
|
|
162
161
|
"no-set-state-in-component-did-mount": "warn",
|
|
@@ -166,8 +165,8 @@ var corePreset = {
|
|
|
166
165
|
"no-unsafe-component-will-mount": "warn",
|
|
167
166
|
"no-unsafe-component-will-receive-props": "warn",
|
|
168
167
|
"no-unsafe-component-will-update": "warn",
|
|
169
|
-
"no-unstable-context-value": "
|
|
170
|
-
"no-unstable-default-props": "
|
|
168
|
+
"no-unstable-context-value": "warn",
|
|
169
|
+
"no-unstable-default-props": "warn",
|
|
171
170
|
"no-unused-class-component-members": "warn",
|
|
172
171
|
"no-unused-state": "warn"
|
|
173
172
|
// "no-useless-fragment": "warn",
|
|
@@ -227,22 +226,11 @@ var offPreset = {
|
|
|
227
226
|
...disableTypeCheckedPreset
|
|
228
227
|
};
|
|
229
228
|
var corePresetSettings = {
|
|
230
|
-
...
|
|
229
|
+
...react__namespace.DEFAULT_ESLINT_REACT_SETTINGS
|
|
231
230
|
};
|
|
232
231
|
var domPresetSettings = {
|
|
233
232
|
...corePresetSettings,
|
|
234
|
-
|
|
235
|
-
{
|
|
236
|
-
name: "Link",
|
|
237
|
-
as: "a",
|
|
238
|
-
attributes: [
|
|
239
|
-
{
|
|
240
|
-
name: "to",
|
|
241
|
-
as: "href"
|
|
242
|
-
}
|
|
243
|
-
]
|
|
244
|
-
}
|
|
245
|
-
]
|
|
233
|
+
...reactDom__namespace.DEFAULT_ESLINT_REACT_SETTINGS
|
|
246
234
|
};
|
|
247
235
|
var legacyConfigPlugins = ["@eslint-react"];
|
|
248
236
|
var flatConfigPlugins = {
|
|
@@ -253,7 +241,7 @@ var flatConfigPlugins = {
|
|
|
253
241
|
"@eslint-react/naming-convention": reactNamingConvention__namespace,
|
|
254
242
|
"@eslint-react/web-api": reactWebApi__namespace
|
|
255
243
|
};
|
|
256
|
-
function createLegacyConfig(rules7, settings =
|
|
244
|
+
function createLegacyConfig(rules7, settings = react__namespace.DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
257
245
|
return {
|
|
258
246
|
plugins: legacyConfigPlugins,
|
|
259
247
|
rules: padKeysLeft(rules7, "@eslint-react/"),
|
|
@@ -262,7 +250,7 @@ function createLegacyConfig(rules7, settings = shared.DEFAULT_ESLINT_REACT_SETTI
|
|
|
262
250
|
}
|
|
263
251
|
};
|
|
264
252
|
}
|
|
265
|
-
function createFlatConfig(rules7, settings =
|
|
253
|
+
function createFlatConfig(rules7, settings = react__namespace.DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
266
254
|
return {
|
|
267
255
|
plugins: flatConfigPlugins,
|
|
268
256
|
rules: padKeysLeft(rules7, "@eslint-react/"),
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
2
1
|
import { fromEntries, entries, typeOf } from '@eslint-react/tools';
|
|
3
2
|
import * as reactDebug from 'eslint-plugin-react-debug';
|
|
4
3
|
import * as reactDom from 'eslint-plugin-react-dom';
|
|
@@ -11,7 +10,7 @@ import * as react from 'eslint-plugin-react-x';
|
|
|
11
10
|
|
|
12
11
|
// package.json
|
|
13
12
|
var name = "@eslint-react/eslint-plugin";
|
|
14
|
-
var version = "1.12.
|
|
13
|
+
var version = "1.12.2-beta.5";
|
|
15
14
|
function transformKeys(obj, transform) {
|
|
16
15
|
if (typeOf(obj) !== "object") return obj;
|
|
17
16
|
const res = {};
|
|
@@ -55,7 +54,7 @@ var allPreset = {
|
|
|
55
54
|
// "no-leaked-conditional-rendering": "warn", // This rule requires type information
|
|
56
55
|
"no-missing-component-display-name": "warn",
|
|
57
56
|
"no-missing-key": "error",
|
|
58
|
-
"no-nested-components": "
|
|
57
|
+
"no-nested-components": "error",
|
|
59
58
|
"no-prop-types": "error",
|
|
60
59
|
"no-redundant-should-component-update": "error",
|
|
61
60
|
"no-set-state-in-component-did-mount": "warn",
|
|
@@ -65,8 +64,8 @@ var allPreset = {
|
|
|
65
64
|
"no-unsafe-component-will-mount": "warn",
|
|
66
65
|
"no-unsafe-component-will-receive-props": "warn",
|
|
67
66
|
"no-unsafe-component-will-update": "warn",
|
|
68
|
-
"no-unstable-context-value": "
|
|
69
|
-
"no-unstable-default-props": "
|
|
67
|
+
"no-unstable-context-value": "warn",
|
|
68
|
+
"no-unstable-default-props": "warn",
|
|
70
69
|
"no-unused-class-component-members": "warn",
|
|
71
70
|
"no-unused-state": "warn",
|
|
72
71
|
"no-useless-fragment": "warn",
|
|
@@ -129,7 +128,7 @@ var corePreset = {
|
|
|
129
128
|
// "no-leaked-conditional-rendering": "warn",
|
|
130
129
|
// "no-missing-component-display-name": "warn",
|
|
131
130
|
"no-missing-key": "error",
|
|
132
|
-
"no-nested-components": "
|
|
131
|
+
"no-nested-components": "error",
|
|
133
132
|
"no-prop-types": "error",
|
|
134
133
|
"no-redundant-should-component-update": "error",
|
|
135
134
|
"no-set-state-in-component-did-mount": "warn",
|
|
@@ -139,8 +138,8 @@ var corePreset = {
|
|
|
139
138
|
"no-unsafe-component-will-mount": "warn",
|
|
140
139
|
"no-unsafe-component-will-receive-props": "warn",
|
|
141
140
|
"no-unsafe-component-will-update": "warn",
|
|
142
|
-
"no-unstable-context-value": "
|
|
143
|
-
"no-unstable-default-props": "
|
|
141
|
+
"no-unstable-context-value": "warn",
|
|
142
|
+
"no-unstable-default-props": "warn",
|
|
144
143
|
"no-unused-class-component-members": "warn",
|
|
145
144
|
"no-unused-state": "warn"
|
|
146
145
|
// "no-useless-fragment": "warn",
|
|
@@ -200,22 +199,11 @@ var offPreset = {
|
|
|
200
199
|
...disableTypeCheckedPreset
|
|
201
200
|
};
|
|
202
201
|
var corePresetSettings = {
|
|
203
|
-
...DEFAULT_ESLINT_REACT_SETTINGS
|
|
202
|
+
...react.DEFAULT_ESLINT_REACT_SETTINGS
|
|
204
203
|
};
|
|
205
204
|
var domPresetSettings = {
|
|
206
205
|
...corePresetSettings,
|
|
207
|
-
|
|
208
|
-
{
|
|
209
|
-
name: "Link",
|
|
210
|
-
as: "a",
|
|
211
|
-
attributes: [
|
|
212
|
-
{
|
|
213
|
-
name: "to",
|
|
214
|
-
as: "href"
|
|
215
|
-
}
|
|
216
|
-
]
|
|
217
|
-
}
|
|
218
|
-
]
|
|
206
|
+
...reactDom.DEFAULT_ESLINT_REACT_SETTINGS
|
|
219
207
|
};
|
|
220
208
|
var legacyConfigPlugins = ["@eslint-react"];
|
|
221
209
|
var flatConfigPlugins = {
|
|
@@ -226,7 +214,7 @@ var flatConfigPlugins = {
|
|
|
226
214
|
"@eslint-react/naming-convention": reactNamingConvention,
|
|
227
215
|
"@eslint-react/web-api": reactWebApi
|
|
228
216
|
};
|
|
229
|
-
function createLegacyConfig(rules7, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
217
|
+
function createLegacyConfig(rules7, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
230
218
|
return {
|
|
231
219
|
plugins: legacyConfigPlugins,
|
|
232
220
|
rules: padKeysLeft(rules7, "@eslint-react/"),
|
|
@@ -235,7 +223,7 @@ function createLegacyConfig(rules7, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
|
235
223
|
}
|
|
236
224
|
};
|
|
237
225
|
}
|
|
238
|
-
function createFlatConfig(rules7, settings = DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
226
|
+
function createFlatConfig(rules7, settings = react.DEFAULT_ESLINT_REACT_SETTINGS) {
|
|
239
227
|
return {
|
|
240
228
|
plugins: flatConfigPlugins,
|
|
241
229
|
rules: padKeysLeft(rules7, "@eslint-react/"),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.2-beta.5",
|
|
4
4
|
"description": "The main ESLint plugin of ESLint React. Contains all the rules and presets of ESLint React.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -43,19 +43,19 @@
|
|
|
43
43
|
"./package.json"
|
|
44
44
|
],
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
47
|
-
"@typescript-eslint/type-utils": "^8.
|
|
48
|
-
"@typescript-eslint/types": "^8.
|
|
49
|
-
"@typescript-eslint/utils": "^8.
|
|
50
|
-
"@eslint-react/
|
|
51
|
-
"@eslint-react/
|
|
52
|
-
"eslint-
|
|
53
|
-
"
|
|
54
|
-
"eslint-plugin-react-
|
|
55
|
-
"eslint-plugin-react-
|
|
56
|
-
"eslint-plugin-react-
|
|
57
|
-
"eslint-plugin-react-
|
|
58
|
-
"eslint-plugin-react-
|
|
46
|
+
"@typescript-eslint/scope-manager": "^8.3.0",
|
|
47
|
+
"@typescript-eslint/type-utils": "^8.3.0",
|
|
48
|
+
"@typescript-eslint/types": "^8.3.0",
|
|
49
|
+
"@typescript-eslint/utils": "^8.3.0",
|
|
50
|
+
"@eslint-react/shared": "1.12.2-beta.5",
|
|
51
|
+
"@eslint-react/tools": "1.12.2-beta.5",
|
|
52
|
+
"@eslint-react/types": "1.12.2-beta.5",
|
|
53
|
+
"eslint-plugin-react-hooks-extra": "1.12.2-beta.5",
|
|
54
|
+
"eslint-plugin-react-debug": "1.12.2-beta.5",
|
|
55
|
+
"eslint-plugin-react-dom": "1.12.2-beta.5",
|
|
56
|
+
"eslint-plugin-react-naming-convention": "1.12.2-beta.5",
|
|
57
|
+
"eslint-plugin-react-web-api": "1.12.2-beta.5",
|
|
58
|
+
"eslint-plugin-react-x": "1.12.2-beta.5"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"tsup": "^8.2.4"
|