@eslint-react/eslint-plugin 2.0.0-beta.4 → 2.0.0-beta.40
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 +4 -6
- package/dist/index.d.ts +254 -18
- package/dist/index.js +120 -49
- package/package.json +15 -16
package/README.md
CHANGED
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
|
|
31
31
|
## Features
|
|
32
32
|
|
|
33
|
-
- **Modern**: First-class support for TypeScript
|
|
34
|
-
- **Flexible**: Fully customizable rule severity levels, allowing you to enforce or relax rules as needed.
|
|
33
|
+
- **Modern**: First-class support for **TypeScript**, **React 19**, and more.
|
|
34
|
+
- **Flexible**: Fully customizable rule severity levels, allowing you to **enforce** or **relax** rules as needed.
|
|
35
35
|
- **Performant**: Built with performance in mind, optimized for large codebases, [**4-7x faster**](https://github.com/Rel1cx/eslint-react-benchmark) than other ESLint plugins.
|
|
36
|
-
- **Context-aware Linting**: Rules that understand the context of your code and project configuration to provide more accurate linting.
|
|
36
|
+
- **Context-aware Linting**: Rules that understand the context of your code and [project configuration](https://eslint-react.xyz/docs/configuration/configure-project-config) to provide more **accurate** linting.
|
|
37
37
|
|
|
38
38
|
## Public Packages
|
|
39
39
|
|
|
@@ -70,8 +70,8 @@ npm install --save-dev typescript-eslint @eslint-react/eslint-plugin
|
|
|
70
70
|
// eslint.config.js
|
|
71
71
|
|
|
72
72
|
// @ts-check
|
|
73
|
-
import eslintJs from "@eslint/js";
|
|
74
73
|
import eslintReact from "@eslint-react/eslint-plugin";
|
|
74
|
+
import eslintJs from "@eslint/js";
|
|
75
75
|
import tseslint from "typescript-eslint";
|
|
76
76
|
|
|
77
77
|
export default tseslint.config({
|
|
@@ -107,8 +107,6 @@ export default tseslint.config({
|
|
|
107
107
|
|
|
108
108
|
[Full Installation Guide ↗](https://eslint-react.xyz/docs/getting-started/typescript)
|
|
109
109
|
|
|
110
|
-
</details>
|
|
111
|
-
|
|
112
110
|
## Presets
|
|
113
111
|
|
|
114
112
|
### Bare Bones
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@ import * as _typescript_eslint_utils_ts_eslint from '@typescript-eslint/utils/ts
|
|
|
2
2
|
import * as _eslint_react_kit from '@eslint-react/kit';
|
|
3
3
|
import { RulePreset } from '@eslint-react/kit';
|
|
4
4
|
|
|
5
|
-
declare const name$
|
|
6
|
-
declare const rules$
|
|
5
|
+
declare const name$c = "@eslint-react/all";
|
|
6
|
+
declare const rules$c: {
|
|
7
7
|
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
8
8
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
9
9
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
@@ -286,6 +286,7 @@ declare const plugins$6: {
|
|
|
286
286
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
287
287
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
288
288
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
289
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
289
290
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
290
291
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
291
292
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -318,6 +319,7 @@ declare const plugins$6: {
|
|
|
318
319
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
319
320
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
320
321
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
322
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
321
323
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
322
324
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
323
325
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -362,6 +364,15 @@ declare const plugins$6: {
|
|
|
362
364
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
363
365
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
364
366
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
367
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
368
|
+
forbid: (string | {
|
|
369
|
+
excludedNodes?: string[];
|
|
370
|
+
prop: string;
|
|
371
|
+
} | {
|
|
372
|
+
includedNodes?: string[];
|
|
373
|
+
prop: string;
|
|
374
|
+
})[];
|
|
375
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
365
376
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
366
377
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
367
378
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -386,6 +397,7 @@ declare const plugins$6: {
|
|
|
386
397
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
387
398
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
388
399
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
400
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
389
401
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
390
402
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
391
403
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -448,6 +460,15 @@ declare const plugins$6: {
|
|
|
448
460
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
449
461
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
450
462
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
463
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
464
|
+
forbid: (string | {
|
|
465
|
+
excludedNodes?: string[];
|
|
466
|
+
prop: string;
|
|
467
|
+
} | {
|
|
468
|
+
includedNodes?: string[];
|
|
469
|
+
prop: string;
|
|
470
|
+
})[];
|
|
471
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
451
472
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
452
473
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
453
474
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -472,6 +493,7 @@ declare const plugins$6: {
|
|
|
472
493
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
473
494
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
474
495
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
496
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
475
497
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
476
498
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
477
499
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -534,6 +556,15 @@ declare const plugins$6: {
|
|
|
534
556
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
535
557
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
536
558
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
559
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
560
|
+
forbid: (string | {
|
|
561
|
+
excludedNodes?: string[];
|
|
562
|
+
prop: string;
|
|
563
|
+
} | {
|
|
564
|
+
includedNodes?: string[];
|
|
565
|
+
prop: string;
|
|
566
|
+
})[];
|
|
567
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
537
568
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
538
569
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
539
570
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -558,6 +589,7 @@ declare const plugins$6: {
|
|
|
558
589
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
559
590
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
560
591
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
592
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
561
593
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
562
594
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
563
595
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -618,6 +650,15 @@ declare const plugins$6: {
|
|
|
618
650
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
619
651
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
620
652
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
653
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
654
|
+
forbid: (string | {
|
|
655
|
+
excludedNodes?: string[];
|
|
656
|
+
prop: string;
|
|
657
|
+
} | {
|
|
658
|
+
includedNodes?: string[];
|
|
659
|
+
prop: string;
|
|
660
|
+
})[];
|
|
661
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
621
662
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
622
663
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
623
664
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -642,6 +683,7 @@ declare const plugins$6: {
|
|
|
642
683
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
643
684
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
644
685
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
686
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
645
687
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
646
688
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
647
689
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -678,11 +720,11 @@ declare const settings$5: {
|
|
|
678
720
|
};
|
|
679
721
|
|
|
680
722
|
declare namespace allConfig {
|
|
681
|
-
export { name$
|
|
723
|
+
export { name$c as name, plugins$6 as plugins, rules$c as rules, settings$5 as settings };
|
|
682
724
|
}
|
|
683
725
|
|
|
684
|
-
declare const name$
|
|
685
|
-
declare const rules$
|
|
726
|
+
declare const name$b = "@eslint-react/debug";
|
|
727
|
+
declare const rules$b: {
|
|
686
728
|
readonly "@eslint-react/debug/class-component": "warn";
|
|
687
729
|
readonly "@eslint-react/debug/function-component": "warn";
|
|
688
730
|
readonly "@eslint-react/debug/hook": "warn";
|
|
@@ -731,7 +773,14 @@ declare const plugins$5: {
|
|
|
731
773
|
};
|
|
732
774
|
|
|
733
775
|
declare namespace debugConfig {
|
|
734
|
-
export { name$
|
|
776
|
+
export { name$b as name, plugins$5 as plugins, rules$b as rules };
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
declare const name$a = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
780
|
+
declare const rules$a: RulePreset;
|
|
781
|
+
|
|
782
|
+
declare namespace disableConflictEslintPluginReact {
|
|
783
|
+
export { name$a as name, rules$a as rules };
|
|
735
784
|
}
|
|
736
785
|
|
|
737
786
|
declare const name$9 = "@eslint-react/disable-debug";
|
|
@@ -802,6 +851,7 @@ declare const plugins$4: {
|
|
|
802
851
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
803
852
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
804
853
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
854
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
805
855
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
806
856
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
807
857
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -834,6 +884,7 @@ declare const plugins$4: {
|
|
|
834
884
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
835
885
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
836
886
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
887
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
837
888
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
838
889
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
839
890
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -890,7 +941,6 @@ declare const rules$3: {
|
|
|
890
941
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
891
942
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
892
943
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
893
|
-
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
894
944
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
895
945
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
896
946
|
readonly "@eslint-react/jsx-uses-react": "warn";
|
|
@@ -903,6 +953,7 @@ declare const rules$3: {
|
|
|
903
953
|
readonly "@eslint-react/no-children-only": "warn";
|
|
904
954
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
905
955
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
956
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
906
957
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
907
958
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
908
959
|
readonly "@eslint-react/no-component-will-update": "error";
|
|
@@ -910,12 +961,12 @@ declare const rules$3: {
|
|
|
910
961
|
readonly "@eslint-react/no-create-ref": "error";
|
|
911
962
|
readonly "@eslint-react/no-default-props": "error";
|
|
912
963
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
913
|
-
readonly "@eslint-react/no-duplicate-key": "
|
|
964
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
914
965
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
915
966
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
916
967
|
readonly "@eslint-react/no-missing-key": "error";
|
|
917
968
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
918
|
-
readonly "@eslint-react/no-nested-lazy-component-declarations": "
|
|
969
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
919
970
|
readonly "@eslint-react/no-prop-types": "error";
|
|
920
971
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
921
972
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -1130,6 +1181,7 @@ declare const plugins$3: {
|
|
|
1130
1181
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1131
1182
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1132
1183
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1184
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1133
1185
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1134
1186
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1135
1187
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1162,6 +1214,7 @@ declare const plugins$3: {
|
|
|
1162
1214
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1163
1215
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1164
1216
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1217
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1165
1218
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1166
1219
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1167
1220
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1206,6 +1259,15 @@ declare const plugins$3: {
|
|
|
1206
1259
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1207
1260
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1208
1261
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1262
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
1263
|
+
forbid: (string | {
|
|
1264
|
+
excludedNodes?: string[];
|
|
1265
|
+
prop: string;
|
|
1266
|
+
} | {
|
|
1267
|
+
includedNodes?: string[];
|
|
1268
|
+
prop: string;
|
|
1269
|
+
})[];
|
|
1270
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1209
1271
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1210
1272
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1211
1273
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1230,6 +1292,7 @@ declare const plugins$3: {
|
|
|
1230
1292
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1231
1293
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1232
1294
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1295
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1233
1296
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1234
1297
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1235
1298
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1292,6 +1355,15 @@ declare const plugins$3: {
|
|
|
1292
1355
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1293
1356
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1294
1357
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1358
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
1359
|
+
forbid: (string | {
|
|
1360
|
+
excludedNodes?: string[];
|
|
1361
|
+
prop: string;
|
|
1362
|
+
} | {
|
|
1363
|
+
includedNodes?: string[];
|
|
1364
|
+
prop: string;
|
|
1365
|
+
})[];
|
|
1366
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1295
1367
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1296
1368
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1297
1369
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1316,6 +1388,7 @@ declare const plugins$3: {
|
|
|
1316
1388
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1317
1389
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1318
1390
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1391
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1319
1392
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1320
1393
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1321
1394
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1378,6 +1451,15 @@ declare const plugins$3: {
|
|
|
1378
1451
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1379
1452
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1380
1453
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1454
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
1455
|
+
forbid: (string | {
|
|
1456
|
+
excludedNodes?: string[];
|
|
1457
|
+
prop: string;
|
|
1458
|
+
} | {
|
|
1459
|
+
includedNodes?: string[];
|
|
1460
|
+
prop: string;
|
|
1461
|
+
})[];
|
|
1462
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1381
1463
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1382
1464
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1383
1465
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1402,6 +1484,7 @@ declare const plugins$3: {
|
|
|
1402
1484
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1403
1485
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1404
1486
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1487
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1405
1488
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1406
1489
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1407
1490
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1462,6 +1545,15 @@ declare const plugins$3: {
|
|
|
1462
1545
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1463
1546
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1464
1547
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1548
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
1549
|
+
forbid: (string | {
|
|
1550
|
+
excludedNodes?: string[];
|
|
1551
|
+
prop: string;
|
|
1552
|
+
} | {
|
|
1553
|
+
includedNodes?: string[];
|
|
1554
|
+
prop: string;
|
|
1555
|
+
})[];
|
|
1556
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1465
1557
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1466
1558
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1467
1559
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1486,6 +1578,7 @@ declare const plugins$3: {
|
|
|
1486
1578
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1487
1579
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1488
1580
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1581
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1489
1582
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1490
1583
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1491
1584
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1528,6 +1621,8 @@ declare namespace recommendedConfig {
|
|
|
1528
1621
|
declare const name$2 = "@eslint-react/recommended-type-checked";
|
|
1529
1622
|
declare const rules$2: {
|
|
1530
1623
|
readonly "@eslint-react/no-leaked-conditional-rendering": "warn";
|
|
1624
|
+
readonly "@eslint-react/no-unused-props": "warn";
|
|
1625
|
+
readonly "@eslint-react/dom/no-string-style-prop": "off";
|
|
1531
1626
|
readonly "@eslint-react/dom/no-unknown-property": "off";
|
|
1532
1627
|
readonly "@eslint-react/jsx-no-duplicate-props": "off";
|
|
1533
1628
|
readonly "@eslint-react/jsx-uses-react": "off";
|
|
@@ -1552,7 +1647,6 @@ declare const rules$2: {
|
|
|
1552
1647
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
1553
1648
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
1554
1649
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
1555
|
-
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
1556
1650
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
1557
1651
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
1558
1652
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -1562,6 +1656,7 @@ declare const rules$2: {
|
|
|
1562
1656
|
readonly "@eslint-react/no-children-only": "warn";
|
|
1563
1657
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
1564
1658
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
1659
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
1565
1660
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
1566
1661
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
1567
1662
|
readonly "@eslint-react/no-component-will-update": "error";
|
|
@@ -1569,12 +1664,12 @@ declare const rules$2: {
|
|
|
1569
1664
|
readonly "@eslint-react/no-create-ref": "error";
|
|
1570
1665
|
readonly "@eslint-react/no-default-props": "error";
|
|
1571
1666
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
1572
|
-
readonly "@eslint-react/no-duplicate-key": "
|
|
1667
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
1573
1668
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
1574
1669
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
1575
1670
|
readonly "@eslint-react/no-missing-key": "error";
|
|
1576
1671
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
1577
|
-
readonly "@eslint-react/no-nested-lazy-component-declarations": "
|
|
1672
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
1578
1673
|
readonly "@eslint-react/no-prop-types": "error";
|
|
1579
1674
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
1580
1675
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -1789,6 +1884,7 @@ declare const plugins$2: {
|
|
|
1789
1884
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1790
1885
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1791
1886
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1887
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1792
1888
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1793
1889
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1794
1890
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1821,6 +1917,7 @@ declare const plugins$2: {
|
|
|
1821
1917
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1822
1918
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1823
1919
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1920
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1824
1921
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1825
1922
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1826
1923
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1865,6 +1962,15 @@ declare const plugins$2: {
|
|
|
1865
1962
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1866
1963
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1867
1964
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1965
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
1966
|
+
forbid: (string | {
|
|
1967
|
+
excludedNodes?: string[];
|
|
1968
|
+
prop: string;
|
|
1969
|
+
} | {
|
|
1970
|
+
includedNodes?: string[];
|
|
1971
|
+
prop: string;
|
|
1972
|
+
})[];
|
|
1973
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1868
1974
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1869
1975
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1870
1976
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1889,6 +1995,7 @@ declare const plugins$2: {
|
|
|
1889
1995
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1890
1996
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1891
1997
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1998
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1892
1999
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1893
2000
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1894
2001
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1951,6 +2058,15 @@ declare const plugins$2: {
|
|
|
1951
2058
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1952
2059
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1953
2060
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2061
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2062
|
+
forbid: (string | {
|
|
2063
|
+
excludedNodes?: string[];
|
|
2064
|
+
prop: string;
|
|
2065
|
+
} | {
|
|
2066
|
+
includedNodes?: string[];
|
|
2067
|
+
prop: string;
|
|
2068
|
+
})[];
|
|
2069
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1954
2070
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1955
2071
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1956
2072
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -1975,6 +2091,7 @@ declare const plugins$2: {
|
|
|
1975
2091
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1976
2092
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1977
2093
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2094
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1978
2095
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1979
2096
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
1980
2097
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2037,6 +2154,15 @@ declare const plugins$2: {
|
|
|
2037
2154
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2038
2155
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2039
2156
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2157
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2158
|
+
forbid: (string | {
|
|
2159
|
+
excludedNodes?: string[];
|
|
2160
|
+
prop: string;
|
|
2161
|
+
} | {
|
|
2162
|
+
includedNodes?: string[];
|
|
2163
|
+
prop: string;
|
|
2164
|
+
})[];
|
|
2165
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2040
2166
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2041
2167
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2042
2168
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2061,6 +2187,7 @@ declare const plugins$2: {
|
|
|
2061
2187
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2062
2188
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2063
2189
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2190
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2064
2191
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2065
2192
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2066
2193
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2121,6 +2248,15 @@ declare const plugins$2: {
|
|
|
2121
2248
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2122
2249
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2123
2250
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2251
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2252
|
+
forbid: (string | {
|
|
2253
|
+
excludedNodes?: string[];
|
|
2254
|
+
prop: string;
|
|
2255
|
+
} | {
|
|
2256
|
+
includedNodes?: string[];
|
|
2257
|
+
prop: string;
|
|
2258
|
+
})[];
|
|
2259
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2124
2260
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2125
2261
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2126
2262
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2145,6 +2281,7 @@ declare const plugins$2: {
|
|
|
2145
2281
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2146
2282
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2147
2283
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2284
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2148
2285
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2149
2286
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2150
2287
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2186,6 +2323,7 @@ declare namespace recommendedTypeCheckedConfig {
|
|
|
2186
2323
|
|
|
2187
2324
|
declare const name$1 = "@eslint-react/recommended-typescript";
|
|
2188
2325
|
declare const rules$1: {
|
|
2326
|
+
readonly "@eslint-react/dom/no-string-style-prop": "off";
|
|
2189
2327
|
readonly "@eslint-react/dom/no-unknown-property": "off";
|
|
2190
2328
|
readonly "@eslint-react/jsx-no-duplicate-props": "off";
|
|
2191
2329
|
readonly "@eslint-react/jsx-uses-react": "off";
|
|
@@ -2210,7 +2348,6 @@ declare const rules$1: {
|
|
|
2210
2348
|
readonly "@eslint-react/dom/no-unsafe-target-blank": "warn";
|
|
2211
2349
|
readonly "@eslint-react/dom/no-use-form-state": "error";
|
|
2212
2350
|
readonly "@eslint-react/dom/no-void-elements-with-children": "error";
|
|
2213
|
-
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
2214
2351
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
2215
2352
|
readonly "@eslint-react/no-access-state-in-setstate": "error";
|
|
2216
2353
|
readonly "@eslint-react/no-array-index-key": "warn";
|
|
@@ -2220,6 +2357,7 @@ declare const rules$1: {
|
|
|
2220
2357
|
readonly "@eslint-react/no-children-only": "warn";
|
|
2221
2358
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
2222
2359
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
2360
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
2223
2361
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
2224
2362
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
2225
2363
|
readonly "@eslint-react/no-component-will-update": "error";
|
|
@@ -2227,12 +2365,12 @@ declare const rules$1: {
|
|
|
2227
2365
|
readonly "@eslint-react/no-create-ref": "error";
|
|
2228
2366
|
readonly "@eslint-react/no-default-props": "error";
|
|
2229
2367
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
2230
|
-
readonly "@eslint-react/no-duplicate-key": "
|
|
2368
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
2231
2369
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
2232
2370
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
2233
2371
|
readonly "@eslint-react/no-missing-key": "error";
|
|
2234
2372
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
2235
|
-
readonly "@eslint-react/no-nested-lazy-component-declarations": "
|
|
2373
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
2236
2374
|
readonly "@eslint-react/no-prop-types": "error";
|
|
2237
2375
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
2238
2376
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -2447,6 +2585,7 @@ declare const plugins$1: {
|
|
|
2447
2585
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2448
2586
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2449
2587
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2588
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2450
2589
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2451
2590
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2452
2591
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2479,6 +2618,7 @@ declare const plugins$1: {
|
|
|
2479
2618
|
readonly "no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2480
2619
|
readonly "no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2481
2620
|
readonly "no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2621
|
+
readonly "no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2482
2622
|
readonly "no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2483
2623
|
readonly "no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2484
2624
|
readonly "no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2523,6 +2663,15 @@ declare const plugins$1: {
|
|
|
2523
2663
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2524
2664
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2525
2665
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2666
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2667
|
+
forbid: (string | {
|
|
2668
|
+
excludedNodes?: string[];
|
|
2669
|
+
prop: string;
|
|
2670
|
+
} | {
|
|
2671
|
+
includedNodes?: string[];
|
|
2672
|
+
prop: string;
|
|
2673
|
+
})[];
|
|
2674
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2526
2675
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2527
2676
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2528
2677
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2547,6 +2696,7 @@ declare const plugins$1: {
|
|
|
2547
2696
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2548
2697
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2549
2698
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2699
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2550
2700
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2551
2701
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2552
2702
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2609,6 +2759,15 @@ declare const plugins$1: {
|
|
|
2609
2759
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2610
2760
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2611
2761
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2762
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2763
|
+
forbid: (string | {
|
|
2764
|
+
excludedNodes?: string[];
|
|
2765
|
+
prop: string;
|
|
2766
|
+
} | {
|
|
2767
|
+
includedNodes?: string[];
|
|
2768
|
+
prop: string;
|
|
2769
|
+
})[];
|
|
2770
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2612
2771
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2613
2772
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2614
2773
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2633,6 +2792,7 @@ declare const plugins$1: {
|
|
|
2633
2792
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2634
2793
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2635
2794
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2795
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2636
2796
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2637
2797
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2638
2798
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2695,6 +2855,15 @@ declare const plugins$1: {
|
|
|
2695
2855
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2696
2856
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2697
2857
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2858
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2859
|
+
forbid: (string | {
|
|
2860
|
+
excludedNodes?: string[];
|
|
2861
|
+
prop: string;
|
|
2862
|
+
} | {
|
|
2863
|
+
includedNodes?: string[];
|
|
2864
|
+
prop: string;
|
|
2865
|
+
})[];
|
|
2866
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2698
2867
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2699
2868
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2700
2869
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2719,6 +2888,7 @@ declare const plugins$1: {
|
|
|
2719
2888
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2720
2889
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2721
2890
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2891
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2722
2892
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2723
2893
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2724
2894
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2779,6 +2949,15 @@ declare const plugins$1: {
|
|
|
2779
2949
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2780
2950
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2781
2951
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2952
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
2953
|
+
forbid: (string | {
|
|
2954
|
+
excludedNodes?: string[];
|
|
2955
|
+
prop: string;
|
|
2956
|
+
} | {
|
|
2957
|
+
includedNodes?: string[];
|
|
2958
|
+
prop: string;
|
|
2959
|
+
})[];
|
|
2960
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2782
2961
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2783
2962
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2784
2963
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2803,6 +2982,7 @@ declare const plugins$1: {
|
|
|
2803
2982
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2804
2983
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2805
2984
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2985
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2806
2986
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2807
2987
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2808
2988
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2844,7 +3024,6 @@ declare namespace recommendedTypeScriptConfig {
|
|
|
2844
3024
|
|
|
2845
3025
|
declare const name = "@eslint-react/x";
|
|
2846
3026
|
declare const rules: {
|
|
2847
|
-
readonly "@eslint-react/jsx-key-before-spread": "warn";
|
|
2848
3027
|
readonly "@eslint-react/jsx-no-comment-textnodes": "warn";
|
|
2849
3028
|
readonly "@eslint-react/jsx-no-duplicate-props": "warn";
|
|
2850
3029
|
readonly "@eslint-react/jsx-uses-react": "warn";
|
|
@@ -2857,6 +3036,7 @@ declare const rules: {
|
|
|
2857
3036
|
readonly "@eslint-react/no-children-only": "warn";
|
|
2858
3037
|
readonly "@eslint-react/no-children-to-array": "warn";
|
|
2859
3038
|
readonly "@eslint-react/no-clone-element": "warn";
|
|
3039
|
+
readonly "@eslint-react/no-comment-textnodes": "warn";
|
|
2860
3040
|
readonly "@eslint-react/no-component-will-mount": "error";
|
|
2861
3041
|
readonly "@eslint-react/no-component-will-receive-props": "error";
|
|
2862
3042
|
readonly "@eslint-react/no-component-will-update": "error";
|
|
@@ -2864,12 +3044,12 @@ declare const rules: {
|
|
|
2864
3044
|
readonly "@eslint-react/no-create-ref": "error";
|
|
2865
3045
|
readonly "@eslint-react/no-default-props": "error";
|
|
2866
3046
|
readonly "@eslint-react/no-direct-mutation-state": "error";
|
|
2867
|
-
readonly "@eslint-react/no-duplicate-key": "
|
|
3047
|
+
readonly "@eslint-react/no-duplicate-key": "error";
|
|
2868
3048
|
readonly "@eslint-react/no-forward-ref": "warn";
|
|
2869
3049
|
readonly "@eslint-react/no-implicit-key": "warn";
|
|
2870
3050
|
readonly "@eslint-react/no-missing-key": "error";
|
|
2871
3051
|
readonly "@eslint-react/no-nested-component-definitions": "error";
|
|
2872
|
-
readonly "@eslint-react/no-nested-lazy-component-declarations": "
|
|
3052
|
+
readonly "@eslint-react/no-nested-lazy-component-declarations": "error";
|
|
2873
3053
|
readonly "@eslint-react/no-prop-types": "error";
|
|
2874
3054
|
readonly "@eslint-react/no-redundant-should-component-update": "error";
|
|
2875
3055
|
readonly "@eslint-react/no-set-state-in-component-did-mount": "warn";
|
|
@@ -2926,6 +3106,15 @@ declare const plugins: {
|
|
|
2926
3106
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2927
3107
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2928
3108
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3109
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
3110
|
+
forbid: (string | {
|
|
3111
|
+
excludedNodes?: string[];
|
|
3112
|
+
prop: string;
|
|
3113
|
+
} | {
|
|
3114
|
+
includedNodes?: string[];
|
|
3115
|
+
prop: string;
|
|
3116
|
+
})[];
|
|
3117
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2929
3118
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2930
3119
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2931
3120
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -2950,6 +3139,7 @@ declare const plugins: {
|
|
|
2950
3139
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2951
3140
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2952
3141
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3142
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2953
3143
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2954
3144
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
2955
3145
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3012,6 +3202,15 @@ declare const plugins: {
|
|
|
3012
3202
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3013
3203
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3014
3204
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3205
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
3206
|
+
forbid: (string | {
|
|
3207
|
+
excludedNodes?: string[];
|
|
3208
|
+
prop: string;
|
|
3209
|
+
} | {
|
|
3210
|
+
includedNodes?: string[];
|
|
3211
|
+
prop: string;
|
|
3212
|
+
})[];
|
|
3213
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3015
3214
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3016
3215
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3017
3216
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3036,6 +3235,7 @@ declare const plugins: {
|
|
|
3036
3235
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3037
3236
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3038
3237
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3238
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3039
3239
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3040
3240
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3041
3241
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3098,6 +3298,15 @@ declare const plugins: {
|
|
|
3098
3298
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3099
3299
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3100
3300
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3301
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
3302
|
+
forbid: (string | {
|
|
3303
|
+
excludedNodes?: string[];
|
|
3304
|
+
prop: string;
|
|
3305
|
+
} | {
|
|
3306
|
+
includedNodes?: string[];
|
|
3307
|
+
prop: string;
|
|
3308
|
+
})[];
|
|
3309
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3101
3310
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3102
3311
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3103
3312
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3122,6 +3331,7 @@ declare const plugins: {
|
|
|
3122
3331
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3123
3332
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3124
3333
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3334
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3125
3335
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3126
3336
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3127
3337
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3182,6 +3392,15 @@ declare const plugins: {
|
|
|
3182
3392
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3183
3393
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3184
3394
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3395
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
3396
|
+
forbid: (string | {
|
|
3397
|
+
excludedNodes?: string[];
|
|
3398
|
+
prop: string;
|
|
3399
|
+
} | {
|
|
3400
|
+
includedNodes?: string[];
|
|
3401
|
+
prop: string;
|
|
3402
|
+
})[];
|
|
3403
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3185
3404
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3186
3405
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3187
3406
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3206,6 +3425,7 @@ declare const plugins: {
|
|
|
3206
3425
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3207
3426
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3208
3427
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3428
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3209
3429
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3210
3430
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3211
3431
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3265,6 +3485,11 @@ declare const _default: {
|
|
|
3265
3485
|
plugins: string[];
|
|
3266
3486
|
rules: RulePreset;
|
|
3267
3487
|
};
|
|
3488
|
+
readonly "disable-conflict-eslint-plugin-react": typeof disableConflictEslintPluginReact;
|
|
3489
|
+
readonly "disable-conflict-eslint-plugin-react-legacy": {
|
|
3490
|
+
plugins: string[];
|
|
3491
|
+
rules: RulePreset;
|
|
3492
|
+
};
|
|
3268
3493
|
readonly "disable-debug": typeof disableDebugConfig;
|
|
3269
3494
|
readonly "disable-debug-legacy": {
|
|
3270
3495
|
plugins: string[];
|
|
@@ -3391,6 +3616,7 @@ declare const _default: {
|
|
|
3391
3616
|
readonly "dom/no-render": _typescript_eslint_utils_ts_eslint.RuleModule<"noRender", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3392
3617
|
readonly "dom/no-render-return-value": _typescript_eslint_utils_ts_eslint.RuleModule<"noRenderReturnValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3393
3618
|
readonly "dom/no-script-url": _typescript_eslint_utils_ts_eslint.RuleModule<"noScriptUrl", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3619
|
+
readonly "dom/no-string-style-prop": _typescript_eslint_utils_ts_eslint.RuleModule<"noStringStyleProp", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3394
3620
|
readonly "dom/no-unknown-property": _typescript_eslint_utils_ts_eslint.RuleModule<"dataLowercaseRequired" | "invalidPropOnTag" | "unknownProp" | "unknownPropWithStandardName", unknown[], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3395
3621
|
readonly "dom/no-unsafe-iframe-sandbox": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeIframeSandbox", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3396
3622
|
readonly "dom/no-unsafe-target-blank": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnsafeTargetBlank" | "addRelNoreferrerNoopener", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3423,6 +3649,15 @@ declare const _default: {
|
|
|
3423
3649
|
readonly "no-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3424
3650
|
readonly "no-direct-mutation-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noDirectMutationState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3425
3651
|
readonly "no-duplicate-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noDuplicateKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3652
|
+
readonly "no-forbidden-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noForbiddenProps", readonly [{
|
|
3653
|
+
forbid: (string | {
|
|
3654
|
+
excludedNodes?: string[];
|
|
3655
|
+
prop: string;
|
|
3656
|
+
} | {
|
|
3657
|
+
includedNodes?: string[];
|
|
3658
|
+
prop: string;
|
|
3659
|
+
})[];
|
|
3660
|
+
}], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3426
3661
|
readonly "no-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3427
3662
|
readonly "no-implicit-key": _typescript_eslint_utils_ts_eslint.RuleModule<"noImplicitKey", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3428
3663
|
readonly "no-leaked-conditional-rendering": _typescript_eslint_utils_ts_eslint.RuleModule<"noLeakedConditionalRendering", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -3447,6 +3682,7 @@ declare const _default: {
|
|
|
3447
3682
|
readonly "no-unstable-context-value": _typescript_eslint_utils_ts_eslint.RuleModule<"unstableContextValue", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3448
3683
|
readonly "no-unstable-default-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnstableDefaultProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3449
3684
|
readonly "no-unused-class-component-members": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedClassComponentMembers", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3685
|
+
readonly "no-unused-props": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedProps", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3450
3686
|
readonly "no-unused-state": _typescript_eslint_utils_ts_eslint.RuleModule<"noUnusedState", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3451
3687
|
readonly "no-use-context": _typescript_eslint_utils_ts_eslint.RuleModule<"noUseContext", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
3452
3688
|
readonly "no-useless-forward-ref": _typescript_eslint_utils_ts_eslint.RuleModule<"noUselessForwardRef", [], unknown, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
package/dist/index.js
CHANGED
|
@@ -8,13 +8,13 @@ import { DEFAULT_ESLINT_REACT_SETTINGS } from '@eslint-react/shared';
|
|
|
8
8
|
|
|
9
9
|
var __defProp = Object.defineProperty;
|
|
10
10
|
var __export = (target, all) => {
|
|
11
|
-
for (var
|
|
12
|
-
__defProp(target,
|
|
11
|
+
for (var name15 in all)
|
|
12
|
+
__defProp(target, name15, { get: all[name15], enumerable: true });
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
16
|
var name = "@eslint-react/eslint-plugin";
|
|
17
|
-
var version = "2.0.0-beta.
|
|
17
|
+
var version = "2.0.0-beta.40";
|
|
18
18
|
|
|
19
19
|
// src/configs/all.ts
|
|
20
20
|
var all_exports = {};
|
|
@@ -68,10 +68,12 @@ __export(x_exports, {
|
|
|
68
68
|
});
|
|
69
69
|
var name3 = "@eslint-react/x";
|
|
70
70
|
var rules2 = {
|
|
71
|
-
"@eslint-react/jsx-key-before-spread": "warn",
|
|
72
71
|
"@eslint-react/jsx-no-comment-textnodes": "warn",
|
|
73
72
|
"@eslint-react/jsx-no-duplicate-props": "warn",
|
|
73
|
+
// "@eslint-react/jsx-no-iife": "warn",
|
|
74
74
|
// "@eslint-react/jsx-no-undef": "error",
|
|
75
|
+
// "@eslint-react/jsx-shorthand-boolean": "warn",
|
|
76
|
+
// "@eslint-react/jsx-shorthand-fragment": "warn",
|
|
75
77
|
"@eslint-react/jsx-uses-react": "warn",
|
|
76
78
|
"@eslint-react/jsx-uses-vars": "warn",
|
|
77
79
|
"@eslint-react/no-access-state-in-setstate": "error",
|
|
@@ -84,6 +86,7 @@ var rules2 = {
|
|
|
84
86
|
"@eslint-react/no-children-to-array": "warn",
|
|
85
87
|
// "@eslint-react/no-class-component": "warn",
|
|
86
88
|
"@eslint-react/no-clone-element": "warn",
|
|
89
|
+
"@eslint-react/no-comment-textnodes": "warn",
|
|
87
90
|
"@eslint-react/no-component-will-mount": "error",
|
|
88
91
|
"@eslint-react/no-component-will-receive-props": "error",
|
|
89
92
|
"@eslint-react/no-component-will-update": "error",
|
|
@@ -91,18 +94,16 @@ var rules2 = {
|
|
|
91
94
|
"@eslint-react/no-create-ref": "error",
|
|
92
95
|
"@eslint-react/no-default-props": "error",
|
|
93
96
|
"@eslint-react/no-direct-mutation-state": "error",
|
|
94
|
-
|
|
95
|
-
// "@eslint-react/prefer-namespace-import": "warn",
|
|
96
|
-
// "@eslint-react/prefer-read-only-props": "error",
|
|
97
|
-
"@eslint-react/no-duplicate-key": "warn",
|
|
97
|
+
"@eslint-react/no-duplicate-key": "error",
|
|
98
98
|
"@eslint-react/no-forward-ref": "warn",
|
|
99
99
|
"@eslint-react/no-implicit-key": "warn",
|
|
100
|
+
// "@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
100
101
|
// "@eslint-react/no-missing-component-display-name": "warn",
|
|
101
102
|
// "@eslint-react/no-missing-context-display-name": "warn",
|
|
102
103
|
"@eslint-react/no-missing-key": "error",
|
|
103
104
|
// "@eslint-react/no-misused-capture-owner-stack": "error",
|
|
104
105
|
"@eslint-react/no-nested-component-definitions": "error",
|
|
105
|
-
"@eslint-react/no-nested-lazy-component-declarations": "
|
|
106
|
+
"@eslint-react/no-nested-lazy-component-declarations": "error",
|
|
106
107
|
"@eslint-react/no-prop-types": "error",
|
|
107
108
|
"@eslint-react/no-redundant-should-component-update": "error",
|
|
108
109
|
"@eslint-react/no-set-state-in-component-did-mount": "warn",
|
|
@@ -118,9 +119,14 @@ var rules2 = {
|
|
|
118
119
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
119
120
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
120
121
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
122
|
+
// "@eslint-react/no-unused-props": "warn",
|
|
121
123
|
"@eslint-react/no-unused-state": "warn",
|
|
122
124
|
"@eslint-react/no-use-context": "warn",
|
|
123
125
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
126
|
+
// "@eslint-react/no-useless-fragment": "warn",
|
|
127
|
+
// "@eslint-react/prefer-destructuring-assignment": "warn",
|
|
128
|
+
// "@eslint-react/prefer-namespace-import": "warn",
|
|
129
|
+
// "@eslint-react/prefer-read-only-props": "error",
|
|
124
130
|
"@eslint-react/prefer-use-state-lazy-initialization": "warn"
|
|
125
131
|
};
|
|
126
132
|
var plugins2 = {
|
|
@@ -185,6 +191,7 @@ var rules3 = {
|
|
|
185
191
|
"@eslint-react/no-unstable-context-value": "warn",
|
|
186
192
|
"@eslint-react/no-unstable-default-props": "warn",
|
|
187
193
|
"@eslint-react/no-unused-class-component-members": "warn",
|
|
194
|
+
// "@eslint-react/no-unused-props": "warn",
|
|
188
195
|
"@eslint-react/no-unused-state": "warn",
|
|
189
196
|
"@eslint-react/no-use-context": "warn",
|
|
190
197
|
"@eslint-react/no-useless-forward-ref": "warn",
|
|
@@ -252,43 +259,103 @@ var plugins4 = {
|
|
|
252
259
|
"@eslint-react/debug": reactDebug
|
|
253
260
|
};
|
|
254
261
|
|
|
262
|
+
// src/configs/disable-conflict-eslint-plugin-react.ts
|
|
263
|
+
var disable_conflict_eslint_plugin_react_exports = {};
|
|
264
|
+
__export(disable_conflict_eslint_plugin_react_exports, {
|
|
265
|
+
name: () => name6,
|
|
266
|
+
rules: () => rules5
|
|
267
|
+
});
|
|
268
|
+
var conflictingRules = [
|
|
269
|
+
"button-has-type",
|
|
270
|
+
"destructuring-assignment",
|
|
271
|
+
"display-name",
|
|
272
|
+
"forbid-prop-types",
|
|
273
|
+
"forward-ref-uses-ref",
|
|
274
|
+
"hook-use-state",
|
|
275
|
+
"iframe-missing-sandbox",
|
|
276
|
+
"jsx-boolean-value",
|
|
277
|
+
"jsx-filename-extension",
|
|
278
|
+
"jsx-fragments",
|
|
279
|
+
"jsx-key",
|
|
280
|
+
"jsx-no-comment-textnodes",
|
|
281
|
+
"jsx-no-constructed-context-values",
|
|
282
|
+
"jsx-no-duplicate-props",
|
|
283
|
+
"jsx-no-leaked-render",
|
|
284
|
+
"jsx-no-script-url",
|
|
285
|
+
"jsx-no-target-blank",
|
|
286
|
+
"jsx-no-undef",
|
|
287
|
+
"jsx-no-useless-fragment",
|
|
288
|
+
"jsx-pascal-case",
|
|
289
|
+
"jsx-uses-react",
|
|
290
|
+
"jsx-uses-vars",
|
|
291
|
+
"no-access-state-in-setstate",
|
|
292
|
+
"no-array-index-key",
|
|
293
|
+
"no-children-prop",
|
|
294
|
+
"no-danger",
|
|
295
|
+
"no-danger-with-children",
|
|
296
|
+
"no-deprecated",
|
|
297
|
+
"no-did-mount-set-state",
|
|
298
|
+
"no-did-update-set-state",
|
|
299
|
+
"no-direct-mutation-state",
|
|
300
|
+
"no-find-dom-node",
|
|
301
|
+
"no-namespace",
|
|
302
|
+
"no-object-type-as-default-prop",
|
|
303
|
+
"no-redundant-should-component-update",
|
|
304
|
+
"no-render-return-value",
|
|
305
|
+
"no-string-refs",
|
|
306
|
+
"no-unknown-property",
|
|
307
|
+
"no-unsafe",
|
|
308
|
+
"no-unstable-nested-components",
|
|
309
|
+
"no-unused-class-component-members",
|
|
310
|
+
"no-unused-state",
|
|
311
|
+
"no-will-update-set-state",
|
|
312
|
+
"prefer-read-only-props",
|
|
313
|
+
"prop-types",
|
|
314
|
+
"void-dom-elements-no-children"
|
|
315
|
+
];
|
|
316
|
+
var name6 = "@eslint-react/disable-conflict-eslint-plugin-react";
|
|
317
|
+
var rules5 = Object.fromEntries(
|
|
318
|
+
Object.entries(conflictingRules).map(([key]) => [key, "off"])
|
|
319
|
+
);
|
|
320
|
+
|
|
255
321
|
// src/configs/disable-debug.ts
|
|
256
322
|
var disable_debug_exports = {};
|
|
257
323
|
__export(disable_debug_exports, {
|
|
258
|
-
name: () =>
|
|
259
|
-
rules: () =>
|
|
324
|
+
name: () => name7,
|
|
325
|
+
rules: () => rules6
|
|
260
326
|
});
|
|
261
|
-
var
|
|
262
|
-
var
|
|
327
|
+
var name7 = "@eslint-react/disable-debug";
|
|
328
|
+
var rules6 = Object.fromEntries(Object.entries(rules4).map(([rule]) => [rule, "off"]));
|
|
263
329
|
|
|
264
330
|
// src/configs/disable-dom.ts
|
|
265
331
|
var disable_dom_exports = {};
|
|
266
332
|
__export(disable_dom_exports, {
|
|
267
|
-
name: () =>
|
|
268
|
-
rules: () =>
|
|
333
|
+
name: () => name8,
|
|
334
|
+
rules: () => rules7
|
|
269
335
|
});
|
|
270
|
-
var
|
|
271
|
-
var
|
|
336
|
+
var name8 = "@eslint-react/disable-dom";
|
|
337
|
+
var rules7 = Object.fromEntries(Object.entries(rules).map(([key]) => [key, "off"]));
|
|
272
338
|
|
|
273
339
|
// src/configs/disable-type-checked.ts
|
|
274
340
|
var disable_type_checked_exports = {};
|
|
275
341
|
__export(disable_type_checked_exports, {
|
|
276
|
-
name: () =>
|
|
277
|
-
rules: () =>
|
|
342
|
+
name: () => name9,
|
|
343
|
+
rules: () => rules8
|
|
278
344
|
});
|
|
279
|
-
var
|
|
280
|
-
var
|
|
345
|
+
var name9 = "@eslint-react/disable-type-checked";
|
|
346
|
+
var rules8 = {
|
|
281
347
|
"@eslint-react/no-leaked-conditional-rendering": "off",
|
|
348
|
+
"@eslint-react/no-unused-props": "off",
|
|
282
349
|
"@eslint-react/prefer-read-only-props": "off"
|
|
283
350
|
};
|
|
284
351
|
|
|
285
352
|
// src/configs/disable-web-api.ts
|
|
286
353
|
var disable_web_api_exports = {};
|
|
287
354
|
__export(disable_web_api_exports, {
|
|
288
|
-
name: () =>
|
|
289
|
-
rules: () =>
|
|
355
|
+
name: () => name10,
|
|
356
|
+
rules: () => rules10
|
|
290
357
|
});
|
|
291
|
-
var
|
|
358
|
+
var rules9 = {
|
|
292
359
|
"@eslint-react/web-api/no-leaked-event-listener": "warn",
|
|
293
360
|
"@eslint-react/web-api/no-leaked-interval": "warn",
|
|
294
361
|
"@eslint-react/web-api/no-leaked-resize-observer": "warn",
|
|
@@ -299,34 +366,34 @@ var plugins5 = {
|
|
|
299
366
|
};
|
|
300
367
|
|
|
301
368
|
// src/configs/disable-web-api.ts
|
|
302
|
-
var
|
|
303
|
-
var
|
|
369
|
+
var name10 = "@eslint-react/disable-web-api";
|
|
370
|
+
var rules10 = Object.fromEntries(Object.entries(rules9).map(([key]) => [key, "off"]));
|
|
304
371
|
|
|
305
372
|
// src/configs/off.ts
|
|
306
373
|
var off_exports = {};
|
|
307
374
|
__export(off_exports, {
|
|
308
|
-
name: () =>
|
|
309
|
-
rules: () =>
|
|
375
|
+
name: () => name11,
|
|
376
|
+
rules: () => rules11
|
|
310
377
|
});
|
|
311
|
-
var
|
|
312
|
-
var
|
|
378
|
+
var name11 = "@eslint-react/off";
|
|
379
|
+
var rules11 = {
|
|
313
380
|
...Object.fromEntries(Object.entries(rules3).map(([key]) => [key, "off"])),
|
|
314
|
-
...
|
|
381
|
+
...rules8
|
|
315
382
|
};
|
|
316
383
|
|
|
317
384
|
// src/configs/recommended.ts
|
|
318
385
|
var recommended_exports = {};
|
|
319
386
|
__export(recommended_exports, {
|
|
320
|
-
name: () =>
|
|
387
|
+
name: () => name12,
|
|
321
388
|
plugins: () => plugins6,
|
|
322
|
-
rules: () =>
|
|
389
|
+
rules: () => rules12,
|
|
323
390
|
settings: () => settings5
|
|
324
391
|
});
|
|
325
|
-
var
|
|
326
|
-
var
|
|
392
|
+
var name12 = "@eslint-react/recommended";
|
|
393
|
+
var rules12 = {
|
|
327
394
|
...rules2,
|
|
328
395
|
...rules,
|
|
329
|
-
...
|
|
396
|
+
...rules9,
|
|
330
397
|
"@eslint-react/naming-convention/context-name": "warn"
|
|
331
398
|
// "@eslint-react/naming-convention/use-state": "warn",
|
|
332
399
|
};
|
|
@@ -345,23 +412,24 @@ var settings5 = {
|
|
|
345
412
|
// src/configs/recommended-type-checked.ts
|
|
346
413
|
var recommended_type_checked_exports = {};
|
|
347
414
|
__export(recommended_type_checked_exports, {
|
|
348
|
-
name: () =>
|
|
415
|
+
name: () => name14,
|
|
349
416
|
plugins: () => plugins8,
|
|
350
|
-
rules: () =>
|
|
417
|
+
rules: () => rules14,
|
|
351
418
|
settings: () => settings7
|
|
352
419
|
});
|
|
353
420
|
|
|
354
421
|
// src/configs/recommended-typescript.ts
|
|
355
422
|
var recommended_typescript_exports = {};
|
|
356
423
|
__export(recommended_typescript_exports, {
|
|
357
|
-
name: () =>
|
|
424
|
+
name: () => name13,
|
|
358
425
|
plugins: () => plugins7,
|
|
359
|
-
rules: () =>
|
|
426
|
+
rules: () => rules13,
|
|
360
427
|
settings: () => settings6
|
|
361
428
|
});
|
|
362
|
-
var
|
|
363
|
-
var
|
|
364
|
-
...
|
|
429
|
+
var name13 = "@eslint-react/recommended-typescript";
|
|
430
|
+
var rules13 = {
|
|
431
|
+
...rules12,
|
|
432
|
+
"@eslint-react/dom/no-string-style-prop": "off",
|
|
365
433
|
"@eslint-react/dom/no-unknown-property": "off",
|
|
366
434
|
"@eslint-react/jsx-no-duplicate-props": "off",
|
|
367
435
|
"@eslint-react/jsx-uses-react": "off",
|
|
@@ -375,10 +443,11 @@ var settings6 = {
|
|
|
375
443
|
};
|
|
376
444
|
|
|
377
445
|
// src/configs/recommended-type-checked.ts
|
|
378
|
-
var
|
|
379
|
-
var
|
|
380
|
-
...
|
|
381
|
-
"@eslint-react/no-leaked-conditional-rendering": "warn"
|
|
446
|
+
var name14 = "@eslint-react/recommended-type-checked";
|
|
447
|
+
var rules14 = {
|
|
448
|
+
...rules13,
|
|
449
|
+
"@eslint-react/no-leaked-conditional-rendering": "warn",
|
|
450
|
+
"@eslint-react/no-unused-props": "warn"
|
|
382
451
|
// "@eslint-react/prefer-read-only-props": "warn",
|
|
383
452
|
};
|
|
384
453
|
var plugins8 = {
|
|
@@ -411,10 +480,10 @@ function padKeysLeft(obj, left) {
|
|
|
411
480
|
}
|
|
412
481
|
|
|
413
482
|
// src/index.ts
|
|
414
|
-
function toLegacyConfig({ rules:
|
|
483
|
+
function toLegacyConfig({ rules: rules15 }) {
|
|
415
484
|
return {
|
|
416
485
|
plugins: ["@eslint-react"],
|
|
417
|
-
rules:
|
|
486
|
+
rules: rules15
|
|
418
487
|
};
|
|
419
488
|
}
|
|
420
489
|
var index_default = {
|
|
@@ -427,6 +496,8 @@ var index_default = {
|
|
|
427
496
|
["all-legacy"]: toLegacyConfig(all_exports),
|
|
428
497
|
["debug"]: debug_exports,
|
|
429
498
|
["debug-legacy"]: toLegacyConfig(debug_exports),
|
|
499
|
+
["disable-conflict-eslint-plugin-react"]: disable_conflict_eslint_plugin_react_exports,
|
|
500
|
+
["disable-conflict-eslint-plugin-react-legacy"]: toLegacyConfig(disable_conflict_eslint_plugin_react_exports),
|
|
430
501
|
["disable-debug"]: disable_debug_exports,
|
|
431
502
|
["disable-debug-legacy"]: toLegacyConfig(disable_debug_exports),
|
|
432
503
|
["disable-dom"]: disable_dom_exports,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eslint-react/eslint-plugin",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.40",
|
|
4
4
|
"description": "A unified plugin that combines all individual plugins from the eslint-react monorepo into one.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -37,26 +37,26 @@
|
|
|
37
37
|
"./package.json"
|
|
38
38
|
],
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@typescript-eslint/scope-manager": "^8.
|
|
41
|
-
"@typescript-eslint/type-utils": "^8.
|
|
42
|
-
"@typescript-eslint/types": "^8.
|
|
43
|
-
"@typescript-eslint/utils": "^8.
|
|
44
|
-
"@eslint-react/eff": "2.0.0-beta.
|
|
45
|
-
"@eslint-react/kit": "2.0.0-beta.
|
|
46
|
-
"eslint-
|
|
47
|
-
"
|
|
48
|
-
"eslint-plugin-react-
|
|
49
|
-
"eslint-plugin-react-
|
|
50
|
-
"eslint-plugin-react-
|
|
51
|
-
"eslint-plugin-react-web-api": "2.0.0-beta.
|
|
52
|
-
"eslint-plugin-react-
|
|
40
|
+
"@typescript-eslint/scope-manager": "^8.40.0",
|
|
41
|
+
"@typescript-eslint/type-utils": "^8.40.0",
|
|
42
|
+
"@typescript-eslint/types": "^8.40.0",
|
|
43
|
+
"@typescript-eslint/utils": "^8.40.0",
|
|
44
|
+
"@eslint-react/eff": "2.0.0-beta.40",
|
|
45
|
+
"@eslint-react/kit": "2.0.0-beta.40",
|
|
46
|
+
"@eslint-react/shared": "2.0.0-beta.40",
|
|
47
|
+
"eslint-plugin-react-dom": "2.0.0-beta.40",
|
|
48
|
+
"eslint-plugin-react-hooks-extra": "2.0.0-beta.40",
|
|
49
|
+
"eslint-plugin-react-naming-convention": "2.0.0-beta.40",
|
|
50
|
+
"eslint-plugin-react-x": "2.0.0-beta.40",
|
|
51
|
+
"eslint-plugin-react-web-api": "2.0.0-beta.40",
|
|
52
|
+
"eslint-plugin-react-debug": "2.0.0-beta.40"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"tsup": "^8.5.0",
|
|
56
56
|
"@local/configs": "0.0.0"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"eslint": "^9.
|
|
59
|
+
"eslint": "^9.33.0",
|
|
60
60
|
"typescript": "^4.9.5 || ^5.4.5"
|
|
61
61
|
},
|
|
62
62
|
"peerDependenciesMeta": {
|
|
@@ -68,7 +68,6 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"engines": {
|
|
71
|
-
"bun": ">=1.0.15",
|
|
72
71
|
"node": ">=20.19.0"
|
|
73
72
|
},
|
|
74
73
|
"publishConfig": {
|