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.
Files changed (96) hide show
  1. package/dist/rules/typescript-eslint-rules.d.mts +3 -1
  2. package/dist/rules/typescript-eslint-rules.d.mts.map +1 -1
  3. package/dist/rules/typescript-eslint-rules.mjs +8 -1
  4. package/dist/rules/typescript-eslint-rules.mjs.map +1 -1
  5. package/dist/types/rules/eslint-array-func-rules.d.mts +8 -8
  6. package/dist/types/rules/eslint-array-func-rules.d.mts.map +1 -1
  7. package/dist/types/rules/eslint-cypress-rules.d.mts +27 -23
  8. package/dist/types/rules/eslint-cypress-rules.d.mts.map +1 -1
  9. package/dist/types/rules/eslint-functional-rules.d.mts +426 -425
  10. package/dist/types/rules/eslint-functional-rules.d.mts.map +1 -1
  11. package/dist/types/rules/eslint-import-rules.d.mts +343 -325
  12. package/dist/types/rules/eslint-import-rules.d.mts.map +1 -1
  13. package/dist/types/rules/eslint-jest-rules.d.mts +183 -171
  14. package/dist/types/rules/eslint-jest-rules.d.mts.map +1 -1
  15. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts +211 -209
  16. package/dist/types/rules/eslint-jsx-a11y-rules.d.mts.map +1 -1
  17. package/dist/types/rules/eslint-math-rules.d.mts +49 -48
  18. package/dist/types/rules/eslint-math-rules.d.mts.map +1 -1
  19. package/dist/types/rules/eslint-n-rules.d.mts +296 -293
  20. package/dist/types/rules/eslint-n-rules.d.mts.map +1 -1
  21. package/dist/types/rules/eslint-playwright-rules.d.mts +161 -149
  22. package/dist/types/rules/eslint-playwright-rules.d.mts.map +1 -1
  23. package/dist/types/rules/eslint-plugin-rules.d.mts +95 -85
  24. package/dist/types/rules/eslint-plugin-rules.d.mts.map +1 -1
  25. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts +10 -10
  26. package/dist/types/rules/eslint-plugin-sort-destructure-keys-rules.d.mts.map +1 -1
  27. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts +23 -16
  28. package/dist/types/rules/eslint-prefer-arrow-functions-rules.d.mts.map +1 -1
  29. package/dist/types/rules/eslint-promise-rules.d.mts +68 -68
  30. package/dist/types/rules/eslint-promise-rules.d.mts.map +1 -1
  31. package/dist/types/rules/eslint-react-coding-style-rules.d.mts +29 -29
  32. package/dist/types/rules/eslint-react-coding-style-rules.d.mts.map +1 -1
  33. package/dist/types/rules/eslint-react-hooks-rules.d.mts +100 -100
  34. package/dist/types/rules/eslint-react-hooks-rules.d.mts.map +1 -1
  35. package/dist/types/rules/eslint-react-perf-rules.d.mts +28 -28
  36. package/dist/types/rules/eslint-react-perf-rules.d.mts.map +1 -1
  37. package/dist/types/rules/eslint-react-refresh-rules.d.mts +13 -13
  38. package/dist/types/rules/eslint-react-refresh-rules.d.mts.map +1 -1
  39. package/dist/types/rules/eslint-react-rules.d.mts +646 -620
  40. package/dist/types/rules/eslint-react-rules.d.mts.map +1 -1
  41. package/dist/types/rules/eslint-rules.d.mts +1022 -1016
  42. package/dist/types/rules/eslint-rules.d.mts.map +1 -1
  43. package/dist/types/rules/eslint-security-rules.d.mts +16 -16
  44. package/dist/types/rules/eslint-security-rules.d.mts.map +1 -1
  45. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts +18 -18
  46. package/dist/types/rules/eslint-strict-dependencies-rules.d.mts.map +1 -1
  47. package/dist/types/rules/eslint-stylistic-rules.d.mts +1440 -1400
  48. package/dist/types/rules/eslint-stylistic-rules.d.mts.map +1 -1
  49. package/dist/types/rules/eslint-testing-library-rules.d.mts +110 -105
  50. package/dist/types/rules/eslint-testing-library-rules.d.mts.map +1 -1
  51. package/dist/types/rules/eslint-total-functions-rules.d.mts +16 -16
  52. package/dist/types/rules/eslint-total-functions-rules.d.mts.map +1 -1
  53. package/dist/types/rules/eslint-tree-shakable-rules.d.mts +3 -3
  54. package/dist/types/rules/eslint-tree-shakable-rules.d.mts.map +1 -1
  55. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts +30 -30
  56. package/dist/types/rules/eslint-ts-restrictions-rules.d.mts.map +1 -1
  57. package/dist/types/rules/eslint-unicorn-rules.d.mts +398 -392
  58. package/dist/types/rules/eslint-unicorn-rules.d.mts.map +1 -1
  59. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts +3 -3
  60. package/dist/types/rules/eslint-vitest-coding-style-rules.d.mts.map +1 -1
  61. package/dist/types/rules/eslint-vitest-rules.d.mts +204 -190
  62. package/dist/types/rules/eslint-vitest-rules.d.mts.map +1 -1
  63. package/dist/types/rules/typescript-eslint-rules.d.mts +1107 -1077
  64. package/dist/types/rules/typescript-eslint-rules.d.mts.map +1 -1
  65. package/package.json +23 -23
  66. package/src/rules/typescript-eslint-rules.mts +9 -1
  67. package/src/types/rules/eslint-array-func-rules.mts +8 -8
  68. package/src/types/rules/eslint-cypress-rules.mts +28 -24
  69. package/src/types/rules/eslint-functional-rules.mts +581 -576
  70. package/src/types/rules/eslint-import-rules.mts +403 -384
  71. package/src/types/rules/eslint-jest-rules.mts +212 -196
  72. package/src/types/rules/eslint-jsx-a11y-rules.mts +252 -250
  73. package/src/types/rules/eslint-math-rules.mts +53 -52
  74. package/src/types/rules/eslint-n-rules.mts +1762 -1757
  75. package/src/types/rules/eslint-playwright-rules.mts +187 -171
  76. package/src/types/rules/eslint-plugin-rules.mts +109 -99
  77. package/src/types/rules/eslint-plugin-sort-destructure-keys-rules.mts +11 -11
  78. package/src/types/rules/eslint-prefer-arrow-functions-rules.mts +24 -17
  79. package/src/types/rules/eslint-promise-rules.mts +76 -76
  80. package/src/types/rules/eslint-react-coding-style-rules.mts +32 -32
  81. package/src/types/rules/eslint-react-hooks-rules.mts +129 -129
  82. package/src/types/rules/eslint-react-perf-rules.mts +32 -32
  83. package/src/types/rules/eslint-react-refresh-rules.mts +14 -14
  84. package/src/types/rules/eslint-react-rules.mts +787 -792
  85. package/src/types/rules/eslint-rules.mts +1180 -1173
  86. package/src/types/rules/eslint-security-rules.mts +16 -16
  87. package/src/types/rules/eslint-strict-dependencies-rules.mts +19 -19
  88. package/src/types/rules/eslint-stylistic-rules.mts +1767 -1807
  89. package/src/types/rules/eslint-testing-library-rules.mts +128 -124
  90. package/src/types/rules/eslint-total-functions-rules.mts +16 -16
  91. package/src/types/rules/eslint-tree-shakable-rules.mts +3 -3
  92. package/src/types/rules/eslint-ts-restrictions-rules.mts +34 -33
  93. package/src/types/rules/eslint-unicorn-rules.mts +447 -436
  94. package/src/types/rules/eslint-vitest-coding-style-rules.mts +3 -3
  95. package/src/types/rules/eslint-vitest-rules.mts +232 -219
  96. 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
