@jsse/eslint-config 0.1.22 → 0.2.0

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/index.d.cts CHANGED
@@ -217,7 +217,7 @@ interface BuiltinsRuleOptions {
217
217
  */
218
218
  "func-names"?: Linter.RuleEntry<FuncNames>;
219
219
  /**
220
- * Enforce the consistent use of either `function` declarations or expressions
220
+ * Enforce the consistent use of either `function` declarations or expressions assigned to variables
221
221
  * @see https://eslint.org/docs/latest/rules/func-style
222
222
  */
223
223
  "func-style"?: Linter.RuleEntry<FuncStyle>;
@@ -331,6 +331,7 @@ interface BuiltinsRuleOptions {
331
331
  /**
332
332
  * Enforce position of line comments
333
333
  * @see https://eslint.org/docs/latest/rules/line-comment-position
334
+ * @deprecated
334
335
  */
335
336
  "line-comment-position"?: Linter.RuleEntry<LineCommentPosition>;
336
337
  /**
@@ -412,6 +413,7 @@ interface BuiltinsRuleOptions {
412
413
  /**
413
414
  * Enforce a particular style for multiline comments
414
415
  * @see https://eslint.org/docs/latest/rules/multiline-comment-style
416
+ * @deprecated
415
417
  */
416
418
  "multiline-comment-style"?: Linter.RuleEntry<MultilineCommentStyle>;
417
419
  /**
@@ -541,7 +543,7 @@ interface BuiltinsRuleOptions {
541
543
  * Disallow returning value from constructor
542
544
  * @see https://eslint.org/docs/latest/rules/no-constructor-return
543
545
  */
544
- "no-constructor-return"?: Linter.RuleEntry<NoConstructorReturn>;
546
+ "no-constructor-return"?: Linter.RuleEntry<[]>;
545
547
  /**
546
548
  * Disallow `continue` statements
547
549
  * @see https://eslint.org/docs/latest/rules/no-continue
@@ -784,7 +786,7 @@ interface BuiltinsRuleOptions {
784
786
  * Disallow characters which are made with multiple code points in character class syntax
785
787
  * @see https://eslint.org/docs/latest/rules/no-misleading-character-class
786
788
  */
787
- "no-misleading-character-class"?: Linter.RuleEntry<[]>;
789
+ "no-misleading-character-class"?: Linter.RuleEntry<NoMisleadingCharacterClass>;
788
790
  /**
789
791
  * Disallow mixed binary operators
790
792
  * @see https://eslint.org/docs/latest/rules/no-mixed-operators
@@ -877,6 +879,7 @@ interface BuiltinsRuleOptions {
877
879
  /**
878
880
  * Disallow `new` operators with the `Symbol` object
879
881
  * @see https://eslint.org/docs/latest/rules/no-new-symbol
882
+ * @deprecated
880
883
  */
881
884
  "no-new-symbol"?: Linter.RuleEntry<[]>;
882
885
  /**
@@ -1173,6 +1176,11 @@ interface BuiltinsRuleOptions {
1173
1176
  * @see https://eslint.org/docs/latest/rules/no-use-before-define
1174
1177
  */
1175
1178
  "no-use-before-define"?: Linter.RuleEntry<NoUseBeforeDefine>;
1179
+ /**
1180
+ * Disallow variable assignments when the value is not used
1181
+ * @see https://eslint.org/docs/latest/rules/no-useless-assignment
1182
+ */
1183
+ "no-useless-assignment"?: Linter.RuleEntry<[]>;
1176
1184
  /**
1177
1185
  * Disallow useless backreferences in regular expressions
1178
1186
  * @see https://eslint.org/docs/latest/rules/no-useless-backreference
@@ -1405,12 +1413,6 @@ interface BuiltinsRuleOptions {
1405
1413
  * @see https://eslint.org/docs/latest/rules/require-await
1406
1414
  */
1407
1415
  "require-await"?: Linter.RuleEntry<[]>;
1408
- /**
1409
- * Require JSDoc comments
1410
- * @see https://eslint.org/docs/latest/rules/require-jsdoc
1411
- * @deprecated
1412
- */
1413
- "require-jsdoc"?: Linter.RuleEntry<RequireJsdoc>;
1414
1416
  /**
1415
1417
  * Enforce the use of `u` or `v` flag on RegExp
1416
1418
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
@@ -1534,12 +1536,6 @@ interface BuiltinsRuleOptions {
1534
1536
  * @see https://eslint.org/docs/latest/rules/use-isnan
1535
1537
  */
1536
1538
  "use-isnan"?: Linter.RuleEntry<UseIsnan>;
1537
- /**
1538
- * Enforce valid JSDoc comments
1539
- * @see https://eslint.org/docs/latest/rules/valid-jsdoc
1540
- * @deprecated
1541
- */
1542
- "valid-jsdoc"?: Linter.RuleEntry<ValidJsdoc>;
1543
1539
  /**
1544
1540
  * Enforce comparing `typeof` expressions against valid strings
1545
1541
  * @see https://eslint.org/docs/latest/rules/valid-typeof
@@ -1689,7 +1685,7 @@ type Camelcase =
1689
1685
  ignoreGlobals?: boolean;
1690
1686
  properties?: "always" | "never";
1691
1687
 
1692
- allow?: [] | [string];
1688
+ allow?: string[];
1693
1689
  },
1694
1690
  ];
1695
1691
  // ----- capitalized-comments -----
@@ -1891,6 +1887,9 @@ type FuncStyle =
1891
1887
  "declaration" | "expression",
1892
1888
  {
1893
1889
  allowArrowFunctions?: boolean;
1890
+ overrides?: {
1891
+ namedExports?: "declaration" | "expression" | "ignore";
1892
+ };
1894
1893
  },
1895
1894
  ];
1896
1895
  // ----- function-call-argument-newline -----
@@ -2785,13 +2784,9 @@ type NoConstantCondition =
2785
2784
  | []
2786
2785
  | [
2787
2786
  {
2788
- checkLoops?: boolean;
2787
+ checkLoops?: "all" | "allExceptWhileTrue" | "none" | true | false;
2789
2788
  },
2790
2789
  ];
2791
- // ----- no-constructor-return -----
2792
- interface NoConstructorReturn {
2793
- [k: string]: unknown | undefined;
2794
- }
2795
2790
  // ----- no-duplicate-imports -----
2796
2791
  type NoDuplicateImports =
2797
2792
  | []
@@ -2863,9 +2858,12 @@ type NoExtendNative =
2863
2858
  type NoExtraBooleanCast =
2864
2859
  | []
2865
2860
  | [
2866
- {
2867
- enforceForLogicalOperands?: boolean;
2868
- },
2861
+ | {
2862
+ enforceForInnerExpressions?: boolean;
2863
+ }
2864
+ | {
2865
+ enforceForLogicalOperands?: boolean;
2866
+ },
2869
2867
  ];
2870
2868
  // ----- no-extra-parens -----
2871
2869
  type NoExtraParens =
@@ -2895,6 +2893,7 @@ type NoFallthrough =
2895
2893
  {
2896
2894
  commentPattern?: string;
2897
2895
  allowEmptyCase?: boolean;
2896
+ reportUnusedFallthroughComment?: boolean;
2898
2897
  },
2899
2898
  ];
2900
2899
  // ----- no-global-assign -----
@@ -2914,7 +2913,7 @@ type NoImplicitCoercion =
2914
2913
  number?: boolean;
2915
2914
  string?: boolean;
2916
2915
  disallowTemplateShorthand?: boolean;
2917
- allow?: ("~" | "!!" | "+" | "*")[];
2916
+ allow?: ("~" | "!!" | "+" | "- -" | "-" | "*")[];
2918
2917
  },
2919
2918
  ];
2920
2919
  // ----- no-implicit-globals -----
@@ -2934,7 +2933,15 @@ type NoInlineComments =
2934
2933
  },
2935
2934
  ];
2936
2935
  // ----- no-inner-declarations -----
2937
- type NoInnerDeclarations = [] | ["functions" | "both"];
2936
+ type NoInnerDeclarations =
2937
+ | []
2938
+ | ["functions" | "both"]
2939
+ | [
2940
+ "functions" | "both",
2941
+ {
2942
+ blockScopedFunctions?: "allow" | "disallow";
2943
+ },
2944
+ ];
2938
2945
  // ----- no-invalid-regexp -----
2939
2946
  type NoInvalidRegexp =
2940
2947
  | []
@@ -2985,6 +2992,14 @@ type NoMagicNumbers =
2985
2992
  ignoreClassFieldInitialValues?: boolean;
2986
2993
  },
2987
2994
  ];
2995
+ // ----- no-misleading-character-class -----
2996
+ type NoMisleadingCharacterClass =
2997
+ | []
2998
+ | [
2999
+ {
3000
+ allowEscape?: boolean;
3001
+ },
3002
+ ];
2988
3003
  // ----- no-mixed-operators -----
2989
3004
  type NoMixedOperators =
2990
3005
  | []
@@ -3174,9 +3189,11 @@ type NoRestrictedExports =
3174
3189
  | [
3175
3190
  | {
3176
3191
  restrictedNamedExports?: string[];
3192
+ restrictedNamedExportsPattern?: string;
3177
3193
  }
3178
3194
  | {
3179
3195
  restrictedNamedExports?: string[];
3196
+ restrictedNamedExportsPattern?: string;
3180
3197
  restrictDefaultExports?: {
3181
3198
  direct?: boolean;
3182
3199
  named?: boolean;
@@ -3202,6 +3219,7 @@ type NoRestrictedImports =
3202
3219
  name: string;
3203
3220
  message?: string;
3204
3221
  importNames?: string[];
3222
+ allowImportNames?: string[];
3205
3223
  }
3206
3224
  )[]
3207
3225
  | []
@@ -3213,18 +3231,19 @@ type NoRestrictedImports =
3213
3231
  name: string;
3214
3232
  message?: string;
3215
3233
  importNames?: string[];
3234
+ allowImportNames?: string[];
3216
3235
  }
3217
3236
  )[];
3218
3237
  patterns?:
3219
3238
  | string[]
3220
- | {
3221
- importNames?: [string, ...string[]];
3222
-
3223
- group: [string, ...string[]];
3224
- importNamePattern?: string;
3225
- message?: string;
3226
- caseSensitive?: boolean;
3227
- }[];
3239
+ | (
3240
+ | {
3241
+ [k: string]: unknown | undefined;
3242
+ }
3243
+ | {
3244
+ [k: string]: unknown | undefined;
3245
+ }
3246
+ )[];
3228
3247
  },
3229
3248
  ];
3230
3249
  // ----- no-restricted-modules -----
@@ -3408,6 +3427,8 @@ type NoUnusedVars =
3408
3427
  caughtErrors?: "all" | "none";
3409
3428
  caughtErrorsIgnorePattern?: string;
3410
3429
  destructuredArrayIgnorePattern?: string;
3430
+ ignoreClassWithStaticInitBlock?: boolean;
3431
+ reportUsedIgnorePattern?: boolean;
3411
3432
  },
3412
3433
  ];
3413
3434
  // ----- no-use-before-define -----
@@ -3885,20 +3906,6 @@ type RequireAtomicUpdates =
3885
3906
  allowProperties?: boolean;
3886
3907
  },
3887
3908
  ];
3888
- // ----- require-jsdoc -----
3889
- type RequireJsdoc =
3890
- | []
3891
- | [
3892
- {
3893
- require?: {
3894
- ClassDeclaration?: boolean;
3895
- MethodDefinition?: boolean;
3896
- FunctionDeclaration?: boolean;
3897
- ArrowFunctionExpression?: boolean;
3898
- FunctionExpression?: boolean;
3899
- };
3900
- },
3901
- ];
3902
3909
  // ----- rest-spread-spacing -----
3903
3910
  type RestSpreadSpacing = [] | ["always" | "never"];
3904
3911
  // ----- semi -----
@@ -4068,25 +4075,6 @@ type UseIsnan =
4068
4075
  enforceForIndexOf?: boolean;
4069
4076
  },
4070
4077
  ];
4071
- // ----- valid-jsdoc -----
4072
- type ValidJsdoc =
4073
- | []
4074
- | [
4075
- {
4076
- prefer?: {
4077
- [k: string]: string | undefined;
4078
- };
4079
- preferType?: {
4080
- [k: string]: string | undefined;
4081
- };
4082
- requireReturn?: boolean;
4083
- requireParamDescription?: boolean;
4084
- requireReturnDescription?: boolean;
4085
- matchDescription?: string;
4086
- requireReturnType?: boolean;
4087
- requireParamType?: boolean;
4088
- },
4089
- ];
4090
4078
  // ----- valid-typeof -----
4091
4079
  type ValidTypeof =
4092
4080
  | []
@@ -4932,21 +4920,11 @@ interface JavascriptRuleOptions {
4932
4920
  * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4933
4921
  */
4934
4922
  "unused-imports/no-unused-imports"?: Linter.RuleEntry<UnusedImportsNoUnusedImports>;
4935
- /**
4936
- * Disallow unused variables
4937
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4938
- */
4939
- "unused-imports/no-unused-imports-ts"?: Linter.RuleEntry<UnusedImportsNoUnusedImportsTs>;
4940
4923
  /**
4941
4924
  * Disallow unused variables
4942
4925
  * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4943
4926
  */
4944
4927
  "unused-imports/no-unused-vars"?: Linter.RuleEntry<UnusedImportsNoUnusedVars>;
4945
- /**
4946
- * Disallow unused variables
4947
- * @see https://github.com/sweepline/eslint-plugin-unused-imports/blob/master/docs/rules/no-unused-imports.md
4948
- */
4949
- "unused-imports/no-unused-vars-ts"?: Linter.RuleEntry<UnusedImportsNoUnusedVarsTs>;
4950
4928
  }
4951
4929
 
4952
4930
  /* ======= Declarations ======= */
@@ -4964,22 +4942,8 @@ type UnusedImportsNoUnusedImports =
4964
4942
  caughtErrors?: "all" | "none";
4965
4943
  caughtErrorsIgnorePattern?: string;
4966
4944
  destructuredArrayIgnorePattern?: string;
4967
- },
4968
- ];
4969
- // ----- unused-imports/no-unused-imports-ts -----
4970
- type UnusedImportsNoUnusedImportsTs =
4971
- | []
4972
- | [
4973
- | ("all" | "local")
4974
- | {
4975
- vars?: "all" | "local";
4976
- varsIgnorePattern?: string;
4977
- args?: "all" | "after-used" | "none";
4978
- ignoreRestSiblings?: boolean;
4979
- argsIgnorePattern?: string;
4980
- caughtErrors?: "all" | "none";
4981
- caughtErrorsIgnorePattern?: string;
4982
- destructuredArrayIgnorePattern?: string;
4945
+ ignoreClassWithStaticInitBlock?: boolean;
4946
+ reportUsedIgnorePattern?: boolean;
4983
4947
  },
4984
4948
  ];
