eslint-config-typed 3.13.3 → 3.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/rules/typescript-eslint-rules.d.mts +3 -1
- package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
- package/dist/rules/typescript-eslint-rules.mjs +8 -1
- 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 +9 -1
- 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
|
@@ -58,20 +58,21 @@ namespace NoUnresolved {
|
|
|
58
58
|
* ]
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
|
-
export type Options = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
61
|
+
export type Options = Readonly<{
|
|
62
|
+
commonjs?: boolean;
|
|
63
|
+
amd?: boolean;
|
|
64
|
+
esmodule?: boolean;
|
|
65
65
|
/** @minItems 1 */
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
ignore?: readonly [string, ...string[]];
|
|
67
|
+
/** @default true */
|
|
68
|
+
caseSensitive?: boolean;
|
|
69
|
+
caseSensitiveStrict?: boolean;
|
|
70
|
+
}>;
|
|
70
71
|
|
|
71
72
|
export type RuleEntry =
|
|
73
|
+
| 'off'
|
|
72
74
|
| Linter.Severity
|
|
73
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
74
|
-
| 'off';
|
|
75
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
/**
|
|
@@ -104,14 +105,14 @@ namespace Named {
|
|
|
104
105
|
* ]
|
|
105
106
|
* ```
|
|
106
107
|
*/
|
|
107
|
-
export type Options = {
|
|
108
|
-
|
|
109
|
-
}
|
|
108
|
+
export type Options = Readonly<{
|
|
109
|
+
commonjs?: boolean;
|
|
110
|
+
}>;
|
|
110
111
|
|
|
111
112
|
export type RuleEntry =
|
|
113
|
+
| 'off'
|
|
112
114
|
| Linter.Severity
|
|
113
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
114
|
-
| 'off';
|
|
115
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
/**
|
|
@@ -163,18 +164,20 @@ namespace Namespace {
|
|
|
163
164
|
* ]
|
|
164
165
|
* ```
|
|
165
166
|
*/
|
|
166
|
-
export type Options = {
|
|
167
|
+
export type Options = Readonly<{
|
|
167
168
|
/**
|
|
168
169
|
* If `false`, will report computed (and thus, un-lintable) references to
|
|
169
170
|
* namespace members.
|
|
171
|
+
*
|
|
172
|
+
* @default false
|
|
170
173
|
*/
|
|
171
|
-
|
|
172
|
-
}
|
|
174
|
+
allowComputed?: boolean;
|
|
175
|
+
}>;
|
|
173
176
|
|
|
174
177
|
export type RuleEntry =
|
|
178
|
+
| 'off'
|
|
175
179
|
| Linter.Severity
|
|
176
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
177
|
-
| 'off';
|
|
180
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
/**
|
|
@@ -211,15 +214,15 @@ namespace NoNamespace {
|
|
|
211
214
|
* ]
|
|
212
215
|
* ```
|
|
213
216
|
*/
|
|
214
|
-
export type Options = {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
217
|
+
export type Options = Readonly<{
|
|
218
|
+
ignore?: readonly string[];
|
|
219
|
+
[k: string]: unknown;
|
|
220
|
+
}>;
|
|
218
221
|
|
|
219
222
|
export type RuleEntry =
|
|
223
|
+
| 'off'
|
|
220
224
|
| Linter.Severity
|
|
221
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
222
|
-
| 'off';
|
|
225
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
223
226
|
}
|
|
224
227
|
|
|
225
228
|
/**
|
|
@@ -426,53 +429,53 @@ namespace Extensions {
|
|
|
426
429
|
* ```
|
|
427
430
|
*/
|
|
428
431
|
export type Options =
|
|
432
|
+
| readonly []
|
|
433
|
+
| readonly ['always' | 'ignorePackages' | 'never']
|
|
429
434
|
| readonly [
|
|
430
435
|
'always' | 'ignorePackages' | 'never',
|
|
431
|
-
{
|
|
432
|
-
|
|
433
|
-
string,
|
|
434
|
-
'always' | 'ignorePackages' | 'never'
|
|
436
|
+
Readonly<{
|
|
437
|
+
pattern?: Readonly<
|
|
438
|
+
Record<string, 'always' | 'ignorePackages' | 'never'>
|
|
435
439
|
>;
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
}[];
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
}
|
|
440
|
+
ignorePackages?: boolean;
|
|
441
|
+
checkTypeImports?: boolean;
|
|
442
|
+
pathGroupOverrides?: readonly Readonly<{
|
|
443
|
+
pattern: string;
|
|
444
|
+
patternOptions?: Readonly<Record<string, unknown>>;
|
|
445
|
+
action: 'enforce' | 'ignore';
|
|
446
|
+
}>[];
|
|
447
|
+
fix?: boolean;
|
|
448
|
+
[k: string]: unknown;
|
|
449
|
+
}>,
|
|
446
450
|
]
|
|
447
451
|
| readonly [
|
|
448
|
-
|
|
449
|
-
|
|
452
|
+
Readonly<{
|
|
453
|
+
pattern?: Readonly<
|
|
454
|
+
Record<string, 'always' | 'ignorePackages' | 'never'>
|
|
455
|
+
>;
|
|
456
|
+
ignorePackages?: boolean;
|
|
457
|
+
checkTypeImports?: boolean;
|
|
458
|
+
pathGroupOverrides?: readonly Readonly<{
|
|
459
|
+
pattern: string;
|
|
460
|
+
patternOptions?: Readonly<Record<string, unknown>>;
|
|
461
|
+
action: 'enforce' | 'ignore';
|
|
462
|
+
}>[];
|
|
463
|
+
fix?: boolean;
|
|
464
|
+
[k: string]: unknown;
|
|
465
|
+
}>,
|
|
450
466
|
]
|
|
451
467
|
| readonly [
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
string,
|
|
455
|
-
'always' | 'ignorePackages' | 'never'
|
|
456
|
-
>;
|
|
457
|
-
readonly ignorePackages?: boolean;
|
|
458
|
-
readonly checkTypeImports?: boolean;
|
|
459
|
-
readonly pathGroupOverrides?: readonly {
|
|
460
|
-
readonly pattern: string;
|
|
461
|
-
readonly patternOptions?: UnknownRecord;
|
|
462
|
-
readonly action: 'enforce' | 'ignore';
|
|
463
|
-
}[];
|
|
464
|
-
readonly fix?: boolean;
|
|
465
|
-
readonly [k: string]: unknown;
|
|
466
|
-
},
|
|
468
|
+
'always' | 'ignorePackages' | 'never',
|
|
469
|
+
Readonly<Record<string, 'always' | 'ignorePackages' | 'never'>>,
|
|
467
470
|
]
|
|
468
|
-
| readonly [
|
|
469
|
-
|
|
470
|
-
|
|
471
|
+
| readonly [
|
|
472
|
+
Readonly<Record<string, 'always' | 'ignorePackages' | 'never'>>,
|
|
473
|
+
];
|
|
471
474
|
|
|
472
475
|
export type RuleEntry =
|
|
476
|
+
| 'off'
|
|
473
477
|
| Linter.Severity
|
|
474
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
475
|
-
| 'off';
|
|
478
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
476
479
|
}
|
|
477
480
|
|
|
478
481
|
/**
|
|
@@ -555,29 +558,29 @@ namespace NoRestrictedPaths {
|
|
|
555
558
|
* ]
|
|
556
559
|
* ```
|
|
557
560
|
*/
|
|
558
|
-
export type Options = {
|
|
561
|
+
export type Options = Readonly<{
|
|
559
562
|
/** @minItems 1 */
|
|
560
|
-
|
|
561
|
-
{
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
}
|
|
567
|
-
...
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
}[]
|
|
563
|
+
zones?: readonly [
|
|
564
|
+
Readonly<{
|
|
565
|
+
target?: string | readonly [string, ...string[]];
|
|
566
|
+
from?: string | readonly [string, ...string[]];
|
|
567
|
+
except?: readonly string[];
|
|
568
|
+
message?: string;
|
|
569
|
+
}>,
|
|
570
|
+
...Readonly<{
|
|
571
|
+
target?: string | readonly [string, ...string[]];
|
|
572
|
+
from?: string | readonly [string, ...string[]];
|
|
573
|
+
except?: readonly string[];
|
|
574
|
+
message?: string;
|
|
575
|
+
}>[],
|
|
573
576
|
];
|
|
574
|
-
|
|
575
|
-
}
|
|
577
|
+
basePath?: string;
|
|
578
|
+
}>;
|
|
576
579
|
|
|
577
580
|
export type RuleEntry =
|
|
581
|
+
| 'off'
|
|
578
582
|
| Linter.Severity
|
|
579
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
580
|
-
| 'off';
|
|
583
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
581
584
|
}
|
|
582
585
|
|
|
583
586
|
/**
|
|
@@ -629,18 +632,19 @@ namespace NoInternalModules {
|
|
|
629
632
|
* ]
|
|
630
633
|
* ```
|
|
631
634
|
*/
|
|
632
|
-
export type Options =
|
|
635
|
+
export type Options = Readonly<
|
|
633
636
|
| {
|
|
634
|
-
|
|
637
|
+
allow?: readonly string[];
|
|
635
638
|
}
|
|
636
639
|
| {
|
|
637
|
-
|
|
638
|
-
}
|
|
640
|
+
forbid?: readonly string[];
|
|
641
|
+
}
|
|
642
|
+
>;
|
|
639
643
|
|
|
640
644
|
export type RuleEntry =
|
|
645
|
+
| 'off'
|
|
641
646
|
| Linter.Severity
|
|
642
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
643
|
-
| 'off';
|
|
647
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
644
648
|
}
|
|
645
649
|
|
|
646
650
|
/**
|
|
@@ -704,18 +708,18 @@ namespace NoRelativePackages {
|
|
|
704
708
|
* ]
|
|
705
709
|
* ```
|
|
706
710
|
*/
|
|
707
|
-
export type Options = {
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
+
export type Options = Readonly<{
|
|
712
|
+
commonjs?: boolean;
|
|
713
|
+
amd?: boolean;
|
|
714
|
+
esmodule?: boolean;
|
|
711
715
|
/** @minItems 1 */
|
|
712
|
-
|
|
713
|
-
}
|
|
716
|
+
ignore?: readonly [string, ...string[]];
|
|
717
|
+
}>;
|
|
714
718
|
|
|
715
719
|
export type RuleEntry =
|
|
720
|
+
| 'off'
|
|
716
721
|
| Linter.Severity
|
|
717
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
718
|
-
| 'off';
|
|
722
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
719
723
|
}
|
|
720
724
|
|
|
721
725
|
/**
|
|
@@ -762,18 +766,18 @@ namespace NoRelativeParentImports {
|
|
|
762
766
|
* ]
|
|
763
767
|
* ```
|
|
764
768
|
*/
|
|
765
|
-
export type Options = {
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
+
export type Options = Readonly<{
|
|
770
|
+
commonjs?: boolean;
|
|
771
|
+
amd?: boolean;
|
|
772
|
+
esmodule?: boolean;
|
|
769
773
|
/** @minItems 1 */
|
|
770
|
-
|
|
771
|
-
}
|
|
774
|
+
ignore?: readonly [string, ...string[]];
|
|
775
|
+
}>;
|
|
772
776
|
|
|
773
777
|
export type RuleEntry =
|
|
778
|
+
| 'off'
|
|
774
779
|
| Linter.Severity
|
|
775
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
776
|
-
| 'off';
|
|
780
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
777
781
|
}
|
|
778
782
|
|
|
779
783
|
/**
|
|
@@ -806,12 +810,12 @@ namespace ConsistentTypeSpecifierStyle {
|
|
|
806
810
|
* ]
|
|
807
811
|
* ```
|
|
808
812
|
*/
|
|
809
|
-
export type Options = 'prefer-
|
|
813
|
+
export type Options = 'prefer-top-level' | 'prefer-inline';
|
|
810
814
|
|
|
811
815
|
export type RuleEntry =
|
|
816
|
+
| 'off'
|
|
812
817
|
| Linter.Severity
|
|
813
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
814
|
-
| 'off';
|
|
818
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
815
819
|
}
|
|
816
820
|
|
|
817
821
|
/**
|
|
@@ -901,26 +905,32 @@ namespace NoCycle {
|
|
|
901
905
|
* ]
|
|
902
906
|
* ```
|
|
903
907
|
*/
|
|
904
|
-
export type Options = {
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
+
export type Options = Readonly<{
|
|
909
|
+
commonjs?: boolean;
|
|
910
|
+
amd?: boolean;
|
|
911
|
+
esmodule?: boolean;
|
|
908
912
|
/** @minItems 1 */
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
/**
|
|
912
|
-
|
|
913
|
+
ignore?: readonly [string, ...string[]];
|
|
914
|
+
maxDepth?: number | '∞';
|
|
915
|
+
/**
|
|
916
|
+
* Ignore external modules
|
|
917
|
+
*
|
|
918
|
+
* @default false
|
|
919
|
+
*/
|
|
920
|
+
ignoreExternal?: boolean;
|
|
913
921
|
/**
|
|
914
922
|
* Allow cyclic dependency if there is at least one dynamic import in the
|
|
915
923
|
* chain
|
|
924
|
+
*
|
|
925
|
+
* @default false
|
|
916
926
|
*/
|
|
917
|
-
|
|
918
|
-
}
|
|
927
|
+
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
928
|
+
}>;
|
|
919
929
|
|
|
920
930
|
export type RuleEntry =
|
|
931
|
+
| 'off'
|
|
921
932
|
| Linter.Severity
|
|
922
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
923
|
-
| 'off';
|
|
933
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
924
934
|
}
|
|
925
935
|
|
|
926
936
|
/**
|
|
@@ -1030,29 +1040,29 @@ namespace NoAnonymousDefaultExport {
|
|
|
1030
1040
|
* ]
|
|
1031
1041
|
* ```
|
|
1032
1042
|
*/
|
|
1033
|
-
export type Options = {
|
|
1043
|
+
export type Options = Readonly<{
|
|
1034
1044
|
/** If `false`, will report default export of an array */
|
|
1035
|
-
|
|
1045
|
+
allowArray?: boolean;
|
|
1036
1046
|
/** If `false`, will report default export of an arrow function */
|
|
1037
|
-
|
|
1047
|
+
allowArrowFunction?: boolean;
|
|
1038
1048
|
/** If `false`, will report default export of a function call */
|
|
1039
|
-
|
|
1049
|
+
allowCallExpression?: boolean;
|
|
1040
1050
|
/** If `false`, will report default export of an anonymous class */
|
|
1041
|
-
|
|
1051
|
+
allowAnonymousClass?: boolean;
|
|
1042
1052
|
/** If `false`, will report default export of an anonymous function */
|
|
1043
|
-
|
|
1053
|
+
allowAnonymousFunction?: boolean;
|
|
1044
1054
|
/** If `false`, will report default export of a literal */
|
|
1045
|
-
|
|
1055
|
+
allowLiteral?: boolean;
|
|
1046
1056
|
/** If `false`, will report default export of an object expression */
|
|
1047
|
-
|
|
1057
|
+
allowObject?: boolean;
|
|
1048
1058
|
/** If `false`, will report default export of a class instantiation */
|
|
1049
|
-
|
|
1050
|
-
}
|
|
1059
|
+
allowNew?: boolean;
|
|
1060
|
+
}>;
|
|
1051
1061
|
|
|
1052
1062
|
export type RuleEntry =
|
|
1063
|
+
| 'off'
|
|
1053
1064
|
| Linter.Severity
|
|
1054
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1055
|
-
| 'off';
|
|
1065
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1056
1066
|
}
|
|
1057
1067
|
|
|
1058
1068
|
/**
|
|
@@ -1090,15 +1100,17 @@ namespace NoRenameDefault {
|
|
|
1090
1100
|
* ]
|
|
1091
1101
|
* ```
|
|
1092
1102
|
*/
|
|
1093
|
-
export type Options = {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1103
|
+
export type Options = Readonly<{
|
|
1104
|
+
/** @default false */
|
|
1105
|
+
commonjs?: boolean;
|
|
1106
|
+
/** @default true */
|
|
1107
|
+
preventRenamingBindings?: boolean;
|
|
1108
|
+
}>;
|
|
1097
1109
|
|
|
1098
1110
|
export type RuleEntry =
|
|
1111
|
+
| 'off'
|
|
1099
1112
|
| Linter.Severity
|
|
1100
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1101
|
-
| 'off';
|
|
1113
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1102
1114
|
}
|
|
1103
1115
|
|
|
1104
1116
|
/**
|
|
@@ -1192,38 +1204,40 @@ namespace NoUnusedModules {
|
|
|
1192
1204
|
* ]
|
|
1193
1205
|
* ```
|
|
1194
1206
|
*/
|
|
1195
|
-
export type Options =
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1207
|
+
export type Options = Readonly<
|
|
1208
|
+
(
|
|
1209
|
+
| {
|
|
1210
|
+
unusedExports: true;
|
|
1211
|
+
/** @minItems 1 */
|
|
1212
|
+
src?: readonly [unknown, ...unknown[]];
|
|
1213
|
+
[k: string]: unknown;
|
|
1214
|
+
}
|
|
1215
|
+
| {
|
|
1216
|
+
missingExports: true;
|
|
1217
|
+
[k: string]: unknown;
|
|
1218
|
+
}
|
|
1219
|
+
) & {
|
|
1220
|
+
/** Files/paths to be analyzed (only for unused exports) */
|
|
1221
|
+
src?: readonly string[];
|
|
1222
|
+
/**
|
|
1223
|
+
* Files/paths for which unused exports will not be reported (e.g module
|
|
1224
|
+
* entry points)
|
|
1225
|
+
*/
|
|
1226
|
+
ignoreExports?: readonly string[];
|
|
1227
|
+
/** Report modules without any exports */
|
|
1228
|
+
missingExports?: boolean;
|
|
1229
|
+
/** Report exports without any usage */
|
|
1230
|
+
unusedExports?: boolean;
|
|
1231
|
+
/** Ignore type exports without any usage */
|
|
1232
|
+
ignoreUnusedTypeExports?: boolean;
|
|
1233
|
+
[k: string]: unknown;
|
|
1234
|
+
}
|
|
1235
|
+
>;
|
|
1222
1236
|
|
|
1223
1237
|
export type RuleEntry =
|
|
1238
|
+
| 'off'
|
|
1224
1239
|
| Linter.Severity
|
|
1225
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1226
|
-
| 'off';
|
|
1240
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1227
1241
|
}
|
|
1228
1242
|
|
|
1229
1243
|
/**
|
|
@@ -1281,20 +1295,20 @@ namespace NoCommonjs {
|
|
|
1281
1295
|
* ```
|
|
1282
1296
|
*/
|
|
1283
1297
|
export type Options =
|
|
1284
|
-
| readonly [
|
|
1285
|
-
{
|
|
1286
|
-
readonly allowPrimitiveModules?: boolean;
|
|
1287
|
-
readonly allowRequire?: boolean;
|
|
1288
|
-
readonly allowConditionalRequire?: boolean;
|
|
1289
|
-
},
|
|
1290
|
-
]
|
|
1298
|
+
| readonly []
|
|
1291
1299
|
| readonly ['allow-primitive-modules']
|
|
1292
|
-
| readonly [
|
|
1300
|
+
| readonly [
|
|
1301
|
+
Readonly<{
|
|
1302
|
+
allowPrimitiveModules?: boolean;
|
|
1303
|
+
allowRequire?: boolean;
|
|
1304
|
+
allowConditionalRequire?: boolean;
|
|
1305
|
+
}>,
|
|
1306
|
+
];
|
|
1293
1307
|
|
|
1294
1308
|
export type RuleEntry =
|
|
1309
|
+
| 'off'
|
|
1295
1310
|
| Linter.Severity
|
|
1296
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1297
|
-
| 'off';
|
|
1311
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1298
1312
|
}
|
|
1299
1313
|
|
|
1300
1314
|
/**
|
|
@@ -1347,15 +1361,15 @@ namespace NoDuplicates {
|
|
|
1347
1361
|
* ]
|
|
1348
1362
|
* ```
|
|
1349
1363
|
*/
|
|
1350
|
-
export type Options = {
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
}
|
|
1364
|
+
export type Options = Readonly<{
|
|
1365
|
+
considerQueryString?: boolean;
|
|
1366
|
+
'prefer-inline'?: boolean;
|
|
1367
|
+
}>;
|
|
1354
1368
|
|
|
1355
1369
|
export type RuleEntry =
|
|
1370
|
+
| 'off'
|
|
1356
1371
|
| Linter.Severity
|
|
1357
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1358
|
-
| 'off';
|
|
1372
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1359
1373
|
}
|
|
1360
1374
|
|
|
1361
1375
|
/**
|
|
@@ -1390,9 +1404,9 @@ namespace First {
|
|
|
1390
1404
|
export type Options = 'absolute-first' | 'disable-absolute-first';
|
|
1391
1405
|
|
|
1392
1406
|
export type RuleEntry =
|
|
1407
|
+
| 'off'
|
|
1393
1408
|
| Linter.Severity
|
|
1394
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1395
|
-
| 'off';
|
|
1409
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1396
1410
|
}
|
|
1397
1411
|
|
|
1398
1412
|
/**
|
|
@@ -1428,15 +1442,15 @@ namespace MaxDependencies {
|
|
|
1428
1442
|
* ]
|
|
1429
1443
|
* ```
|
|
1430
1444
|
*/
|
|
1431
|
-
export type Options = {
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
}
|
|
1445
|
+
export type Options = Readonly<{
|
|
1446
|
+
max?: number;
|
|
1447
|
+
ignoreTypeImports?: boolean;
|
|
1448
|
+
}>;
|
|
1435
1449
|
|
|
1436
1450
|
export type RuleEntry =
|
|
1451
|
+
| 'off'
|
|
1437
1452
|
| Linter.Severity
|
|
1438
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1439
|
-
| 'off';
|
|
1453
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1440
1454
|
}
|
|
1441
1455
|
|
|
1442
1456
|
/**
|
|
@@ -1511,21 +1525,21 @@ namespace NoExtraneousDependencies {
|
|
|
1511
1525
|
* ]
|
|
1512
1526
|
* ```
|
|
1513
1527
|
*/
|
|
1514
|
-
export type Options = {
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
}
|
|
1528
|
+
export type Options = Readonly<{
|
|
1529
|
+
devDependencies?: boolean | readonly unknown[];
|
|
1530
|
+
optionalDependencies?: boolean | readonly unknown[];
|
|
1531
|
+
peerDependencies?: boolean | readonly unknown[];
|
|
1532
|
+
bundledDependencies?: boolean | readonly unknown[];
|
|
1533
|
+
packageDir?: string | readonly unknown[];
|
|
1534
|
+
includeInternal?: boolean;
|
|
1535
|
+
includeTypes?: boolean;
|
|
1536
|
+
whitelist?: readonly unknown[];
|
|
1537
|
+
}>;
|
|
1524
1538
|
|
|
1525
1539
|
export type RuleEntry =
|
|
1540
|
+
| 'off'
|
|
1526
1541
|
| Linter.Severity
|
|
1527
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1528
|
-
| 'off';
|
|
1542
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1529
1543
|
}
|
|
1530
1544
|
|
|
1531
1545
|
/**
|
|
@@ -1573,18 +1587,18 @@ namespace NoAbsolutePath {
|
|
|
1573
1587
|
* ]
|
|
1574
1588
|
* ```
|
|
1575
1589
|
*/
|
|
1576
|
-
export type Options = {
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1590
|
+
export type Options = Readonly<{
|
|
1591
|
+
commonjs?: boolean;
|
|
1592
|
+
amd?: boolean;
|
|
1593
|
+
esmodule?: boolean;
|
|
1580
1594
|
/** @minItems 1 */
|
|
1581
|
-
|
|
1582
|
-
}
|
|
1595
|
+
ignore?: readonly [string, ...string[]];
|
|
1596
|
+
}>;
|
|
1583
1597
|
|
|
1584
1598
|
export type RuleEntry =
|
|
1599
|
+
| 'off'
|
|
1585
1600
|
| Linter.Severity
|
|
1586
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1587
|
-
| 'off';
|
|
1601
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1588
1602
|
}
|
|
1589
1603
|
|
|
1590
1604
|
/**
|
|
@@ -1621,14 +1635,14 @@ namespace NoNodejsModules {
|
|
|
1621
1635
|
* ]
|
|
1622
1636
|
* ```
|
|
1623
1637
|
*/
|
|
1624
|
-
export type Options = {
|
|
1625
|
-
|
|
1626
|
-
}
|
|
1638
|
+
export type Options = Readonly<{
|
|
1639
|
+
allow?: readonly string[];
|
|
1640
|
+
}>;
|
|
1627
1641
|
|
|
1628
1642
|
export type RuleEntry =
|
|
1643
|
+
| 'off'
|
|
1629
1644
|
| Linter.Severity
|
|
1630
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1631
|
-
| 'off';
|
|
1645
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1632
1646
|
}
|
|
1633
1647
|
|
|
1634
1648
|
/**
|
|
@@ -1871,59 +1885,63 @@ namespace Order {
|
|
|
1871
1885
|
* ]
|
|
1872
1886
|
* ```
|
|
1873
1887
|
*/
|
|
1874
|
-
export type Options = {
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1888
|
+
export type Options = Readonly<{
|
|
1889
|
+
groups?: readonly unknown[];
|
|
1890
|
+
pathGroupsExcludedImportTypes?: readonly unknown[];
|
|
1891
|
+
/** @default true */
|
|
1892
|
+
distinctGroup?: boolean;
|
|
1893
|
+
pathGroups?: readonly Readonly<{
|
|
1894
|
+
pattern: string;
|
|
1895
|
+
patternOptions?: Readonly<Record<string, unknown>>;
|
|
1896
|
+
group:
|
|
1882
1897
|
| 'builtin'
|
|
1883
1898
|
| 'external'
|
|
1884
|
-
| 'index'
|
|
1885
1899
|
| 'internal'
|
|
1886
|
-
| '
|
|
1900
|
+
| 'unknown'
|
|
1887
1901
|
| 'parent'
|
|
1888
1902
|
| 'sibling'
|
|
1889
|
-
| '
|
|
1890
|
-
| '
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
| 'always'
|
|
1903
|
+
| 'index'
|
|
1904
|
+
| 'object'
|
|
1905
|
+
| 'type';
|
|
1906
|
+
position?: 'after' | 'before';
|
|
1907
|
+
}>[];
|
|
1908
|
+
'newlines-between'?:
|
|
1896
1909
|
| 'ignore'
|
|
1897
|
-
| 'never';
|
|
1898
|
-
readonly 'newlines-between-types'?:
|
|
1899
|
-
| 'always-and-inside-groups'
|
|
1900
1910
|
| 'always'
|
|
1911
|
+
| 'always-and-inside-groups'
|
|
1912
|
+
| 'never';
|
|
1913
|
+
'newlines-between-types'?:
|
|
1901
1914
|
| 'ignore'
|
|
1915
|
+
| 'always'
|
|
1916
|
+
| 'always-and-inside-groups'
|
|
1902
1917
|
| 'never';
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1918
|
+
consolidateIslands?: 'inside-groups' | 'never';
|
|
1919
|
+
/** @default false */
|
|
1920
|
+
sortTypesGroup?: boolean;
|
|
1921
|
+
/** @default false */
|
|
1922
|
+
named?:
|
|
1906
1923
|
| boolean
|
|
1907
|
-
| {
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
}
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
}
|
|
1920
|
-
|
|
1921
|
-
|
|
1924
|
+
| Readonly<{
|
|
1925
|
+
enabled?: boolean;
|
|
1926
|
+
import?: boolean;
|
|
1927
|
+
export?: boolean;
|
|
1928
|
+
require?: boolean;
|
|
1929
|
+
cjsExports?: boolean;
|
|
1930
|
+
types?: 'mixed' | 'types-first' | 'types-last';
|
|
1931
|
+
}>;
|
|
1932
|
+
alphabetize?: Readonly<{
|
|
1933
|
+
caseInsensitive?: boolean;
|
|
1934
|
+
order?: 'ignore' | 'asc' | 'desc';
|
|
1935
|
+
orderImportKind?: 'ignore' | 'asc' | 'desc';
|
|
1936
|
+
}>;
|
|
1937
|
+
/** @default false */
|
|
1938
|
+
warnOnUnassignedImports?: boolean;
|
|
1939
|
+
}>;
|
|
1922
1940
|
|
|
1923
1941
|
export type RuleEntry =
|
|
1942
|
+
| 'off'
|
|
1924
1943
|
| Linter.Severity
|
|
1925
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1926
|
-
| 'off';
|
|
1944
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1927
1945
|
}
|
|
1928
1946
|
|
|
1929
1947
|
/**
|
|
@@ -1964,16 +1982,16 @@ namespace NewlineAfterImport {
|
|
|
1964
1982
|
* ]
|
|
1965
1983
|
* ```
|
|
1966
1984
|
*/
|
|
1967
|
-
export type Options = {
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
}
|
|
1985
|
+
export type Options = Readonly<{
|
|
1986
|
+
count?: number;
|
|
1987
|
+
exactCount?: boolean;
|
|
1988
|
+
considerComments?: boolean;
|
|
1989
|
+
}>;
|
|
1972
1990
|
|
|
1973
1991
|
export type RuleEntry =
|
|
1992
|
+
| 'off'
|
|
1974
1993
|
| Linter.Severity
|
|
1975
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1976
|
-
| 'off';
|
|
1994
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1977
1995
|
}
|
|
1978
1996
|
|
|
1979
1997
|
/**
|
|
@@ -2011,14 +2029,15 @@ namespace PreferDefaultExport {
|
|
|
2011
2029
|
* ]
|
|
2012
2030
|
* ```
|
|
2013
2031
|
*/
|
|
2014
|
-
export type Options = {
|
|
2015
|
-
|
|
2016
|
-
|
|
2032
|
+
export type Options = Readonly<{
|
|
2033
|
+
/** @default 'single' */
|
|
2034
|
+
target?: 'single' | 'any';
|
|
2035
|
+
}>;
|
|
2017
2036
|
|
|
2018
2037
|
export type RuleEntry =
|
|
2038
|
+
| 'off'
|
|
2019
2039
|
| Linter.Severity
|
|
2020
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2021
|
-
| 'off';
|
|
2040
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2022
2041
|
}
|
|
2023
2042
|
|
|
2024
2043
|
/**
|
|
@@ -2057,14 +2076,14 @@ namespace PreferNamespaceImport {
|
|
|
2057
2076
|
* ]
|
|
2058
2077
|
* ```
|
|
2059
2078
|
*/
|
|
2060
|
-
export type Options = {
|
|
2061
|
-
|
|
2062
|
-
}
|
|
2079
|
+
export type Options = Readonly<{
|
|
2080
|
+
patterns?: readonly string[];
|
|
2081
|
+
}>;
|
|
2063
2082
|
|
|
2064
2083
|
export type RuleEntry =
|
|
2084
|
+
| 'off'
|
|
2065
2085
|
| Linter.Severity
|
|
2066
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2067
|
-
| 'off';
|
|
2086
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2068
2087
|
}
|
|
2069
2088
|
|
|
2070
2089
|
/**
|
|
@@ -2129,14 +2148,14 @@ namespace NoDynamicRequire {
|
|
|
2129
2148
|
* ]
|
|
2130
2149
|
* ```
|
|
2131
2150
|
*/
|
|
2132
|
-
export type Options = {
|
|
2133
|
-
|
|
2134
|
-
}
|
|
2151
|
+
export type Options = Readonly<{
|
|
2152
|
+
esmodule?: boolean;
|
|
2153
|
+
}>;
|
|
2135
2154
|
|
|
2136
2155
|
export type RuleEntry =
|
|
2156
|
+
| 'off'
|
|
2137
2157
|
| Linter.Severity
|
|
2138
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2139
|
-
| 'off';
|
|
2158
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2140
2159
|
}
|
|
2141
2160
|
|
|
2142
2161
|
/**
|
|
@@ -2206,17 +2225,17 @@ namespace NoUnassignedImport {
|
|
|
2206
2225
|
* ]
|
|
2207
2226
|
* ```
|
|
2208
2227
|
*/
|
|
2209
|
-
export type Options = {
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
}
|
|
2228
|
+
export type Options = Readonly<{
|
|
2229
|
+
devDependencies?: boolean | readonly unknown[];
|
|
2230
|
+
optionalDependencies?: boolean | readonly unknown[];
|
|
2231
|
+
peerDependencies?: boolean | readonly unknown[];
|
|
2232
|
+
allow?: readonly string[];
|
|
2233
|
+
}>;
|
|
2215
2234
|
|
|
2216
2235
|
export type RuleEntry =
|
|
2236
|
+
| 'off'
|
|
2217
2237
|
| Linter.Severity
|
|
2218
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2219
|
-
| 'off';
|
|
2238
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2220
2239
|
}
|
|
2221
2240
|
|
|
2222
2241
|
/**
|
|
@@ -2253,15 +2272,15 @@ namespace NoUselessPathSegments {
|
|
|
2253
2272
|
* ]
|
|
2254
2273
|
* ```
|
|
2255
2274
|
*/
|
|
2256
|
-
export type Options = {
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
}
|
|
2275
|
+
export type Options = Readonly<{
|
|
2276
|
+
commonjs?: boolean;
|
|
2277
|
+
noUselessIndex?: boolean;
|
|
2278
|
+
}>;
|
|
2260
2279
|
|
|
2261
2280
|
export type RuleEntry =
|
|
2281
|
+
| 'off'
|
|
2262
2282
|
| Linter.Severity
|
|
2263
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2264
|
-
| 'off';
|
|
2283
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2265
2284
|
}
|
|
2266
2285
|
|
|
2267
2286
|
/**
|
|
@@ -2304,17 +2323,17 @@ namespace DynamicImportChunkname {
|
|
|
2304
2323
|
* ]
|
|
2305
2324
|
* ```
|
|
2306
2325
|
*/
|
|
2307
|
-
export type Options = {
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
}
|
|
2326
|
+
export type Options = Readonly<{
|
|
2327
|
+
importFunctions?: readonly string[];
|
|
2328
|
+
allowEmpty?: boolean;
|
|
2329
|
+
webpackChunknameFormat?: string;
|
|
2330
|
+
[k: string]: unknown;
|
|
2331
|
+
}>;
|
|
2313
2332
|
|
|
2314
2333
|
export type RuleEntry =
|
|
2334
|
+
| 'off'
|
|
2315
2335
|
| Linter.Severity
|
|
2316
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2317
|
-
| 'off';
|
|
2336
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2318
2337
|
}
|
|
2319
2338
|
|
|
2320
2339
|
/**
|
|
@@ -2349,14 +2368,14 @@ namespace NoImportModuleExports {
|
|
|
2349
2368
|
* ]
|
|
2350
2369
|
* ```
|
|
2351
2370
|
*/
|
|
2352
|
-
export type Options = {
|
|
2353
|
-
|
|
2354
|
-
}
|
|
2371
|
+
export type Options = Readonly<{
|
|
2372
|
+
exceptions?: readonly unknown[];
|
|
2373
|
+
}>;
|
|
2355
2374
|
|
|
2356
2375
|
export type RuleEntry =
|
|
2376
|
+
| 'off'
|
|
2357
2377
|
| Linter.Severity
|
|
2358
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
2359
|
-
| 'off';
|
|
2378
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
2360
2379
|
}
|
|
2361
2380
|
|
|
2362
2381
|
/**
|
|
@@ -2441,87 +2460,87 @@ namespace ImportsFirst {
|
|
|
2441
2460
|
export type RuleEntry = 0;
|
|
2442
2461
|
}
|
|
2443
2462
|
|
|
2444
|
-
export type EslintImportsRules = {
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2463
|
+
export type EslintImportsRules = Readonly<{
|
|
2464
|
+
'import-x/no-unresolved': NoUnresolved.RuleEntry;
|
|
2465
|
+
'import-x/named': Named.RuleEntry;
|
|
2466
|
+
'import-x/default': Default.RuleEntry;
|
|
2467
|
+
'import-x/namespace': Namespace.RuleEntry;
|
|
2468
|
+
'import-x/no-namespace': NoNamespace.RuleEntry;
|
|
2469
|
+
'import-x/export': Export.RuleEntry;
|
|
2470
|
+
'import-x/no-mutable-exports': NoMutableExports.RuleEntry;
|
|
2471
|
+
'import-x/extensions': Extensions.RuleEntry;
|
|
2472
|
+
'import-x/no-restricted-paths': NoRestrictedPaths.RuleEntry;
|
|
2473
|
+
'import-x/no-internal-modules': NoInternalModules.RuleEntry;
|
|
2474
|
+
'import-x/group-exports': GroupExports.RuleEntry;
|
|
2475
|
+
'import-x/no-relative-packages': NoRelativePackages.RuleEntry;
|
|
2476
|
+
'import-x/no-relative-parent-imports': NoRelativeParentImports.RuleEntry;
|
|
2477
|
+
'import-x/consistent-type-specifier-style': ConsistentTypeSpecifierStyle.RuleEntry;
|
|
2478
|
+
'import-x/no-self-import': NoSelfImport.RuleEntry;
|
|
2479
|
+
'import-x/no-cycle': NoCycle.RuleEntry;
|
|
2480
|
+
'import-x/no-named-default': NoNamedDefault.RuleEntry;
|
|
2481
|
+
'import-x/no-named-as-default': NoNamedAsDefault.RuleEntry;
|
|
2482
|
+
'import-x/no-named-as-default-member': NoNamedAsDefaultMember.RuleEntry;
|
|
2483
|
+
'import-x/no-anonymous-default-export': NoAnonymousDefaultExport.RuleEntry;
|
|
2484
|
+
'import-x/no-rename-default': NoRenameDefault.RuleEntry;
|
|
2485
|
+
'import-x/no-unused-modules': NoUnusedModules.RuleEntry;
|
|
2486
|
+
'import-x/no-commonjs': NoCommonjs.RuleEntry;
|
|
2487
|
+
'import-x/no-amd': NoAmd.RuleEntry;
|
|
2488
|
+
'import-x/no-duplicates': NoDuplicates.RuleEntry;
|
|
2489
|
+
'import-x/first': First.RuleEntry;
|
|
2490
|
+
'import-x/max-dependencies': MaxDependencies.RuleEntry;
|
|
2491
|
+
'import-x/no-extraneous-dependencies': NoExtraneousDependencies.RuleEntry;
|
|
2492
|
+
'import-x/no-absolute-path': NoAbsolutePath.RuleEntry;
|
|
2493
|
+
'import-x/no-nodejs-modules': NoNodejsModules.RuleEntry;
|
|
2494
|
+
'import-x/no-webpack-loader-syntax': NoWebpackLoaderSyntax.RuleEntry;
|
|
2495
|
+
'import-x/order': Order.RuleEntry;
|
|
2496
|
+
'import-x/newline-after-import': NewlineAfterImport.RuleEntry;
|
|
2497
|
+
'import-x/prefer-default-export': PreferDefaultExport.RuleEntry;
|
|
2498
|
+
'import-x/prefer-namespace-import': PreferNamespaceImport.RuleEntry;
|
|
2499
|
+
'import-x/no-default-export': NoDefaultExport.RuleEntry;
|
|
2500
|
+
'import-x/no-named-export': NoNamedExport.RuleEntry;
|
|
2501
|
+
'import-x/no-dynamic-require': NoDynamicRequire.RuleEntry;
|
|
2502
|
+
'import-x/unambiguous': Unambiguous.RuleEntry;
|
|
2503
|
+
'import-x/no-unassigned-import': NoUnassignedImport.RuleEntry;
|
|
2504
|
+
'import-x/no-useless-path-segments': NoUselessPathSegments.RuleEntry;
|
|
2505
|
+
'import-x/dynamic-import-chunkname': DynamicImportChunkname.RuleEntry;
|
|
2506
|
+
'import-x/no-import-module-exports': NoImportModuleExports.RuleEntry;
|
|
2507
|
+
'import-x/no-empty-named-blocks': NoEmptyNamedBlocks.RuleEntry;
|
|
2508
|
+
'import-x/exports-last': ExportsLast.RuleEntry;
|
|
2509
|
+
'import-x/no-deprecated': NoDeprecated.RuleEntry;
|
|
2491
2510
|
|
|
2492
2511
|
// deprecated
|
|
2493
|
-
|
|
2494
|
-
}
|
|
2495
|
-
|
|
2496
|
-
export type EslintImportsRulesOption = {
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
}
|
|
2512
|
+
'import-x/imports-first': ImportsFirst.RuleEntry;
|
|
2513
|
+
}>;
|
|
2514
|
+
|
|
2515
|
+
export type EslintImportsRulesOption = Readonly<{
|
|
2516
|
+
'import-x/no-unresolved': NoUnresolved.Options;
|
|
2517
|
+
'import-x/named': Named.Options;
|
|
2518
|
+
'import-x/namespace': Namespace.Options;
|
|
2519
|
+
'import-x/no-namespace': NoNamespace.Options;
|
|
2520
|
+
'import-x/extensions': Extensions.Options;
|
|
2521
|
+
'import-x/no-restricted-paths': NoRestrictedPaths.Options;
|
|
2522
|
+
'import-x/no-internal-modules': NoInternalModules.Options;
|
|
2523
|
+
'import-x/no-relative-packages': NoRelativePackages.Options;
|
|
2524
|
+
'import-x/no-relative-parent-imports': NoRelativeParentImports.Options;
|
|
2525
|
+
'import-x/consistent-type-specifier-style': ConsistentTypeSpecifierStyle.Options;
|
|
2526
|
+
'import-x/no-cycle': NoCycle.Options;
|
|
2527
|
+
'import-x/no-anonymous-default-export': NoAnonymousDefaultExport.Options;
|
|
2528
|
+
'import-x/no-rename-default': NoRenameDefault.Options;
|
|
2529
|
+
'import-x/no-unused-modules': NoUnusedModules.Options;
|
|
2530
|
+
'import-x/no-commonjs': NoCommonjs.Options;
|
|
2531
|
+
'import-x/no-duplicates': NoDuplicates.Options;
|
|
2532
|
+
'import-x/first': First.Options;
|
|
2533
|
+
'import-x/max-dependencies': MaxDependencies.Options;
|
|
2534
|
+
'import-x/no-extraneous-dependencies': NoExtraneousDependencies.Options;
|
|
2535
|
+
'import-x/no-absolute-path': NoAbsolutePath.Options;
|
|
2536
|
+
'import-x/no-nodejs-modules': NoNodejsModules.Options;
|
|
2537
|
+
'import-x/order': Order.Options;
|
|
2538
|
+
'import-x/newline-after-import': NewlineAfterImport.Options;
|
|
2539
|
+
'import-x/prefer-default-export': PreferDefaultExport.Options;
|
|
2540
|
+
'import-x/prefer-namespace-import': PreferNamespaceImport.Options;
|
|
2541
|
+
'import-x/no-dynamic-require': NoDynamicRequire.Options;
|
|
2542
|
+
'import-x/no-unassigned-import': NoUnassignedImport.Options;
|
|
2543
|
+
'import-x/no-useless-path-segments': NoUselessPathSegments.Options;
|
|
2544
|
+
'import-x/dynamic-import-chunkname': DynamicImportChunkname.Options;
|
|
2545
|
+
'import-x/no-import-module-exports': NoImportModuleExports.Options;
|
|
2546
|
+
}>;
|