- readonly ignoreIdentifierPattern?: string | readonly string[];
592
- readonly ignorePrefixSelector?: string | readonly string[];
593
- readonly allowRestParameter?: boolean;
594
- readonly allowArgumentsKeyword?: boolean;
595
- readonly enforceParameterCount?: 'atLeastOne' | 'exactlyOne' | false | {
596
- readonly count?: 'atLeastOne' | 'exactlyOne';
597
- readonly ignoreGettersAndSetters?: boolean;
598
- readonly ignoreLambdaExpression?: boolean;
599
- readonly ignoreIIFE?: boolean;
600
- };
601
- readonly overrides?: readonly {
602
- readonly specifiers?: readonly ({
603
- readonly name?: string | readonly string[];
604
- readonly pattern?: string | readonly string[];
605
- readonly ignoreName?: string | readonly string[];
606
- readonly ignorePattern?: string | readonly string[];
607
- readonly from?: 'file';
608
- readonly path?: string;
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
- readonly name?: string | readonly string[];
611
- readonly pattern?: string | readonly string[];
612
- readonly ignoreName?: string | readonly string[];
613
- readonly ignorePattern?: string | readonly string[];
614
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
617
- readonly pattern?: string | readonly string[];
618
- readonly ignoreName?: string | readonly string[];
619
- readonly ignorePattern?: string | readonly string[];
620
- readonly from?: 'package';
621
- readonly package?: string;
622
- })[] | {
623
- readonly name?: string | readonly string[];
624
- readonly pattern?: string | readonly string[];
625
- readonly ignoreName?: string | readonly string[];
626
- readonly ignorePattern?: string | readonly string[];
627
- readonly from?: 'file';
628
- readonly path?: string;
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
- readonly name?: string | readonly string[];
631
- readonly pattern?: string | readonly string[];
632
- readonly ignoreName?: string | readonly string[];
633
- readonly ignorePattern?: string | readonly string[];
634
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
637
- readonly pattern?: string | readonly string[];
638
- readonly ignoreName?: string | readonly string[];
639
- readonly ignorePattern?: string | readonly string[];
640
- readonly from?: 'package';
641
- readonly package?: string;
642
- };
643
- readonly options?: {
644
- readonly ignoreIdentifierPattern?: string | readonly string[];
645
- readonly ignorePrefixSelector?: string | readonly string[];
646
- readonly allowRestParameter?: boolean;
647
- readonly allowArgumentsKeyword?: boolean;
648
- readonly enforceParameterCount?: 'atLeastOne' | 'exactlyOne' | false | {
649
- readonly count?: 'atLeastOne' | 'exactlyOne';
650
- readonly ignoreGettersAndSetters?: boolean;
651
- readonly ignoreLambdaExpression?: boolean;
652
- readonly ignoreIIFE?: boolean;
653
- };
654
- };
655
- readonly inherit?: boolean;
656
- readonly disable?: boolean;
657
- }[];
658
- };
659
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreIdentifierPattern?: string | readonly string[];
1230
- readonly ignoreAccessorPattern?: string | readonly string[];
1231
- readonly ignoreClasses?: boolean | 'fieldsOnly';
1232
- readonly ignoreMapsAndSets?: boolean;
1233
- readonly ignoreImmediateMutation?: boolean;
1234
- readonly ignoreNonConstDeclarations?: boolean | {
1235
- readonly treatParametersAsConst?: boolean;
1236
- };
1237
- readonly overrides?: readonly {
1238
- readonly specifiers?: readonly ({
1239
- readonly name?: string | readonly string[];
1240
- readonly pattern?: string | readonly string[];
1241
- readonly ignoreName?: string | readonly string[];
1242
- readonly ignorePattern?: string | readonly string[];
1243
- readonly from?: 'file';
1244
- readonly path?: string;
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
- readonly name?: string | readonly string[];
1247
- readonly pattern?: string | readonly string[];
1248
- readonly ignoreName?: string | readonly string[];
1249
- readonly ignorePattern?: string | readonly string[];
1250
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
1253
- readonly pattern?: string | readonly string[];
1254
- readonly ignoreName?: string | readonly string[];
1255
- readonly ignorePattern?: string | readonly string[];
1256
- readonly from?: 'package';
1257
- readonly package?: string;
1258
- })[] | {
1259
- readonly name?: string | readonly string[];
1260
- readonly pattern?: string | readonly string[];
1261
- readonly ignoreName?: string | readonly string[];
1262
- readonly ignorePattern?: string | readonly string[];
1263
- readonly from?: 'file';
1264
- readonly path?: string;
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
- readonly name?: string | readonly string[];
1267
- readonly pattern?: string | readonly string[];
1268
- readonly ignoreName?: string | readonly string[];
1269
- readonly ignorePattern?: string | readonly string[];
1270
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
1273
- readonly pattern?: string | readonly string[];
1274
- readonly ignoreName?: string | readonly string[];
1275
- readonly ignorePattern?: string | readonly string[];
1276
- readonly from?: 'package';
1277
- readonly package?: string;
1278
- };
1279
- readonly options?: {
1280
- readonly ignoreIdentifierPattern?: string | readonly string[];
1281
- readonly ignoreAccessorPattern?: string | readonly string[];
1282
- readonly ignoreClasses?: boolean | 'fieldsOnly';
1283
- readonly ignoreMapsAndSets?: boolean;
1284
- readonly ignoreImmediateMutation?: boolean;
1285
- readonly ignoreNonConstDeclarations?: boolean | {
1286
- readonly treatParametersAsConst?: boolean;
1287
- };
1288
- };
1289
- readonly inherit?: boolean;
1290
- readonly disable?: boolean;
1291
- }[];
1292
- };
1293
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreIdentifierPattern?: string | readonly string[];
1344
- readonly ignoreCodePattern?: string | readonly string[];
1345
- };
1346
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreIdentifierPattern?: string | readonly string[];
1397
- readonly ignoreCodePattern?: string | readonly string[];
1398
- };
1399
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreCodePattern?: string | readonly string[];
1454
- readonly allowReturningBranches?: boolean | 'ifExhaustive';
1455
- };
1456
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreCodePattern?: string | readonly string[];
1504
- readonly ignoreVoid?: boolean;
1505
- readonly ignoreSelfReturning?: boolean;
1506
- };
1507
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreIdentifierPattern?: string | readonly string[];
1555
- readonly allowInForLoopInit?: boolean;
1556
- readonly allowInFunctions?: boolean;
1557
- };
1558
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly checkInterfaces?: boolean;
1614
- readonly checkTypeLiterals?: boolean;
1615
- };
1616
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly allowNull?: boolean;
1675
- readonly allowUndefined?: boolean;
1676
- readonly ignoreInferredTypes?: boolean;
1677
- };
1678
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly allowToRejectPromises?: boolean;
1731
- };
1732
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly allowCatch?: boolean;
1771
- readonly allowFinally?: boolean;
1772
- };
1773
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3194
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3195
- readonly ignoreInferredTypes?: boolean;
3196
- readonly ignoreNamePattern?: string | readonly string[];
3197
- readonly ignoreTypePattern?: string | readonly string[];
3198
- readonly parameters?: {
3199
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3200
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3201
- readonly ignoreInferredTypes?: boolean;
3202
- readonly ignoreNamePattern?: string | readonly string[];
3203
- readonly ignoreTypePattern?: string | readonly string[];
3204
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3205
- readonly returnTypes?: {
3206
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3207
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3208
- readonly ignoreInferredTypes?: boolean;
3209
- readonly ignoreNamePattern?: string | readonly string[];
3210
- readonly ignoreTypePattern?: string | readonly string[];
3211
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3212
- readonly variables?: {
3213
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3214
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3215
- readonly ignoreInferredTypes?: boolean;
3216
- readonly ignoreNamePattern?: string | readonly string[];
3217
- readonly ignoreTypePattern?: string | readonly string[];
3218
- readonly ignoreInFunctions?: boolean;
3219
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3220
- readonly fixer?: {
3221
- readonly ReadonlyShallow?: readonly {
3222
- readonly pattern?: string;
3223
- readonly replace?: string;
3224
- }[] | {
3225
- readonly pattern?: string;
3226
- readonly replace?: string;
3227
- };
3228
- readonly ReadonlyDeep?: readonly {
3229
- readonly pattern?: string;
3230
- readonly replace?: string;
3231
- }[] | {
3232
- readonly pattern?: string;
3233
- readonly replace?: string;
3234
- };
3235
- readonly Immutable?: readonly {
3236
- readonly pattern?: string;
3237
- readonly replace?: string;
3238
- }[] | {
3239
- readonly pattern?: string;
3240
- readonly replace?: string;
3241
- };
3242
- };
3243
- readonly suggestions?: {
3244
- readonly ReadonlyShallow?: readonly (readonly {
3245
- readonly pattern?: string;
3246
- readonly replace?: string;
3247
- readonly message?: string;
3248
- }[])[];
3249
- readonly ReadonlyDeep?: readonly (readonly {
3250
- readonly pattern?: string;
3251
- readonly replace?: string;
3252
- readonly message?: string;
3253
- }[])[];
3254
- readonly Immutable?: readonly (readonly {
3255
- readonly pattern?: string;
3256
- readonly replace?: string;
3257
- readonly message?: string;
3258
- }[])[];
3259
- };
3260
- readonly overrides?: readonly {
3261
- readonly specifiers?: readonly ({
3262
- readonly name?: string | readonly string[];
3263
- readonly pattern?: string | readonly string[];
3264
- readonly ignoreName?: string | readonly string[];
3265
- readonly ignorePattern?: string | readonly string[];
3266
- readonly from?: 'file';
3267
- readonly path?: string;
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
- readonly name?: string | readonly string[];
3270
- readonly pattern?: string | readonly string[];
3271
- readonly ignoreName?: string | readonly string[];
3272
- readonly ignorePattern?: string | readonly string[];
3273
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
3276
- readonly pattern?: string | readonly string[];
3277
- readonly ignoreName?: string | readonly string[];
3278
- readonly ignorePattern?: string | readonly string[];
3279
- readonly from?: 'package';
3280
- readonly package?: string;
3281
- })[] | {
3282
- readonly name?: string | readonly string[];
3283
- readonly pattern?: string | readonly string[];
3284
- readonly ignoreName?: string | readonly string[];
3285
- readonly ignorePattern?: string | readonly string[];
3286
- readonly from?: 'file';
3287
- readonly path?: string;
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
- readonly name?: string | readonly string[];
3290
- readonly pattern?: string | readonly string[];
3291
- readonly ignoreName?: string | readonly string[];
3292
- readonly ignorePattern?: string | readonly string[];
3293
- readonly from?: 'lib';
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
- readonly name?: string | readonly string[];
3296
- readonly pattern?: string | readonly string[];
3297
- readonly ignoreName?: string | readonly string[];
3298
- readonly ignorePattern?: string | readonly string[];
3299
- readonly from?: 'package';
3300
- readonly package?: string;
3301
- };
3302
- readonly options?: {
3303
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3304
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3305
- readonly ignoreInferredTypes?: boolean;
3306
- readonly ignoreNamePattern?: string | readonly string[];
3307
- readonly ignoreTypePattern?: string | readonly string[];
3308
- readonly parameters?: {
3309
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3310
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3311
- readonly ignoreInferredTypes?: boolean;
3312
- readonly ignoreNamePattern?: string | readonly string[];
3313
- readonly ignoreTypePattern?: string | readonly string[];
3314
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3315
- readonly returnTypes?: {
3316
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3317
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3318
- readonly ignoreInferredTypes?: boolean;
3319
- readonly ignoreNamePattern?: string | readonly string[];
3320
- readonly ignoreTypePattern?: string | readonly string[];
3321
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3322
- readonly variables?: {
3323
- readonly ignoreClasses?: boolean | 'fieldsOnly';
3324
- readonly enforcement?: 'Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null;
3325
- readonly ignoreInferredTypes?: boolean;
3326
- readonly ignoreNamePattern?: string | readonly string[];
3327
- readonly ignoreTypePattern?: string | readonly string[];
3328
- readonly ignoreInFunctions?: boolean;
3329
- } | ('Calculating' | 'Immutable' | 'None' | 'ReadonlyDeep' | 'ReadonlyShallow' | 3 | 4 | 5 | false | null);
3330
- readonly fixer?: {
3331
- readonly ReadonlyShallow?: readonly {
3332
- readonly pattern?: string;
3333
- readonly replace?: string;
3334
- }[] | {
3335
- readonly pattern?: string;
3336
- readonly replace?: string;
3337
- };
3338
- readonly ReadonlyDeep?: readonly {
3339
- readonly pattern?: string;
3340
- readonly replace?: string;
3341
- }[] | {
3342
- readonly pattern?: string;
3343
- readonly replace?: string;
3344
- };
3345
- readonly Immutable?: readonly {
3346
- readonly pattern?: string;
3347
- readonly replace?: string;
3348
- }[] | {
3349
- readonly pattern?: string;
3350
- readonly replace?: string;
3351
- };
3352
- };
3353
- readonly suggestions?: {
3354
- readonly ReadonlyShallow?: readonly (readonly {
3355
- readonly pattern?: string;
3356
- readonly replace?: string;
3357
- readonly message?: string;
3358
- }[])[];
3359
- readonly ReadonlyDeep?: readonly (readonly {
3360
- readonly pattern?: string;
3361
- readonly replace?: string;
3362
- readonly message?: string;
3363
- }[])[];
3364
- readonly Immutable?: readonly (readonly {
3365
- readonly pattern?: string;
3366
- readonly replace?: string;
3367
- readonly message?: string;
3368
- }[])[];
3369
- };
3370
- };
3371
- readonly inherit?: boolean;
3372
- readonly disable?: boolean;
3373
- }[];
3374
- };
3375
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly ignoreIfReadonlyWrapped?: boolean;
3412
- };
3413
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly checkMemberExpressions?: boolean;
3519
- };
3520
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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]> | 'off';
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
- readonly ignoreIdentifierPattern?: string | readonly string[];
3724
- readonly rules?: readonly {
3725
- readonly identifiers: string | readonly string[];
3726
- readonly immutability: 'Calculating' | 'Immutable' | 'Mutable' | 'ReadonlyDeep' | 'ReadonlyShallow' | 2 | 3 | 4 | 5 | null;
3727
- readonly comparator?: -1 | -2 | 'AtLeast' | 'AtMost' | 'Exactly' | 'Less' | 'More' | 0 | 1 | 2;
3728
- readonly fixer?: readonly {
3729
- readonly pattern?: string;
3730
- readonly replace?: string;
3731
- }[] | false | {
3732
- readonly pattern?: string;
3733
- readonly replace?: string;
3734
- };
3735
- readonly suggestions?: readonly {
3736
- readonly pattern?: string;
3737
- readonly replace?: string;
3738
- }[] | false;
3739
- }[];
3740
- readonly ignoreInterfaces?: boolean;
3741
- };
3742
- type RuleEntry = Linter.Severity | SpreadOptionsIfIsArray<readonly [Linter.StringSeverity, Options]> | 'off';
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
- readonly 'functional/functional-parameters': FunctionalParameters.RuleEntry;
3746
- readonly 'functional/immutable-data': ImmutableData.RuleEntry;
3747
- readonly 'functional/no-classes': NoClasses.RuleEntry;
3748
- readonly 'functional/no-class-inheritance': NoClassInheritance.RuleEntry;
3749
- readonly 'functional/no-conditional-statements': NoConditionalStatements.RuleEntry;
3750
- readonly 'functional/no-expression-statements': NoExpressionStatements.RuleEntry;
3751
- readonly 'functional/no-let': NoLet.RuleEntry;
3752
- readonly 'functional/no-loop-statements': NoLoopStatements.RuleEntry;
3753
- readonly 'functional/no-mixed-types': NoMixedTypes.RuleEntry;
3754
- readonly 'functional/no-promise-reject': NoPromiseReject.RuleEntry;
3755
- readonly 'functional/no-return-void': NoReturnVoid.RuleEntry;
3756
- readonly 'functional/no-this-expressions': NoThisExpressions.RuleEntry;
3757
- readonly 'functional/no-throw-statements': NoThrowStatements.RuleEntry;
3758
- readonly 'functional/no-try-statements': NoTryStatements.RuleEntry;
3759
- readonly 'functional/prefer-immutable-types': PreferImmutableTypes.RuleEntry;
3760
- readonly 'functional/prefer-property-signatures': PreferPropertySignatures.RuleEntry;
3761
- readonly 'functional/prefer-tacit': PreferTacit.RuleEntry;
3762
- readonly 'functional/readonly-type': ReadonlyType.RuleEntry;
3763
- readonly 'functional/type-declaration-immutability': TypeDeclarationImmutability.RuleEntry;
3764
- readonly 'functional/prefer-readonly-type': PreferReadonlyType.RuleEntry;
3765
- };
3766
- export type EslintFunctionalRulesOption = {
3767
- readonly 'functional/functional-parameters': FunctionalParameters.Options;
3768
- readonly 'functional/immutable-data': ImmutableData.Options;
3769
- readonly 'functional/no-classes': NoClasses.Options;
3770
- readonly 'functional/no-class-inheritance': NoClassInheritance.Options;
3771
- readonly 'functional/no-conditional-statements': NoConditionalStatements.Options;
3772
- readonly 'functional/no-expression-statements': NoExpressionStatements.Options;
3773
- readonly 'functional/no-let': NoLet.Options;
3774
- readonly 'functional/no-mixed-types': NoMixedTypes.Options;
3775
- readonly 'functional/no-return-void': NoReturnVoid.Options;
3776
- readonly 'functional/no-throw-statements': NoThrowStatements.Options;
3777
- readonly 'functional/no-try-statements': NoTryStatements.Options;
3778
- readonly 'functional/prefer-immutable-types': PreferImmutableTypes.Options;
3779
- readonly 'functional/prefer-property-signatures': PreferPropertySignatures.Options;
3780
- readonly 'functional/prefer-tacit': PreferTacit.Options;
3781
- readonly 'functional/readonly-type': ReadonlyType.Options;
3782
- readonly 'functional/type-declaration-immutability': TypeDeclarationImmutability.Options;
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