4985
4949
  // ----- unused-imports/no-unused-vars -----
@@ -4996,22 +4960,8 @@ type UnusedImportsNoUnusedVars =
4996
4960
  caughtErrors?: "all" | "none";
4997
4961
  caughtErrorsIgnorePattern?: string;
4998
4962
  destructuredArrayIgnorePattern?: string;
4999
- },
5000
- ];
5001
- // ----- unused-imports/no-unused-vars-ts -----
5002
- type UnusedImportsNoUnusedVarsTs =
5003
- | []
5004
- | [
5005
- | ("all" | "local")
5006
- | {
5007
- vars?: "all" | "local";
5008
- varsIgnorePattern?: string;
5009
- args?: "all" | "after-used" | "none";
5010
- ignoreRestSiblings?: boolean;
5011
- argsIgnorePattern?: string;
5012
- caughtErrors?: "all" | "none";
5013
- caughtErrorsIgnorePattern?: string;
5014
- destructuredArrayIgnorePattern?: string;
4963
+ ignoreClassWithStaticInitBlock?: boolean;
4964
+ reportUsedIgnorePattern?: boolean;
5015
4965
  },
5016
4966
  ];
5017
4967
 
@@ -10002,9 +9952,9 @@ type PerfectionistSortObjects =
10002
9952
 
10003
9953
  styledComponents?: boolean;
10004
9954
 
10005
- ignorePattern?: string[];
9955
+ destructureOnly?: boolean;
10006
9956
 
10007
- customIgnore?: unknown[];
9957
+ ignorePattern?: string[];
10008
9958
 
