eslint-config-typed 3.13.3 → 3.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/typescript-eslint-rules.d.mts +1 -0
- package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/dist/rules/typescript-eslint-rules.mjs +1 -0
- package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
- package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
- package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
- package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
- package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-import-rules.d.mts +343 -325
- package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
- package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
- package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-math-rules.d.mts +49 -48
- package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-n-rules.d.mts +296 -293
- package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
- package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
- package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
- package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
- package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
- package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
- package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
- package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
- package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
- package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-react-rules.d.mts +646 -620
- package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-rules.d.mts +1022 -1016
- package/dist/types/rules/eslint-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-security-rules.d.mts +16 -16
- package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
- package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
- package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
- package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
- package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
- package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
- package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
- package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
- package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
- package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
- package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
- package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
- package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/package.json +23 -23
- package/src/rules/typescript-eslint-rules.mts +2 -0
- package/src/types/rules/eslint-array-func-rules.mts +8 -8
- package/src/types/rules/eslint-cypress-rules.mts +28 -24
- package/src/types/rules/eslint-functional-rules.mts +581 -576
- package/src/types/rules/eslint-import-rules.mts +403 -384
- package/src/types/rules/eslint-jest-rules.mts +212 -196
- package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
- package/src/types/rules/eslint-math-rules.mts +53 -52
- package/src/types/rules/eslint-n-rules.mts +1762 -1757
- package/src/types/rules/eslint-playwright-rules.mts +187 -171
- package/src/types/rules/eslint-plugin-rules.mts +109 -99
- package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
- package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
- package/src/types/rules/eslint-promise-rules.mts +76 -76
- package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
- package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
- package/src/types/rules/eslint-react-perf-rules.mts +32 -32
- package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
- package/src/types/rules/eslint-react-rules.mts +787 -792
- package/src/types/rules/eslint-rules.mts +1180 -1173
- package/src/types/rules/eslint-security-rules.mts +16 -16
- package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
- package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
- package/src/types/rules/eslint-testing-library-rules.mts +128 -124
- package/src/types/rules/eslint-total-functions-rules.mts +16 -16
- package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
- package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
- package/src/types/rules/eslint-unicorn-rules.mts +447 -436
- package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
- package/src/types/rules/eslint-vitest-rules.mts +232 -219
- package/src/types/rules/typescript-eslint-rules.mts +1511 -1489
|
@@ -36,7 +36,7 @@ declare namespace ConsistentOutput {
|
|
|
36
36
|
* when some cases have them.
|
|
37
37
|
*/
|
|
38
38
|
type Options = 'always' | 'consistent';
|
|
39
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
39
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
42
|
* Require fixer functions to return a fix
|
|
@@ -86,7 +86,7 @@ declare namespace MetaPropertyOrdering {
|
|
|
86
86
|
*/
|
|
87
87
|
/** What order to enforce for meta properties. */
|
|
88
88
|
type Options = readonly unknown[];
|
|
89
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
89
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
90
90
|
}
|
|
91
91
|
/**
|
|
92
92
|
* Disallow usage of deprecated methods on rule context objects
|
|
@@ -256,14 +256,14 @@ declare namespace NoPropertyInNode {
|
|
|
256
256
|
* ]
|
|
257
257
|
* ```
|
|
258
258
|
*/
|
|
259
|
-
type Options = {
|
|
259
|
+
type Options = Readonly<{
|
|
260
260
|
/**
|
|
261
261
|
* Any additional regular expressions to consider source files defining AST
|
|
262
262
|
* Node types.
|
|
263
263
|
*/
|
|
264
|
-
|
|
265
|
-
}
|
|
266
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
264
|
+
additionalNodeTypeFiles?: readonly unknown[];
|
|
265
|
+
}>;
|
|
266
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
267
267
|
}
|
|
268
268
|
/**
|
|
269
269
|
* Disallow unused `messageId`s in `meta.messages`
|
|
@@ -426,7 +426,7 @@ declare namespace ReportMessageFormat {
|
|
|
426
426
|
*/
|
|
427
427
|
/** Format that all report messages must match. */
|
|
428
428
|
type Options = string;
|
|
429
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
429
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
430
430
|
}
|
|
431
431
|
/**
|
|
432
432
|
* Require only rules with options to implement a `meta.defaultOptions` property
|
|
@@ -479,14 +479,16 @@ declare namespace RequireMetaDocsDescription {
|
|
|
479
479
|
* ]
|
|
480
480
|
* ```
|
|
481
481
|
*/
|
|
482
|
-
type Options = {
|
|
482
|
+
type Options = Readonly<{
|
|
483
483
|
/**
|
|
484
484
|
* A regular expression that the description must match. Use `'.+'` to allow
|
|
485
485
|
* anything.
|
|
486
|
+
*
|
|
487
|
+
* @default '^(enforce|require|disallow)'
|
|
486
488
|
*/
|
|
487
|
-
|
|
488
|
-
}
|
|
489
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
489
|
+
pattern?: string;
|
|
490
|
+
}>;
|
|
491
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
490
492
|
}
|
|
491
493
|
/**
|
|
492
494
|
* Require rules to implement a `meta.docs.recommended` property
|
|
@@ -522,11 +524,15 @@ declare namespace RequireMetaDocsRecommended {
|
|
|
522
524
|
* ]
|
|
523
525
|
* ```
|
|
524
526
|
*/
|
|
525
|
-
type Options = {
|
|
526
|
-
/**
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
527
|
+
type Options = Readonly<{
|
|
528
|
+
/**
|
|
529
|
+
* Whether to allow values of types other than boolean.
|
|
530
|
+
*
|
|
531
|
+
* @default false
|
|
532
|
+
*/
|
|
533
|
+
allowNonBoolean?: boolean;
|
|
534
|
+
}>;
|
|
535
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
530
536
|
}
|
|
531
537
|
/**
|
|
532
538
|
* Require rules to implement a `meta.docs.url` property
|
|
@@ -561,15 +567,15 @@ declare namespace RequireMetaDocsUrl {
|
|
|
561
567
|
* ]
|
|
562
568
|
* ```
|
|
563
569
|
*/
|
|
564
|
-
type Options = {
|
|
570
|
+
type Options = Readonly<{
|
|
565
571
|
/**
|
|
566
572
|
* A pattern to enforce rule's document URL. It replaces `{{name}}`
|
|
567
573
|
* placeholder by each rule name. The rule name is the basename of each rule
|
|
568
574
|
* file. Omitting this allows any URL.
|
|
569
575
|
*/
|
|
570
|
-
|
|
571
|
-
}
|
|
572
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
576
|
+
pattern?: string;
|
|
577
|
+
}>;
|
|
578
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
573
579
|
}
|
|
574
580
|
/**
|
|
575
581
|
* Require rules to implement a `meta.fixable` property
|
|
@@ -604,16 +610,18 @@ declare namespace RequireMetaFixable {
|
|
|
604
610
|
* ]
|
|
605
611
|
* ```
|
|
606
612
|
*/
|
|
607
|
-
type Options = {
|
|
613
|
+
type Options = Readonly<{
|
|
608
614
|
/**
|
|
609
615
|
* Whether the rule should attempt to detect rules that do not have a fixer
|
|
610
616
|
* but enable the `meta.fixable` property. This option is off by default
|
|
611
617
|
* because it increases the chance of false positives since fixers can't
|
|
612
618
|
* always be detected when helper functions are used.
|
|
619
|
+
*
|
|
620
|
+
* @default false
|
|
613
621
|
*/
|
|
614
|
-
|
|
615
|
-
}
|
|
616
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
622
|
+
catchNoFixerButFixableProperty?: boolean;
|
|
623
|
+
}>;
|
|
624
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
617
625
|
}
|
|
618
626
|
/**
|
|
619
627
|
* Require suggestable rules to implement a `meta.hasSuggestions` property
|
|
@@ -682,14 +690,16 @@ declare namespace RequireMetaSchema {
|
|
|
682
690
|
* ]
|
|
683
691
|
* ```
|
|
684
692
|
*/
|
|
685
|
-
type Options = {
|
|
693
|
+
type Options = Readonly<{
|
|
686
694
|
/**
|
|
687
695
|
* Whether the rule should require the `meta.schema` property to be
|
|
688
696
|
* specified (with `schema: []`) for rules that have no options.
|
|
697
|
+
*
|
|
698
|
+
* @default true
|
|
689
699
|
*/
|
|
690
|
-
|
|
691
|
-
}
|
|
692
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
700
|
+
requireSchemaPropertyWhenOptionless?: boolean;
|
|
701
|
+
}>;
|
|
702
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
693
703
|
}
|
|
694
704
|
/**
|
|
695
705
|
* Require rules to implement a `meta.type` property
|
|
@@ -743,11 +753,11 @@ declare namespace RequireTestCaseName {
|
|
|
743
753
|
* ]
|
|
744
754
|
* ```
|
|
745
755
|
*/
|
|
746
|
-
type Options = {
|
|
756
|
+
type Options = Readonly<{
|
|
747
757
|
/** When should the name property be required on a test case object. */
|
|
748
|
-
|
|
749
|
-
}
|
|
750
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
758
|
+
require?: 'always' | 'objects' | 'objects-with-config';
|
|
759
|
+
}>;
|
|
760
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
751
761
|
}
|
|
752
762
|
/**
|
|
753
763
|
* Require the properties of a test case to be placed in a consistent order
|
|
@@ -781,7 +791,7 @@ declare namespace TestCasePropertyOrdering {
|
|
|
781
791
|
*/
|
|
782
792
|
/** What order to enforce for test case properties. */
|
|
783
793
|
type Options = readonly unknown[];
|
|
784
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
794
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
785
795
|
}
|
|
786
796
|
/**
|
|
787
797
|
* Enforce consistent usage of shorthand strings for test cases with no options
|
|
@@ -819,8 +829,8 @@ declare namespace TestCaseShorthandStrings {
|
|
|
819
829
|
* What behavior to enforce of when shorthand strings should be banned or
|
|
820
830
|
* required.
|
|
821
831
|
*/
|
|
822
|
-
type Options = 'as-needed' | '
|
|
823
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
832
|
+
type Options = 'as-needed' | 'never' | 'consistent' | 'consistent-as-needed';
|
|
833
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
824
834
|
}
|
|
825
835
|
/**
|
|
826
836
|
* Enforce that all test cases with names have unique names
|
|
@@ -838,55 +848,55 @@ declare namespace TestCaseShorthandStrings {
|
|
|
838
848
|
declare namespace UniqueTestCaseNames {
|
|
839
849
|
type RuleEntry = Linter.StringSeverity;
|
|
840
850
|
}
|
|
841
|
-
export type EslintPluginRules = {
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
}
|
|
877
|
-
export type EslintPluginRulesOption = {
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
}
|
|
851
|
+
export type EslintPluginRules = Readonly<{
|
|
852
|
+
'eslint-plugin/consistent-output': ConsistentOutput.RuleEntry;
|
|
853
|
+
'eslint-plugin/fixer-return': FixerReturn.RuleEntry;
|
|
854
|
+
'eslint-plugin/meta-property-ordering': MetaPropertyOrdering.RuleEntry;
|
|
855
|
+
'eslint-plugin/no-deprecated-context-methods': NoDeprecatedContextMethods.RuleEntry;
|
|
856
|
+
'eslint-plugin/no-deprecated-report-api': NoDeprecatedReportApi.RuleEntry;
|
|
857
|
+
'eslint-plugin/no-identical-tests': NoIdenticalTests.RuleEntry;
|
|
858
|
+
'eslint-plugin/no-meta-replaced-by': NoMetaReplacedBy.RuleEntry;
|
|
859
|
+
'eslint-plugin/no-meta-schema-default': NoMetaSchemaDefault.RuleEntry;
|
|
860
|
+
'eslint-plugin/no-missing-message-ids': NoMissingMessageIds.RuleEntry;
|
|
861
|
+
'eslint-plugin/no-missing-placeholders': NoMissingPlaceholders.RuleEntry;
|
|
862
|
+
'eslint-plugin/no-only-tests': NoOnlyTests.RuleEntry;
|
|
863
|
+
'eslint-plugin/no-property-in-node': NoPropertyInNode.RuleEntry;
|
|
864
|
+
'eslint-plugin/no-unused-message-ids': NoUnusedMessageIds.RuleEntry;
|
|
865
|
+
'eslint-plugin/no-unused-placeholders': NoUnusedPlaceholders.RuleEntry;
|
|
866
|
+
'eslint-plugin/no-useless-token-range': NoUselessTokenRange.RuleEntry;
|
|
867
|
+
'eslint-plugin/prefer-message-ids': PreferMessageIds.RuleEntry;
|
|
868
|
+
'eslint-plugin/prefer-object-rule': PreferObjectRule.RuleEntry;
|
|
869
|
+
'eslint-plugin/prefer-output-null': PreferOutputNull.RuleEntry;
|
|
870
|
+
'eslint-plugin/prefer-placeholders': PreferPlaceholders.RuleEntry;
|
|
871
|
+
'eslint-plugin/prefer-replace-text': PreferReplaceText.RuleEntry;
|
|
872
|
+
'eslint-plugin/report-message-format': ReportMessageFormat.RuleEntry;
|
|
873
|
+
'eslint-plugin/require-meta-default-options': RequireMetaDefaultOptions.RuleEntry;
|
|
874
|
+
'eslint-plugin/require-meta-docs-description': RequireMetaDocsDescription.RuleEntry;
|
|
875
|
+
'eslint-plugin/require-meta-docs-recommended': RequireMetaDocsRecommended.RuleEntry;
|
|
876
|
+
'eslint-plugin/require-meta-docs-url': RequireMetaDocsUrl.RuleEntry;
|
|
877
|
+
'eslint-plugin/require-meta-fixable': RequireMetaFixable.RuleEntry;
|
|
878
|
+
'eslint-plugin/require-meta-has-suggestions': RequireMetaHasSuggestions.RuleEntry;
|
|
879
|
+
'eslint-plugin/require-meta-schema-description': RequireMetaSchemaDescription.RuleEntry;
|
|
880
|
+
'eslint-plugin/require-meta-schema': RequireMetaSchema.RuleEntry;
|
|
881
|
+
'eslint-plugin/require-meta-type': RequireMetaType.RuleEntry;
|
|
882
|
+
'eslint-plugin/require-test-case-name': RequireTestCaseName.RuleEntry;
|
|
883
|
+
'eslint-plugin/test-case-property-ordering': TestCasePropertyOrdering.RuleEntry;
|
|
884
|
+
'eslint-plugin/test-case-shorthand-strings': TestCaseShorthandStrings.RuleEntry;
|
|
885
|
+
'eslint-plugin/unique-test-case-names': UniqueTestCaseNames.RuleEntry;
|
|
886
|
+
}>;
|
|
887
|
+
export type EslintPluginRulesOption = Readonly<{
|
|
888
|
+
'eslint-plugin/consistent-output': ConsistentOutput.Options;
|
|
889
|
+
'eslint-plugin/meta-property-ordering': MetaPropertyOrdering.Options;
|
|
890
|
+
'eslint-plugin/no-property-in-node': NoPropertyInNode.Options;
|
|
891
|
+
'eslint-plugin/report-message-format': ReportMessageFormat.Options;
|
|
892
|
+
'eslint-plugin/require-meta-docs-description': RequireMetaDocsDescription.Options;
|
|
893
|
+
'eslint-plugin/require-meta-docs-recommended': RequireMetaDocsRecommended.Options;
|
|
894
|
+
'eslint-plugin/require-meta-docs-url': RequireMetaDocsUrl.Options;
|
|
895
|
+
'eslint-plugin/require-meta-fixable': RequireMetaFixable.Options;
|
|
896
|
+
'eslint-plugin/require-meta-schema': RequireMetaSchema.Options;
|
|
897
|
+
'eslint-plugin/require-test-case-name': RequireTestCaseName.Options;
|
|
898
|
+
'eslint-plugin/test-case-property-ordering': TestCasePropertyOrdering.Options;
|
|
899
|
+
'eslint-plugin/test-case-shorthand-strings': TestCaseShorthandStrings.Options;
|
|
900
|
+
}>;
|
|
891
901
|
export {};
|
|
892
902
|
//# sourceMappingURL=eslint-plugin-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-plugin-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,sBAAsB,CACzB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,IACjD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC/B,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GACzC,CAAC,CAAC;AAEN;;;;;;;;;;;;GAYG;AACH,kBAAU,gBAAgB,CAAC;IACzB;;;;;;;;;;;;;;;;OAgBG;IACH;;;OAGG;IACH,KAAY,OAAO,GAAG,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,CAAC;IAClF,6CAA6C,EAAE,0BAA0B,CAAC,OAAO,CAAC;IAClF,qCAAqC,EAAE,kBAAkB,CAAC,OAAO,CAAC;IAClE,oCAAoC,EAAE,kBAAkB,CAAC,OAAO,CAAC;IACjE,mCAAmC,EAAE,iBAAiB,CAAC,OAAO,CAAC;IAC/D,sCAAsC,EAAE,mBAAmB,CAAC,OAAO,CAAC;IACpE,2CAA2C,EAAE,wBAAwB,CAAC,OAAO,CAAC;IAC9E,2CAA2C,EAAE,wBAAwB,CAAC,OAAO,CAAC;CAC/E,CAAC,CAAC"}
|
|
@@ -29,16 +29,16 @@ declare namespace SortDestructureKeys {
|
|
|
29
29
|
* ]
|
|
30
30
|
* ```
|
|
31
31
|
*/
|
|
32
|
-
type Options = {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
32
|
+
type Options = Readonly<{
|
|
33
|
+
caseSensitive?: boolean;
|
|
34
|
+
}>;
|
|
35
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
36
36
|
}
|
|
37
|
-
export type EslintPluginSortDestructureKeysRules = {
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
export type EslintPluginSortDestructureKeysRulesOption = {
|
|
41
|
-
|
|
42
|
-
}
|
|
37
|
+
export type EslintPluginSortDestructureKeysRules = Readonly<{
|
|
38
|
+
'sort-destructure-keys/sort-destructure-keys': SortDestructureKeys.RuleEntry;
|
|
39
|
+
}>;
|
|
40
|
+
export type EslintPluginSortDestructureKeysRulesOption = Readonly<{
|
|
41
|
+
'sort-destructure-keys/sort-destructure-keys': SortDestructureKeys.Options;
|
|
42
|
+
}>;
|
|
43
43
|
export {};
|
|
44
44
|
//# sourceMappingURL=eslint-plugin-sort-destructure-keys-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-plugin-sort-destructure-keys-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,sBAAsB,CACzB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,IACjD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC/B,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GACzC,CAAC,CAAC;AAEN;;;;;;;;;;GAUG;AACH,kBAAU,mBAAmB,CAAC;IAC5B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAY,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"eslint-plugin-sort-destructure-keys-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,sBAAsB,CACzB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,IACjD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC/B,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GACzC,CAAC,CAAC;AAEN;;;;;;;;;;GAUG;AACH,kBAAU,mBAAmB,CAAC;IAC5B;;;;;;;;;;;;;;;;OAgBG;IACH,KAAY,OAAO,GAAG,QAAQ,CAAC;QAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC,CAAC;IAEH,KAAY,SAAS,GACjB,KAAK,GACL,MAAM,CAAC,QAAQ,GACf,sBAAsB,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;CACvE;AAED,MAAM,MAAM,oCAAoC,GAAG,QAAQ,CAAC;IAC1D,6CAA6C,EAAE,mBAAmB,CAAC,SAAS,CAAC;CAC9E,CAAC,CAAC;AAEH,MAAM,MAAM,0CAA0C,GAAG,QAAQ,CAAC;IAChE,6CAA6C,EAAE,mBAAmB,CAAC,OAAO,CAAC;CAC5E,CAAC,CAAC"}
|
|
@@ -71,22 +71,29 @@ declare namespace PreferArrowFunctions {
|
|
|
71
71
|
* ]
|
|
72
72
|
* ```
|
|
73
73
|
*/
|
|
74
|
-
type Options = {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
74
|
+
type Options = Readonly<{
|
|
75
|
+
/** @default [ ] */
|
|
76
|
+
allowedNames?: readonly string[];
|
|
77
|
+
/** @default false */
|
|
78
|
+
allowNamedFunctions?: boolean | 'only-expressions';
|
|
79
|
+
/** @default false */
|
|
80
|
+
allowObjectProperties?: boolean;
|
|
81
|
+
/** @default false */
|
|
82
|
+
classPropertiesAllowed?: boolean;
|
|
83
|
+
/** @default false */
|
|
84
|
+
disallowPrototype?: boolean;
|
|
85
|
+
/** @default 'unchanged' */
|
|
86
|
+
returnStyle?: 'explicit' | 'implicit' | 'unchanged';
|
|
87
|
+
/** @default false */
|
|
88
|
+
singleReturnOnly?: boolean;
|
|
89
|
+
}>;
|
|
90
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
84
91
|
}
|
|
85
|
-
export type EslintPreferArrowFunctionRules = {
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
export type EslintPreferArrowFunctionRulesOption = {
|
|
89
|
-
|
|
90
|
-
}
|
|
92
|
+
export type EslintPreferArrowFunctionRules = Readonly<{
|
|
93
|
+
'prefer-arrow-functions/prefer-arrow-functions': PreferArrowFunctions.RuleEntry;
|
|
94
|
+
}>;
|
|
95
|
+
export type EslintPreferArrowFunctionRulesOption = Readonly<{
|
|
96
|
+
'prefer-arrow-functions/prefer-arrow-functions': PreferArrowFunctions.Options;
|
|
97
|
+
}>;
|
|
91
98
|
export {};
|
|
92
99
|
//# sourceMappingURL=eslint-prefer-arrow-functions-rules.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-prefer-arrow-functions-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-prefer-arrow-functions-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,sBAAsB,CACzB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,IACjD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC/B,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GACzC,CAAC,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,kBAAU,oBAAoB,CAAC;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,KAAY,OAAO,GAAG
|
|
1
|
+
{"version":3,"file":"eslint-prefer-arrow-functions-rules.d.mts","sourceRoot":"","sources":["../../../src/types/rules/eslint-prefer-arrow-functions-rules.mts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAErC,KAAK,sBAAsB,CACzB,CAAC,SAAS,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,IACjD,CAAC,CAAC,CAAC,CAAC,SAAS,SAAS,OAAO,EAAE,GAC/B,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GACzC,CAAC,CAAC;AAEN;;;;;;;;;;;;;GAaG;AACH,kBAAU,oBAAoB,CAAC;IAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAuDG;IACH,KAAY,OAAO,GAAG,QAAQ,CAAC;QAC7B,mBAAmB;QACnB,YAAY,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;QACjC,qBAAqB;QACrB,mBAAmB,CAAC,EAAE,OAAO,GAAG,kBAAkB,CAAC;QACnD,qBAAqB;QACrB,qBAAqB,CAAC,EAAE,OAAO,CAAC;QAChC,qBAAqB;QACrB,sBAAsB,CAAC,EAAE,OAAO,CAAC;QACjC,qBAAqB;QACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;QAC5B,2BAA2B;QAC3B,WAAW,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,CAAC;QACpD,qBAAqB;QACrB,gBAAgB,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC,CAAC;IAEH,KAAY,SAAS,GACjB,KAAK,GACL,MAAM,CAAC,QAAQ,GACf,sBAAsB,CAAC,SAAS,CAAC,MAAM,CAAC,cAAc,EAAE,OAAO,CAAC,CAAC,CAAC;CACvE;AAED,MAAM,MAAM,8BAA8B,GAAG,QAAQ,CAAC;IACpD,+CAA+C,EAAE,oBAAoB,CAAC,SAAS,CAAC;CACjF,CAAC,CAAC;AAEH,MAAM,MAAM,oCAAoC,GAAG,QAAQ,CAAC;IAC1D,+CAA+C,EAAE,oBAAoB,CAAC,OAAO,CAAC;CAC/E,CAAC,CAAC"}
|
|
@@ -33,11 +33,11 @@ declare namespace ParamNames {
|
|
|
33
33
|
* ]
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
|
-
type Options = {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
36
|
+
type Options = Readonly<{
|
|
37
|
+
resolvePattern?: string;
|
|
38
|
+
rejectPattern?: string;
|
|
39
|
+
}>;
|
|
40
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Disallow wrapping values in `Promise.resolve` or `Promise.reject` when not
|
|
@@ -70,10 +70,10 @@ declare namespace NoReturnWrap {
|
|
|
70
70
|
* ]
|
|
71
71
|
* ```
|
|
72
72
|
*/
|
|
73
|
-
type Options = {
|
|
74
|
-
|
|
75
|
-
}
|
|
76
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
73
|
+
type Options = Readonly<{
|
|
74
|
+
allowReject?: boolean;
|
|
75
|
+
}>;
|
|
76
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
77
77
|
}
|
|
78
78
|
/**
|
|
79
79
|
* Require returning inside each `then()` to create readable and reusable
|
|
@@ -114,11 +114,11 @@ declare namespace AlwaysReturn {
|
|
|
114
114
|
* ]
|
|
115
115
|
* ```
|
|
116
116
|
*/
|
|
117
|
-
type Options = {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
117
|
+
type Options = Readonly<{
|
|
118
|
+
ignoreLastCallback?: boolean;
|
|
119
|
+
ignoreAssignmentVariable?: readonly string[];
|
|
120
|
+
}>;
|
|
121
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
122
122
|
}
|
|
123
123
|
/**
|
|
124
124
|
* Enforce the use of `catch()` on un-returned promises.
|
|
@@ -169,13 +169,13 @@ declare namespace CatchOrReturn {
|
|
|
169
169
|
* ]
|
|
170
170
|
* ```
|
|
171
171
|
*/
|
|
172
|
-
type Options = {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
}
|
|
178
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
172
|
+
type Options = Readonly<{
|
|
173
|
+
allowFinally?: boolean;
|
|
174
|
+
allowThen?: boolean;
|
|
175
|
+
allowThenStrict?: boolean;
|
|
176
|
+
terminationMethod?: string | readonly string[];
|
|
177
|
+
}>;
|
|
178
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
181
|
* Prefer `async`/`await` to the callback pattern.
|
|
@@ -221,11 +221,11 @@ declare namespace PreferAwaitToThen {
|
|
|
221
221
|
* ]
|
|
222
222
|
* ```
|
|
223
223
|
*/
|
|
224
|
-
type Options = {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
}
|
|
228
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
224
|
+
type Options = Readonly<{
|
|
225
|
+
strict?: boolean;
|
|
226
|
+
[k: string]: unknown;
|
|
227
|
+
}>;
|
|
228
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
229
229
|
}
|
|
230
230
|
/**
|
|
231
231
|
* Prefer `catch` to `then(a, b)`/`then(null, b)` for handling errors.
|
|
@@ -296,11 +296,11 @@ declare namespace NoCallbackInPromise {
|
|
|
296
296
|
* ]
|
|
297
297
|
* ```
|
|
298
298
|
*/
|
|
299
|
-
type Options = {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
}
|
|
303
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
299
|
+
type Options = Readonly<{
|
|
300
|
+
exceptions?: readonly string[];
|
|
301
|
+
timeoutsErr?: boolean;
|
|
302
|
+
}>;
|
|
303
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
304
304
|
}
|
|
305
305
|
/**
|
|
306
306
|
* Disallow using promises inside of callbacks.
|
|
@@ -412,10 +412,10 @@ declare namespace ValidParams {
|
|
|
412
412
|
* ]
|
|
413
413
|
* ```
|
|
414
414
|
*/
|
|
415
|
-
type Options = {
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
415
|
+
type Options = Readonly<{
|
|
416
|
+
exclude?: readonly string[];
|
|
417
|
+
}>;
|
|
418
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
419
419
|
}
|
|
420
420
|
/**
|
|
421
421
|
* Disallow creating new promises with paths that resolve multiple times.
|
|
@@ -465,39 +465,39 @@ declare namespace SpecOnly {
|
|
|
465
465
|
* ]
|
|
466
466
|
* ```
|
|
467
467
|
*/
|
|
468
|
-
type Options = {
|
|
469
|
-
|
|
470
|
-
}
|
|
471
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
468
|
+
type Options = Readonly<{
|
|
469
|
+
allowedMethods?: readonly string[];
|
|
470
|
+
}>;
|
|
471
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
472
472
|
}
|
|
473
|
-
export type EslintPromiseRules = {
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
}
|
|
492
|
-
export type EslintPromiseRulesOption = {
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
473
|
+
export type EslintPromiseRules = Readonly<{
|
|
474
|
+
'promise/param-names': ParamNames.RuleEntry;
|
|
475
|
+
'promise/no-return-wrap': NoReturnWrap.RuleEntry;
|
|
476
|
+
'promise/always-return': AlwaysReturn.RuleEntry;
|
|
477
|
+
'promise/catch-or-return': CatchOrReturn.RuleEntry;
|
|
478
|
+
'promise/prefer-await-to-callbacks': PreferAwaitToCallbacks.RuleEntry;
|
|
479
|
+
'promise/prefer-await-to-then': PreferAwaitToThen.RuleEntry;
|
|
480
|
+
'promise/prefer-catch': PreferCatch.RuleEntry;
|
|
481
|
+
'promise/no-native': NoNative.RuleEntry;
|
|
482
|
+
'promise/no-callback-in-promise': NoCallbackInPromise.RuleEntry;
|
|
483
|
+
'promise/no-promise-in-callback': NoPromiseInCallback.RuleEntry;
|
|
484
|
+
'promise/no-nesting': NoNesting.RuleEntry;
|
|
485
|
+
'promise/avoid-new': AvoidNew.RuleEntry;
|
|
486
|
+
'promise/no-new-statics': NoNewStatics.RuleEntry;
|
|
487
|
+
'promise/no-return-in-finally': NoReturnInFinally.RuleEntry;
|
|
488
|
+
'promise/valid-params': ValidParams.RuleEntry;
|
|
489
|
+
'promise/no-multiple-resolved': NoMultipleResolved.RuleEntry;
|
|
490
|
+
'promise/spec-only': SpecOnly.RuleEntry;
|
|
491
|
+
}>;
|
|
492
|
+
export type EslintPromiseRulesOption = Readonly<{
|
|
493
|
+
'promise/param-names': ParamNames.Options;
|
|
494
|
+
'promise/no-return-wrap': NoReturnWrap.Options;
|
|
495
|
+
'promise/always-return': AlwaysReturn.Options;
|
|
496
|
+
'promise/catch-or-return': CatchOrReturn.Options;
|
|
497
|
+
'promise/prefer-await-to-then': PreferAwaitToThen.Options;
|
|
498
|
+
'promise/no-callback-in-promise': NoCallbackInPromise.Options;
|
|
499
|
+
'promise/valid-params': ValidParams.Options;
|
|
500
|
+
'promise/spec-only': SpecOnly.Options;
|
|
501
|
+
}>;
|
|
502
502
|
export {};
|
|
503
503
|
//# sourceMappingURL=eslint-promise-rules.d.mts.map
|