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
|
@@ -58,17 +58,17 @@ namespace AwaitAsyncEvents {
|
|
|
58
58
|
* ]
|
|
59
59
|
* ```
|
|
60
60
|
*/
|
|
61
|
-
export type Options = {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
| 'fireEvent'
|
|
65
|
-
| 'userEvent';
|
|
66
|
-
}
|
|
61
|
+
export type Options = Readonly<{
|
|
62
|
+
/** @default 'userEvent' */
|
|
63
|
+
eventModule?:
|
|
64
|
+
| ('fireEvent' | 'userEvent')
|
|
65
|
+
| readonly ('fireEvent' | 'userEvent')[];
|
|
66
|
+
}>;
|
|
67
67
|
|
|
68
68
|
export type RuleEntry =
|
|
69
|
+
| 'off'
|
|
69
70
|
| Linter.Severity
|
|
70
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
71
|
-
| 'off';
|
|
71
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
/**
|
|
@@ -156,16 +156,17 @@ namespace ConsistentDataTestid {
|
|
|
156
156
|
* ]
|
|
157
157
|
* ```
|
|
158
158
|
*/
|
|
159
|
-
export type Options = {
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
159
|
+
export type Options = Readonly<{
|
|
160
|
+
testIdPattern: string;
|
|
161
|
+
/** @default 'data-testid' */
|
|
162
|
+
testIdAttribute?: string | readonly string[];
|
|
163
|
+
customMessage?: string;
|
|
164
|
+
}>;
|
|
164
165
|
|
|
165
166
|
export type RuleEntry =
|
|
167
|
+
| 'off'
|
|
166
168
|
| Linter.Severity
|
|
167
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
168
|
-
| 'off';
|
|
169
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
169
170
|
}
|
|
170
171
|
|
|
171
172
|
/**
|
|
@@ -209,18 +210,21 @@ namespace NoAwaitSyncEvents {
|
|
|
209
210
|
* ]
|
|
210
211
|
* ```
|
|
211
212
|
*/
|
|
212
|
-
export type Options = {
|
|
213
|
-
/**
|
|
214
|
-
|
|
213
|
+
export type Options = Readonly<{
|
|
214
|
+
/**
|
|
215
|
+
* @default ['fire-event']
|
|
216
|
+
* @minItems 1
|
|
217
|
+
*/
|
|
218
|
+
eventModules?: readonly [
|
|
215
219
|
'fire-event' | 'user-event',
|
|
216
|
-
...(
|
|
220
|
+
...('fire-event' | 'user-event')[],
|
|
217
221
|
];
|
|
218
|
-
}
|
|
222
|
+
}>;
|
|
219
223
|
|
|
220
224
|
export type RuleEntry =
|
|
225
|
+
| 'off'
|
|
221
226
|
| Linter.Severity
|
|
222
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
223
|
-
| 'off';
|
|
227
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
224
228
|
}
|
|
225
229
|
|
|
226
230
|
/**
|
|
@@ -307,21 +311,21 @@ namespace NoDebuggingUtils {
|
|
|
307
311
|
* ]
|
|
308
312
|
* ```
|
|
309
313
|
*/
|
|
310
|
-
export type Options = {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
}
|
|
314
|
+
export type Options = Readonly<{
|
|
315
|
+
utilsToCheckFor?: Readonly<{
|
|
316
|
+
prettyFormat?: boolean;
|
|
317
|
+
logDOM?: boolean;
|
|
318
|
+
logRoles?: boolean;
|
|
319
|
+
prettyDOM?: boolean;
|
|
320
|
+
logTestingPlaygroundURL?: boolean;
|
|
321
|
+
debug?: boolean;
|
|
322
|
+
}>;
|
|
323
|
+
}>;
|
|
320
324
|
|
|
321
325
|
export type RuleEntry =
|
|
326
|
+
| 'off'
|
|
322
327
|
| Linter.Severity
|
|
323
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
324
|
-
| 'off';
|
|
328
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
325
329
|
}
|
|
326
330
|
|
|
327
331
|
/**
|
|
@@ -352,9 +356,9 @@ namespace NoDomImport {
|
|
|
352
356
|
export type Options = string;
|
|
353
357
|
|
|
354
358
|
export type RuleEntry =
|
|
359
|
+
| 'off'
|
|
355
360
|
| Linter.Severity
|
|
356
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
357
|
-
| 'off';
|
|
361
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
358
362
|
}
|
|
359
363
|
|
|
360
364
|
/**
|
|
@@ -420,14 +424,14 @@ namespace NoNodeAccess {
|
|
|
420
424
|
* ]
|
|
421
425
|
* ```
|
|
422
426
|
*/
|
|
423
|
-
export type Options = {
|
|
424
|
-
|
|
425
|
-
}
|
|
427
|
+
export type Options = Readonly<{
|
|
428
|
+
allowContainerFirstChild?: boolean;
|
|
429
|
+
}>;
|
|
426
430
|
|
|
427
431
|
export type RuleEntry =
|
|
432
|
+
| 'off'
|
|
428
433
|
| Linter.Severity
|
|
429
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
430
|
-
| 'off';
|
|
434
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
431
435
|
}
|
|
432
436
|
|
|
433
437
|
/**
|
|
@@ -480,14 +484,14 @@ namespace NoRenderInLifecycle {
|
|
|
480
484
|
* ]
|
|
481
485
|
* ```
|
|
482
486
|
*/
|
|
483
|
-
export type Options = {
|
|
484
|
-
|
|
485
|
-
}
|
|
487
|
+
export type Options = Readonly<{
|
|
488
|
+
allowTestingFrameworkSetupHook?: 'beforeEach' | 'beforeAll';
|
|
489
|
+
}>;
|
|
486
490
|
|
|
487
491
|
export type RuleEntry =
|
|
492
|
+
| 'off'
|
|
488
493
|
| Linter.Severity
|
|
489
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
490
|
-
| 'off';
|
|
494
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
491
495
|
}
|
|
492
496
|
|
|
493
497
|
/**
|
|
@@ -536,14 +540,14 @@ namespace NoUnnecessaryAct {
|
|
|
536
540
|
* ]
|
|
537
541
|
* ```
|
|
538
542
|
*/
|
|
539
|
-
export type Options = {
|
|
540
|
-
|
|
541
|
-
}
|
|
543
|
+
export type Options = Readonly<{
|
|
544
|
+
isStrict?: boolean;
|
|
545
|
+
}>;
|
|
542
546
|
|
|
543
547
|
export type RuleEntry =
|
|
548
|
+
| 'off'
|
|
544
549
|
| Linter.Severity
|
|
545
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
546
|
-
| 'off';
|
|
550
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
547
551
|
}
|
|
548
552
|
|
|
549
553
|
/**
|
|
@@ -635,19 +639,19 @@ namespace PreferExplicitAssert {
|
|
|
635
639
|
* ]
|
|
636
640
|
* ```
|
|
637
641
|
*/
|
|
638
|
-
export type Options = {
|
|
639
|
-
|
|
640
|
-
| 'toBeDefined'
|
|
641
|
-
| 'toBeInTheDocument'
|
|
642
|
+
export type Options = Readonly<{
|
|
643
|
+
assertion?:
|
|
642
644
|
| 'toBeOnTheScreen'
|
|
643
|
-
| '
|
|
644
|
-
|
|
645
|
-
|
|
645
|
+
| 'toBeInTheDocument'
|
|
646
|
+
| 'toBeTruthy'
|
|
647
|
+
| 'toBeDefined';
|
|
648
|
+
includeFindQueries?: boolean;
|
|
649
|
+
}>;
|
|
646
650
|
|
|
647
651
|
export type RuleEntry =
|
|
652
|
+
| 'off'
|
|
648
653
|
| Linter.Severity
|
|
649
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
650
|
-
| 'off';
|
|
654
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
651
655
|
}
|
|
652
656
|
|
|
653
657
|
/**
|
|
@@ -719,15 +723,15 @@ namespace PreferPresenceQueries {
|
|
|
719
723
|
* ]
|
|
720
724
|
* ```
|
|
721
725
|
*/
|
|
722
|
-
export type Options = {
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
}
|
|
726
|
+
export type Options = Readonly<{
|
|
727
|
+
presence?: boolean;
|
|
728
|
+
absence?: boolean;
|
|
729
|
+
}>;
|
|
726
730
|
|
|
727
731
|
export type RuleEntry =
|
|
732
|
+
| 'off'
|
|
728
733
|
| Linter.Severity
|
|
729
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
730
|
-
| 'off';
|
|
734
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
731
735
|
}
|
|
732
736
|
|
|
733
737
|
/**
|
|
@@ -793,17 +797,17 @@ namespace PreferQueryMatchers {
|
|
|
793
797
|
* ]
|
|
794
798
|
* ```
|
|
795
799
|
*/
|
|
796
|
-
export type Options = {
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
}[];
|
|
801
|
-
}
|
|
800
|
+
export type Options = Readonly<{
|
|
801
|
+
validEntries?: readonly Readonly<{
|
|
802
|
+
query?: 'get' | 'query';
|
|
803
|
+
matcher?: string;
|
|
804
|
+
}>[];
|
|
805
|
+
}>;
|
|
802
806
|
|
|
803
807
|
export type RuleEntry =
|
|
808
|
+
| 'off'
|
|
804
809
|
| Linter.Severity
|
|
805
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
806
|
-
| 'off';
|
|
810
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
807
811
|
}
|
|
808
812
|
|
|
809
813
|
/**
|
|
@@ -852,14 +856,14 @@ namespace PreferUserEvent {
|
|
|
852
856
|
* ]
|
|
853
857
|
* ```
|
|
854
858
|
*/
|
|
855
|
-
export type Options = {
|
|
856
|
-
|
|
857
|
-
}
|
|
859
|
+
export type Options = Readonly<{
|
|
860
|
+
allowedMethods?: readonly unknown[];
|
|
861
|
+
}>;
|
|
858
862
|
|
|
859
863
|
export type RuleEntry =
|
|
864
|
+
| 'off'
|
|
860
865
|
| Linter.Severity
|
|
861
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
862
|
-
| 'off';
|
|
866
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
863
867
|
}
|
|
864
868
|
|
|
865
869
|
/**
|
|
@@ -878,48 +882,48 @@ namespace RenderResultNamingConvention {
|
|
|
878
882
|
export type RuleEntry = Linter.StringSeverity;
|
|
879
883
|
}
|
|
880
884
|
|
|
881
|
-
export type EslintTestingLibraryRules = {
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
}
|
|
911
|
-
|
|
912
|
-
export type EslintTestingLibraryRulesOption = {
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}
|
|
885
|
+
export type EslintTestingLibraryRules = Readonly<{
|
|
886
|
+
'testing-library/await-async-events': AwaitAsyncEvents.RuleEntry;
|
|
887
|
+
'testing-library/await-async-queries': AwaitAsyncQueries.RuleEntry;
|
|
888
|
+
'testing-library/await-async-utils': AwaitAsyncUtils.RuleEntry;
|
|
889
|
+
'testing-library/consistent-data-testid': ConsistentDataTestid.RuleEntry;
|
|
890
|
+
'testing-library/no-await-sync-events': NoAwaitSyncEvents.RuleEntry;
|
|
891
|
+
'testing-library/no-await-sync-queries': NoAwaitSyncQueries.RuleEntry;
|
|
892
|
+
'testing-library/no-container': NoContainer.RuleEntry;
|
|
893
|
+
'testing-library/no-debugging-utils': NoDebuggingUtils.RuleEntry;
|
|
894
|
+
'testing-library/no-dom-import': NoDomImport.RuleEntry;
|
|
895
|
+
'testing-library/no-global-regexp-flag-in-query': NoGlobalRegexpFlagInQuery.RuleEntry;
|
|
896
|
+
'testing-library/no-manual-cleanup': NoManualCleanup.RuleEntry;
|
|
897
|
+
'testing-library/no-node-access': NoNodeAccess.RuleEntry;
|
|
898
|
+
'testing-library/no-promise-in-fire-event': NoPromiseInFireEvent.RuleEntry;
|
|
899
|
+
'testing-library/no-render-in-lifecycle': NoRenderInLifecycle.RuleEntry;
|
|
900
|
+
'testing-library/no-test-id-queries': NoTestIdQueries.RuleEntry;
|
|
901
|
+
'testing-library/no-unnecessary-act': NoUnnecessaryAct.RuleEntry;
|
|
902
|
+
'testing-library/no-wait-for-multiple-assertions': NoWaitForMultipleAssertions.RuleEntry;
|
|
903
|
+
'testing-library/no-wait-for-side-effects': NoWaitForSideEffects.RuleEntry;
|
|
904
|
+
'testing-library/no-wait-for-snapshot': NoWaitForSnapshot.RuleEntry;
|
|
905
|
+
'testing-library/prefer-explicit-assert': PreferExplicitAssert.RuleEntry;
|
|
906
|
+
'testing-library/prefer-find-by': PreferFindBy.RuleEntry;
|
|
907
|
+
'testing-library/prefer-implicit-assert': PreferImplicitAssert.RuleEntry;
|
|
908
|
+
'testing-library/prefer-presence-queries': PreferPresenceQueries.RuleEntry;
|
|
909
|
+
'testing-library/prefer-query-by-disappearance': PreferQueryByDisappearance.RuleEntry;
|
|
910
|
+
'testing-library/prefer-query-matchers': PreferQueryMatchers.RuleEntry;
|
|
911
|
+
'testing-library/prefer-screen-queries': PreferScreenQueries.RuleEntry;
|
|
912
|
+
'testing-library/prefer-user-event': PreferUserEvent.RuleEntry;
|
|
913
|
+
'testing-library/render-result-naming-convention': RenderResultNamingConvention.RuleEntry;
|
|
914
|
+
}>;
|
|
915
|
+
|
|
916
|
+
export type EslintTestingLibraryRulesOption = Readonly<{
|
|
917
|
+
'testing-library/await-async-events': AwaitAsyncEvents.Options;
|
|
918
|
+
'testing-library/consistent-data-testid': ConsistentDataTestid.Options;
|
|
919
|
+
'testing-library/no-await-sync-events': NoAwaitSyncEvents.Options;
|
|
920
|
+
'testing-library/no-debugging-utils': NoDebuggingUtils.Options;
|
|
921
|
+
'testing-library/no-dom-import': NoDomImport.Options;
|
|
922
|
+
'testing-library/no-node-access': NoNodeAccess.Options;
|
|
923
|
+
'testing-library/no-render-in-lifecycle': NoRenderInLifecycle.Options;
|
|
924
|
+
'testing-library/no-unnecessary-act': NoUnnecessaryAct.Options;
|
|
925
|
+
'testing-library/prefer-explicit-assert': PreferExplicitAssert.Options;
|
|
926
|
+
'testing-library/prefer-presence-queries': PreferPresenceQueries.Options;
|
|
927
|
+
'testing-library/prefer-query-matchers': PreferQueryMatchers.Options;
|
|
928
|
+
'testing-library/prefer-user-event': PreferUserEvent.Options;
|
|
929
|
+
}>;
|
|
@@ -225,21 +225,21 @@ namespace RequireStrictMode {
|
|
|
225
225
|
export type RuleEntry = Linter.StringSeverity;
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
export type EslintTotalFunctionsRules = {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
228
|
+
export type EslintTotalFunctionsRules = Readonly<{
|
|
229
|
+
'total-functions/no-enums': NoEnums.RuleEntry;
|
|
230
|
+
'total-functions/no-hidden-type-assertions': NoHiddenTypeAssertions.RuleEntry;
|
|
231
|
+
'total-functions/no-nested-fp-ts-effects': NoNestedFpTsEffects.RuleEntry;
|
|
232
|
+
'total-functions/no-partial-array-reduce': NoPartialArrayReduce.RuleEntry;
|
|
233
|
+
'total-functions/no-partial-division': NoPartialDivision.RuleEntry;
|
|
234
|
+
'total-functions/no-partial-string-normalize': NoPartialStringNormalize.RuleEntry;
|
|
235
|
+
'total-functions/no-partial-url-constructor': NoPartialUrlConstructor.RuleEntry;
|
|
236
|
+
'total-functions/no-premature-fp-ts-effects': NoPrematureFpTsEffects.RuleEntry;
|
|
237
|
+
'total-functions/no-unsafe-mutable-readonly-assignment': NoUnsafeMutableReadonlyAssignment.RuleEntry;
|
|
238
|
+
'total-functions/no-unsafe-readonly-mutable-assignment': NoUnsafeReadonlyMutableAssignment.RuleEntry;
|
|
239
|
+
'total-functions/no-unsafe-type-assertion': NoUnsafeTypeAssertion.RuleEntry;
|
|
240
|
+
'total-functions/require-strict-mode': RequireStrictMode.RuleEntry;
|
|
241
241
|
|
|
242
242
|
// deprecated
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
}
|
|
243
|
+
'total-functions/no-unsafe-enum-assignment': NoUnsafeEnumAssignment.RuleEntry;
|
|
244
|
+
'total-functions/no-unsafe-optional-property-assignment': NoUnsafeOptionalPropertyAssignment.RuleEntry;
|
|
245
|
+
}>;
|
|
@@ -15,6 +15,6 @@ namespace ImportStar {
|
|
|
15
15
|
export type RuleEntry = Linter.StringSeverity;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export type EslintTreeShakableRules = {
|
|
19
|
-
|
|
20
|
-
}
|
|
18
|
+
export type EslintTreeShakableRules = Readonly<{
|
|
19
|
+
'tree-shakable/import-star': ImportStar.RuleEntry;
|
|
20
|
+
}>;
|
|
@@ -41,23 +41,23 @@ namespace CheckDestructuringCompleteness {
|
|
|
41
41
|
* ]
|
|
42
42
|
* ```
|
|
43
43
|
*/
|
|
44
|
-
export type Options = {
|
|
44
|
+
export type Options = Readonly<{
|
|
45
45
|
/**
|
|
46
46
|
* Always check React component props destructuring without directive
|
|
47
47
|
* keyword
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
alwaysCheckReactComponentProps?: boolean;
|
|
50
50
|
/**
|
|
51
51
|
* Custom directive keyword to enable checking (default:
|
|
52
52
|
* "@check-destructuring-completeness")
|
|
53
53
|
*/
|
|
54
|
-
|
|
55
|
-
}
|
|
54
|
+
directiveKeyword?: string;
|
|
55
|
+
}>;
|
|
56
56
|
|
|
57
57
|
export type RuleEntry =
|
|
58
|
+
| 'off'
|
|
58
59
|
| Linter.Severity
|
|
59
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
60
|
-
| 'off';
|
|
60
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
/**
|
|
@@ -136,24 +136,25 @@ namespace NoRestrictedCastName {
|
|
|
136
136
|
/** @minItems 0 */
|
|
137
137
|
export type Options = readonly (
|
|
138
138
|
| string
|
|
139
|
-
| {
|
|
140
|
-
|
|
141
|
-
|
|
139
|
+
| Readonly<{
|
|
140
|
+
name: string;
|
|
141
|
+
fixWith?: Readonly<
|
|
142
142
|
| {
|
|
143
|
-
|
|
144
|
-
|
|
143
|
+
kind: 'type';
|
|
144
|
+
name: string;
|
|
145
145
|
}
|
|
146
146
|
| {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
|
|
147
|
+
kind: 'function';
|
|
148
|
+
name: string;
|
|
149
|
+
}
|
|
150
|
+
>;
|
|
151
|
+
}>
|
|
151
152
|
)[];
|
|
152
153
|
|
|
153
154
|
export type RuleEntry =
|
|
155
|
+
| 'off'
|
|
154
156
|
| Linter.Severity
|
|
155
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
156
|
-
| 'off';
|
|
157
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
157
158
|
}
|
|
158
159
|
|
|
159
160
|
/**
|
|
@@ -204,26 +205,26 @@ namespace NoRestrictedSyntax {
|
|
|
204
205
|
/** @minItems 0 */
|
|
205
206
|
export type Options = readonly (
|
|
206
207
|
| string
|
|
207
|
-
| {
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
}
|
|
208
|
+
| Readonly<{
|
|
209
|
+
selector: string;
|
|
210
|
+
message?: string;
|
|
211
|
+
}>
|
|
211
212
|
)[];
|
|
212
213
|
|
|
213
214
|
export type RuleEntry =
|
|
215
|
+
| 'off'
|
|
214
216
|
| Linter.Severity
|
|
215
|
-
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
216
|
-
| 'off';
|
|
217
|
+
| SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
217
218
|
}
|
|
218
219
|
|
|
219
|
-
export type EslintTsRestrictionsRules = {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
220
|
+
export type EslintTsRestrictionsRules = Readonly<{
|
|
221
|
+
'ts-restrictions/check-destructuring-completeness': CheckDestructuringCompleteness.RuleEntry;
|
|
222
|
+
'ts-restrictions/no-restricted-cast-name': NoRestrictedCastName.RuleEntry;
|
|
223
|
+
'ts-restrictions/no-restricted-syntax': NoRestrictedSyntax.RuleEntry;
|
|
224
|
+
}>;
|
|
224
225
|
|
|
225
|
-
export type EslintTsRestrictionsRulesOption = {
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
}
|
|
226
|
+
export type EslintTsRestrictionsRulesOption = Readonly<{
|
|
227
|
+
'ts-restrictions/check-destructuring-completeness': CheckDestructuringCompleteness.Options;
|
|
228
|
+
'ts-restrictions/no-restricted-cast-name': NoRestrictedCastName.Options;
|
|
229
|
+
'ts-restrictions/no-restricted-syntax': NoRestrictedSyntax.Options;
|
|
230
|
+
}>;
|