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
|
@@ -587,76 +587,76 @@ declare namespace FunctionalParameters {
|
|
|
587
587
|
* ]
|
|
588
588
|
* ```
|
|
589
589
|
*/
|
|
590
|
-
type Options = {
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
590
|
+
type Options = Readonly<{
|
|
591
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
592
|
+
ignorePrefixSelector?: string | readonly string[];
|
|
593
|
+
allowRestParameter?: boolean;
|
|
594
|
+
allowArgumentsKeyword?: boolean;
|
|
595
|
+
enforceParameterCount?: false | ('atLeastOne' | 'exactlyOne') | Readonly<{
|
|
596
|
+
count?: 'atLeastOne' | 'exactlyOne';
|
|
597
|
+
ignoreGettersAndSetters?: boolean;
|
|
598
|
+
ignoreLambdaExpression?: boolean;
|
|
599
|
+
ignoreIIFE?: boolean;
|
|
600
|
+
}>;
|
|
601
|
+
overrides?: readonly Readonly<{
|
|
602
|
+
specifiers?: Readonly<{
|
|
603
|
+
name?: string | readonly string[];
|
|
604
|
+
pattern?: string | readonly string[];
|
|
605
|
+
ignoreName?: string | readonly string[];
|
|
606
|
+
ignorePattern?: string | readonly string[];
|
|
607
|
+
from?: 'file';
|
|
608
|
+
path?: string;
|
|
609
609
|
} | {
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
610
|
+
name?: string | readonly string[];
|
|
611
|
+
pattern?: string | readonly string[];
|
|
612
|
+
ignoreName?: string | readonly string[];
|
|
613
|
+
ignorePattern?: string | readonly string[];
|
|
614
|
+
from?: 'lib';
|
|
615
615
|
} | {
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
616
|
+
name?: string | readonly string[];
|
|
617
|
+
pattern?: string | readonly string[];
|
|
618
|
+
ignoreName?: string | readonly string[];
|
|
619
|
+
ignorePattern?: string | readonly string[];
|
|
620
|
+
from?: 'package';
|
|
621
|
+
package?: string;
|
|
622
|
+
}> | readonly Readonly<{
|
|
623
|
+
name?: string | readonly string[];
|
|
624
|
+
pattern?: string | readonly string[];
|
|
625
|
+
ignoreName?: string | readonly string[];
|
|
626
|
+
ignorePattern?: string | readonly string[];
|
|
627
|
+
from?: 'file';
|
|
628
|
+
path?: string;
|
|
629
629
|
} | {
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
630
|
+
name?: string | readonly string[];
|
|
631
|
+
pattern?: string | readonly string[];
|
|
632
|
+
ignoreName?: string | readonly string[];
|
|
633
|
+
ignorePattern?: string | readonly string[];
|
|
634
|
+
from?: 'lib';
|
|
635
635
|
} | {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
};
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}[];
|
|
658
|
-
}
|
|
659
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
636
|
+
name?: string | readonly string[];
|
|
637
|
+
pattern?: string | readonly string[];
|
|
638
|
+
ignoreName?: string | readonly string[];
|
|
639
|
+
ignorePattern?: string | readonly string[];
|
|
640
|
+
from?: 'package';
|
|
641
|
+
package?: string;
|
|
642
|
+
}>[];
|
|
643
|
+
options?: Readonly<{
|
|
644
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
645
|
+
ignorePrefixSelector?: string | readonly string[];
|
|
646
|
+
allowRestParameter?: boolean;
|
|
647
|
+
allowArgumentsKeyword?: boolean;
|
|
648
|
+
enforceParameterCount?: false | ('atLeastOne' | 'exactlyOne') | Readonly<{
|
|
649
|
+
count?: 'atLeastOne' | 'exactlyOne';
|
|
650
|
+
ignoreGettersAndSetters?: boolean;
|
|
651
|
+
ignoreLambdaExpression?: boolean;
|
|
652
|
+
ignoreIIFE?: boolean;
|
|
653
|
+
}>;
|
|
654
|
+
}>;
|
|
655
|
+
inherit?: boolean;
|
|
656
|
+
disable?: boolean;
|
|
657
|
+
}>[];
|
|
658
|
+
}>;
|
|
659
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
660
660
|
}
|
|
661
661
|
/**
|
|
662
662
|
* Enforce treating data as immutable.
|
|
@@ -1225,72 +1225,72 @@ declare namespace ImmutableData {
|
|
|
1225
1225
|
* ]
|
|
1226
1226
|
* ```
|
|
1227
1227
|
*/
|
|
1228
|
-
type Options = {
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
}
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1228
|
+
type Options = Readonly<{
|
|
1229
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
1230
|
+
ignoreAccessorPattern?: string | readonly string[];
|
|
1231
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
1232
|
+
ignoreMapsAndSets?: boolean;
|
|
1233
|
+
ignoreImmediateMutation?: boolean;
|
|
1234
|
+
ignoreNonConstDeclarations?: boolean | Readonly<{
|
|
1235
|
+
treatParametersAsConst?: boolean;
|
|
1236
|
+
}>;
|
|
1237
|
+
overrides?: readonly Readonly<{
|
|
1238
|
+
specifiers?: Readonly<{
|
|
1239
|
+
name?: string | readonly string[];
|
|
1240
|
+
pattern?: string | readonly string[];
|
|
1241
|
+
ignoreName?: string | readonly string[];
|
|
1242
|
+
ignorePattern?: string | readonly string[];
|
|
1243
|
+
from?: 'file';
|
|
1244
|
+
path?: string;
|
|
1245
1245
|
} | {
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1246
|
+
name?: string | readonly string[];
|
|
1247
|
+
pattern?: string | readonly string[];
|
|
1248
|
+
ignoreName?: string | readonly string[];
|
|
1249
|
+
ignorePattern?: string | readonly string[];
|
|
1250
|
+
from?: 'lib';
|
|
1251
1251
|
} | {
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
}
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1252
|
+
name?: string | readonly string[];
|
|
1253
|
+
pattern?: string | readonly string[];
|
|
1254
|
+
ignoreName?: string | readonly string[];
|
|
1255
|
+
ignorePattern?: string | readonly string[];
|
|
1256
|
+
from?: 'package';
|
|
1257
|
+
package?: string;
|
|
1258
|
+
}> | readonly Readonly<{
|
|
1259
|
+
name?: string | readonly string[];
|
|
1260
|
+
pattern?: string | readonly string[];
|
|
1261
|
+
ignoreName?: string | readonly string[];
|
|
1262
|
+
ignorePattern?: string | readonly string[];
|
|
1263
|
+
from?: 'file';
|
|
1264
|
+
path?: string;
|
|
1265
1265
|
} | {
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1266
|
+
name?: string | readonly string[];
|
|
1267
|
+
pattern?: string | readonly string[];
|
|
1268
|
+
ignoreName?: string | readonly string[];
|
|
1269
|
+
ignorePattern?: string | readonly string[];
|
|
1270
|
+
from?: 'lib';
|
|
1271
1271
|
} | {
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
};
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
}[];
|
|
1292
|
-
}
|
|
1293
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1272
|
+
name?: string | readonly string[];
|
|
1273
|
+
pattern?: string | readonly string[];
|
|
1274
|
+
ignoreName?: string | readonly string[];
|
|
1275
|
+
ignorePattern?: string | readonly string[];
|
|
1276
|
+
from?: 'package';
|
|
1277
|
+
package?: string;
|
|
1278
|
+
}>[];
|
|
1279
|
+
options?: Readonly<{
|
|
1280
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
1281
|
+
ignoreAccessorPattern?: string | readonly string[];
|
|
1282
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
1283
|
+
ignoreMapsAndSets?: boolean;
|
|
1284
|
+
ignoreImmediateMutation?: boolean;
|
|
1285
|
+
ignoreNonConstDeclarations?: boolean | Readonly<{
|
|
1286
|
+
treatParametersAsConst?: boolean;
|
|
1287
|
+
}>;
|
|
1288
|
+
}>;
|
|
1289
|
+
inherit?: boolean;
|
|
1290
|
+
disable?: boolean;
|
|
1291
|
+
}>[];
|
|
1292
|
+
}>;
|
|
1293
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1294
1294
|
}
|
|
1295
1295
|
/**
|
|
1296
1296
|
* Disallow classes.
|
|
@@ -1339,11 +1339,11 @@ declare namespace NoClasses {
|
|
|
1339
1339
|
* ]
|
|
1340
1340
|
* ```
|
|
1341
1341
|
*/
|
|
1342
|
-
type Options = {
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
}
|
|
1346
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1342
|
+
type Options = Readonly<{
|
|
1343
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
1344
|
+
ignoreCodePattern?: string | readonly string[];
|
|
1345
|
+
}>;
|
|
1346
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
1349
1349
|
* Disallow inheritance in classes.
|
|
@@ -1392,11 +1392,11 @@ declare namespace NoClassInheritance {
|
|
|
1392
1392
|
* ]
|
|
1393
1393
|
* ```
|
|
1394
1394
|
*/
|
|
1395
|
-
type Options = {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1399
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1395
|
+
type Options = Readonly<{
|
|
1396
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
1397
|
+
ignoreCodePattern?: string | readonly string[];
|
|
1398
|
+
}>;
|
|
1399
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1400
1400
|
}
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Disallow conditional statements.
|
|
@@ -1449,11 +1449,11 @@ declare namespace NoConditionalStatements {
|
|
|
1449
1449
|
* ]
|
|
1450
1450
|
* ```
|
|
1451
1451
|
*/
|
|
1452
|
-
type Options = {
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
}
|
|
1456
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1452
|
+
type Options = Readonly<{
|
|
1453
|
+
ignoreCodePattern?: string | readonly string[];
|
|
1454
|
+
allowReturningBranches?: boolean | 'ifExhaustive';
|
|
1455
|
+
}>;
|
|
1456
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1457
1457
|
}
|
|
1458
1458
|
/**
|
|
1459
1459
|
* Disallow expression statements.
|
|
@@ -1499,12 +1499,12 @@ declare namespace NoExpressionStatements {
|
|
|
1499
1499
|
* ]
|
|
1500
1500
|
* ```
|
|
1501
1501
|
*/
|
|
1502
|
-
type Options = {
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
}
|
|
1507
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1502
|
+
type Options = Readonly<{
|
|
1503
|
+
ignoreCodePattern?: string | readonly string[];
|
|
1504
|
+
ignoreVoid?: boolean;
|
|
1505
|
+
ignoreSelfReturning?: boolean;
|
|
1506
|
+
}>;
|
|
1507
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1508
1508
|
}
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Disallow mutable variables.
|
|
@@ -1550,12 +1550,12 @@ declare namespace NoLet {
|
|
|
1550
1550
|
* ]
|
|
1551
1551
|
* ```
|
|
1552
1552
|
*/
|
|
1553
|
-
type Options = {
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
}
|
|
1558
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1553
|
+
type Options = Readonly<{
|
|
1554
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
1555
|
+
allowInForLoopInit?: boolean;
|
|
1556
|
+
allowInFunctions?: boolean;
|
|
1557
|
+
}>;
|
|
1558
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1559
1559
|
}
|
|
1560
1560
|
/**
|
|
1561
1561
|
* Disallow imperative loops.
|
|
@@ -1609,11 +1609,11 @@ declare namespace NoMixedTypes {
|
|
|
1609
1609
|
* ]
|
|
1610
1610
|
* ```
|
|
1611
1611
|
*/
|
|
1612
|
-
type Options = {
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
}
|
|
1616
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1612
|
+
type Options = Readonly<{
|
|
1613
|
+
checkInterfaces?: boolean;
|
|
1614
|
+
checkTypeLiterals?: boolean;
|
|
1615
|
+
}>;
|
|
1616
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1617
1617
|
}
|
|
1618
1618
|
/**
|
|
1619
1619
|
* Disallow rejecting promises.
|
|
@@ -1670,12 +1670,12 @@ declare namespace NoReturnVoid {
|
|
|
1670
1670
|
* ]
|
|
1671
1671
|
* ```
|
|
1672
1672
|
*/
|
|
1673
|
-
type Options = {
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
}
|
|
1678
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1673
|
+
type Options = Readonly<{
|
|
1674
|
+
allowNull?: boolean;
|
|
1675
|
+
allowUndefined?: boolean;
|
|
1676
|
+
ignoreInferredTypes?: boolean;
|
|
1677
|
+
}>;
|
|
1678
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1679
1679
|
}
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Disallow this access.
|
|
@@ -1726,10 +1726,10 @@ declare namespace NoThrowStatements {
|
|
|
1726
1726
|
* ]
|
|
1727
1727
|
* ```
|
|
1728
1728
|
*/
|
|
1729
|
-
type Options = {
|
|
1730
|
-
|
|
1731
|
-
}
|
|
1732
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1729
|
+
type Options = Readonly<{
|
|
1730
|
+
allowToRejectPromises?: boolean;
|
|
1731
|
+
}>;
|
|
1732
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1733
1733
|
}
|
|
1734
1734
|
/**
|
|
1735
1735
|
* Disallow try-catch[-finally] and try-finally patterns.
|
|
@@ -1766,11 +1766,11 @@ declare namespace NoTryStatements {
|
|
|
1766
1766
|
* ]
|
|
1767
1767
|
* ```
|
|
1768
1768
|
*/
|
|
1769
|
-
type Options = {
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
}
|
|
1773
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
1769
|
+
type Options = Readonly<{
|
|
1770
|
+
allowCatch?: boolean;
|
|
1771
|
+
allowFinally?: boolean;
|
|
1772
|
+
}>;
|
|
1773
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
1774
1774
|
}
|
|
1775
1775
|
/**
|
|
1776
1776
|
* Require function parameters to be typed as certain immutability
|
|
@@ -3189,190 +3189,190 @@ declare namespace PreferImmutableTypes {
|
|
|
3189
3189
|
* ]
|
|
3190
3190
|
* ```
|
|
3191
3191
|
*/
|
|
3192
|
-
type Options = {
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
} | ('
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
} | ('
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
} | ('
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
}
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
};
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
}
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
};
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
};
|
|
3242
|
-
}
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
}[])[];
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
}[])[];
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
}[])[];
|
|
3259
|
-
}
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3192
|
+
type Options = Readonly<{
|
|
3193
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3194
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3195
|
+
ignoreInferredTypes?: boolean;
|
|
3196
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3197
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3198
|
+
parameters?: Readonly<{
|
|
3199
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3200
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3201
|
+
ignoreInferredTypes?: boolean;
|
|
3202
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3203
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3204
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3205
|
+
returnTypes?: Readonly<{
|
|
3206
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3207
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3208
|
+
ignoreInferredTypes?: boolean;
|
|
3209
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3210
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3211
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3212
|
+
variables?: Readonly<{
|
|
3213
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3214
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3215
|
+
ignoreInferredTypes?: boolean;
|
|
3216
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3217
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3218
|
+
ignoreInFunctions?: boolean;
|
|
3219
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3220
|
+
fixer?: Readonly<{
|
|
3221
|
+
ReadonlyShallow?: Readonly<{
|
|
3222
|
+
pattern?: string;
|
|
3223
|
+
replace?: string;
|
|
3224
|
+
}> | readonly Readonly<{
|
|
3225
|
+
pattern?: string;
|
|
3226
|
+
replace?: string;
|
|
3227
|
+
}>[];
|
|
3228
|
+
ReadonlyDeep?: Readonly<{
|
|
3229
|
+
pattern?: string;
|
|
3230
|
+
replace?: string;
|
|
3231
|
+
}> | readonly Readonly<{
|
|
3232
|
+
pattern?: string;
|
|
3233
|
+
replace?: string;
|
|
3234
|
+
}>[];
|
|
3235
|
+
Immutable?: Readonly<{
|
|
3236
|
+
pattern?: string;
|
|
3237
|
+
replace?: string;
|
|
3238
|
+
}> | readonly Readonly<{
|
|
3239
|
+
pattern?: string;
|
|
3240
|
+
replace?: string;
|
|
3241
|
+
}>[];
|
|
3242
|
+
}>;
|
|
3243
|
+
suggestions?: Readonly<{
|
|
3244
|
+
ReadonlyShallow?: readonly (readonly Readonly<{
|
|
3245
|
+
pattern?: string;
|
|
3246
|
+
replace?: string;
|
|
3247
|
+
message?: string;
|
|
3248
|
+
}>[])[];
|
|
3249
|
+
ReadonlyDeep?: readonly (readonly Readonly<{
|
|
3250
|
+
pattern?: string;
|
|
3251
|
+
replace?: string;
|
|
3252
|
+
message?: string;
|
|
3253
|
+
}>[])[];
|
|
3254
|
+
Immutable?: readonly (readonly Readonly<{
|
|
3255
|
+
pattern?: string;
|
|
3256
|
+
replace?: string;
|
|
3257
|
+
message?: string;
|
|
3258
|
+
}>[])[];
|
|
3259
|
+
}>;
|
|
3260
|
+
overrides?: readonly Readonly<{
|
|
3261
|
+
specifiers?: Readonly<{
|
|
3262
|
+
name?: string | readonly string[];
|
|
3263
|
+
pattern?: string | readonly string[];
|
|
3264
|
+
ignoreName?: string | readonly string[];
|
|
3265
|
+
ignorePattern?: string | readonly string[];
|
|
3266
|
+
from?: 'file';
|
|
3267
|
+
path?: string;
|
|
3268
3268
|
} | {
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3269
|
+
name?: string | readonly string[];
|
|
3270
|
+
pattern?: string | readonly string[];
|
|
3271
|
+
ignoreName?: string | readonly string[];
|
|
3272
|
+
ignorePattern?: string | readonly string[];
|
|
3273
|
+
from?: 'lib';
|
|
3274
3274
|
} | {
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
}
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3275
|
+
name?: string | readonly string[];
|
|
3276
|
+
pattern?: string | readonly string[];
|
|
3277
|
+
ignoreName?: string | readonly string[];
|
|
3278
|
+
ignorePattern?: string | readonly string[];
|
|
3279
|
+
from?: 'package';
|
|
3280
|
+
package?: string;
|
|
3281
|
+
}> | readonly Readonly<{
|
|
3282
|
+
name?: string | readonly string[];
|
|
3283
|
+
pattern?: string | readonly string[];
|
|
3284
|
+
ignoreName?: string | readonly string[];
|
|
3285
|
+
ignorePattern?: string | readonly string[];
|
|
3286
|
+
from?: 'file';
|
|
3287
|
+
path?: string;
|
|
3288
3288
|
} | {
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3289
|
+
name?: string | readonly string[];
|
|
3290
|
+
pattern?: string | readonly string[];
|
|
3291
|
+
ignoreName?: string | readonly string[];
|
|
3292
|
+
ignorePattern?: string | readonly string[];
|
|
3293
|
+
from?: 'lib';
|
|
3294
3294
|
} | {
|
|
3295
|
-
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
};
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
} | ('
|
|
3315
|
-
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
} | ('
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
} | ('
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
}
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
};
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
}
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
};
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
}
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
};
|
|
3352
|
-
}
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
}[])[];
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
}[])[];
|
|
3364
|
-
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
}[])[];
|
|
3369
|
-
}
|
|
3370
|
-
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
}[];
|
|
3374
|
-
}
|
|
3375
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
3295
|
+
name?: string | readonly string[];
|
|
3296
|
+
pattern?: string | readonly string[];
|
|
3297
|
+
ignoreName?: string | readonly string[];
|
|
3298
|
+
ignorePattern?: string | readonly string[];
|
|
3299
|
+
from?: 'package';
|
|
3300
|
+
package?: string;
|
|
3301
|
+
}>[];
|
|
3302
|
+
options?: Readonly<{
|
|
3303
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3304
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3305
|
+
ignoreInferredTypes?: boolean;
|
|
3306
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3307
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3308
|
+
parameters?: Readonly<{
|
|
3309
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3310
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3311
|
+
ignoreInferredTypes?: boolean;
|
|
3312
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3313
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3314
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3315
|
+
returnTypes?: Readonly<{
|
|
3316
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3317
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3318
|
+
ignoreInferredTypes?: boolean;
|
|
3319
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3320
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3321
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3322
|
+
variables?: Readonly<{
|
|
3323
|
+
ignoreClasses?: boolean | 'fieldsOnly';
|
|
3324
|
+
enforcement?: 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false;
|
|
3325
|
+
ignoreInferredTypes?: boolean;
|
|
3326
|
+
ignoreNamePattern?: string | readonly string[];
|
|
3327
|
+
ignoreTypePattern?: string | readonly string[];
|
|
3328
|
+
ignoreInFunctions?: boolean;
|
|
3329
|
+
}> | ('ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 3 | 4 | 5 | 'Calculating' | 'None' | false);
|
|
3330
|
+
fixer?: Readonly<{
|
|
3331
|
+
ReadonlyShallow?: Readonly<{
|
|
3332
|
+
pattern?: string;
|
|
3333
|
+
replace?: string;
|
|
3334
|
+
}> | readonly Readonly<{
|
|
3335
|
+
pattern?: string;
|
|
3336
|
+
replace?: string;
|
|
3337
|
+
}>[];
|
|
3338
|
+
ReadonlyDeep?: Readonly<{
|
|
3339
|
+
pattern?: string;
|
|
3340
|
+
replace?: string;
|
|
3341
|
+
}> | readonly Readonly<{
|
|
3342
|
+
pattern?: string;
|
|
3343
|
+
replace?: string;
|
|
3344
|
+
}>[];
|
|
3345
|
+
Immutable?: Readonly<{
|
|
3346
|
+
pattern?: string;
|
|
3347
|
+
replace?: string;
|
|
3348
|
+
}> | readonly Readonly<{
|
|
3349
|
+
pattern?: string;
|
|
3350
|
+
replace?: string;
|
|
3351
|
+
}>[];
|
|
3352
|
+
}>;
|
|
3353
|
+
suggestions?: Readonly<{
|
|
3354
|
+
ReadonlyShallow?: readonly (readonly Readonly<{
|
|
3355
|
+
pattern?: string;
|
|
3356
|
+
replace?: string;
|
|
3357
|
+
message?: string;
|
|
3358
|
+
}>[])[];
|
|
3359
|
+
ReadonlyDeep?: readonly (readonly Readonly<{
|
|
3360
|
+
pattern?: string;
|
|
3361
|
+
replace?: string;
|
|
3362
|
+
message?: string;
|
|
3363
|
+
}>[])[];
|
|
3364
|
+
Immutable?: readonly (readonly Readonly<{
|
|
3365
|
+
pattern?: string;
|
|
3366
|
+
replace?: string;
|
|
3367
|
+
message?: string;
|
|
3368
|
+
}>[])[];
|
|
3369
|
+
}>;
|
|
3370
|
+
}>;
|
|
3371
|
+
inherit?: boolean;
|
|
3372
|
+
disable?: boolean;
|
|
3373
|
+
}>[];
|
|
3374
|
+
}>;
|
|
3375
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
3376
3376
|
}
|
|
3377
3377
|
/**
|
|
3378
3378
|
* Prefer property signatures over method signatures.
|
|
@@ -3407,10 +3407,11 @@ declare namespace PreferPropertySignatures {
|
|
|
3407
3407
|
* ]
|
|
3408
3408
|
* ```
|
|
3409
3409
|
*/
|
|
3410
|
-
type Options = {
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3410
|
+
type Options = Readonly<{
|
|
3411
|
+
/** @default false */
|
|
3412
|
+
ignoreIfReadonlyWrapped?: boolean;
|
|
3413
|
+
}>;
|
|
3414
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
3414
3415
|
}
|
|
3415
3416
|
/**
|
|
3416
3417
|
* Prefer readonly types over mutable types.
|
|
@@ -3514,10 +3515,10 @@ declare namespace PreferTacit {
|
|
|
3514
3515
|
* ]
|
|
3515
3516
|
* ```
|
|
3516
3517
|
*/
|
|
3517
|
-
type Options = {
|
|
3518
|
-
|
|
3519
|
-
}
|
|
3520
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
3518
|
+
type Options = Readonly<{
|
|
3519
|
+
checkMemberExpressions?: boolean;
|
|
3520
|
+
}>;
|
|
3521
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
3521
3522
|
}
|
|
3522
3523
|
/**
|
|
3523
3524
|
* Require consistently using either `readonly` keywords or `Readonly<T>`
|
|
@@ -3551,7 +3552,7 @@ declare namespace ReadonlyType {
|
|
|
3551
3552
|
* ```
|
|
3552
3553
|
*/
|
|
3553
3554
|
type Options = 'generic' | 'keyword';
|
|
3554
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
3555
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
3555
3556
|
}
|
|
3556
3557
|
/**
|
|
3557
3558
|
* Enforce the immutability of types based on patterns.
|
|
@@ -3719,67 +3720,67 @@ declare namespace TypeDeclarationImmutability {
|
|
|
3719
3720
|
* ]
|
|
3720
3721
|
* ```
|
|
3721
3722
|
*/
|
|
3722
|
-
type Options = {
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
}
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
};
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
|
|
3738
|
-
}[]
|
|
3739
|
-
}[];
|
|
3740
|
-
|
|
3741
|
-
}
|
|
3742
|
-
type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]
|
|
3723
|
+
type Options = Readonly<{
|
|
3724
|
+
ignoreIdentifierPattern?: string | readonly string[];
|
|
3725
|
+
rules?: readonly Readonly<{
|
|
3726
|
+
identifiers: string | readonly string[];
|
|
3727
|
+
immutability: 'Mutable' | 'ReadonlyShallow' | 'ReadonlyDeep' | 'Immutable' | null | 2 | 3 | 4 | 5 | 'Calculating';
|
|
3728
|
+
comparator?: 'Exactly' | 'AtLeast' | 'More' | -2 | 'Less' | -1 | 'AtMost' | 0 | 1 | 2;
|
|
3729
|
+
fixer?: false | Readonly<{
|
|
3730
|
+
pattern?: string;
|
|
3731
|
+
replace?: string;
|
|
3732
|
+
}> | readonly Readonly<{
|
|
3733
|
+
pattern?: string;
|
|
3734
|
+
replace?: string;
|
|
3735
|
+
}>[];
|
|
3736
|
+
suggestions?: false | readonly Readonly<{
|
|
3737
|
+
pattern?: string;
|
|
3738
|
+
replace?: string;
|
|
3739
|
+
}>[];
|
|
3740
|
+
}>[];
|
|
3741
|
+
ignoreInterfaces?: boolean;
|
|
3742
|
+
}>;
|
|
3743
|
+
type RuleEntry = 'off' | Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]>;
|
|
3743
3744
|
}
|
|
3744
|
-
export type EslintFunctionalRules = {
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3748
|
-
|
|
3749
|
-
|
|
3750
|
-
|
|
3751
|
-
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
}
|
|
3766
|
-
export type EslintFunctionalRulesOption = {
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
}
|
|
3745
|
+
export type EslintFunctionalRules = Readonly<{
|
|
3746
|
+
'functional/functional-parameters': FunctionalParameters.RuleEntry;
|
|
3747
|
+
'functional/immutable-data': ImmutableData.RuleEntry;
|
|
3748
|
+
'functional/no-classes': NoClasses.RuleEntry;
|
|
3749
|
+
'functional/no-class-inheritance': NoClassInheritance.RuleEntry;
|
|
3750
|
+
'functional/no-conditional-statements': NoConditionalStatements.RuleEntry;
|
|
3751
|
+
'functional/no-expression-statements': NoExpressionStatements.RuleEntry;
|
|
3752
|
+
'functional/no-let': NoLet.RuleEntry;
|
|
3753
|
+
'functional/no-loop-statements': NoLoopStatements.RuleEntry;
|
|
3754
|
+
'functional/no-mixed-types': NoMixedTypes.RuleEntry;
|
|
3755
|
+
'functional/no-promise-reject': NoPromiseReject.RuleEntry;
|
|
3756
|
+
'functional/no-return-void': NoReturnVoid.RuleEntry;
|
|
3757
|
+
'functional/no-this-expressions': NoThisExpressions.RuleEntry;
|
|
3758
|
+
'functional/no-throw-statements': NoThrowStatements.RuleEntry;
|
|
3759
|
+
'functional/no-try-statements': NoTryStatements.RuleEntry;
|
|
3760
|
+
'functional/prefer-immutable-types': PreferImmutableTypes.RuleEntry;
|
|
3761
|
+
'functional/prefer-property-signatures': PreferPropertySignatures.RuleEntry;
|
|
3762
|
+
'functional/prefer-tacit': PreferTacit.RuleEntry;
|
|
3763
|
+
'functional/readonly-type': ReadonlyType.RuleEntry;
|
|
3764
|
+
'functional/type-declaration-immutability': TypeDeclarationImmutability.RuleEntry;
|
|
3765
|
+
'functional/prefer-readonly-type': PreferReadonlyType.RuleEntry;
|
|
3766
|
+
}>;
|
|
3767
|
+
export type EslintFunctionalRulesOption = Readonly<{
|
|
3768
|
+
'functional/functional-parameters': FunctionalParameters.Options;
|
|
3769
|
+
'functional/immutable-data': ImmutableData.Options;
|
|
3770
|
+
'functional/no-classes': NoClasses.Options;
|
|
3771
|
+
'functional/no-class-inheritance': NoClassInheritance.Options;
|
|
3772
|
+
'functional/no-conditional-statements': NoConditionalStatements.Options;
|
|
3773
|
+
'functional/no-expression-statements': NoExpressionStatements.Options;
|
|
3774
|
+
'functional/no-let': NoLet.Options;
|
|
3775
|
+
'functional/no-mixed-types': NoMixedTypes.Options;
|
|
3776
|
+
'functional/no-return-void': NoReturnVoid.Options;
|
|
3777
|
+
'functional/no-throw-statements': NoThrowStatements.Options;
|
|
3778
|
+
'functional/no-try-statements': NoTryStatements.Options;
|
|
3779
|
+
'functional/prefer-immutable-types': PreferImmutableTypes.Options;
|
|
3780
|
+
'functional/prefer-property-signatures': PreferPropertySignatures.Options;
|
|
3781
|
+
'functional/prefer-tacit': PreferTacit.Options;
|
|
3782
|
+
'functional/readonly-type': ReadonlyType.Options;
|
|
3783
|
+
'functional/type-declaration-immutability': TypeDeclarationImmutability.Options;
|
|
3784
|
+
}>;
|
|
3784
3785
|
export {};
|
|
3785
3786
|
//# sourceMappingURL=eslint-functional-rules.d.mts.map
|