10009
9959
  groups?: (string | string[])[];
10010
9960
 
@@ -14357,23 +14307,6 @@ interface TypescriptRuleOptions {
14357
14307
  * @see https://typescript-eslint.io/rules/ban-tslint-comment
14358
14308
  */
14359
14309
  "@typescript-eslint/ban-tslint-comment"?: Linter.RuleEntry<[]>;
14360
- /**
14361
- * Disallow certain types
14362
- * @see https://typescript-eslint.io/rules/ban-types
14363
- */
14364
- "@typescript-eslint/ban-types"?: Linter.RuleEntry<TypescriptEslintBanTypes>;
14365
- /**
14366
- * Disallow or enforce spaces inside of blocks after opening block and before closing block
14367
- * @see https://typescript-eslint.io/rules/block-spacing
14368
- * @deprecated
14369
- */
14370
- "@typescript-eslint/block-spacing"?: Linter.RuleEntry<TypescriptEslintBlockSpacing>;
14371
- /**
14372
- * Enforce consistent brace style for blocks
14373
- * @see https://typescript-eslint.io/rules/brace-style
14374
- * @deprecated
14375
- */
14376
- "@typescript-eslint/brace-style"?: Linter.RuleEntry<TypescriptEslintBraceStyle>;
14377
14310
  /**
14378
14311
  * Enforce that literals on classes are exposed in a consistent style
14379
14312
  * @see https://typescript-eslint.io/rules/class-literal-property-style
@@ -14384,18 +14317,6 @@ interface TypescriptRuleOptions {
14384
14317
  * @see https://typescript-eslint.io/rules/class-methods-use-this
14385
14318
  */
14386
14319
  "@typescript-eslint/class-methods-use-this"?: Linter.RuleEntry<TypescriptEslintClassMethodsUseThis>;
14387
- /**
14388
- * Require or disallow trailing commas
14389
- * @see https://typescript-eslint.io/rules/comma-dangle
14390
- * @deprecated
14391
- */
14392
- "@typescript-eslint/comma-dangle"?: Linter.RuleEntry<TypescriptEslintCommaDangle>;
14393
- /**
14394
- * Enforce consistent spacing before and after commas
14395
- * @see https://typescript-eslint.io/rules/comma-spacing
14396
- * @deprecated
14397
- */
14398
- "@typescript-eslint/comma-spacing"?: Linter.RuleEntry<TypescriptEslintCommaSpacing>;
14399
14320
  /**
14400
14321
  * Enforce specifying generic type arguments on type annotation or constructor name of a constructor call
14401
14322
  * @see https://typescript-eslint.io/rules/consistent-generic-constructors
@@ -14456,58 +14377,16 @@ interface TypescriptRuleOptions {
14456
14377
  * @see https://typescript-eslint.io/rules/explicit-module-boundary-types
14457
14378
  */
14458
14379
  "@typescript-eslint/explicit-module-boundary-types"?: Linter.RuleEntry<TypescriptEslintExplicitModuleBoundaryTypes>;
14459
- /**
14460
- * Require or disallow spacing between function identifiers and their invocations
14461
- * @see https://typescript-eslint.io/rules/func-call-spacing
14462
- * @deprecated
14463
- */
14464
- "@typescript-eslint/func-call-spacing"?: Linter.RuleEntry<TypescriptEslintFuncCallSpacing>;
14465
- /**
14466
- * Enforce consistent indentation
14467
- * @see https://typescript-eslint.io/rules/indent
14468
- * @deprecated
14469
- */
14470
- "@typescript-eslint/indent"?: Linter.RuleEntry<TypescriptEslintIndent>;
14471
14380
  /**
14472
14381
  * Require or disallow initialization in variable declarations
14473
14382
  * @see https://typescript-eslint.io/rules/init-declarations
14474
14383
  */
14475
14384
  "@typescript-eslint/init-declarations"?: Linter.RuleEntry<TypescriptEslintInitDeclarations>;
14476
- /**
14477
- * Enforce consistent spacing between property names and type annotations in types and interfaces
14478
- * @see https://typescript-eslint.io/rules/key-spacing
14479
- * @deprecated
14480
- */
14481
- "@typescript-eslint/key-spacing"?: Linter.RuleEntry<TypescriptEslintKeySpacing>;
14482
- /**
14483
- * Enforce consistent spacing before and after keywords
14484
- * @see https://typescript-eslint.io/rules/keyword-spacing
14485
- * @deprecated
14486
- */
14487
- "@typescript-eslint/keyword-spacing"?: Linter.RuleEntry<TypescriptEslintKeywordSpacing>;
14488
- /**
14489
- * Require empty lines around comments
14490
- * @see https://typescript-eslint.io/rules/lines-around-comment
14491
- * @deprecated
14492
- */
14493
- "@typescript-eslint/lines-around-comment"?: Linter.RuleEntry<TypescriptEslintLinesAroundComment>;
14494
- /**
14495
- * Require or disallow an empty line between class members
14496
- * @see https://typescript-eslint.io/rules/lines-between-class-members
14497
- * @deprecated
14498
- */
14499
- "@typescript-eslint/lines-between-class-members"?: Linter.RuleEntry<TypescriptEslintLinesBetweenClassMembers>;
14500
14385
  /**
14501
14386
  * Enforce a maximum number of parameters in function definitions
14502
14387
  * @see https://typescript-eslint.io/rules/max-params
14503
14388
  */
14504
14389
  "@typescript-eslint/max-params"?: Linter.RuleEntry<TypescriptEslintMaxParams>;
14505
- /**
14506
- * Require a specific member delimiter style for interfaces and type literals
14507
- * @see https://typescript-eslint.io/rules/member-delimiter-style
14508
- * @deprecated
14509
- */
14510
- "@typescript-eslint/member-delimiter-style"?: Linter.RuleEntry<TypescriptEslintMemberDelimiterStyle>;
14511
14390
  /**
14512
14391
  * Require a consistent member declaration order
14513
14392
  * @see https://typescript-eslint.io/rules/member-ordering
@@ -14576,6 +14455,7 @@ interface TypescriptRuleOptions {
14576
14455
  /**
14577
14456
  * Disallow the declaration of empty interfaces
14578
14457
  * @see https://typescript-eslint.io/rules/no-empty-interface
14458
+ * @deprecated
14579
14459
  */
14580
14460
  "@typescript-eslint/no-empty-interface"?: Linter.RuleEntry<TypescriptEslintNoEmptyInterface>;
14581
14461
  /**
@@ -14593,18 +14473,6 @@ interface TypescriptRuleOptions {
14593
14473
  * @see https://typescript-eslint.io/rules/no-extra-non-null-assertion
14594
14474
  */
14595
14475
  "@typescript-eslint/no-extra-non-null-assertion"?: Linter.RuleEntry<[]>;
14596
- /**
14597
- * Disallow unnecessary parentheses
14598
- * @see https://typescript-eslint.io/rules/no-extra-parens
14599
- * @deprecated
14600
- */
14601
- "@typescript-eslint/no-extra-parens"?: Linter.RuleEntry<TypescriptEslintNoExtraParens>;
14602
- /**
14603
- * Disallow unnecessary semicolons
14604
- * @see https://typescript-eslint.io/rules/no-extra-semi
14605
- * @deprecated
14606
- */
14607
- "@typescript-eslint/no-extra-semi"?: Linter.RuleEntry<[]>;
14608
14476
  /**
14609
14477
  * Disallow classes used as namespaces
14610
14478
  * @see https://typescript-eslint.io/rules/no-extraneous-class
@@ -14653,6 +14521,7 @@ interface TypescriptRuleOptions {
14653
14521
  /**
14654
14522
  * Disallow literal numbers that lose precision
14655
14523
  * @see https://typescript-eslint.io/rules/no-loss-of-precision
14524
+ * @deprecated
14656
14525
  */
14657
14526
  "@typescript-eslint/no-loss-of-precision"?: Linter.RuleEntry<[]>;
14658
14527
  /**
@@ -14724,6 +14593,11 @@ interface TypescriptRuleOptions {
14724
14593
  * @see https://typescript-eslint.io/rules/no-restricted-imports
14725
14594
  */
14726
14595
  "@typescript-eslint/no-restricted-imports"?: Linter.RuleEntry<TypescriptEslintNoRestrictedImports>;
14596
+ /**
14597
+ * Disallow certain types
14598
+ * @see https://typescript-eslint.io/rules/no-restricted-types
14599
+ */
14600
+ "@typescript-eslint/no-restricted-types"?: Linter.RuleEntry<TypescriptEslintNoRestrictedTypes>;
14727
14601
  /**
14728
14602
  * Disallow variable declarations from shadowing variables declared in the outer scope
14729
14603
  * @see https://typescript-eslint.io/rules/no-shadow
@@ -14734,12 +14608,6 @@ interface TypescriptRuleOptions {
14734
14608
  * @see https://typescript-eslint.io/rules/no-this-alias
14735
14609
  */
14736
14610
  "@typescript-eslint/no-this-alias"?: Linter.RuleEntry<TypescriptEslintNoThisAlias>;
14737
- /**
14738
- * Disallow throwing literals as exceptions
14739
- * @see https://typescript-eslint.io/rules/no-throw-literal
14740
- * @deprecated
14741
- */
14742
- "@typescript-eslint/no-throw-literal"?: Linter.RuleEntry<TypescriptEslintNoThrowLiteral>;
14743
14611
  /**
14744
14612
  * Disallow type aliases
14745
14613
  * @see https://typescript-eslint.io/rules/no-type-alias
@@ -14865,15 +14733,10 @@ interface TypescriptRuleOptions {
14865
14733
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
14866
14734
  */
14867
14735
  "@typescript-eslint/no-useless-empty-export"?: Linter.RuleEntry<[]>;
14868
- /**
14869
- * Disallow unnecessary template expressions
14870
- * @see https://typescript-eslint.io/rules/no-useless-template-literals
14871
- * @deprecated
14872
- */
14873
- "@typescript-eslint/no-useless-template-literals"?: Linter.RuleEntry<[]>;
14874
14736
  /**
14875
14737
  * Disallow `require` statements except in import statements
14876
14738
  * @see https://typescript-eslint.io/rules/no-var-requires
14739
+ * @deprecated
14877
14740
  */
14878
14741
  "@typescript-eslint/no-var-requires"?: Linter.RuleEntry<TypescriptEslintNoVarRequires>;
14879
14742
  /**
@@ -14886,23 +14749,11 @@ interface TypescriptRuleOptions {
14886
14749
  * @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
14887
14750
  */
14888
14751
  "@typescript-eslint/non-nullable-type-assertion-style"?: Linter.RuleEntry<[]>;
14889
- /**
14890
- * Enforce consistent spacing inside braces
14891
- * @see https://typescript-eslint.io/rules/object-curly-spacing
14892
- * @deprecated
14893
- */
14894
- "@typescript-eslint/object-curly-spacing"?: Linter.RuleEntry<TypescriptEslintObjectCurlySpacing>;
14895
14752
  /**
14896
14753
  * Disallow throwing non-`Error` values as exceptions
14897
14754
  * @see https://typescript-eslint.io/rules/only-throw-error
14898
14755
  */
14899
14756
  "@typescript-eslint/only-throw-error"?: Linter.RuleEntry<TypescriptEslintOnlyThrowError>;
14900
- /**
14901
- * Require or disallow padding lines between statements
14902
- * @see https://typescript-eslint.io/rules/padding-line-between-statements
14903
- * @deprecated
14904
- */
14905
- "@typescript-eslint/padding-line-between-statements"?: Linter.RuleEntry<TypescriptEslintPaddingLineBetweenStatements>;
14906
14757
  /**
14907
14758
  * Require or disallow parameter properties in class constructors
14908
14759
  * @see https://typescript-eslint.io/rules/parameter-properties
@@ -15009,12 +14860,6 @@ interface TypescriptRuleOptions {
15009
14860
  * @see https://typescript-eslint.io/rules/promise-function-async
15010
14861
  */
15011
14862
  "@typescript-eslint/promise-function-async"?: Linter.RuleEntry<TypescriptEslintPromiseFunctionAsync>;
15012
- /**
15013
- * Enforce the consistent use of either backticks, double, or single quotes
15014
- * @see https://typescript-eslint.io/rules/quotes
15015
- * @deprecated
15016
- */
15017
- "@typescript-eslint/quotes"?: Linter.RuleEntry<TypescriptEslintQuotes>;
15018
14863
  /**
15019
14864
  * Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
15020
14865
  * @see https://typescript-eslint.io/rules/require-array-sort-compare
@@ -15040,36 +14885,12 @@ interface TypescriptRuleOptions {
15040
14885
  * @see https://typescript-eslint.io/rules/return-await
15041
14886
  */
15042
14887
  "@typescript-eslint/return-await"?: Linter.RuleEntry<TypescriptEslintReturnAwait>;
15043
- /**
15044
- * Require or disallow semicolons instead of ASI
15045
- * @see https://typescript-eslint.io/rules/semi
15046
- * @deprecated
15047
- */
15048
- "@typescript-eslint/semi"?: Linter.RuleEntry<TypescriptEslintSemi>;
15049
14888
  /**
15050
14889
  * Enforce constituents of a type union/intersection to be sorted alphabetically
15051
14890
  * @see https://typescript-eslint.io/rules/sort-type-constituents
15052
14891
  * @deprecated
15053
14892
  */
15054
14893
  "@typescript-eslint/sort-type-constituents"?: Linter.RuleEntry<TypescriptEslintSortTypeConstituents>;
15055
- /**
15056
- * Enforce consistent spacing before blocks
15057
- * @see https://typescript-eslint.io/rules/space-before-blocks
15058
- * @deprecated
15059
- */
15060
- "@typescript-eslint/space-before-blocks"?: Linter.RuleEntry<TypescriptEslintSpaceBeforeBlocks>;
15061
- /**
15062
- * Enforce consistent spacing before function parenthesis
15063
- * @see https://typescript-eslint.io/rules/space-before-function-paren
15064
- * @deprecated
15065
- */
15066
- "@typescript-eslint/space-before-function-paren"?: Linter.RuleEntry<TypescriptEslintSpaceBeforeFunctionParen>;
15067
- /**
15068
- * Require spacing around infix operators
15069
- * @see https://typescript-eslint.io/rules/space-infix-ops
15070
- * @deprecated
15071
- */
15072
- "@typescript-eslint/space-infix-ops"?: Linter.RuleEntry<TypescriptEslintSpaceInfixOps>;
15073
14894
  /**
15074
14895
  * Disallow certain types in boolean expressions
15075
14896
  * @see https://typescript-eslint.io/rules/strict-boolean-expressions
@@ -15085,12 +14906,6 @@ interface TypescriptRuleOptions {
15085
14906
  * @see https://typescript-eslint.io/rules/triple-slash-reference
15086
14907
  */
15087
14908
  "@typescript-eslint/triple-slash-reference"?: Linter.RuleEntry<TypescriptEslintTripleSlashReference>;
15088
- /**
15089
- * Require consistent spacing around type annotations
15090
- * @see https://typescript-eslint.io/rules/type-annotation-spacing
15091
- * @deprecated
15092
- */
15093
- "@typescript-eslint/type-annotation-spacing"?: Linter.RuleEntry<TypescriptEslintTypeAnnotationSpacing>;
15094
14909
  /**
15095
14910
  * Require type annotations in certain places
15096
14911
  * @see https://typescript-eslint.io/rules/typedef
@@ -15384,43 +15199,6 @@ type TypescriptEslintBanTsComment =
15384
15199
  minimumDescriptionLength?: number;
15385
15200
  },
15386
15201
  ];
15387
- // ----- @typescript-eslint/ban-types -----
15388
- type TypescriptEslintBanTypes =
15389
- | []
15390
- | [
15391
- {
15392
- types?: {
15393
- [k: string]:
15394
- | (
15395
- | null
15396
- | false
15397
- | true
15398
- | string
15399
- | {
15400
- message?: string;
15401
-
15402
- fixWith?: string;
15403
-
15404
- suggest?: string[];
15405
- }
15406
- )
15407
- | undefined;
15408
- };
15409
- extendDefaults?: boolean;
15410
- },
15411
- ];
15412
- // ----- @typescript-eslint/block-spacing -----
15413
- type TypescriptEslintBlockSpacing = [] | ["always" | "never"];
15414
- // ----- @typescript-eslint/brace-style -----
15415
- type TypescriptEslintBraceStyle =
15416
- | []
15417
- | ["1tbs" | "stroustrup" | "allman"]
15418
- | [
15419
- "1tbs" | "stroustrup" | "allman",
15420
- {
15421
- allowSingleLine?: boolean;
15422
- },
15423
- ];
15424
15202
  // ----- @typescript-eslint/class-literal-property-style -----
15425
15203
  type TypescriptEslintClassLiteralPropertyStyle = [] | ["fields" | "getters"];
15426
15204
  // ----- @typescript-eslint/class-methods-use-this -----
@@ -15437,42 +15215,6 @@ type TypescriptEslintClassMethodsUseThis =
15437
15215
  ignoreClassesThatImplementAnInterface?: boolean | "public-fields";
15438
15216
  },
15439
15217
  ];
15440
- // ----- @typescript-eslint/comma-dangle -----
15441
- type TypescriptEslintCommaDangle =
15442
- | []
15443
- | [
15444
- | _TypescriptEslintCommaDangleValue
15445
- | {
15446
- arrays?: _TypescriptEslintCommaDangleValueWithIgnore;
15447
- objects?: _TypescriptEslintCommaDangleValueWithIgnore;
15448
- imports?: _TypescriptEslintCommaDangleValueWithIgnore;
15449
- exports?: _TypescriptEslintCommaDangleValueWithIgnore;
15450
- functions?: _TypescriptEslintCommaDangleValueWithIgnore;
15451
- enums?: _TypescriptEslintCommaDangleValueWithIgnore;
15452
- generics?: _TypescriptEslintCommaDangleValueWithIgnore;
15453
- tuples?: _TypescriptEslintCommaDangleValueWithIgnore;
15454
- },
15455
- ];
15456
- type _TypescriptEslintCommaDangleValue =
15457
- | "always-multiline"
15458
- | "always"
15459
- | "never"
15460
- | "only-multiline";
15461
- type _TypescriptEslintCommaDangleValueWithIgnore =
15462
- | "always-multiline"
15463
- | "always"
15464
- | "never"
15465
- | "only-multiline"
15466
- | "ignore";
15467
- // ----- @typescript-eslint/comma-spacing -----
15468
- type TypescriptEslintCommaSpacing =
15469
- | []
15470
- | [
15471
- {
15472
- before?: boolean;
15473
- after?: boolean;
15474
- },
15475
- ];
15476
15218
  // ----- @typescript-eslint/consistent-generic-constructors -----
15477
15219
  type TypescriptEslintConsistentGenericConstructors =
15478
15220
  | []
@@ -15590,60 +15332,8 @@ type TypescriptEslintExplicitModuleBoundaryTypes =
15590
15332
  allowTypedFunctionExpressions?: boolean;
15591
15333
  },
15592
15334
  ];
15593
- // ----- @typescript-eslint/func-call-spacing -----
15594
- type TypescriptEslintFuncCallSpacing =
15595
- | []
15596
- | ["never"]
15597
- | []
15598
- | ["always"]
15599
- | [
15600
- "always",
15601
- {
15602
- allowNewlines?: boolean;
15603
- },
15604
- ];
15605
- // ----- @typescript-eslint/indent -----
15606
- type TypescriptEslintIndent =
15607
- | []
15608
- | ["tab" | number]
15609
- | [
15610
- "tab" | number,
15611
- {
15612
- SwitchCase?: number;
15613
- VariableDeclarator?:
15614
- | (number | ("first" | "off"))
15615
- | {
15616
- var?: number | ("first" | "off");
15617
- let?: number | ("first" | "off");
15618
- const?: number | ("first" | "off");
15619
- };
15620
- outerIIFEBody?: number | "off";
15621
- MemberExpression?: number | "off";
15622
- FunctionDeclaration?: {
15623
- parameters?: number | ("first" | "off");
15624
- body?: number;
15625
- };
15626
- FunctionExpression?: {
15627
- parameters?: number | ("first" | "off");
15628
- body?: number;
15629
- };
15630
- StaticBlock?: {
15631
- body?: number;
15632
- };
15633
- CallExpression?: {
15634
- arguments?: number | ("first" | "off");
15635
- };
15636
- ArrayExpression?: number | ("first" | "off");
15637
- ObjectExpression?: number | ("first" | "off");
15638
- ImportDeclaration?: number | ("first" | "off");
15639
- flatTernaryExpressions?: boolean;
15640
- offsetTernaryExpressions?: boolean;
15641
- ignoredNodes?: string[];
15642
- ignoreComments?: boolean;
15643
- },
15644
- ];
15645
- // ----- @typescript-eslint/init-declarations -----
15646
- type TypescriptEslintInitDeclarations =
15335
+ // ----- @typescript-eslint/init-declarations -----
15336
+ type TypescriptEslintInitDeclarations =
15647
15337
  | []
15648
15338
  | ["always"]
15649
15339
  | []
@@ -15654,421 +15344,6 @@ type TypescriptEslintInitDeclarations =
15654
15344
  ignoreForLoopInit?: boolean;
15655
15345
  },
15656
15346
  ];
15657
- // ----- @typescript-eslint/key-spacing -----
15658
- type TypescriptEslintKeySpacing =
15659
- | []
15660
- | [
15661
- | {
15662
- align?:
15663
- | ("colon" | "value")
15664
- | {
15665
- mode?: "strict" | "minimum";
15666
- on?: "colon" | "value";
15667
- beforeColon?: boolean;
15668
- afterColon?: boolean;
15669
- };
15670
- mode?: "strict" | "minimum";
15671
- beforeColon?: boolean;
15672
- afterColon?: boolean;
15673
- }
15674
- | {
15675
- singleLine?: {
15676
- mode?: "strict" | "minimum";
15677
- beforeColon?: boolean;
15678
- afterColon?: boolean;
15679
- };
15680
- multiLine?: {
15681
- align?:
15682
- | ("colon" | "value")
15683
- | {
15684
- mode?: "strict" | "minimum";
15685
- on?: "colon" | "value";
15686
- beforeColon?: boolean;
15687
- afterColon?: boolean;
15688
- };
15689
- mode?: "strict" | "minimum";
15690
- beforeColon?: boolean;
15691
- afterColon?: boolean;
15692
- };
15693
- }
15694
- | {
15695
- singleLine?: {
15696
- mode?: "strict" | "minimum";
15697
- beforeColon?: boolean;
15698
- afterColon?: boolean;
15699
- };
15700
- multiLine?: {
15701
- mode?: "strict" | "minimum";
15702
- beforeColon?: boolean;
15703
- afterColon?: boolean;
15704
- };
15705
- align?: {
15706
- mode?: "strict" | "minimum";
15707
- on?: "colon" | "value";
15708
- beforeColon?: boolean;
15709
- afterColon?: boolean;
15710
- };
15711
- },
15712
- ];
15713
- // ----- @typescript-eslint/keyword-spacing -----
15714
- type TypescriptEslintKeywordSpacing =
15715
- | []
15716
- | [
15717
- {
15718
- before?: boolean;
15719
- after?: boolean;
15720
- overrides?: {
15721
- abstract?: {
15722
- before?: boolean;
15723
- after?: boolean;
15724
- };
15725
- as?: {
15726
- before?: boolean;
15727
- after?: boolean;
15728
- };
15729
- async?: {
15730
- before?: boolean;
15731
- after?: boolean;
15732
- };
15733
- await?: {
15734
- before?: boolean;
15735
- after?: boolean;
15736
- };
15737
- boolean?: {
15738
- before?: boolean;
15739
- after?: boolean;
15740
- };
15741
- break?: {
15742
- before?: boolean;
15743
- after?: boolean;
15744
- };
15745
- byte?: {
15746
- before?: boolean;
15747
- after?: boolean;
15748
- };
15749
- case?: {
15750
- before?: boolean;
15751
- after?: boolean;
15752
- };
15753
- catch?: {
15754
- before?: boolean;
15755
- after?: boolean;
15756
- };
15757
- char?: {
15758
- before?: boolean;
15759
- after?: boolean;
15760
- };
15761
- class?: {
15762
- before?: boolean;
15763
- after?: boolean;
15764
- };
15765
- const?: {
15766
- before?: boolean;
15767
- after?: boolean;
15768
- };
15769
- continue?: {
15770
- before?: boolean;
15771
- after?: boolean;
15772
- };
15773
- debugger?: {
15774
- before?: boolean;
15775
- after?: boolean;
15776
- };
15777
- default?: {
15778
- before?: boolean;
15779
- after?: boolean;
15780
- };
15781
- delete?: {
15782
- before?: boolean;
15783
- after?: boolean;
15784
- };
15785
- do?: {
15786
- before?: boolean;
15787
- after?: boolean;
15788
- };
15789
- double?: {
15790
- before?: boolean;
15791
- after?: boolean;
15792
- };
15793
- else?: {
15794
- before?: boolean;
15795
- after?: boolean;
15796
- };
15797
- enum?: {
15798
- before?: boolean;
15799
- after?: boolean;
15800
- };
15801
- export?: {
15802
- before?: boolean;
15803
- after?: boolean;
15804
- };
15805
- extends?: {
15806
- before?: boolean;
15807
- after?: boolean;
15808
- };
15809
- false?: {
15810
- before?: boolean;
15811
- after?: boolean;
15812
- };
15813
- final?: {
15814
- before?: boolean;
15815
- after?: boolean;
15816
- };
15817
- finally?: {
15818
- before?: boolean;
15819
- after?: boolean;
15820
- };
15821
- float?: {
15822
- before?: boolean;
15823
- after?: boolean;
15824
- };
15825
- for?: {
15826
- before?: boolean;
15827
- after?: boolean;
15828
- };
15829
- from?: {
15830
- before?: boolean;
15831
- after?: boolean;
15832
- };
15833
- function?: {
15834
- before?: boolean;
15835
- after?: boolean;
15836
- };
15837
- get?: {
15838
- before?: boolean;
15839
- after?: boolean;
15840
- };
15841
- goto?: {
15842
- before?: boolean;
15843
- after?: boolean;
15844
- };
15845
- if?: {
15846
- before?: boolean;
15847
- after?: boolean;
15848
- };
15849
- implements?: {
15850
- before?: boolean;
15851
- after?: boolean;
15852
- };
15853
- import?: {
15854
- before?: boolean;
15855
- after?: boolean;
15856
- };
15857
- in?: {
15858
- before?: boolean;
15859
- after?: boolean;
15860
- };
15861
- instanceof?: {
15862
- before?: boolean;
15863
- after?: boolean;
15864
- };
15865
- int?: {
15866
- before?: boolean;
15867
- after?: boolean;
15868
- };
15869
- interface?: {
15870
- before?: boolean;
15871
- after?: boolean;
15872
- };
15873
- let?: {
15874
- before?: boolean;
15875
- after?: boolean;
15876
- };
15877
- long?: {
15878
- before?: boolean;
15879
- after?: boolean;
15880
- };
15881
- native?: {
15882
- before?: boolean;
15883
- after?: boolean;
15884
- };
15885
- new?: {
15886
- before?: boolean;
15887
- after?: boolean;
15888
- };
15889
- null?: {
15890
- before?: boolean;
15891
- after?: boolean;
15892
- };
15893
- of?: {
15894
- before?: boolean;
15895
- after?: boolean;
15896
- };
15897
- package?: {
15898
- before?: boolean;
15899
- after?: boolean;
15900
- };
15901
- private?: {
15902
- before?: boolean;
15903
- after?: boolean;
15904
- };
15905
- protected?: {
15906
- before?: boolean;
15907
- after?: boolean;
15908
- };
15909
- public?: {
15910
- before?: boolean;
15911
- after?: boolean;
15912
- };
15913
- return?: {
15914
- before?: boolean;
15915
- after?: boolean;
15916
- };
15917
- set?: {
15918
- before?: boolean;
15919
- after?: boolean;
15920
- };
15921
- short?: {
15922
- before?: boolean;
15923
- after?: boolean;
15924
- };
15925
- static?: {
15926
- before?: boolean;
15927
- after?: boolean;
15928
- };
15929
- super?: {
15930
- before?: boolean;
15931
- after?: boolean;
15932
- };
15933
- switch?: {
15934
- before?: boolean;
15935
- after?: boolean;
15936
- };
15937
- synchronized?: {
15938
- before?: boolean;
15939
- after?: boolean;
15940
- };
15941
- this?: {
15942
- before?: boolean;
15943
- after?: boolean;
15944
- };
15945
- throw?: {
15946
- before?: boolean;
15947
- after?: boolean;
15948
- };
15949
- throws?: {
15950
- before?: boolean;
15951
- after?: boolean;
15952
- };
15953
- transient?: {
15954
- before?: boolean;
15955
- after?: boolean;
15956
- };
15957
- true?: {
15958
- before?: boolean;
15959
- after?: boolean;
15960
- };
15961
- try?: {
15962
- before?: boolean;
15963
- after?: boolean;
15964
- };
15965
- typeof?: {
15966
- before?: boolean;
15967
- after?: boolean;
15968
- };
15969
- var?: {
15970
- before?: boolean;
15971
- after?: boolean;
15972
- };
15973
- void?: {
15974
- before?: boolean;
15975
- after?: boolean;
15976
- };
15977
- volatile?: {
15978
- before?: boolean;
15979
- after?: boolean;
15980
- };
15981
- while?: {
15982
- before?: boolean;
15983
- after?: boolean;
15984
- };
15985
- with?: {
15986
- before?: boolean;
15987
- after?: boolean;
15988
- };
15989
- yield?: {
15990
- before?: boolean;
15991
- after?: boolean;
15992
- };
15993
- type?: {
15994
- before?: boolean;
15995
- after?: boolean;
15996
- };
15997
- };
15998
- },
15999
- ];
16000
- // ----- @typescript-eslint/lines-around-comment -----
16001
- type TypescriptEslintLinesAroundComment =
16002
- | []
16003
- | [
16004
- {
16005
- beforeBlockComment?: boolean;
16006
- afterBlockComment?: boolean;
16007
- beforeLineComment?: boolean;
16008
- afterLineComment?: boolean;
16009
- allowBlockStart?: boolean;
16010
- allowBlockEnd?: boolean;
16011
- allowClassStart?: boolean;
16012
- allowClassEnd?: boolean;
16013
- allowObjectStart?: boolean;
16014
- allowObjectEnd?: boolean;
16015
- allowArrayStart?: boolean;
16016
- allowArrayEnd?: boolean;
16017
- allowInterfaceStart?: boolean;
16018
- allowInterfaceEnd?: boolean;
16019
- allowTypeStart?: boolean;
16020
- allowTypeEnd?: boolean;
16021
- allowEnumStart?: boolean;
16022
- allowEnumEnd?: boolean;
16023
- allowModuleStart?: boolean;
16024
- allowModuleEnd?: boolean;
16025
- ignorePattern?: string;
16026
- applyDefaultIgnorePatterns?: boolean;
16027
- },
16028
- ];
16029
- // ----- @typescript-eslint/lines-between-class-members -----
16030
- type TypescriptEslintLinesBetweenClassMembers =
16031
- | []
16032
- | [
16033
- | {
16034
- enforce: [
16035
- {
16036
- blankLine: "always" | "never";
16037
- prev: "method" | "field" | "*";
16038
- next: "method" | "field" | "*";
16039
- },
16040
- ...{
16041
- blankLine: "always" | "never";
16042
- prev: "method" | "field" | "*";
16043
- next: "method" | "field" | "*";
16044
- }[],
16045
- ];
16046
- }
16047
- | ("always" | "never"),
16048
- ]
16049
- | [
16050
- (
16051
- | {
16052
- enforce: [
16053
- {
16054
- blankLine: "always" | "never";
16055
- prev: "method" | "field" | "*";
16056
- next: "method" | "field" | "*";
16057
- },
16058
- ...{
16059
- blankLine: "always" | "never";
16060
- prev: "method" | "field" | "*";
16061
- next: "method" | "field" | "*";
16062
- }[],
16063
- ];
16064
- }
16065
- | ("always" | "never")
16066
- ),
16067
- {
16068
- exceptAfterSingleLine?: boolean;
16069
- exceptAfterOverload?: boolean;
16070
- },
16071
- ];
16072
15347
  // ----- @typescript-eslint/max-params -----
16073
15348
  type TypescriptEslintMaxParams =
16074
15349
  | []
@@ -16079,36 +15354,6 @@ type TypescriptEslintMaxParams =
16079
15354
  countVoidThis?: boolean;
16080
15355
  },
16081
15356
  ];
16082
- // ----- @typescript-eslint/member-delimiter-style -----
16083
- type TypescriptEslintMemberDelimiterStyle =
16084
- | []
16085
- | [
16086
- {
16087
- multiline?: {
16088
- delimiter?: "none" | "semi" | "comma";
16089
- requireLast?: boolean;
16090
- };
16091
- singleline?: {
16092
- delimiter?: "semi" | "comma";
16093
- requireLast?: boolean;
16094
- };
16095
- overrides?: {
16096
- interface?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig;
16097
- typeLiteral?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig;
16098
- };
16099
- multilineDetection?: "brackets" | "last-member";
16100
- },
16101
- ];
16102
- interface _TypescriptEslintMemberDelimiterStyle_DelimiterConfig {
16103
- multiline?: {
16104
- delimiter?: "none" | "semi" | "comma";
16105
- requireLast?: boolean;
16106
- };
16107
- singleline?: {
16108
- delimiter?: "semi" | "comma";
16109
- requireLast?: boolean;
16110
- };
16111
- }
16112
15357
  // ----- @typescript-eslint/member-ordering -----
16113
15358
  type TypescriptEslintMemberOrdering =
16114
15359
  | []
@@ -18702,39 +17947,18 @@ type TypescriptEslintNoEmptyObjectType =
18702
17947
  | [
18703
17948
  {
18704
17949
  allowInterfaces?: "always" | "never" | "with-single-extends";
18705
- allowObjectTypes?: "always" | "in-type-alias-with-name" | "never";
17950
+ allowObjectTypes?: "always" | "never";
18706
17951
  allowWithName?: string;
18707
17952
  },
18708
17953
  ];
18709
17954
  // ----- @typescript-eslint/no-explicit-any -----
18710
17955
  type TypescriptEslintNoExplicitAny =
18711
17956
  | []
18712
- | [
18713
- {
18714
- fixToUnknown?: boolean;
18715
-
18716
- ignoreRestArgs?: boolean;
18717
- },
18718
- ];
18719
- // ----- @typescript-eslint/no-extra-parens -----
18720
- type TypescriptEslintNoExtraParens =
18721
- | []
18722
- | ["functions"]
18723
- | []
18724
- | ["all"]
18725
- | [
18726
- "all",
18727
- {
18728
- conditionalAssign?: boolean;
18729
- ternaryOperandBinaryExpressions?: boolean;
18730
- nestedBinaryExpressions?: boolean;
18731
- returnAssign?: boolean;
18732
- ignoreJSX?: "none" | "all" | "single-line" | "multi-line";
18733
- enforceForArrowConditionals?: boolean;
18734
- enforceForSequenceExpressions?: boolean;
18735
- enforceForNewInMemberExpressions?: boolean;
18736
- enforceForFunctionPrototypeMethods?: boolean;
18737
- allowParensAfterCommentPattern?: string;
17957
+ | [
17958
+ {
17959
+ fixToUnknown?: boolean;
17960
+
17961
+ ignoreRestArgs?: boolean;
18738
17962
  },
18739
17963
  ];
18740
17964
  // ----- @typescript-eslint/no-extraneous-class -----
@@ -18773,6 +17997,23 @@ type TypescriptEslintNoFloatingPromises =
18773
17997
  package: string;
18774
17998
  }
18775
17999
  )[];
18000
+ allowForKnownSafeCalls?: (
18001
+ | string
18002
+ | {
18003
+ from: "file";
18004
+ name: string | [string, ...string[]];
18005
+ path?: string;
18006
+ }
18007
+ | {
18008
+ from: "lib";
18009
+ name: string | [string, ...string[]];
18010
+ }
18011
+ | {
18012
+ from: "package";
18013
+ name: string | [string, ...string[]];
18014
+ package: string;
18015
+ }
18016
+ )[];
18776
18017
 
18777
18018
  checkThenables?: boolean;
18778
18019
 
@@ -18875,6 +18116,8 @@ type TypescriptEslintNoRequireImports =
18875
18116
  | [
18876
18117
  {
18877
18118
  allow?: string[];
18119
+
18120
+ allowAsImport?: boolean;
18878
18121
  },
18879
18122
  ];
18880
18123
  // ----- @typescript-eslint/no-restricted-imports -----
@@ -18885,6 +18128,7 @@ type TypescriptEslintNoRestrictedImports =
18885
18128
  name: string;
18886
18129
  message?: string;
18887
18130
  importNames?: string[];
18131
+ allowImportNames?: string[];
18888
18132
 
18889
18133
  allowTypeImports?: boolean;
18890
18134
  }
@@ -18898,6 +18142,7 @@ type TypescriptEslintNoRestrictedImports =
18898
18142
  name: string;
18899
18143
  message?: string;
18900
18144
  importNames?: string[];
18145
+ allowImportNames?: string[];
18901
18146
 
18902
18147
  allowTypeImports?: boolean;
18903
18148
  }
@@ -18907,8 +18152,12 @@ type TypescriptEslintNoRestrictedImports =
18907
18152
  | {
18908
18153
  importNames?: [string, ...string[]];
18909
18154
 
18910
- group: [string, ...string[]];
18155
+ allowImportNames?: [string, ...string[]];
18156
+
18157
+ group?: [string, ...string[]];
18158
+ regex?: string;
18911
18159
  importNamePattern?: string;
18160
+ allowImportNamePattern?: string;
18912
18161
  message?: string;
18913
18162
  caseSensitive?: boolean;
18914
18163
 
@@ -18916,6 +18165,28 @@ type TypescriptEslintNoRestrictedImports =
18916
18165
  }[];
18917
18166
  },
18918
18167
  ];
18168
+ // ----- @typescript-eslint/no-restricted-types -----
18169
+ type TypescriptEslintNoRestrictedTypes =
18170
+ | []
18171
+ | [
18172
+ {
18173
+ types?: {
18174
+ [k: string]:
18175
+ | (
18176
+ | true
18177
+ | string
18178
+ | {
18179
+ message?: string;
18180
+
18181
+ fixWith?: string;
18182
+
18183
+ suggest?: string[];
18184
+ }
18185
+ )
18186
+ | undefined;
18187
+ };
18188
+ },
18189
+ ];
18919
18190
  // ----- @typescript-eslint/no-shadow -----
18920
18191
  type TypescriptEslintNoShadow =
18921
18192
  | []
@@ -18939,15 +18210,6 @@ type TypescriptEslintNoThisAlias =
18939
18210
  allowedNames?: string[];
18940
18211
  },
18941
18212
  ];
18942
- // ----- @typescript-eslint/no-throw-literal -----
18943
- type TypescriptEslintNoThrowLiteral =
18944
- | []
18945
- | [
18946
- {
18947
- allowThrowingAny?: boolean;
18948
- allowThrowingUnknown?: boolean;
18949
- },
18950
- ];
18951
18213
  // ----- @typescript-eslint/no-type-alias -----
18952
18214
  type TypescriptEslintNoTypeAlias =
18953
18215
  | []
@@ -19043,6 +18305,8 @@ type TypescriptEslintNoUnusedVars =
19043
18305
  caughtErrors?: "all" | "none";
19044
18306
  caughtErrorsIgnorePattern?: string;
19045
18307
  destructuredArrayIgnorePattern?: string;
18308
+ ignoreClassWithStaticInitBlock?: boolean;
18309
+ reportUsedIgnorePattern?: boolean;
19046
18310
  },
19047
18311
  ];
19048
18312
  // ----- @typescript-eslint/no-use-before-define -----
@@ -19068,17 +18332,6 @@ type TypescriptEslintNoVarRequires =
19068
18332
  allow?: string[];
19069
18333
  },
19070
18334
  ];
19071
- // ----- @typescript-eslint/object-curly-spacing -----
19072
- type TypescriptEslintObjectCurlySpacing =
19073
- | []
19074
- | ["always" | "never"]
19075
- | [
19076
- "always" | "never",
19077
- {
19078
- arraysInObjects?: boolean;
19079
- objectsInObjects?: boolean;
19080
- },
19081
- ];
19082
18335
  // ----- @typescript-eslint/only-throw-error -----
19083
18336
  type TypescriptEslintOnlyThrowError =
19084
18337
  | []
@@ -19088,145 +18341,6 @@ type TypescriptEslintOnlyThrowError =
19088
18341
  allowThrowingUnknown?: boolean;
19089
18342
  },
19090
18343
  ];
19091
- // ----- @typescript-eslint/padding-line-between-statements -----
19092
- type _TypescriptEslintPaddingLineBetweenStatementsPaddingType =
19093
- | "any"
19094
- | "never"
19095
- | "always";
19096
- type _TypescriptEslintPaddingLineBetweenStatementsStatementType =
19097
- | (
19098
- | "*"
19099
- | "block-like"
19100
- | "exports"
19101
- | "require"
19102
- | "directive"
19103
- | "expression"
19104
- | "iife"
19105
- | "multiline-block-like"
19106
- | "multiline-expression"
19107
- | "multiline-const"
19108
- | "multiline-let"
19109
- | "multiline-var"
19110
- | "singleline-const"
19111
- | "singleline-let"
19112
- | "singleline-var"
19113
- | "block"
19114
- | "empty"
19115
- | "function"
19116
- | "break"
19117
- | "case"
19118
- | "class"
19119
- | "const"
19120
- | "continue"
19121
- | "debugger"
19122
- | "default"
19123
- | "do"
19124
- | "export"
19125
- | "for"
19126
- | "if"
19127
- | "import"
19128
- | "let"
19129
- | "return"
19130
- | "switch"
19131
- | "throw"
19132
- | "try"
19133
- | "var"
19134
- | "while"
19135
- | "with"
19136
- | "interface"
19137
- | "type"
19138
- )
19139
- | [
19140
- (
19141
- | "*"
19142
- | "block-like"
19143
- | "exports"
19144
- | "require"
19145
- | "directive"
19146
- | "expression"
19147
- | "iife"
19148
- | "multiline-block-like"
19149
- | "multiline-expression"
19150
- | "multiline-const"
19151
- | "multiline-let"
19152
- | "multiline-var"
19153
- | "singleline-const"
19154
- | "singleline-let"
19155
- | "singleline-var"
19156
- | "block"
19157
- | "empty"
19158
- | "function"
19159
- | "break"
19160
- | "case"
19161
- | "class"
19162
- | "const"
19163
- | "continue"
19164
- | "debugger"
19165
- | "default"
19166
- | "do"
19167
- | "export"
19168
- | "for"
19169
- | "if"
19170
- | "import"
19171
- | "let"
19172
- | "return"
19173
- | "switch"
19174
- | "throw"
19175
- | "try"
19176
- | "var"
19177
- | "while"
19178
- | "with"
19179
- | "interface"
19180
- | "type"
19181
- ),
19182
- ...(
19183
- | "*"
19184
- | "block-like"
19185
- | "exports"
19186
- | "require"
19187
- | "directive"
19188
- | "expression"
19189
- | "iife"
19190
- | "multiline-block-like"
19191
- | "multiline-expression"
19192
- | "multiline-const"
19193
- | "multiline-let"
19194
- | "multiline-var"
19195
- | "singleline-const"
19196
- | "singleline-let"
19197
- | "singleline-var"
19198
- | "block"
19199
- | "empty"
19200
- | "function"
19201
- | "break"
19202
- | "case"
19203
- | "class"
19204
- | "const"
19205
- | "continue"
19206
- | "debugger"
19207
- | "default"
19208
- | "do"
19209
- | "export"
19210
- | "for"
19211
- | "if"
19212
- | "import"
19213
- | "let"
19214
- | "return"
19215
- | "switch"
19216
- | "throw"
19217
- | "try"
19218
- | "var"
19219
- | "while"
19220
- | "with"
19221
- | "interface"
19222
- | "type"
19223
- )[],
19224
- ];
19225
- type TypescriptEslintPaddingLineBetweenStatements = {
19226
- blankLine: _TypescriptEslintPaddingLineBetweenStatementsPaddingType;
19227
- prev: _TypescriptEslintPaddingLineBetweenStatementsStatementType;
19228
- next: _TypescriptEslintPaddingLineBetweenStatementsStatementType;
19229
- }[];
19230
18344
  // ----- @typescript-eslint/parameter-properties -----
19231
18345
  type TypescriptEslintParameterProperties =
19232
18346
  | []
@@ -19401,20 +18515,6 @@ type TypescriptEslintPromiseFunctionAsync =
19401
18515
  checkMethodDeclarations?: boolean;
19402
18516
  },
19403
18517
  ];
19404
- // ----- @typescript-eslint/quotes -----
19405
- type TypescriptEslintQuotes =
19406
- | []
19407
- | ["single" | "double" | "backtick"]
19408
- | [
19409
- "single" | "double" | "backtick",
19410
- (
19411
- | "avoid-escape"
19412
- | {
19413
- avoidEscape?: boolean;
19414
- allowTemplateLiterals?: boolean;
19415
- }
19416
- ),
19417
- ];
19418
18518
  // ----- @typescript-eslint/require-array-sort-compare -----
19419
18519
  type TypescriptEslintRequireArraySortCompare =
19420
18520
  | []
@@ -19465,25 +18565,6 @@ type TypescriptEslintRestrictTemplateExpressions =
19465
18565
  type TypescriptEslintReturnAwait =
19466
18566
  | []
19467
18567
  | ["in-try-catch" | "always" | "never" | "error-handling-correctness-only"];
19468
- // ----- @typescript-eslint/semi -----
19469
- type TypescriptEslintSemi =
19470
- | []
19471
- | ["never"]
19472
- | [
19473
- "never",
19474
- {
19475
- beforeStatementContinuationChars?: "always" | "any" | "never";
19476
- },
19477
- ]
19478
- | []
19479
- | ["always"]
19480
- | [
19481
- "always",
19482
- {
19483
- omitLastInOneLineBlock?: boolean;
19484
- omitLastInOneLineClassBody?: boolean;
19485
- },
19486
- ];
19487
18568
  // ----- @typescript-eslint/sort-type-constituents -----
19488
18569
  type TypescriptEslintSortTypeConstituents =
19489
18570
  | []
@@ -19511,36 +18592,6 @@ type TypescriptEslintSortTypeConstituents =
19511
18592
  )[];
19512
18593
  },
19513
18594
  ];
19514
- // ----- @typescript-eslint/space-before-blocks -----
19515
- type TypescriptEslintSpaceBeforeBlocks =
19516
- | []
19517
- | [
19518
- | ("always" | "never")
19519
- | {
19520
- keywords?: "always" | "never" | "off";
19521
- functions?: "always" | "never" | "off";
19522
- classes?: "always" | "never" | "off";
19523
- },
19524
- ];
19525
- // ----- @typescript-eslint/space-before-function-paren -----
19526
- type TypescriptEslintSpaceBeforeFunctionParen =
19527
- | []
19528
- | [
19529
- | ("always" | "never")
19530
- | {
19531
- anonymous?: "always" | "never" | "ignore";
19532
- named?: "always" | "never" | "ignore";
19533
- asyncArrow?: "always" | "never" | "ignore";
19534
- },
19535
- ];
19536
- // ----- @typescript-eslint/space-infix-ops -----
19537
- type TypescriptEslintSpaceInfixOps =
19538
- | []
19539
- | [
19540
- {
19541
- int32Hint?: boolean;
19542
- },
19543
- ];
19544
18595
  // ----- @typescript-eslint/strict-boolean-expressions -----
19545
18596
  type TypescriptEslintStrictBooleanExpressions =
19546
18597
  | []
@@ -19577,27 +18628,6 @@ type TypescriptEslintTripleSlashReference =
19577
18628
  types?: "always" | "never" | "prefer-import";
19578
18629
  },
19579
18630
  ];
19580
- // ----- @typescript-eslint/type-annotation-spacing -----
19581
- type TypescriptEslintTypeAnnotationSpacing =
19582
- | []
19583
- | [
19584
- {
19585
- before?: boolean;
19586
- after?: boolean;
19587
- overrides?: {
19588
- colon?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19589
- arrow?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19590
- variable?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19591
- parameter?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19592
- property?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19593
- returnType?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19594
- };
19595
- },
19596
- ];
19597
- interface _TypescriptEslintTypeAnnotationSpacing_SpacingConfig {
19598
- before?: boolean;
19599
- after?: boolean;
19600
- }
19601
18631
  // ----- @typescript-eslint/typedef -----
19602
18632
  type TypescriptEslintTypedef =
19603
18633
  | []