@jsse/eslint-config 0.1.21 → 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
  | []
@@ -4329,42 +4317,42 @@ interface IgnoresRuleOptions {}
4329
4317
  interface ImportsRuleOptions {
4330
4318
  /**
4331
4319
  * Enforce or ban the use of inline type-only markers for named imports.
4332
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/consistent-type-specifier-style.md
4320
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
4333
4321
  */
4334
4322
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
4335
4323
  /**
4336
4324
  * Ensure a default export is present, given a default import.
4337
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/default.md
4325
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
4338
4326
  */
4339
4327
  "import/default"?: Linter.RuleEntry<[]>;
4340
4328
  /**
4341
4329
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
4342
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/dynamic-import-chunkname.md
4330
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
4343
4331
  */
4344
4332
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
4345
4333
  /**
4346
4334
  * Forbid any invalid exports, i.e. re-export of the same name.
4347
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/export.md
4335
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
4348
4336
  */
4349
4337
  "import/export"?: Linter.RuleEntry<[]>;
4350
4338
  /**
4351
4339
  * Ensure all exports appear after other statements.
4352
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/exports-last.md
4340
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
4353
4341
  */
4354
4342
  "import/exports-last"?: Linter.RuleEntry<[]>;
4355
4343
  /**
4356
4344
  * Ensure consistent use of file extension within the import path.
4357
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/extensions.md
4345
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
4358
4346
  */
4359
4347
  "import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
4360
4348
  /**
4361
4349
  * Ensure all imports appear before other statements.
4362
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/first.md
4350
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
4363
4351
  */
4364
4352
  "import/first"?: Linter.RuleEntry<ImportFirst$1>;
4365
4353
  /**
4366
4354
  * Prefer named exports to be grouped together in a single export declaration.
4367
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/group-exports.md
4355
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
4368
4356
  */
4369
4357
  "import/group-exports"?: Linter.RuleEntry<[]>;
4370
4358
  /**
@@ -4375,182 +4363,182 @@ interface ImportsRuleOptions {
4375
4363
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
4376
4364
  /**
4377
4365
  * Enforce the maximum number of dependencies a module can have.
4378
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/max-dependencies.md
4366
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
4379
4367
  */
4380
4368
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
4381
4369
  /**
4382
4370
  * Ensure named imports correspond to a named export in the remote file.
4383
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/named.md
4371
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
4384
4372
  */
4385
4373
  "import/named"?: Linter.RuleEntry<ImportNamed$1>;
4386
4374
  /**
4387
4375
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
4388
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/namespace.md
4376
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
4389
4377
  */
4390
4378
  "import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
4391
4379
  /**
4392
4380
  * Enforce a newline after import statements.
4393
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/newline-after-import.md
4381
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
4394
4382
  */
4395
4383
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
4396
4384
  /**
4397
4385
  * Forbid import of modules using absolute paths.
4398
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-absolute-path.md
4386
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
4399
4387
  */
4400
4388
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
4401
4389
  /**
4402
4390
  * Forbid AMD `require` and `define` calls.
4403
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-amd.md
4391
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
4404
4392
  */
4405
4393
  "import/no-amd"?: Linter.RuleEntry<[]>;
4406
4394
  /**
4407
4395
  * Forbid anonymous values as default exports.
4408
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-anonymous-default-export.md
4396
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
4409
4397
  */
4410
4398
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
4411
4399
  /**
4412
4400
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
4413
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-commonjs.md
4401
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
4414
4402
  */
4415
4403
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
4416
4404
  /**
4417
4405
  * Forbid a module from importing a module with a dependency path back to itself.
4418
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-cycle.md
4406
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
4419
4407
  */
4420
4408
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
4421
4409
  /**
4422
4410
  * Forbid default exports.
4423
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-default-export.md
4411
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
4424
4412
  */
4425
4413
  "import/no-default-export"?: Linter.RuleEntry<[]>;
4426
4414
  /**
4427
4415
  * Forbid imported names marked with `@deprecated` documentation tag.
4428
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-deprecated.md
4416
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
4429
4417
  */
4430
4418
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
4431
4419
  /**
4432
4420
  * Forbid repeated import of the same module in multiple places.
4433
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-duplicates.md
4421
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
4434
4422
  */
4435
4423
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
4436
4424
  /**
4437
4425
  * Forbid `require()` calls with expressions.
4438
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-dynamic-require.md
4426
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
4439
4427
  */
4440
4428
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
4441
4429
  /**
4442
4430
  * Forbid empty named import blocks.
4443
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-empty-named-blocks.md
4431
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
4444
4432
  */
4445
4433
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
4446
4434
  /**
4447
4435
  * Forbid the use of extraneous packages.
4448
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-extraneous-dependencies.md
4436
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
4449
4437
  */
4450
4438
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
4451
4439
  /**
4452
4440
  * Forbid import statements with CommonJS module.exports.
4453
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-import-module-exports.md
4441
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
4454
4442
  */
4455
4443
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
4456
4444
  /**
4457
4445
  * Forbid importing the submodules of other modules.
4458
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-internal-modules.md
4446
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
4459
4447
  */
4460
4448
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
4461
4449
  /**
4462
4450
  * Forbid the use of mutable exports with `var` or `let`.
4463
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-mutable-exports.md
4451
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
4464
4452
  */
4465
4453
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
4466
4454
  /**
4467
4455
  * Forbid use of exported name as identifier of default export.
4468
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default.md
4456
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
4469
4457
  */
4470
4458
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
4471
4459
  /**
4472
4460
  * Forbid use of exported name as property of default export.
4473
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default-member.md
4461
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
4474
4462
  */
4475
4463
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
4476
4464
  /**
4477
4465
  * Forbid named default exports.
4478
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-default.md
4466
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
4479
4467
  */
4480
4468
  "import/no-named-default"?: Linter.RuleEntry<[]>;
4481
4469
  /**
4482
4470
  * Forbid named exports.
4483
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-export.md
4471
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
4484
4472
  */
4485
4473
  "import/no-named-export"?: Linter.RuleEntry<[]>;
4486
4474
  /**
4487
4475
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
4488
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-namespace.md
4476
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
4489
4477
  */
4490
4478
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
4491
4479
  /**
4492
4480
  * Forbid Node.js builtin modules.
4493
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-nodejs-modules.md
4481
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
4494
4482
  */
4495
4483
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
4496
4484
  /**
4497
4485
  * Forbid importing packages through relative paths.
4498
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-packages.md
4486
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
4499
4487
  */
4500
4488
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
4501
4489
  /**
4502
4490
  * Forbid importing modules from parent directories.
4503
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-parent-imports.md
4491
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
4504
4492
  */
4505
4493
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
4506
4494
  /**
4507
4495
  * Enforce which files can be imported in a given folder.
4508
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-restricted-paths.md
4496
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
4509
4497
  */
4510
4498
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
4511
4499
  /**
4512
4500
  * Forbid a module from importing itself.
4513
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-self-import.md
4501
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
4514
4502
  */
4515
4503
  "import/no-self-import"?: Linter.RuleEntry<[]>;
4516
4504
  /**
4517
4505
  * Forbid unassigned imports.
4518
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unassigned-import.md
4506
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
4519
4507
  */
4520
4508
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
4521
4509
  /**
4522
4510
  * Ensure imports point to a file/module that can be resolved.
4523
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unresolved.md
4511
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
4524
4512
  */
4525
4513
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
4526
4514
  /**
4527
4515
  * Forbid modules without exports, or exports without matching import in another module.
4528
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unused-modules.md
4516
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
4529
4517
  */
4530
4518
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
4531
4519
  /**
4532
4520
  * Forbid unnecessary path segments in import and require statements.
4533
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-useless-path-segments.md
4521
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
4534
4522
  */
4535
4523
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
4536
4524
  /**
4537
4525
  * Forbid webpack loader syntax in imports.
4538
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-webpack-loader-syntax.md
4526
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
4539
4527
  */
4540
4528
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
4541
4529
  /**
4542
4530
  * Enforce a convention in module import order.
4543
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/order.md
4531
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
4544
4532
  */
4545
4533
  "import/order"?: Linter.RuleEntry<ImportOrder$1>;
4546
4534
  /**
4547
4535
  * Prefer a default export if module exports a single name or multiple names.
4548
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/prefer-default-export.md
4536
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
4549
4537
  */
4550
4538
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
4551
4539
  /**
4552
4540
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
4553
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/unambiguous.md
4541
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
4554
4542
  */
4555
4543
  "import/unambiguous"?: Linter.RuleEntry<[]>;
4556
4544
  }
@@ -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
 
@@ -5065,6 +5015,11 @@ interface JsdocRuleOptions {
5065
5015
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-tag-names.md#repos-sticky-header
5066
5016
  */
5067
5017
  "jsdoc/check-tag-names"?: Linter.RuleEntry<JsdocCheckTagNames>;
5018
+ /**
5019
+ * Checks that any `@template` names are actually used in the connected `@typedef` or type alias.
5020
+ * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/require-template.md#repos-sticky-header
5021
+ */
5022
+ "jsdoc/check-template-names"?: Linter.RuleEntry<[]>;
5068
5023
  /**
5069
5024
  * Reports invalid types.
5070
5025
  * @see https://github.com/gajus/eslint-plugin-jsdoc/blob/main/docs/rules/check-types.md#repos-sticky-header
@@ -8256,6 +8211,9 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8256
8211
  | "navigator.platform"
8257
8212
  | "navigator.userAgent"
8258
8213
  | "structuredClone"
8214
+ | "localStorage"
8215
+ | "sessionStorage"
8216
+ | "Storage"
8259
8217
  | "Blob"
8260
8218
  | "new Buffer()"
8261
8219
  | "Buffer"
@@ -8339,6 +8297,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
8339
8297
  | "process.execArgv"
8340
8298
  | "process.execPath"
8341
8299
  | "process.exitCode"
8300
+ | "process.finalization.register"
8301
+ | "process.finalization.registerBeforeExit"
8302
+ | "process.finalization.unregister"
8303
+ | "process.getBuiltinModule"
8342
8304
  | "process.mainModule"
8343
8305
  | "process.noDeprecation"
8344
8306
  | "process.permission"
@@ -9058,6 +9020,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9058
9020
  | "path.posix.dirname"
9059
9021
  | "path.posix.extname"
9060
9022
  | "path.posix.format"
9023
+ | "path.posix.matchesGlob"
9061
9024
  | "path.posix.isAbsolute"
9062
9025
  | "path.posix.join"
9063
9026
  | "path.posix.normalize"
@@ -9072,6 +9035,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9072
9035
  | "path.win32.dirname"
9073
9036
  | "path.win32.extname"
9074
9037
  | "path.win32.format"
9038
+ | "path.win32.matchesGlob"
9075
9039
  | "path.win32.isAbsolute"
9076
9040
  | "path.win32.join"
9077
9041
  | "path.win32.normalize"
@@ -9085,6 +9049,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9085
9049
  | "path.dirname"
9086
9050
  | "path.extname"
9087
9051
  | "path.format"
9052
+ | "path.matchesGlob"
9088
9053
  | "path.isAbsolute"
9089
9054
  | "path.join"
9090
9055
  | "path.normalize"
@@ -9099,6 +9064,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9099
9064
  | "path/posix.dirname"
9100
9065
  | "path/posix.extname"
9101
9066
  | "path/posix.format"
9067
+ | "path/posix.matchesGlob"
9102
9068
  | "path/posix.isAbsolute"
9103
9069
  | "path/posix.join"
9104
9070
  | "path/posix.normalize"
@@ -9113,6 +9079,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9113
9079
  | "path/win32.dirname"
9114
9080
  | "path/win32.extname"
9115
9081
  | "path/win32.format"
9082
+ | "path/win32.matchesGlob"
9116
9083
  | "path/win32.isAbsolute"
9117
9084
  | "path/win32.join"
9118
9085
  | "path/win32.normalize"
@@ -9250,7 +9217,11 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9250
9217
  | "test.after"
9251
9218
  | "test.beforeEach"
9252
9219
  | "test.afterEach"
9220
+ | "test.snapshot"
9221
+ | "test.snapshot.setDefaultSnapshotSerializers"
9222
+ | "test.snapshot.setResolveSnapshotPath"
9253
9223
  | "test.MockFunctionContext"
9224
+ | "test.MockModuleContext"
9254
9225
  | "test.MockTracker"
9255
9226
  | "test.MockTimers"
9256
9227
  | "test.TestsStream"
@@ -9267,7 +9238,9 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9267
9238
  | "test.test.after"
9268
9239
  | "test.test.beforeEach"
9269
9240
  | "test.test.afterEach"
9241
+ | "test.test.snapshot"
9270
9242
  | "test.test.MockFunctionContext"
9243
+ | "test.test.MockModuleContext"
9271
9244
  | "test.test.MockTracker"
9272
9245
  | "test.test.MockTimers"
9273
9246
  | "test.test.TestsStream"
@@ -9519,6 +9492,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
9519
9492
  | "worker_threads.markAsUntransferable"
9520
9493
  | "worker_threads.isMarkedAsUntransferable"
9521
9494
  | "worker_threads.moveMessagePortToContext"
9495
+ | "worker_threads.postMessageToThread"
9522
9496
  | "worker_threads.receiveMessageOnPort"
9523
9497
  | "worker_threads.setEnvironmentData"
9524
9498
  | "worker_threads.BroadcastChannel"
@@ -9626,88 +9600,98 @@ type NShebang =
9626
9600
 
9627
9601
  interface PerfectionistRuleOptions {
9628
9602
  /**
9629
- * enforce sorted arrays before include method
9630
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-array-includes
9603
+ * Enforce sorted arrays before include method.
9604
+ * @see https://perfectionist.dev/rules/sort-array-includes
9631
9605
  */
9632
9606
  "perfectionist/sort-array-includes"?: Linter.RuleEntry<PerfectionistSortArrayIncludes>;
9633
9607
  /**
9634
- * enforce sorted Astro attributes
9635
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-astro-attributes
9608
+ * Enforce sorted Astro attributes.
9609
+ * @see https://perfectionist.dev/rules/sort-astro-attributes
9636
9610
  */
9637
9611
  "perfectionist/sort-astro-attributes"?: Linter.RuleEntry<PerfectionistSortAstroAttributes>;
9638
9612
  /**
9639
- * enforce sorted classes
9640
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-classes
9613
+ * Enforce sorted classes.
9614
+ * @see https://perfectionist.dev/rules/sort-classes
9641
9615
  */
9642
9616
  "perfectionist/sort-classes"?: Linter.RuleEntry<PerfectionistSortClasses>;
9643
9617
  /**
9644
- * enforce sorted TypeScript enums
9645
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-enums
9618
+ * Enforce sorted TypeScript enums.
9619
+ * @see https://perfectionist.dev/rules/sort-enums
9646
9620
  */
9647
9621
  "perfectionist/sort-enums"?: Linter.RuleEntry<PerfectionistSortEnums>;
9648
9622
  /**
9649
- * enforce sorted exports
9650
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-exports
9623
+ * Enforce sorted exports.
9624
+ * @see https://perfectionist.dev/rules/sort-exports
9651
9625
  */
9652
9626
  "perfectionist/sort-exports"?: Linter.RuleEntry<PerfectionistSortExports>;
9653
9627
  /**
9654
- * enforce sorted imports
9655
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-imports
9628
+ * Enforce sorted imports.
9629
+ * @see https://perfectionist.dev/rules/sort-imports
9656
9630
  */
9657
9631
  "perfectionist/sort-imports"?: Linter.RuleEntry<PerfectionistSortImports>;
9658
9632
  /**
9659
- * enforce sorted interface properties
9660
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-interfaces
9633
+ * Enforce sorted interface properties.
9634
+ * @see https://perfectionist.dev/rules/sort-interfaces
9661
9635
  */
9662
9636
  "perfectionist/sort-interfaces"?: Linter.RuleEntry<PerfectionistSortInterfaces>;
9663
9637
  /**
9664
- * enforce sorted intersection types
9665
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-intersection-types
9638
+ * Enforce sorted intersection types.
9639
+ * @see https://perfectionist.dev/rules/sort-intersection-types
9666
9640
  */
9667
9641
  "perfectionist/sort-intersection-types"?: Linter.RuleEntry<PerfectionistSortIntersectionTypes>;
9668
9642
  /**
9669
- * enforce sorted JSX props
9670
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-jsx-props
9643
+ * Enforce sorted JSX props.
9644
+ * @see https://perfectionist.dev/rules/sort-jsx-props
9671
9645
  */
9672
9646
  "perfectionist/sort-jsx-props"?: Linter.RuleEntry<PerfectionistSortJsxProps>;
9673
9647
  /**
9674
- * enforce sorted Map elements
9675
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-maps
9648
+ * Enforce sorted Map elements.
9649
+ * @see https://perfectionist.dev/rules/sort-maps
9676
9650
  */
9677
9651
  "perfectionist/sort-maps"?: Linter.RuleEntry<PerfectionistSortMaps>;
9678
9652
  /**
9679
- * enforce sorted named exports
9680
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-named-exports
9653
+ * Enforce sorted named exports.
9654
+ * @see https://perfectionist.dev/rules/sort-named-exports
9681
9655
  */
9682
9656
  "perfectionist/sort-named-exports"?: Linter.RuleEntry<PerfectionistSortNamedExports>;
9683
9657
  /**
9684
- * enforce sorted named imports
9685
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-named-imports
9658
+ * Enforce sorted named imports.
9659
+ * @see https://perfectionist.dev/rules/sort-named-imports
9686
9660
  */
9687
9661
  "perfectionist/sort-named-imports"?: Linter.RuleEntry<PerfectionistSortNamedImports>;
9688
9662
  /**
9689
- * enforce sorted object types
9690
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-object-types
9663
+ * Enforce sorted object types.
9664
+ * @see https://perfectionist.dev/rules/sort-object-types
9691
9665
  */
9692
9666
  "perfectionist/sort-object-types"?: Linter.RuleEntry<PerfectionistSortObjectTypes>;
9693
9667
  /**
9694
- * enforce sorted objects
9695
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-objects
9668
+ * Enforce sorted objects.
9669
+ * @see https://perfectionist.dev/rules/sort-objects
9696
9670
  */
9697
9671
  "perfectionist/sort-objects"?: Linter.RuleEntry<PerfectionistSortObjects>;
9698
9672
  /**
9699
- * enforce sorted Svelte attributes
9700
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-svelte-attributes
9673
+ * Enforce sorted Svelte attributes.
9674
+ * @see https://perfectionist.dev/rules/sort-svelte-attributes
9701
9675
  */
9702
9676
  "perfectionist/sort-svelte-attributes"?: Linter.RuleEntry<PerfectionistSortSvelteAttributes>;
9703
9677
  /**
9704
- * enforce sorted union types
9705
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-union-types
9678
+ * Enforce sorted switch cases.
9679
+ * @see https://perfectionist.dev/rules/sort-switch-case
9680
+ */
9681
+ "perfectionist/sort-switch-case"?: Linter.RuleEntry<PerfectionistSortSwitchCase>;
9682
+ /**
9683
+ * Enforce sorted union types.
9684
+ * @see https://perfectionist.dev/rules/sort-union-types
9706
9685
  */
9707
9686
  "perfectionist/sort-union-types"?: Linter.RuleEntry<PerfectionistSortUnionTypes>;
9708
9687
  /**
9709
- * enforce sorted Vue attributes
9710
- * @see https://eslint-plugin-perfectionist.azat.io/rules/sort-vue-attributes
9688
+ * Enforce sorted variable declarations.
9689
+ * @see https://perfectionist.dev/rules/sort-variable-declarations
9690
+ */
9691
+ "perfectionist/sort-variable-declarations"?: Linter.RuleEntry<PerfectionistSortVariableDeclarations>;
9692
+ /**
9693
+ * Enforce sorted Vue attributes.
9694
+ * @see https://perfectionist.dev/rules/sort-vue-attributes
9711
9695
  */
9712
9696
  "perfectionist/sort-vue-attributes"?: Linter.RuleEntry<PerfectionistSortVueAttributes>;
9713
9697
  }
@@ -9719,9 +9703,12 @@ type PerfectionistSortArrayIncludes =
9719
9703
  | [
9720
9704
  {
9721
9705
  type?: "alphabetical" | "natural" | "line-length";
9706
+
9722
9707
  order?: "asc" | "desc";
9723
- "ignore-case"?: boolean;
9724
- "spread-last"?: boolean;
9708
+
9709
+ ignoreCase?: boolean;
9710
+
9711
+ groupKind?: "mixed" | "literals-first" | "spreads-first";
9725
9712
  },
9726
9713
  ];
9727
9714
  // ----- perfectionist/sort-astro-attributes -----
@@ -9729,13 +9716,17 @@ type PerfectionistSortAstroAttributes =
9729
9716
  | []
9730
9717
  | [
9731
9718
  {
9732
- "custom-groups"?: {
9733
- [k: string]: unknown | undefined;
9734
- };
9735
9719
  type?: "alphabetical" | "natural" | "line-length";
9720
+
9736
9721
  order?: "asc" | "desc";
9737
- "ignore-case"?: boolean;
9738
- groups?: unknown[];
9722
+
9723
+ ignoreCase?: boolean;
9724
+
9725
+ groups?: (string | string[])[];
9726
+
9727
+ customGroups?: {
9728
+ [k: string]: (string | string[]) | undefined;
9729
+ };
9739
9730
  },
9740
9731
  ];
9741
9732
  // ----- perfectionist/sort-classes -----
@@ -9743,13 +9734,19 @@ type PerfectionistSortClasses =
9743
9734
  | []
9744
9735
  | [
9745
9736
  {
9746
- "custom-groups"?: {
9747
- [k: string]: unknown | undefined;
9748
- };
9749
9737
  type?: "alphabetical" | "natural" | "line-length";
9750
- "ignore-case"?: boolean;
9738
+
9751
9739
  order?: "asc" | "desc";
9752
- groups?: unknown[];
9740
+
9741
+ ignoreCase?: boolean;
9742
+
9743
+ partitionByComment?: string[] | boolean | string;
9744
+
9745
+ groups?: (string | string[])[];
9746
+
9747
+ customGroups?: {
9748
+ [k: string]: (string | string[]) | undefined;
9749
+ };
9753
9750
  },
9754
9751
  ];
9755
9752
  // ----- perfectionist/sort-enums -----
@@ -9757,10 +9754,13 @@ type PerfectionistSortEnums =
9757
9754
  | []
9758
9755
  | [
9759
9756
  {
9760
- "partition-by-comment"?: boolean | string | unknown[];
9761
9757
  type?: "alphabetical" | "natural" | "line-length";
9762
- "ignore-case"?: boolean;
9758
+
9763
9759
  order?: "asc" | "desc";
9760
+
9761
+ ignoreCase?: boolean;
9762
+
9763
+ partitionByComment?: string[] | boolean | string;
9764
9764
  },
9765
9765
  ];
9766
9766
  // ----- perfectionist/sort-exports -----
@@ -9769,15 +9769,31 @@ type PerfectionistSortExports =
9769
9769
  | [
9770
9770
  {
9771
9771
  type?: "alphabetical" | "natural" | "line-length";
9772
+
9772
9773
  order?: "asc" | "desc";
9773
- "ignore-case"?: boolean;
9774
+
9775
+ ignoreCase?: boolean;
9774
9776
  },
9775
9777
  ];
9776
9778
  // ----- perfectionist/sort-imports -----
9777
9779
  type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
9778
9780
  type _PerfectionistSortImportsSortImports =
9779
9781
  _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
9780
- "custom-groups"?: {
9782
+ type?: "alphabetical" | "natural" | "line-length";
9783
+
9784
+ order?: "asc" | "desc";
9785
+
9786
+ ignoreCase?: boolean;
9787
+
9788
+ internalPattern?: string[];
9789
+
9790
+ newlinesBetween?: "ignore" | "always" | "never";
9791
+
9792
+ maxLineLength?: number;
9793
+
9794
+ groups?: (string | string[])[];
9795
+
9796
+ customGroups?: {
9781
9797
  type?: {
9782
9798
  [k: string]: unknown | undefined;
9783
9799
  };
@@ -9785,13 +9801,8 @@ type _PerfectionistSortImportsSortImports =
9785
9801
  [k: string]: unknown | undefined;
9786
9802
  };
9787
9803
  };
9788
- type?: "alphabetical" | "natural" | "line-length";
9789
- order?: "asc" | "desc";
9790
- "ignore-case"?: boolean;
9791
- groups?: unknown[];
9792
- "internal-pattern"?: string[];
9793
- "newlines-between"?: "ignore" | "always" | "never";
9794
- "max-line-length"?: number;
9804
+
9805
+ environment?: "node" | "bun";
9795
9806
  };
9796
9807
  type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType =
9797
9808
  | {
@@ -9807,16 +9818,23 @@ type PerfectionistSortInterfaces =
9807
9818
  | []
9808
9819
  | [
9809
9820
  {
9810
- "custom-groups"?: {
9811
- [k: string]: unknown | undefined;
9812
- };
9813
- "optionality-order"?: "ignore" | "optional-first" | "required-first";
9814
9821
  type?: "alphabetical" | "natural" | "line-length";
9822
+
9815
9823
  order?: "asc" | "desc";
9816
- "ignore-case"?: boolean;
9817
- "ignore-pattern"?: string[];
9818
- groups?: unknown[];
9819
- "partition-by-new-line"?: boolean;
9824
+
9825
+ ignoreCase?: boolean;
9826
+
9827
+ ignorePattern?: string[];
9828
+
9829
+ partitionByNewLine?: boolean;
9830
+
9831
+ groupKind?: "mixed" | "optional-first" | "required-first";
9832
+
9833
+ groups?: (string | string[])[];
9834
+
9835
+ customGroups?: {
9836
+ [k: string]: (string | string[]) | undefined;
9837
+ };
9820
9838
  },
9821
9839
  ];
9822
9840
  // ----- perfectionist/sort-intersection-types -----
@@ -9825,8 +9843,12 @@ type PerfectionistSortIntersectionTypes =
9825
9843
  | [
9826
9844
  {
9827
9845
  type?: "alphabetical" | "natural" | "line-length";
9846
+
9828
9847
  order?: "asc" | "desc";
9829
- "ignore-case"?: boolean;
9848
+
9849
+ ignoreCase?: boolean;
9850
+
9851
+ groups?: (string | string[])[];
9830
9852
  },
9831
9853
  ];
9832
9854
  // ----- perfectionist/sort-jsx-props -----
@@ -9834,13 +9856,19 @@ type PerfectionistSortJsxProps =
9834
9856
  | []
9835
9857
  | [
9836
9858
  {
9837
- "custom-groups"?: {
9838
- [k: string]: unknown | undefined;
9839
- };
9840
9859
  type?: "alphabetical" | "natural" | "line-length";
9860
+
9841
9861
  order?: "asc" | "desc";
9842
- groups?: unknown[];
9843
- "ignore-case"?: boolean;
9862
+
9863
+ ignoreCase?: boolean;
9864
+
9865
+ ignorePattern?: string[];
9866
+
9867
+ groups?: (string | string[])[];
9868
+
9869
+ customGroups?: {
9870
+ [k: string]: (string | string[]) | undefined;
9871
+ };
9844
9872
  },
9845
9873
  ];
9846
9874
  // ----- perfectionist/sort-maps -----
@@ -9849,8 +9877,10 @@ type PerfectionistSortMaps =
9849
9877
  | [
9850
9878
  {
9851
9879
  type?: "alphabetical" | "natural" | "line-length";
9880
+
9852
9881
  order?: "asc" | "desc";
9853
- "ignore-case"?: boolean;
9882
+
9883
+ ignoreCase?: boolean;
9854
9884
  },
9855
9885
  ];
9856
9886
  // ----- perfectionist/sort-named-exports -----
@@ -9859,9 +9889,12 @@ type PerfectionistSortNamedExports =
9859
9889
  | [
9860
9890
  {
9861
9891
  type?: "alphabetical" | "natural" | "line-length";
9892
+
9862
9893
  order?: "asc" | "desc";
9863
- "ignore-case"?: boolean;
9864
- "group-kind"?: "mixed" | "values-first" | "types-first";
9894
+
9895
+ ignoreCase?: boolean;
9896
+
9897
+ groupKind?: "mixed" | "values-first" | "types-first";
9865
9898
  },
9866
9899
  ];
9867
9900
  // ----- perfectionist/sort-named-imports -----
@@ -9870,10 +9903,14 @@ type PerfectionistSortNamedImports =
9870
9903
  | [
9871
9904
  {
9872
9905
  type?: "alphabetical" | "natural" | "line-length";
9906
+
9873
9907
  order?: "asc" | "desc";
9874
- "ignore-case"?: boolean;
9875
- "ignore-alias"?: boolean;
9876
- "group-kind"?: "mixed" | "values-first" | "types-first";
9908
+
9909
+ ignoreCase?: boolean;
9910
+
9911
+ ignoreAlias?: boolean;
9912
+
9913
+ groupKind?: "mixed" | "values-first" | "types-first";
9877
9914
  },
9878
9915
  ];
9879
9916
  // ----- perfectionist/sort-object-types -----
@@ -9881,14 +9918,21 @@ type PerfectionistSortObjectTypes =
9881
9918
  | []
9882
9919
  | [
9883
9920
  {
9884
- "custom-groups"?: {
9885
- [k: string]: unknown | undefined;
9886
- };
9887
9921
  type?: "alphabetical" | "natural" | "line-length";
9922
+
9888
9923
  order?: "asc" | "desc";
9889
- "ignore-case"?: boolean;
9890
- groups?: unknown[];
9891
- "partition-by-new-line"?: boolean;
9924
+
9925
+ ignoreCase?: boolean;
9926
+
9927
+ partitionByNewLine?: boolean;
9928
+
9929
+ groupKind?: "mixed" | "required-first" | "optional-first";
9930
+
9931
+ groups?: (string | string[])[];
9932
+
9933
+ customGroups?: {
9934
+ [k: string]: (string | string[]) | undefined;
9935
+ };
9892
9936
  },
9893
9937
  ];
9894
9938
  // ----- perfectionist/sort-objects -----
@@ -9896,17 +9940,27 @@ type PerfectionistSortObjects =
9896
9940
  | []
9897
9941
  | [
9898
9942
  {
9899
- "custom-groups"?: {
9900
- [k: string]: unknown | undefined;
9901
- };
9902
- "partition-by-comment"?: boolean | string | unknown[];
9903
- "partition-by-new-line"?: boolean;
9904
- "styled-components"?: boolean;
9905
9943
  type?: "alphabetical" | "natural" | "line-length";
9944
+
9906
9945
  order?: "asc" | "desc";
9907
- "ignore-case"?: boolean;
9908
- "ignore-pattern"?: string[];
9909
- groups?: unknown[];
9946
+
9947
+ ignoreCase?: boolean;
9948
+
9949
+ partitionByComment?: string[] | boolean | string;
9950
+
9951
+ partitionByNewLine?: boolean;
9952
+
9953
+ styledComponents?: boolean;
9954
+
9955
+ destructureOnly?: boolean;
9956
+
9957
+ ignorePattern?: string[];
9958
+
9959
+ groups?: (string | string[])[];
9960
+
9961
+ customGroups?: {
9962
+ [k: string]: (string | string[]) | undefined;
9963
+ };
9910
9964
  },
9911
9965
  ];
9912
9966
  // ----- perfectionist/sort-svelte-attributes -----
@@ -9914,13 +9968,29 @@ type PerfectionistSortSvelteAttributes =
9914
9968
  | []
9915
9969
  | [
9916
9970
  {
9917
- "custom-groups"?: {
9918
- [k: string]: unknown | undefined;
9971
+ type?: "alphabetical" | "natural" | "line-length";
9972
+
9973
+ order?: "asc" | "desc";
9974
+
9975
+ ignoreCase?: boolean;
9976
+
9977
+ groups?: (string | string[])[];
9978
+
9979
+ customGroups?: {
9980
+ [k: string]: (string | string[]) | undefined;
9919
9981
  };
9982
+ },
9983
+ ];
9984
+ // ----- perfectionist/sort-switch-case -----
9985
+ type PerfectionistSortSwitchCase =
9986
+ | []
9987
+ | [
9988
+ {
9920
9989
  type?: "alphabetical" | "natural" | "line-length";
9990
+
9921
9991
  order?: "asc" | "desc";
9922
- "ignore-case"?: boolean;
9923
- groups?: unknown[];
9992
+
9993
+ ignoreCase?: boolean;
9924
9994
  },
9925
9995
  ];
9926
9996
  // ----- perfectionist/sort-union-types -----
@@ -9929,9 +9999,24 @@ type PerfectionistSortUnionTypes =
9929
9999
  | [
9930
10000
  {
9931
10001
  type?: "alphabetical" | "natural" | "line-length";
10002
+
10003
+ order?: "asc" | "desc";
10004
+
10005
+ ignoreCase?: boolean;
10006
+
10007
+ groups?: (string | string[])[];
10008
+ },
10009
+ ];
10010
+ // ----- perfectionist/sort-variable-declarations -----
10011
+ type PerfectionistSortVariableDeclarations =
10012
+ | []
10013
+ | [
10014
+ {
10015
+ type?: "alphabetical" | "natural" | "line-length";
10016
+
9932
10017
  order?: "asc" | "desc";
9933
- "ignore-case"?: boolean;
9934
- "nullable-last"?: boolean;
10018
+
10019
+ ignoreCase?: boolean;
9935
10020
  },
9936
10021
  ];
9937
10022
  // ----- perfectionist/sort-vue-attributes -----
@@ -9939,13 +10024,17 @@ type PerfectionistSortVueAttributes =
9939
10024
  | []
9940
10025
  | [
9941
10026
  {
9942
- "custom-groups"?: {
9943
- [k: string]: unknown | undefined;
9944
- };
9945
10027
  type?: "alphabetical" | "natural" | "line-length";
10028
+
9946
10029
  order?: "asc" | "desc";
9947
- "ignore-case"?: boolean;
9948
- groups?: unknown[];
10030
+
10031
+ ignoreCase?: boolean;
10032
+
10033
+ groups?: (string | string[])[];
10034
+
10035
+ customGroups?: {
10036
+ [k: string]: (string | string[]) | undefined;
10037
+ };
9949
10038
  },
9950
10039
  ];
9951
10040
 
@@ -10060,7 +10149,7 @@ interface ReactRuleOptions {
10060
10149
  * Enforce closing tag location for multiline JSX
10061
10150
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-closing-tag-location.md
10062
10151
  */
10063
- "react/jsx-closing-tag-location"?: Linter.RuleEntry<[]>;
10152
+ "react/jsx-closing-tag-location"?: Linter.RuleEntry<ReactJsxClosingTagLocation>;
10064
10153
  /**
10065
10154
  * Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
10066
10155
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-curly-brace-presence.md
@@ -10196,6 +10285,11 @@ interface ReactRuleOptions {
10196
10285
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-multi-spaces.md
10197
10286
  */
10198
10287
  "react/jsx-props-no-multi-spaces"?: Linter.RuleEntry<[]>;
10288
+ /**
10289
+ * Disallow JSX prop spreading the same identifier multiple times
10290
+ * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spread-multi.md
10291
+ */
10292
+ "react/jsx-props-no-spread-multi"?: Linter.RuleEntry<[]>;
10199
10293
  /**
10200
10294
  * Disallow JSX prop spreading
10201
10295
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-props-no-spreading.md
@@ -10267,7 +10361,7 @@ interface ReactRuleOptions {
10267
10361
  * Disallow usage of dangerous JSX properties
10268
10362
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger.md
10269
10363
  */
10270
- "react/no-danger"?: Linter.RuleEntry<[]>;
10364
+ "react/no-danger"?: Linter.RuleEntry<ReactNoDanger>;
10271
10365
  /**
10272
10366
  * Disallow when a DOM element is using both children and dangerouslySetInnerHTML
10273
10367
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/no-danger-with-children.md
@@ -10573,6 +10667,17 @@ type ReactForbidComponentProps =
10573
10667
  | {
10574
10668
  propName?: string;
10575
10669
 
10670
+ disallowedFor: [string, ...string[]];
10671
+ message?: string;
10672
+ }
10673
+ | {
10674
+ propNamePattern?: string;
10675
+ allowedFor?: string[];
10676
+ message?: string;
10677
+ }
10678
+ | {
10679
+ propNamePattern?: string;
10680
+
10576
10681
  disallowedFor: [string, ...string[]];
10577
10682
  message?: string;
10578
10683
  }
@@ -10704,6 +10809,15 @@ type ReactJsxClosingBracketLocation =
10704
10809
  | false;
10705
10810
  },
10706
10811
  ];
10812
+ // ----- react/jsx-closing-tag-location -----
10813
+ type ReactJsxClosingTagLocation =
10814
+ | []
10815
+ | [
10816
+ | ("tag-aligned" | "line-aligned")
10817
+ | {
10818
+ location?: "tag-aligned" | "line-aligned";
10819
+ },
10820
+ ];
10707
10821
  // ----- react/jsx-curly-brace-presence -----
10708
10822
  type ReactJsxCurlyBracePresence =
10709
10823
  | []
@@ -10792,24 +10906,31 @@ type ReactJsxHandlerNames =
10792
10906
  eventHandlerPropPrefix?: string;
10793
10907
  checkLocalVariables?: boolean;
10794
10908
  checkInlineFunction?: boolean;
10909
+ ignoreComponentNames?: string[];
10795
10910
  }
10796
10911
  | {
10797
10912
  eventHandlerPrefix?: string;
10798
10913
  eventHandlerPropPrefix?: false;
10799
10914
  checkLocalVariables?: boolean;
10800
10915
  checkInlineFunction?: boolean;
10916
+ ignoreComponentNames?: string[];
10801
10917
  }
10802
10918
  | {
10803
10919
  eventHandlerPrefix?: false;
10804
10920
  eventHandlerPropPrefix?: string;
10805
10921
  checkLocalVariables?: boolean;
10806
10922
  checkInlineFunction?: boolean;
10923
+ ignoreComponentNames?: string[];
10807
10924
  }
10808
10925
  | {
10809
10926
  checkLocalVariables?: boolean;
10810
10927
  }
10811
10928
  | {
10812
10929
  checkInlineFunction?: boolean;
10930
+ }
10931
+ | {
10932
+ ignoreComponentNames?: string[];
10933
+ [k: string]: unknown | undefined;
10813
10934
  },
10814
10935
  ];
10815
10936
  // ----- react/jsx-indent -----
@@ -11103,6 +11224,15 @@ type ReactNoChildrenProp =
11103
11224
  allowFunctions?: boolean;
11104
11225
  },
11105
11226
  ];
11227
+ // ----- react/no-danger -----
11228
+ type ReactNoDanger =
11229
+ | []
11230
+ | [
11231
+ {
11232
+ customComponentNames?: string[];
11233
+ [k: string]: unknown | undefined;
11234
+ },
11235
+ ];
11106
11236
  // ----- react/no-did-mount-set-state -----
11107
11237
  type ReactNoDidMountSetState = [] | ["disallow-in-func"];
11108
11238
  // ----- react/no-did-update-set-state -----
@@ -13216,6 +13346,7 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
13216
13346
  | "with"
13217
13347
  | "cjs-export"
13218
13348
  | "cjs-import"
13349
+ | "enum"
13219
13350
  | "interface"
13220
13351
  | "type"
13221
13352
  | "function-overload"
@@ -13262,6 +13393,7 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
13262
13393
  | "with"
13263
13394
  | "cjs-export"
13264
13395
  | "cjs-import"
13396
+ | "enum"
13265
13397
  | "interface"
13266
13398
  | "type"
13267
13399
  | "function-overload"
@@ -13307,6 +13439,7 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
13307
13439
  | "with"
13308
13440
  | "cjs-export"
13309
13441
  | "cjs-import"
13442
+ | "enum"
13310
13443
  | "interface"
13311
13444
  | "type"
13312
13445
  | "function-overload"
@@ -14174,23 +14307,6 @@ interface TypescriptRuleOptions {
14174
14307
  * @see https://typescript-eslint.io/rules/ban-tslint-comment
14175
14308
  */
14176
14309
  "@typescript-eslint/ban-tslint-comment"?: Linter.RuleEntry<[]>;
14177
- /**
14178
- * Disallow certain types
14179
- * @see https://typescript-eslint.io/rules/ban-types
14180
- */
14181
- "@typescript-eslint/ban-types"?: Linter.RuleEntry<TypescriptEslintBanTypes>;
14182
- /**
14183
- * Disallow or enforce spaces inside of blocks after opening block and before closing block
14184
- * @see https://typescript-eslint.io/rules/block-spacing
14185
- * @deprecated
14186
- */
14187
- "@typescript-eslint/block-spacing"?: Linter.RuleEntry<TypescriptEslintBlockSpacing>;
14188
- /**
14189
- * Enforce consistent brace style for blocks
14190
- * @see https://typescript-eslint.io/rules/brace-style
14191
- * @deprecated
14192
- */
14193
- "@typescript-eslint/brace-style"?: Linter.RuleEntry<TypescriptEslintBraceStyle>;
14194
14310
  /**
14195
14311
  * Enforce that literals on classes are exposed in a consistent style
14196
14312
  * @see https://typescript-eslint.io/rules/class-literal-property-style
@@ -14201,18 +14317,6 @@ interface TypescriptRuleOptions {
14201
14317
  * @see https://typescript-eslint.io/rules/class-methods-use-this
14202
14318
  */
14203
14319
  "@typescript-eslint/class-methods-use-this"?: Linter.RuleEntry<TypescriptEslintClassMethodsUseThis>;
14204
- /**
14205
- * Require or disallow trailing commas
14206
- * @see https://typescript-eslint.io/rules/comma-dangle
14207
- * @deprecated
14208
- */
14209
- "@typescript-eslint/comma-dangle"?: Linter.RuleEntry<TypescriptEslintCommaDangle>;
14210
- /**
14211
- * Enforce consistent spacing before and after commas
14212
- * @see https://typescript-eslint.io/rules/comma-spacing
14213
- * @deprecated
14214
- */
14215
- "@typescript-eslint/comma-spacing"?: Linter.RuleEntry<TypescriptEslintCommaSpacing>;
14216
14320
  /**
14217
14321
  * Enforce specifying generic type arguments on type annotation or constructor name of a constructor call
14218
14322
  * @see https://typescript-eslint.io/rules/consistent-generic-constructors
@@ -14273,58 +14377,16 @@ interface TypescriptRuleOptions {
14273
14377
  * @see https://typescript-eslint.io/rules/explicit-module-boundary-types
14274
14378
  */
14275
14379
  "@typescript-eslint/explicit-module-boundary-types"?: Linter.RuleEntry<TypescriptEslintExplicitModuleBoundaryTypes>;
14276
- /**
14277
- * Require or disallow spacing between function identifiers and their invocations
14278
- * @see https://typescript-eslint.io/rules/func-call-spacing
14279
- * @deprecated
14280
- */
14281
- "@typescript-eslint/func-call-spacing"?: Linter.RuleEntry<TypescriptEslintFuncCallSpacing>;
14282
- /**
14283
- * Enforce consistent indentation
14284
- * @see https://typescript-eslint.io/rules/indent
14285
- * @deprecated
14286
- */
14287
- "@typescript-eslint/indent"?: Linter.RuleEntry<TypescriptEslintIndent>;
14288
14380
  /**
14289
14381
  * Require or disallow initialization in variable declarations
14290
14382
  * @see https://typescript-eslint.io/rules/init-declarations
14291
14383
  */
14292
14384
  "@typescript-eslint/init-declarations"?: Linter.RuleEntry<TypescriptEslintInitDeclarations>;
14293
- /**
14294
- * Enforce consistent spacing between property names and type annotations in types and interfaces
14295
- * @see https://typescript-eslint.io/rules/key-spacing
14296
- * @deprecated
14297
- */
14298
- "@typescript-eslint/key-spacing"?: Linter.RuleEntry<TypescriptEslintKeySpacing>;
14299
- /**
14300
- * Enforce consistent spacing before and after keywords
14301
- * @see https://typescript-eslint.io/rules/keyword-spacing
14302
- * @deprecated
14303
- */
14304
- "@typescript-eslint/keyword-spacing"?: Linter.RuleEntry<TypescriptEslintKeywordSpacing>;
14305
- /**
14306
- * Require empty lines around comments
14307
- * @see https://typescript-eslint.io/rules/lines-around-comment
14308
- * @deprecated
14309
- */
14310
- "@typescript-eslint/lines-around-comment"?: Linter.RuleEntry<TypescriptEslintLinesAroundComment>;
14311
- /**
14312
- * Require or disallow an empty line between class members
14313
- * @see https://typescript-eslint.io/rules/lines-between-class-members
14314
- * @deprecated
14315
- */
14316
- "@typescript-eslint/lines-between-class-members"?: Linter.RuleEntry<TypescriptEslintLinesBetweenClassMembers>;
14317
14385
  /**
14318
14386
  * Enforce a maximum number of parameters in function definitions
14319
14387
  * @see https://typescript-eslint.io/rules/max-params
14320
14388
  */
14321
14389
  "@typescript-eslint/max-params"?: Linter.RuleEntry<TypescriptEslintMaxParams>;
14322
- /**
14323
- * Require a specific member delimiter style for interfaces and type literals
14324
- * @see https://typescript-eslint.io/rules/member-delimiter-style
14325
- * @deprecated
14326
- */
14327
- "@typescript-eslint/member-delimiter-style"?: Linter.RuleEntry<TypescriptEslintMemberDelimiterStyle>;
14328
14390
  /**
14329
14391
  * Require a consistent member declaration order
14330
14392
  * @see https://typescript-eslint.io/rules/member-ordering
@@ -14393,6 +14455,7 @@ interface TypescriptRuleOptions {
14393
14455
  /**
14394
14456
  * Disallow the declaration of empty interfaces
14395
14457
  * @see https://typescript-eslint.io/rules/no-empty-interface
14458
+ * @deprecated
14396
14459
  */
14397
14460
  "@typescript-eslint/no-empty-interface"?: Linter.RuleEntry<TypescriptEslintNoEmptyInterface>;
14398
14461
  /**
@@ -14410,18 +14473,6 @@ interface TypescriptRuleOptions {
14410
14473
  * @see https://typescript-eslint.io/rules/no-extra-non-null-assertion
14411
14474
  */
14412
14475
  "@typescript-eslint/no-extra-non-null-assertion"?: Linter.RuleEntry<[]>;
14413
- /**
14414
- * Disallow unnecessary parentheses
14415
- * @see https://typescript-eslint.io/rules/no-extra-parens
14416
- * @deprecated
14417
- */
14418
- "@typescript-eslint/no-extra-parens"?: Linter.RuleEntry<TypescriptEslintNoExtraParens>;
14419
- /**
14420
- * Disallow unnecessary semicolons
14421
- * @see https://typescript-eslint.io/rules/no-extra-semi
14422
- * @deprecated
14423
- */
14424
- "@typescript-eslint/no-extra-semi"?: Linter.RuleEntry<[]>;
14425
14476
  /**
14426
14477
  * Disallow classes used as namespaces
14427
14478
  * @see https://typescript-eslint.io/rules/no-extraneous-class
@@ -14470,6 +14521,7 @@ interface TypescriptRuleOptions {
14470
14521
  /**
14471
14522
  * Disallow literal numbers that lose precision
14472
14523
  * @see https://typescript-eslint.io/rules/no-loss-of-precision
14524
+ * @deprecated
14473
14525
  */
14474
14526
  "@typescript-eslint/no-loss-of-precision"?: Linter.RuleEntry<[]>;
14475
14527
  /**
@@ -14541,6 +14593,11 @@ interface TypescriptRuleOptions {
14541
14593
  * @see https://typescript-eslint.io/rules/no-restricted-imports
14542
14594
  */
14543
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>;
14544
14601
  /**
14545
14602
  * Disallow variable declarations from shadowing variables declared in the outer scope
14546
14603
  * @see https://typescript-eslint.io/rules/no-shadow
@@ -14551,12 +14608,6 @@ interface TypescriptRuleOptions {
14551
14608
  * @see https://typescript-eslint.io/rules/no-this-alias
14552
14609
  */
14553
14610
  "@typescript-eslint/no-this-alias"?: Linter.RuleEntry<TypescriptEslintNoThisAlias>;
14554
- /**
14555
- * Disallow throwing literals as exceptions
14556
- * @see https://typescript-eslint.io/rules/no-throw-literal
14557
- * @deprecated
14558
- */
14559
- "@typescript-eslint/no-throw-literal"?: Linter.RuleEntry<TypescriptEslintNoThrowLiteral>;
14560
14611
  /**
14561
14612
  * Disallow type aliases
14562
14613
  * @see https://typescript-eslint.io/rules/no-type-alias
@@ -14637,6 +14688,11 @@ interface TypescriptRuleOptions {
14637
14688
  * @see https://typescript-eslint.io/rules/no-unsafe-enum-comparison
14638
14689
  */
14639
14690
  "@typescript-eslint/no-unsafe-enum-comparison"?: Linter.RuleEntry<[]>;
14691
+ /**
14692
+ * Disallow using the unsafe built-in Function type
14693
+ * @see https://typescript-eslint.io/rules/no-unsafe-function-type
14694
+ */
14695
+ "@typescript-eslint/no-unsafe-function-type"?: Linter.RuleEntry<[]>;
14640
14696
  /**
14641
14697
  * Disallow member access on a value with type `any`
14642
14698
  * @see https://typescript-eslint.io/rules/no-unsafe-member-access
@@ -14677,39 +14733,27 @@ interface TypescriptRuleOptions {
14677
14733
  * @see https://typescript-eslint.io/rules/no-useless-empty-export
14678
14734
  */
14679
14735
  "@typescript-eslint/no-useless-empty-export"?: Linter.RuleEntry<[]>;
14680
- /**
14681
- * Disallow unnecessary template expressions
14682
- * @see https://typescript-eslint.io/rules/no-useless-template-literals
14683
- * @deprecated
14684
- */
14685
- "@typescript-eslint/no-useless-template-literals"?: Linter.RuleEntry<[]>;
14686
14736
  /**
14687
14737
  * Disallow `require` statements except in import statements
14688
14738
  * @see https://typescript-eslint.io/rules/no-var-requires
14739
+ * @deprecated
14689
14740
  */
14690
14741
  "@typescript-eslint/no-var-requires"?: Linter.RuleEntry<TypescriptEslintNoVarRequires>;
14742
+ /**
14743
+ * Disallow using confusing built-in primitive class wrappers
14744
+ * @see https://typescript-eslint.io/rules/no-wrapper-object-types
14745
+ */
14746
+ "@typescript-eslint/no-wrapper-object-types"?: Linter.RuleEntry<[]>;
14691
14747
  /**
14692
14748
  * Enforce non-null assertions over explicit type casts
14693
14749
  * @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
14694
14750
  */
14695
14751
  "@typescript-eslint/non-nullable-type-assertion-style"?: Linter.RuleEntry<[]>;
14696
- /**
14697
- * Enforce consistent spacing inside braces
14698
- * @see https://typescript-eslint.io/rules/object-curly-spacing
14699
- * @deprecated
14700
- */
14701
- "@typescript-eslint/object-curly-spacing"?: Linter.RuleEntry<TypescriptEslintObjectCurlySpacing>;
14702
14752
  /**
14703
14753
  * Disallow throwing non-`Error` values as exceptions
14704
14754
  * @see https://typescript-eslint.io/rules/only-throw-error
14705
14755
  */
14706
14756
  "@typescript-eslint/only-throw-error"?: Linter.RuleEntry<TypescriptEslintOnlyThrowError>;
14707
- /**
14708
- * Require or disallow padding lines between statements
14709
- * @see https://typescript-eslint.io/rules/padding-line-between-statements
14710
- * @deprecated
14711
- */
14712
- "@typescript-eslint/padding-line-between-statements"?: Linter.RuleEntry<TypescriptEslintPaddingLineBetweenStatements>;
14713
14757
  /**
14714
14758
  * Require or disallow parameter properties in class constructors
14715
14759
  * @see https://typescript-eslint.io/rules/parameter-properties
@@ -14816,12 +14860,6 @@ interface TypescriptRuleOptions {
14816
14860
  * @see https://typescript-eslint.io/rules/promise-function-async
14817
14861
  */
14818
14862
  "@typescript-eslint/promise-function-async"?: Linter.RuleEntry<TypescriptEslintPromiseFunctionAsync>;
14819
- /**
14820
- * Enforce the consistent use of either backticks, double, or single quotes
14821
- * @see https://typescript-eslint.io/rules/quotes
14822
- * @deprecated
14823
- */
14824
- "@typescript-eslint/quotes"?: Linter.RuleEntry<TypescriptEslintQuotes>;
14825
14863
  /**
14826
14864
  * Require `Array#sort` and `Array#toSorted` calls to always provide a `compareFunction`
14827
14865
  * @see https://typescript-eslint.io/rules/require-array-sort-compare
@@ -14847,36 +14885,12 @@ interface TypescriptRuleOptions {
14847
14885
  * @see https://typescript-eslint.io/rules/return-await
14848
14886
  */
14849
14887
  "@typescript-eslint/return-await"?: Linter.RuleEntry<TypescriptEslintReturnAwait>;
14850
- /**
14851
- * Require or disallow semicolons instead of ASI
14852
- * @see https://typescript-eslint.io/rules/semi
14853
- * @deprecated
14854
- */
14855
- "@typescript-eslint/semi"?: Linter.RuleEntry<TypescriptEslintSemi>;
14856
14888
  /**
14857
14889
  * Enforce constituents of a type union/intersection to be sorted alphabetically
14858
14890
  * @see https://typescript-eslint.io/rules/sort-type-constituents
14859
14891
  * @deprecated
14860
14892
  */
14861
14893
  "@typescript-eslint/sort-type-constituents"?: Linter.RuleEntry<TypescriptEslintSortTypeConstituents>;
14862
- /**
14863
- * Enforce consistent spacing before blocks
14864
- * @see https://typescript-eslint.io/rules/space-before-blocks
14865
- * @deprecated
14866
- */
14867
- "@typescript-eslint/space-before-blocks"?: Linter.RuleEntry<TypescriptEslintSpaceBeforeBlocks>;
14868
- /**
14869
- * Enforce consistent spacing before function parenthesis
14870
- * @see https://typescript-eslint.io/rules/space-before-function-paren
14871
- * @deprecated
14872
- */
14873
- "@typescript-eslint/space-before-function-paren"?: Linter.RuleEntry<TypescriptEslintSpaceBeforeFunctionParen>;
14874
- /**
14875
- * Require spacing around infix operators
14876
- * @see https://typescript-eslint.io/rules/space-infix-ops
14877
- * @deprecated
14878
- */
14879
- "@typescript-eslint/space-infix-ops"?: Linter.RuleEntry<TypescriptEslintSpaceInfixOps>;
14880
14894
  /**
14881
14895
  * Disallow certain types in boolean expressions
14882
14896
  * @see https://typescript-eslint.io/rules/strict-boolean-expressions
@@ -14892,12 +14906,6 @@ interface TypescriptRuleOptions {
14892
14906
  * @see https://typescript-eslint.io/rules/triple-slash-reference
14893
14907
  */
14894
14908
  "@typescript-eslint/triple-slash-reference"?: Linter.RuleEntry<TypescriptEslintTripleSlashReference>;
14895
- /**
14896
- * Require consistent spacing around type annotations
14897
- * @see https://typescript-eslint.io/rules/type-annotation-spacing
14898
- * @deprecated
14899
- */
14900
- "@typescript-eslint/type-annotation-spacing"?: Linter.RuleEntry<TypescriptEslintTypeAnnotationSpacing>;
14901
14909
  /**
14902
14910
  * Require type annotations in certain places
14903
14911
  * @see https://typescript-eslint.io/rules/typedef
@@ -14922,42 +14930,42 @@ interface TypescriptRuleOptions {
14922
14930
  >;
14923
14931
  /**
14924
14932
  * Enforce or ban the use of inline type-only markers for named imports.
14925
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/consistent-type-specifier-style.md
14933
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/consistent-type-specifier-style.md
14926
14934
  */
14927
14935
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
14928
14936
  /**
14929
14937
  * Ensure a default export is present, given a default import.
14930
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/default.md
14938
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/default.md
14931
14939
  */
14932
14940
  "import/default"?: Linter.RuleEntry<[]>;
14933
14941
  /**
14934
14942
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
14935
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/dynamic-import-chunkname.md
14943
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/dynamic-import-chunkname.md
14936
14944
  */
14937
14945
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
14938
14946
  /**
14939
14947
  * Forbid any invalid exports, i.e. re-export of the same name.
14940
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/export.md
14948
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/export.md
14941
14949
  */
14942
14950
  "import/export"?: Linter.RuleEntry<[]>;
14943
14951
  /**
14944
14952
  * Ensure all exports appear after other statements.
14945
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/exports-last.md
14953
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/exports-last.md
14946
14954
  */
14947
14955
  "import/exports-last"?: Linter.RuleEntry<[]>;
14948
14956
  /**
14949
14957
  * Ensure consistent use of file extension within the import path.
14950
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/extensions.md
14958
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/extensions.md
14951
14959
  */
14952
14960
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
14953
14961
  /**
14954
14962
  * Ensure all imports appear before other statements.
14955
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/first.md
14963
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/first.md
14956
14964
  */
14957
14965
  "import/first"?: Linter.RuleEntry<ImportFirst>;
14958
14966
  /**
14959
14967
  * Prefer named exports to be grouped together in a single export declaration.
14960
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/group-exports.md
14968
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/group-exports.md
14961
14969
  */
14962
14970
  "import/group-exports"?: Linter.RuleEntry<[]>;
14963
14971
  /**
@@ -14968,182 +14976,182 @@ interface TypescriptRuleOptions {
14968
14976
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
14969
14977
  /**
14970
14978
  * Enforce the maximum number of dependencies a module can have.
14971
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/max-dependencies.md
14979
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/max-dependencies.md
14972
14980
  */
14973
14981
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
14974
14982
  /**
14975
14983
  * Ensure named imports correspond to a named export in the remote file.
14976
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/named.md
14984
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/named.md
14977
14985
  */
14978
14986
  "import/named"?: Linter.RuleEntry<ImportNamed>;
14979
14987
  /**
14980
14988
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
14981
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/namespace.md
14989
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/namespace.md
14982
14990
  */
14983
14991
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
14984
14992
  /**
14985
14993
  * Enforce a newline after import statements.
14986
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/newline-after-import.md
14994
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/newline-after-import.md
14987
14995
  */
14988
14996
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
14989
14997
  /**
14990
14998
  * Forbid import of modules using absolute paths.
14991
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-absolute-path.md
14999
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-absolute-path.md
14992
15000
  */
14993
15001
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
14994
15002
  /**
14995
15003
  * Forbid AMD `require` and `define` calls.
14996
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-amd.md
15004
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-amd.md
14997
15005
  */
14998
15006
  "import/no-amd"?: Linter.RuleEntry<[]>;
14999
15007
  /**
15000
15008
  * Forbid anonymous values as default exports.
15001
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-anonymous-default-export.md
15009
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-anonymous-default-export.md
15002
15010
  */
15003
15011
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
15004
15012
  /**
15005
15013
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
15006
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-commonjs.md
15014
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-commonjs.md
15007
15015
  */
15008
15016
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
15009
15017
  /**
15010
15018
  * Forbid a module from importing a module with a dependency path back to itself.
15011
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-cycle.md
15019
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-cycle.md
15012
15020
  */
15013
15021
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
15014
15022
  /**
15015
15023
  * Forbid default exports.
15016
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-default-export.md
15024
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-default-export.md
15017
15025
  */
15018
15026
  "import/no-default-export"?: Linter.RuleEntry<[]>;
15019
15027
  /**
15020
15028
  * Forbid imported names marked with `@deprecated` documentation tag.
15021
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-deprecated.md
15029
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-deprecated.md
15022
15030
  */
15023
15031
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
15024
15032
  /**
15025
15033
  * Forbid repeated import of the same module in multiple places.
15026
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-duplicates.md
15034
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-duplicates.md
15027
15035
  */
15028
15036
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
15029
15037
  /**
15030
15038
  * Forbid `require()` calls with expressions.
15031
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-dynamic-require.md
15039
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-dynamic-require.md
15032
15040
  */
15033
15041
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
15034
15042
  /**
15035
15043
  * Forbid empty named import blocks.
15036
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-empty-named-blocks.md
15044
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-empty-named-blocks.md
15037
15045
  */
15038
15046
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
15039
15047
  /**
15040
15048
  * Forbid the use of extraneous packages.
15041
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-extraneous-dependencies.md
15049
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-extraneous-dependencies.md
15042
15050
  */
15043
15051
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
15044
15052
  /**
15045
15053
  * Forbid import statements with CommonJS module.exports.
15046
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-import-module-exports.md
15054
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-import-module-exports.md
15047
15055
  */
15048
15056
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
15049
15057
  /**
15050
15058
  * Forbid importing the submodules of other modules.
15051
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-internal-modules.md
15059
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-internal-modules.md
15052
15060
  */
15053
15061
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
15054
15062
  /**
15055
15063
  * Forbid the use of mutable exports with `var` or `let`.
15056
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-mutable-exports.md
15064
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-mutable-exports.md
15057
15065
  */
15058
15066
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
15059
15067
  /**
15060
15068
  * Forbid use of exported name as identifier of default export.
15061
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default.md
15069
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default.md
15062
15070
  */
15063
15071
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
15064
15072
  /**
15065
15073
  * Forbid use of exported name as property of default export.
15066
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-as-default-member.md
15074
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-as-default-member.md
15067
15075
  */
15068
15076
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
15069
15077
  /**
15070
15078
  * Forbid named default exports.
15071
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-default.md
15079
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-default.md
15072
15080
  */
15073
15081
  "import/no-named-default"?: Linter.RuleEntry<[]>;
15074
15082
  /**
15075
15083
  * Forbid named exports.
15076
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-named-export.md
15084
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-named-export.md
15077
15085
  */
15078
15086
  "import/no-named-export"?: Linter.RuleEntry<[]>;
15079
15087
  /**
15080
15088
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
15081
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-namespace.md
15089
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-namespace.md
15082
15090
  */
15083
15091
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
15084
15092
  /**
15085
15093
  * Forbid Node.js builtin modules.
15086
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-nodejs-modules.md
15094
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-nodejs-modules.md
15087
15095
  */
15088
15096
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
15089
15097
  /**
15090
15098
  * Forbid importing packages through relative paths.
15091
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-packages.md
15099
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-packages.md
15092
15100
  */
15093
15101
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
15094
15102
  /**
15095
15103
  * Forbid importing modules from parent directories.
15096
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-relative-parent-imports.md
15104
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-relative-parent-imports.md
15097
15105
  */
15098
15106
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
15099
15107
  /**
15100
15108
  * Enforce which files can be imported in a given folder.
15101
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-restricted-paths.md
15109
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-restricted-paths.md
15102
15110
  */
15103
15111
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
15104
15112
  /**
15105
15113
  * Forbid a module from importing itself.
15106
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-self-import.md
15114
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-self-import.md
15107
15115
  */
15108
15116
  "import/no-self-import"?: Linter.RuleEntry<[]>;
15109
15117
  /**
15110
15118
  * Forbid unassigned imports.
15111
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unassigned-import.md
15119
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unassigned-import.md
15112
15120
  */
15113
15121
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
15114
15122
  /**
15115
15123
  * Ensure imports point to a file/module that can be resolved.
15116
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unresolved.md
15124
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unresolved.md
15117
15125
  */
15118
15126
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
15119
15127
  /**
15120
15128
  * Forbid modules without exports, or exports without matching import in another module.
15121
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-unused-modules.md
15129
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-unused-modules.md
15122
15130
  */
15123
15131
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
15124
15132
  /**
15125
15133
  * Forbid unnecessary path segments in import and require statements.
15126
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-useless-path-segments.md
15134
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-useless-path-segments.md
15127
15135
  */
15128
15136
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
15129
15137
  /**
15130
15138
  * Forbid webpack loader syntax in imports.
15131
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/no-webpack-loader-syntax.md
15139
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/no-webpack-loader-syntax.md
15132
15140
  */
15133
15141
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
15134
15142
  /**
15135
15143
  * Enforce a convention in module import order.
15136
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/order.md
15144
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/order.md
15137
15145
  */
15138
15146
  "import/order"?: Linter.RuleEntry<ImportOrder>;
15139
15147
  /**
15140
15148
  * Prefer a default export if module exports a single name or multiple names.
15141
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/prefer-default-export.md
15149
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/prefer-default-export.md
15142
15150
  */
15143
15151
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
15144
15152
  /**
15145
15153
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
15146
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.3/docs/rules/unambiguous.md
15154
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v3.1.0/docs/rules/unambiguous.md
15147
15155
  */
15148
15156
  "import/unambiguous"?: Linter.RuleEntry<[]>;
15149
15157
  }
@@ -15191,43 +15199,6 @@ type TypescriptEslintBanTsComment =
15191
15199
  minimumDescriptionLength?: number;
15192
15200
  },
15193
15201
  ];
15194
- // ----- @typescript-eslint/ban-types -----
15195
- type TypescriptEslintBanTypes =
15196
- | []
15197
- | [
15198
- {
15199
- types?: {
15200
- [k: string]:
15201
- | (
15202
- | null
15203
- | false
15204
- | true
15205
- | string
15206
- | {
15207
- message?: string;
15208
-
15209
- fixWith?: string;
15210
-
15211
- suggest?: string[];
15212
- }
15213
- )
15214
- | undefined;
15215
- };
15216
- extendDefaults?: boolean;
15217
- },
15218
- ];
15219
- // ----- @typescript-eslint/block-spacing -----
15220
- type TypescriptEslintBlockSpacing = [] | ["always" | "never"];
15221
- // ----- @typescript-eslint/brace-style -----
15222
- type TypescriptEslintBraceStyle =
15223
- | []
15224
- | ["1tbs" | "stroustrup" | "allman"]
15225
- | [
15226
- "1tbs" | "stroustrup" | "allman",
15227
- {
15228
- allowSingleLine?: boolean;
15229
- },
15230
- ];
15231
15202
  // ----- @typescript-eslint/class-literal-property-style -----
15232
15203
  type TypescriptEslintClassLiteralPropertyStyle = [] | ["fields" | "getters"];
15233
15204
  // ----- @typescript-eslint/class-methods-use-this -----
@@ -15244,42 +15215,6 @@ type TypescriptEslintClassMethodsUseThis =
15244
15215
  ignoreClassesThatImplementAnInterface?: boolean | "public-fields";
15245
15216
  },
15246
15217
  ];
15247
- // ----- @typescript-eslint/comma-dangle -----
15248
- type TypescriptEslintCommaDangle =
15249
- | []
15250
- | [
15251
- | _TypescriptEslintCommaDangleValue
15252
- | {
15253
- arrays?: _TypescriptEslintCommaDangleValueWithIgnore;
15254
- objects?: _TypescriptEslintCommaDangleValueWithIgnore;
15255
- imports?: _TypescriptEslintCommaDangleValueWithIgnore;
15256
- exports?: _TypescriptEslintCommaDangleValueWithIgnore;
15257
- functions?: _TypescriptEslintCommaDangleValueWithIgnore;
15258
- enums?: _TypescriptEslintCommaDangleValueWithIgnore;
15259
- generics?: _TypescriptEslintCommaDangleValueWithIgnore;
15260
- tuples?: _TypescriptEslintCommaDangleValueWithIgnore;
15261
- },
15262
- ];
15263
- type _TypescriptEslintCommaDangleValue =
15264
- | "always-multiline"
15265
- | "always"
15266
- | "never"
15267
- | "only-multiline";
15268
- type _TypescriptEslintCommaDangleValueWithIgnore =
15269
- | "always-multiline"
15270
- | "always"
15271
- | "never"
15272
- | "only-multiline"
15273
- | "ignore";
15274
- // ----- @typescript-eslint/comma-spacing -----
15275
- type TypescriptEslintCommaSpacing =
15276
- | []
15277
- | [
15278
- {
15279
- before?: boolean;
15280
- after?: boolean;
15281
- },
15282
- ];
15283
15218
  // ----- @typescript-eslint/consistent-generic-constructors -----
15284
15219
  type TypescriptEslintConsistentGenericConstructors =
15285
15220
  | []
@@ -15397,58 +15332,6 @@ type TypescriptEslintExplicitModuleBoundaryTypes =
15397
15332
  allowTypedFunctionExpressions?: boolean;
15398
15333
  },
15399
15334
  ];
15400
- // ----- @typescript-eslint/func-call-spacing -----
15401
- type TypescriptEslintFuncCallSpacing =
15402
- | []
15403
- | ["never"]
15404
- | []
15405
- | ["always"]
15406
- | [
15407
- "always",
15408
- {
15409
- allowNewlines?: boolean;
15410
- },
15411
- ];
15412
- // ----- @typescript-eslint/indent -----
15413
- type TypescriptEslintIndent =
15414
- | []
15415
- | ["tab" | number]
15416
- | [
15417
- "tab" | number,
15418
- {
15419
- SwitchCase?: number;
15420
- VariableDeclarator?:
15421
- | (number | ("first" | "off"))
15422
- | {
15423
- var?: number | ("first" | "off");
15424
- let?: number | ("first" | "off");
15425
- const?: number | ("first" | "off");
15426
- };
15427
- outerIIFEBody?: number | "off";
15428
- MemberExpression?: number | "off";
15429
- FunctionDeclaration?: {
15430
- parameters?: number | ("first" | "off");
15431
- body?: number;
15432
- };
15433
- FunctionExpression?: {
15434
- parameters?: number | ("first" | "off");
15435
- body?: number;
15436
- };
15437
- StaticBlock?: {
15438
- body?: number;
15439
- };
15440
- CallExpression?: {
15441
- arguments?: number | ("first" | "off");
15442
- };
15443
- ArrayExpression?: number | ("first" | "off");
15444
- ObjectExpression?: number | ("first" | "off");
15445
- ImportDeclaration?: number | ("first" | "off");
15446
- flatTernaryExpressions?: boolean;
15447
- offsetTernaryExpressions?: boolean;
15448
- ignoredNodes?: string[];
15449
- ignoreComments?: boolean;
15450
- },
15451
- ];
15452
15335
  // ----- @typescript-eslint/init-declarations -----
15453
15336
  type TypescriptEslintInitDeclarations =
15454
15337
  | []
@@ -15461,423 +15344,8 @@ type TypescriptEslintInitDeclarations =
15461
15344
  ignoreForLoopInit?: boolean;
15462
15345
  },
15463
15346
  ];
15464
- // ----- @typescript-eslint/key-spacing -----
15465
- type TypescriptEslintKeySpacing =
15466
- | []
15467
- | [
15468
- | {
15469
- align?:
15470
- | ("colon" | "value")
15471
- | {
15472
- mode?: "strict" | "minimum";
15473
- on?: "colon" | "value";
15474
- beforeColon?: boolean;
15475
- afterColon?: boolean;
15476
- };
15477
- mode?: "strict" | "minimum";
15478
- beforeColon?: boolean;
15479
- afterColon?: boolean;
15480
- }
15481
- | {
15482
- singleLine?: {
15483
- mode?: "strict" | "minimum";
15484
- beforeColon?: boolean;
15485
- afterColon?: boolean;
15486
- };
15487
- multiLine?: {
15488
- align?:
15489
- | ("colon" | "value")
15490
- | {
15491
- mode?: "strict" | "minimum";
15492
- on?: "colon" | "value";
15493
- beforeColon?: boolean;
15494
- afterColon?: boolean;
15495
- };
15496
- mode?: "strict" | "minimum";
15497
- beforeColon?: boolean;
15498
- afterColon?: boolean;
15499
- };
15500
- }
15501
- | {
15502
- singleLine?: {
15503
- mode?: "strict" | "minimum";
15504
- beforeColon?: boolean;
15505
- afterColon?: boolean;
15506
- };
15507
- multiLine?: {
15508
- mode?: "strict" | "minimum";
15509
- beforeColon?: boolean;
15510
- afterColon?: boolean;
15511
- };
15512
- align?: {
15513
- mode?: "strict" | "minimum";
15514
- on?: "colon" | "value";
15515
- beforeColon?: boolean;
15516
- afterColon?: boolean;
15517
- };
15518
- },
15519
- ];
15520
- // ----- @typescript-eslint/keyword-spacing -----
15521
- type TypescriptEslintKeywordSpacing =
15522
- | []
15523
- | [
15524
- {
15525
- before?: boolean;
15526
- after?: boolean;
15527
- overrides?: {
15528
- abstract?: {
15529
- before?: boolean;
15530
- after?: boolean;
15531
- };
15532
- as?: {
15533
- before?: boolean;
15534
- after?: boolean;
15535
- };
15536
- async?: {
15537
- before?: boolean;
15538
- after?: boolean;
15539
- };
15540
- await?: {
15541
- before?: boolean;
15542
- after?: boolean;
15543
- };
15544
- boolean?: {
15545
- before?: boolean;
15546
- after?: boolean;
15547
- };
15548
- break?: {
15549
- before?: boolean;
15550
- after?: boolean;
15551
- };
15552
- byte?: {
15553
- before?: boolean;
15554
- after?: boolean;
15555
- };
15556
- case?: {
15557
- before?: boolean;
15558
- after?: boolean;
15559
- };
15560
- catch?: {
15561
- before?: boolean;
15562
- after?: boolean;
15563
- };
15564
- char?: {
15565
- before?: boolean;
15566
- after?: boolean;
15567
- };
15568
- class?: {
15569
- before?: boolean;
15570
- after?: boolean;
15571
- };
15572
- const?: {
15573
- before?: boolean;
15574
- after?: boolean;
15575
- };
15576
- continue?: {
15577
- before?: boolean;
15578
- after?: boolean;
15579
- };
15580
- debugger?: {
15581
- before?: boolean;
15582
- after?: boolean;
15583
- };
15584
- default?: {
15585
- before?: boolean;
15586
- after?: boolean;
15587
- };
15588
- delete?: {
15589
- before?: boolean;
15590
- after?: boolean;
15591
- };
15592
- do?: {
15593
- before?: boolean;
15594
- after?: boolean;
15595
- };
15596
- double?: {
15597
- before?: boolean;
15598
- after?: boolean;
15599
- };
15600
- else?: {
15601
- before?: boolean;
15602
- after?: boolean;
15603
- };
15604
- enum?: {
15605
- before?: boolean;
15606
- after?: boolean;
15607
- };
15608
- export?: {
15609
- before?: boolean;
15610
- after?: boolean;
15611
- };
15612
- extends?: {
15613
- before?: boolean;
15614
- after?: boolean;
15615
- };
15616
- false?: {
15617
- before?: boolean;
15618
- after?: boolean;
15619
- };
15620
- final?: {
15621
- before?: boolean;
15622
- after?: boolean;
15623
- };
15624
- finally?: {
15625
- before?: boolean;
15626
- after?: boolean;
15627
- };
15628
- float?: {
15629
- before?: boolean;
15630
- after?: boolean;
15631
- };
15632
- for?: {
15633
- before?: boolean;
15634
- after?: boolean;
15635
- };
15636
- from?: {
15637
- before?: boolean;
15638
- after?: boolean;
15639
- };
15640
- function?: {
15641
- before?: boolean;
15642
- after?: boolean;
15643
- };
15644
- get?: {
15645
- before?: boolean;
15646
- after?: boolean;
15647
- };
15648
- goto?: {
15649
- before?: boolean;
15650
- after?: boolean;
15651
- };
15652
- if?: {
15653
- before?: boolean;
15654
- after?: boolean;
15655
- };
15656
- implements?: {
15657
- before?: boolean;
15658
- after?: boolean;
15659
- };
15660
- import?: {
15661
- before?: boolean;
15662
- after?: boolean;
15663
- };
15664
- in?: {
15665
- before?: boolean;
15666
- after?: boolean;
15667
- };
15668
- instanceof?: {
15669
- before?: boolean;
15670
- after?: boolean;
15671
- };
15672
- int?: {
15673
- before?: boolean;
15674
- after?: boolean;
15675
- };
15676
- interface?: {
15677
- before?: boolean;
15678
- after?: boolean;
15679
- };
15680
- let?: {
15681
- before?: boolean;
15682
- after?: boolean;
15683
- };
15684
- long?: {
15685
- before?: boolean;
15686
- after?: boolean;
15687
- };
15688
- native?: {
15689
- before?: boolean;
15690
- after?: boolean;
15691
- };
15692
- new?: {
15693
- before?: boolean;
15694
- after?: boolean;
15695
- };
15696
- null?: {
15697
- before?: boolean;
15698
- after?: boolean;
15699
- };
15700
- of?: {
15701
- before?: boolean;
15702
- after?: boolean;
15703
- };
15704
- package?: {
15705
- before?: boolean;
15706
- after?: boolean;
15707
- };
15708
- private?: {
15709
- before?: boolean;
15710
- after?: boolean;
15711
- };
15712
- protected?: {
15713
- before?: boolean;
15714
- after?: boolean;
15715
- };
15716
- public?: {
15717
- before?: boolean;
15718
- after?: boolean;
15719
- };
15720
- return?: {
15721
- before?: boolean;
15722
- after?: boolean;
15723
- };
15724
- set?: {
15725
- before?: boolean;
15726
- after?: boolean;
15727
- };
15728
- short?: {
15729
- before?: boolean;
15730
- after?: boolean;
15731
- };
15732
- static?: {
15733
- before?: boolean;
15734
- after?: boolean;
15735
- };
15736
- super?: {
15737
- before?: boolean;
15738
- after?: boolean;
15739
- };
15740
- switch?: {
15741
- before?: boolean;
15742
- after?: boolean;
15743
- };
15744
- synchronized?: {
15745
- before?: boolean;
15746
- after?: boolean;
15747
- };
15748
- this?: {
15749
- before?: boolean;
15750
- after?: boolean;
15751
- };
15752
- throw?: {
15753
- before?: boolean;
15754
- after?: boolean;
15755
- };
15756
- throws?: {
15757
- before?: boolean;
15758
- after?: boolean;
15759
- };
15760
- transient?: {
15761
- before?: boolean;
15762
- after?: boolean;
15763
- };
15764
- true?: {
15765
- before?: boolean;
15766
- after?: boolean;
15767
- };
15768
- try?: {
15769
- before?: boolean;
15770
- after?: boolean;
15771
- };
15772
- typeof?: {
15773
- before?: boolean;
15774
- after?: boolean;
15775
- };
15776
- var?: {
15777
- before?: boolean;
15778
- after?: boolean;
15779
- };
15780
- void?: {
15781
- before?: boolean;
15782
- after?: boolean;
15783
- };
15784
- volatile?: {
15785
- before?: boolean;
15786
- after?: boolean;
15787
- };
15788
- while?: {
15789
- before?: boolean;
15790
- after?: boolean;
15791
- };
15792
- with?: {
15793
- before?: boolean;
15794
- after?: boolean;
15795
- };
15796
- yield?: {
15797
- before?: boolean;
15798
- after?: boolean;
15799
- };
15800
- type?: {
15801
- before?: boolean;
15802
- after?: boolean;
15803
- };
15804
- };
15805
- },
15806
- ];
15807
- // ----- @typescript-eslint/lines-around-comment -----
15808
- type TypescriptEslintLinesAroundComment =
15809
- | []
15810
- | [
15811
- {
15812
- beforeBlockComment?: boolean;
15813
- afterBlockComment?: boolean;
15814
- beforeLineComment?: boolean;
15815
- afterLineComment?: boolean;
15816
- allowBlockStart?: boolean;
15817
- allowBlockEnd?: boolean;
15818
- allowClassStart?: boolean;
15819
- allowClassEnd?: boolean;
15820
- allowObjectStart?: boolean;
15821
- allowObjectEnd?: boolean;
15822
- allowArrayStart?: boolean;
15823
- allowArrayEnd?: boolean;
15824
- allowInterfaceStart?: boolean;
15825
- allowInterfaceEnd?: boolean;
15826
- allowTypeStart?: boolean;
15827
- allowTypeEnd?: boolean;
15828
- allowEnumStart?: boolean;
15829
- allowEnumEnd?: boolean;
15830
- allowModuleStart?: boolean;
15831
- allowModuleEnd?: boolean;
15832
- ignorePattern?: string;
15833
- applyDefaultIgnorePatterns?: boolean;
15834
- },
15835
- ];
15836
- // ----- @typescript-eslint/lines-between-class-members -----
15837
- type TypescriptEslintLinesBetweenClassMembers =
15838
- | []
15839
- | [
15840
- | {
15841
- enforce: [
15842
- {
15843
- blankLine: "always" | "never";
15844
- prev: "method" | "field" | "*";
15845
- next: "method" | "field" | "*";
15846
- },
15847
- ...{
15848
- blankLine: "always" | "never";
15849
- prev: "method" | "field" | "*";
15850
- next: "method" | "field" | "*";
15851
- }[],
15852
- ];
15853
- }
15854
- | ("always" | "never"),
15855
- ]
15856
- | [
15857
- (
15858
- | {
15859
- enforce: [
15860
- {
15861
- blankLine: "always" | "never";
15862
- prev: "method" | "field" | "*";
15863
- next: "method" | "field" | "*";
15864
- },
15865
- ...{
15866
- blankLine: "always" | "never";
15867
- prev: "method" | "field" | "*";
15868
- next: "method" | "field" | "*";
15869
- }[],
15870
- ];
15871
- }
15872
- | ("always" | "never")
15873
- ),
15874
- {
15875
- exceptAfterSingleLine?: boolean;
15876
- exceptAfterOverload?: boolean;
15877
- },
15878
- ];
15879
- // ----- @typescript-eslint/max-params -----
15880
- type TypescriptEslintMaxParams =
15347
+ // ----- @typescript-eslint/max-params -----
15348
+ type TypescriptEslintMaxParams =
15881
15349
  | []
15882
15350
  | [
15883
15351
  {
@@ -15886,36 +15354,6 @@ type TypescriptEslintMaxParams =
15886
15354
  countVoidThis?: boolean;
15887
15355
  },
15888
15356
  ];
15889
- // ----- @typescript-eslint/member-delimiter-style -----
15890
- type TypescriptEslintMemberDelimiterStyle =
15891
- | []
15892
- | [
15893
- {
15894
- multiline?: {
15895
- delimiter?: "none" | "semi" | "comma";
15896
- requireLast?: boolean;
15897
- };
15898
- singleline?: {
15899
- delimiter?: "semi" | "comma";
15900
- requireLast?: boolean;
15901
- };
15902
- overrides?: {
15903
- interface?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig;
15904
- typeLiteral?: _TypescriptEslintMemberDelimiterStyle_DelimiterConfig;
15905
- };
15906
- multilineDetection?: "brackets" | "last-member";
15907
- },
15908
- ];
15909
- interface _TypescriptEslintMemberDelimiterStyle_DelimiterConfig {
15910
- multiline?: {
15911
- delimiter?: "none" | "semi" | "comma";
15912
- requireLast?: boolean;
15913
- };
15914
- singleline?: {
15915
- delimiter?: "semi" | "comma";
15916
- requireLast?: boolean;
15917
- };
15918
- }
15919
15357
  // ----- @typescript-eslint/member-ordering -----
15920
15358
  type TypescriptEslintMemberOrdering =
15921
15359
  | []
@@ -18509,7 +17947,7 @@ type TypescriptEslintNoEmptyObjectType =
18509
17947
  | [
18510
17948
  {
18511
17949
  allowInterfaces?: "always" | "never" | "with-single-extends";
18512
- allowObjectTypes?: "always" | "in-type-alias-with-name" | "never";
17950
+ allowObjectTypes?: "always" | "never";
18513
17951
  allowWithName?: string;
18514
17952
  },
18515
17953
  ];
@@ -18517,31 +17955,10 @@ type TypescriptEslintNoEmptyObjectType =
18517
17955
  type TypescriptEslintNoExplicitAny =
18518
17956
  | []
18519
17957
  | [
18520
- {
18521
- fixToUnknown?: boolean;
18522
-
18523
- ignoreRestArgs?: boolean;
18524
- },
18525
- ];
18526
- // ----- @typescript-eslint/no-extra-parens -----
18527
- type TypescriptEslintNoExtraParens =
18528
- | []
18529
- | ["functions"]
18530
- | []
18531
- | ["all"]
18532
- | [
18533
- "all",
18534
- {
18535
- conditionalAssign?: boolean;
18536
- ternaryOperandBinaryExpressions?: boolean;
18537
- nestedBinaryExpressions?: boolean;
18538
- returnAssign?: boolean;
18539
- ignoreJSX?: "none" | "all" | "single-line" | "multi-line";
18540
- enforceForArrowConditionals?: boolean;
18541
- enforceForSequenceExpressions?: boolean;
18542
- enforceForNewInMemberExpressions?: boolean;
18543
- enforceForFunctionPrototypeMethods?: boolean;
18544
- allowParensAfterCommentPattern?: string;
17958
+ {
17959
+ fixToUnknown?: boolean;
17960
+
17961
+ ignoreRestArgs?: boolean;
18545
17962
  },
18546
17963
  ];
18547
17964
  // ----- @typescript-eslint/no-extraneous-class -----
@@ -18580,6 +17997,23 @@ type TypescriptEslintNoFloatingPromises =
18580
17997
  package: string;
18581
17998
  }
18582
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
+ )[];
18583
18017
 
18584
18018
  checkThenables?: boolean;
18585
18019
 
@@ -18682,6 +18116,8 @@ type TypescriptEslintNoRequireImports =
18682
18116
  | [
18683
18117
  {
18684
18118
  allow?: string[];
18119
+
18120
+ allowAsImport?: boolean;
18685
18121
  },
18686
18122
  ];
18687
18123
  // ----- @typescript-eslint/no-restricted-imports -----
@@ -18692,6 +18128,7 @@ type TypescriptEslintNoRestrictedImports =
18692
18128
  name: string;
18693
18129
  message?: string;
18694
18130
  importNames?: string[];
18131
+ allowImportNames?: string[];
18695
18132
 
18696
18133
  allowTypeImports?: boolean;
18697
18134
  }
@@ -18705,6 +18142,7 @@ type TypescriptEslintNoRestrictedImports =
18705
18142
  name: string;
18706
18143
  message?: string;
18707
18144
  importNames?: string[];
18145
+ allowImportNames?: string[];
18708
18146
 
18709
18147
  allowTypeImports?: boolean;
18710
18148
  }
@@ -18714,8 +18152,12 @@ type TypescriptEslintNoRestrictedImports =
18714
18152
  | {
18715
18153
  importNames?: [string, ...string[]];
18716
18154
 
18717
- group: [string, ...string[]];
18155
+ allowImportNames?: [string, ...string[]];
18156
+
18157
+ group?: [string, ...string[]];
18158
+ regex?: string;
18718
18159
  importNamePattern?: string;
18160
+ allowImportNamePattern?: string;
18719
18161
  message?: string;
18720
18162
  caseSensitive?: boolean;
18721
18163
 
@@ -18723,6 +18165,28 @@ type TypescriptEslintNoRestrictedImports =
18723
18165
  }[];
18724
18166
  },
18725
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
+ ];
18726
18190
  // ----- @typescript-eslint/no-shadow -----
18727
18191
  type TypescriptEslintNoShadow =
18728
18192
  | []
@@ -18746,15 +18210,6 @@ type TypescriptEslintNoThisAlias =
18746
18210
  allowedNames?: string[];
18747
18211
  },
18748
18212
  ];
18749
- // ----- @typescript-eslint/no-throw-literal -----
18750
- type TypescriptEslintNoThrowLiteral =
18751
- | []
18752
- | [
18753
- {
18754
- allowThrowingAny?: boolean;
18755
- allowThrowingUnknown?: boolean;
18756
- },
18757
- ];
18758
18213
  // ----- @typescript-eslint/no-type-alias -----
18759
18214
  type TypescriptEslintNoTypeAlias =
18760
18215
  | []
@@ -18850,6 +18305,8 @@ type TypescriptEslintNoUnusedVars =
18850
18305
  caughtErrors?: "all" | "none";
18851
18306
  caughtErrorsIgnorePattern?: string;
18852
18307
  destructuredArrayIgnorePattern?: string;
18308
+ ignoreClassWithStaticInitBlock?: boolean;
18309
+ reportUsedIgnorePattern?: boolean;
18853
18310
  },
18854
18311
  ];
18855
18312
  // ----- @typescript-eslint/no-use-before-define -----
@@ -18875,17 +18332,6 @@ type TypescriptEslintNoVarRequires =
18875
18332
  allow?: string[];
18876
18333
  },
18877
18334
  ];
18878
- // ----- @typescript-eslint/object-curly-spacing -----
18879
- type TypescriptEslintObjectCurlySpacing =
18880
- | []
18881
- | ["always" | "never"]
18882
- | [
18883
- "always" | "never",
18884
- {
18885
- arraysInObjects?: boolean;
18886
- objectsInObjects?: boolean;
18887
- },
18888
- ];
18889
18335
  // ----- @typescript-eslint/only-throw-error -----
18890
18336
  type TypescriptEslintOnlyThrowError =
18891
18337
  | []
@@ -18895,145 +18341,6 @@ type TypescriptEslintOnlyThrowError =
18895
18341
  allowThrowingUnknown?: boolean;
18896
18342
  },
18897
18343
  ];
18898
- // ----- @typescript-eslint/padding-line-between-statements -----
18899
- type _TypescriptEslintPaddingLineBetweenStatementsPaddingType =
18900
- | "any"
18901
- | "never"
18902
- | "always";
18903
- type _TypescriptEslintPaddingLineBetweenStatementsStatementType =
18904
- | (
18905
- | "*"
18906
- | "block-like"
18907
- | "exports"
18908
- | "require"
18909
- | "directive"
18910
- | "expression"
18911
- | "iife"
18912
- | "multiline-block-like"
18913
- | "multiline-expression"
18914
- | "multiline-const"
18915
- | "multiline-let"
18916
- | "multiline-var"
18917
- | "singleline-const"
18918
- | "singleline-let"
18919
- | "singleline-var"
18920
- | "block"
18921
- | "empty"
18922
- | "function"
18923
- | "break"
18924
- | "case"
18925
- | "class"
18926
- | "const"
18927
- | "continue"
18928
- | "debugger"
18929
- | "default"
18930
- | "do"
18931
- | "export"
18932
- | "for"
18933
- | "if"
18934
- | "import"
18935
- | "let"
18936
- | "return"
18937
- | "switch"
18938
- | "throw"
18939
- | "try"
18940
- | "var"
18941
- | "while"
18942
- | "with"
18943
- | "interface"
18944
- | "type"
18945
- )
18946
- | [
18947
- (
18948
- | "*"
18949
- | "block-like"
18950
- | "exports"
18951
- | "require"
18952
- | "directive"
18953
- | "expression"
18954
- | "iife"
18955
- | "multiline-block-like"
18956
- | "multiline-expression"
18957
- | "multiline-const"
18958
- | "multiline-let"
18959
- | "multiline-var"
18960
- | "singleline-const"
18961
- | "singleline-let"
18962
- | "singleline-var"
18963
- | "block"
18964
- | "empty"
18965
- | "function"
18966
- | "break"
18967
- | "case"
18968
- | "class"
18969
- | "const"
18970
- | "continue"
18971
- | "debugger"
18972
- | "default"
18973
- | "do"
18974
- | "export"
18975
- | "for"
18976
- | "if"
18977
- | "import"
18978
- | "let"
18979
- | "return"
18980
- | "switch"
18981
- | "throw"
18982
- | "try"
18983
- | "var"
18984
- | "while"
18985
- | "with"
18986
- | "interface"
18987
- | "type"
18988
- ),
18989
- ...(
18990
- | "*"
18991
- | "block-like"
18992
- | "exports"
18993
- | "require"
18994
- | "directive"
18995
- | "expression"
18996
- | "iife"
18997
- | "multiline-block-like"
18998
- | "multiline-expression"
18999
- | "multiline-const"
19000
- | "multiline-let"
19001
- | "multiline-var"
19002
- | "singleline-const"
19003
- | "singleline-let"
19004
- | "singleline-var"
19005
- | "block"
19006
- | "empty"
19007
- | "function"
19008
- | "break"
19009
- | "case"
19010
- | "class"
19011
- | "const"
19012
- | "continue"
19013
- | "debugger"
19014
- | "default"
19015
- | "do"
19016
- | "export"
19017
- | "for"
19018
- | "if"
19019
- | "import"
19020
- | "let"
19021
- | "return"
19022
- | "switch"
19023
- | "throw"
19024
- | "try"
19025
- | "var"
19026
- | "while"
19027
- | "with"
19028
- | "interface"
19029
- | "type"
19030
- )[],
19031
- ];
19032
- type TypescriptEslintPaddingLineBetweenStatements = {
19033
- blankLine: _TypescriptEslintPaddingLineBetweenStatementsPaddingType;
19034
- prev: _TypescriptEslintPaddingLineBetweenStatementsStatementType;
19035
- next: _TypescriptEslintPaddingLineBetweenStatementsStatementType;
19036
- }[];
19037
18344
  // ----- @typescript-eslint/parameter-properties -----
19038
18345
  type TypescriptEslintParameterProperties =
19039
18346
  | []
@@ -19208,20 +18515,6 @@ type TypescriptEslintPromiseFunctionAsync =
19208
18515
  checkMethodDeclarations?: boolean;
19209
18516
  },
19210
18517
  ];
19211
- // ----- @typescript-eslint/quotes -----
19212
- type TypescriptEslintQuotes =
19213
- | []
19214
- | ["single" | "double" | "backtick"]
19215
- | [
19216
- "single" | "double" | "backtick",
19217
- (
19218
- | "avoid-escape"
19219
- | {
19220
- avoidEscape?: boolean;
19221
- allowTemplateLiterals?: boolean;
19222
- }
19223
- ),
19224
- ];
19225
18518
  // ----- @typescript-eslint/require-array-sort-compare -----
19226
18519
  type TypescriptEslintRequireArraySortCompare =
19227
18520
  | []
@@ -19269,26 +18562,9 @@ type TypescriptEslintRestrictTemplateExpressions =
19269
18562
  },
19270
18563
  ];
19271
18564
  // ----- @typescript-eslint/return-await -----
19272
- type TypescriptEslintReturnAwait = [] | ["in-try-catch" | "always" | "never"];
19273
- // ----- @typescript-eslint/semi -----
19274
- type TypescriptEslintSemi =
19275
- | []
19276
- | ["never"]
19277
- | [
19278
- "never",
19279
- {
19280
- beforeStatementContinuationChars?: "always" | "any" | "never";
19281
- },
19282
- ]
18565
+ type TypescriptEslintReturnAwait =
19283
18566
  | []
19284
- | ["always"]
19285
- | [
19286
- "always",
19287
- {
19288
- omitLastInOneLineBlock?: boolean;
19289
- omitLastInOneLineClassBody?: boolean;
19290
- },
19291
- ];
18567
+ | ["in-try-catch" | "always" | "never" | "error-handling-correctness-only"];
19292
18568
  // ----- @typescript-eslint/sort-type-constituents -----
19293
18569
  type TypescriptEslintSortTypeConstituents =
19294
18570
  | []
@@ -19316,36 +18592,6 @@ type TypescriptEslintSortTypeConstituents =
19316
18592
  )[];
19317
18593
  },
19318
18594
  ];
19319
- // ----- @typescript-eslint/space-before-blocks -----
19320
- type TypescriptEslintSpaceBeforeBlocks =
19321
- | []
19322
- | [
19323
- | ("always" | "never")
19324
- | {
19325
- keywords?: "always" | "never" | "off";
19326
- functions?: "always" | "never" | "off";
19327
- classes?: "always" | "never" | "off";
19328
- },
19329
- ];
19330
- // ----- @typescript-eslint/space-before-function-paren -----
19331
- type TypescriptEslintSpaceBeforeFunctionParen =
19332
- | []
19333
- | [
19334
- | ("always" | "never")
19335
- | {
19336
- anonymous?: "always" | "never" | "ignore";
19337
- named?: "always" | "never" | "ignore";
19338
- asyncArrow?: "always" | "never" | "ignore";
19339
- },
19340
- ];
19341
- // ----- @typescript-eslint/space-infix-ops -----
19342
- type TypescriptEslintSpaceInfixOps =
19343
- | []
19344
- | [
19345
- {
19346
- int32Hint?: boolean;
19347
- },
19348
- ];
19349
18595
  // ----- @typescript-eslint/strict-boolean-expressions -----
19350
18596
  type TypescriptEslintStrictBooleanExpressions =
19351
18597
  | []
@@ -19382,27 +18628,6 @@ type TypescriptEslintTripleSlashReference =
19382
18628
  types?: "always" | "never" | "prefer-import";
19383
18629
  },
19384
18630
  ];
19385
- // ----- @typescript-eslint/type-annotation-spacing -----
19386
- type TypescriptEslintTypeAnnotationSpacing =
19387
- | []
19388
- | [
19389
- {
19390
- before?: boolean;
19391
- after?: boolean;
19392
- overrides?: {
19393
- colon?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19394
- arrow?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19395
- variable?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19396
- parameter?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19397
- property?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19398
- returnType?: _TypescriptEslintTypeAnnotationSpacing_SpacingConfig;
19399
- };
19400
- },
19401
- ];
19402
- interface _TypescriptEslintTypeAnnotationSpacing_SpacingConfig {
19403
- before?: boolean;
19404
- after?: boolean;
19405
- }
19406
18631
  // ----- @typescript-eslint/typedef -----
19407
18632
  type TypescriptEslintTypedef =
19408
18633
  | []
@@ -19807,682 +19032,687 @@ type ImportPreferDefaultExport =
19807
19032
  interface UnicornRuleOptions {
19808
19033
  /**
19809
19034
  * Improve regexes by making them shorter, consistent, and safer.
19810
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
19035
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/better-regex.md
19811
19036
  */
19812
19037
  "unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
19813
19038
  /**
19814
19039
  * Enforce a specific parameter name in catch clauses.
19815
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
19040
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/catch-error-name.md
19816
19041
  */
19817
19042
  "unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
19818
19043
  /**
19819
19044
  * Use destructured variables over properties.
19820
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
19045
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-destructuring.md
19821
19046
  */
19822
19047
  "unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
19823
19048
  /**
19824
19049
  * Prefer consistent types when spreading a ternary in an array literal.
19825
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
19050
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-empty-array-spread.md
19826
19051
  */
19827
19052
  "unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
19828
19053
  /**
19829
19054
  * Move function definitions to the highest possible scope.
19830
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
19055
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/consistent-function-scoping.md
19831
19056
  */
19832
19057
  "unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
19833
19058
  /**
19834
19059
  * Enforce correct `Error` subclassing.
19835
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
19060
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/custom-error-definition.md
19836
19061
  */
19837
19062
  "unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
19838
19063
  /**
19839
19064
  * Enforce no spaces between braces.
19840
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
19065
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/empty-brace-spaces.md
19841
19066
  */
19842
19067
  "unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
19843
19068
  /**
19844
19069
  * Enforce passing a `message` value when creating a built-in error.
19845
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
19070
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/error-message.md
19846
19071
  */
19847
19072
  "unicorn/error-message"?: Linter.RuleEntry<[]>;
19848
19073
  /**
19849
19074
  * Require escape sequences to use uppercase values.
19850
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
19075
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/escape-case.md
19851
19076
  */
19852
19077
  "unicorn/escape-case"?: Linter.RuleEntry<[]>;
19853
19078
  /**
19854
19079
  * Add expiration conditions to TODO comments.
19855
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
19080
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/expiring-todo-comments.md
19856
19081
  */
19857
19082
  "unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
19858
19083
  /**
19859
19084
  * Enforce explicitly comparing the `length` or `size` property of a value.
19860
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
19085
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/explicit-length-check.md
19861
19086
  */
19862
19087
  "unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
19863
19088
  /**
19864
19089
  * Enforce a case style for filenames.
19865
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
19090
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/filename-case.md
19866
19091
  */
19867
19092
  "unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
19868
19093
  /**
19869
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
19094
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#import-index
19870
19095
  * @deprecated
19871
19096
  */
19872
19097
  "unicorn/import-index"?: Linter.RuleEntry<[]>;
19873
19098
  /**
19874
19099
  * Enforce specific import styles per module.
19875
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
19100
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/import-style.md
19876
19101
  */
19877
19102
  "unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
19878
19103
  /**
19879
19104
  * Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
19880
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
19105
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/new-for-builtins.md
19881
19106
  */
19882
19107
  "unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
19883
19108
  /**
19884
19109
  * Enforce specifying rules to disable in `eslint-disable` comments.
19885
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
19110
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-abusive-eslint-disable.md
19886
19111
  */
19887
19112
  "unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
19888
19113
  /**
19889
19114
  * Disallow anonymous functions and classes as the default export.
19890
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
19115
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-anonymous-default-export.md
19891
19116
  */
19892
19117
  "unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
19893
19118
  /**
19894
19119
  * Prevent passing a function reference directly to iterator methods.
19895
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
19120
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-callback-reference.md
19896
19121
  */
19897
19122
  "unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
19898
19123
  /**
19899
19124
  * Prefer `for…of` over the `forEach` method.
19900
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
19125
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-for-each.md
19901
19126
  */
19902
19127
  "unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
19903
19128
  /**
19904
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
19129
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-array-instanceof
19905
19130
  * @deprecated
19906
19131
  */
19907
19132
  "unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
19908
19133
  /**
19909
19134
  * Disallow using the `this` argument in array methods.
19910
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
19135
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-method-this-argument.md
19911
19136
  */
19912
19137
  "unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
19913
19138
  /**
19914
19139
  * Enforce combining multiple `Array#push()` into one call.
19915
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
19140
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-push-push.md
19916
19141
  */
19917
19142
  "unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
19918
19143
  /**
19919
19144
  * Disallow `Array#reduce()` and `Array#reduceRight()`.
19920
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
19145
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-array-reduce.md
19921
19146
  */
19922
19147
  "unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
19923
19148
  /**
19924
19149
  * Disallow member access from await expression.
19925
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
19150
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-expression-member.md
19926
19151
  */
19927
19152
  "unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
19928
19153
  /**
19929
19154
  * Disallow using `await` in `Promise` method parameters.
19930
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
19155
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-await-in-promise-methods.md
19931
19156
  */
19932
19157
  "unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
19933
19158
  /**
19934
19159
  * Do not use leading/trailing space between `console.log` parameters.
19935
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
19160
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-console-spaces.md
19936
19161
  */
19937
19162
  "unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
19938
19163
  /**
19939
19164
  * Do not use `document.cookie` directly.
19940
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
19165
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-document-cookie.md
19941
19166
  */
19942
19167
  "unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
19943
19168
  /**
19944
19169
  * Disallow empty files.
19945
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
19170
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-empty-file.md
19946
19171
  */
19947
19172
  "unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
19948
19173
  /**
19949
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
19174
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
19950
19175
  * @deprecated
19951
19176
  */
19952
19177
  "unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
19953
19178
  /**
19954
19179
  * Do not use a `for` loop that can be replaced with a `for-of` loop.
19955
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
19180
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-for-loop.md
19956
19181
  */
19957
19182
  "unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
19958
19183
  /**
19959
19184
  * Enforce the use of Unicode escapes instead of hexadecimal escapes.
19960
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
19185
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-hex-escape.md
19961
19186
  */
19962
19187
  "unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
19963
19188
  /**
19964
19189
  * Require `Array.isArray()` instead of `instanceof Array`.
19965
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
19190
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-instanceof-array.md
19966
19191
  */
19967
19192
  "unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
19968
19193
  /**
19969
19194
  * Disallow invalid options in `fetch()` and `new Request()`.
19970
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
19195
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-fetch-options.md
19971
19196
  */
19972
19197
  "unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
19973
19198
  /**
19974
19199
  * Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
19975
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
19200
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-invalid-remove-event-listener.md
19976
19201
  */
19977
19202
  "unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
19978
19203
  /**
19979
19204
  * Disallow identifiers starting with `new` or `class`.
19980
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
19205
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-keyword-prefix.md
19981
19206
  */
19982
19207
  "unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
19208
+ /**
19209
+ * Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
19210
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-length-as-slice-end.md
19211
+ */
19212
+ "unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
19983
19213
  /**
19984
19214
  * Disallow `if` statements as the only statement in `if` blocks without `else`.
19985
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
19215
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-lonely-if.md
19986
19216
  */
19987
19217
  "unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
19988
19218
  /**
19989
19219
  * Disallow a magic number as the `depth` argument in `Array#flat(…).`
19990
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
19220
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-magic-array-flat-depth.md
19991
19221
  */
19992
19222
  "unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
19993
19223
  /**
19994
19224
  * Disallow negated conditions.
19995
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
19225
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negated-condition.md
19996
19226
  */
19997
19227
  "unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
19998
19228
  /**
19999
19229
  * Disallow negated expression in equality check.
20000
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
19230
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-negation-in-equality-check.md
20001
19231
  */
20002
19232
  "unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
20003
19233
  /**
20004
19234
  * Disallow nested ternary expressions.
20005
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
19235
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-nested-ternary.md
20006
19236
  */
20007
19237
  "unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
20008
19238
  /**
20009
19239
  * Disallow `new Array()`.
20010
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
19240
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-array.md
20011
19241
  */
20012
19242
  "unicorn/no-new-array"?: Linter.RuleEntry<[]>;
20013
19243
  /**
20014
19244
  * Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
20015
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
19245
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-new-buffer.md
20016
19246
  */
20017
19247
  "unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
20018
19248
  /**
20019
19249
  * Disallow the use of the `null` literal.
20020
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
19250
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-null.md
20021
19251
  */
20022
19252
  "unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
20023
19253
  /**
20024
19254
  * Disallow the use of objects as default parameters.
20025
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
19255
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-object-as-default-parameter.md
20026
19256
  */
20027
19257
  "unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
20028
19258
  /**
20029
19259
  * Disallow `process.exit()`.
20030
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
19260
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-process-exit.md
20031
19261
  */
20032
19262
  "unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
20033
19263
  /**
20034
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
19264
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-reduce
20035
19265
  * @deprecated
20036
19266
  */
20037
19267
  "unicorn/no-reduce"?: Linter.RuleEntry<[]>;
20038
19268
  /**
20039
19269
  * Disallow passing single-element arrays to `Promise` methods.
20040
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
19270
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-single-promise-in-promise-methods.md
20041
19271
  */
20042
19272
  "unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
20043
19273
  /**
20044
19274
  * Disallow classes that only have static members.
20045
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
19275
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-static-only-class.md
20046
19276
  */
20047
19277
  "unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
20048
19278
  /**
20049
19279
  * Disallow `then` property.
20050
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
19280
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-thenable.md
20051
19281
  */
20052
19282
  "unicorn/no-thenable"?: Linter.RuleEntry<[]>;
20053
19283
  /**
20054
19284
  * Disallow assigning `this` to a variable.
20055
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
19285
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-this-assignment.md
20056
19286
  */
20057
19287
  "unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
20058
19288
  /**
20059
19289
  * Disallow comparing `undefined` using `typeof`.
20060
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
19290
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-typeof-undefined.md
20061
19291
  */
20062
19292
  "unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
20063
19293
  /**
20064
19294
  * Disallow awaiting non-promise values.
20065
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
19295
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-await.md
20066
19296
  */
20067
19297
  "unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
20068
19298
  /**
20069
19299
  * Enforce the use of built-in methods instead of unnecessary polyfills.
20070
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
19300
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unnecessary-polyfills.md
20071
19301
  */
20072
19302
  "unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
20073
19303
  /**
20074
19304
  * Disallow unreadable array destructuring.
20075
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
19305
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-array-destructuring.md
20076
19306
  */
20077
19307
  "unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
20078
19308
  /**
20079
19309
  * Disallow unreadable IIFEs.
20080
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
19310
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unreadable-iife.md
20081
19311
  */
20082
19312
  "unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
20083
19313
  /**
20084
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
19314
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#no-unsafe-regex
20085
19315
  * @deprecated
20086
19316
  */
20087
19317
  "unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
20088
19318
  /**
20089
19319
  * Disallow unused object properties.
20090
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
19320
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-unused-properties.md
20091
19321
  */
20092
19322
  "unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
20093
19323
  /**
20094
19324
  * Disallow useless fallback when spreading in object literals.
20095
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
19325
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-fallback-in-spread.md
20096
19326
  */
20097
19327
  "unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
20098
19328
  /**
20099
19329
  * Disallow useless array length check.
20100
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
19330
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-length-check.md
20101
19331
  */
20102
19332
  "unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
20103
19333
  /**
20104
19334
  * Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
20105
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
19335
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-promise-resolve-reject.md
20106
19336
  */
20107
19337
  "unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
20108
19338
  /**
20109
19339
  * Disallow unnecessary spread.
20110
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
19340
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-spread.md
20111
19341
  */
20112
19342
  "unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
20113
19343
  /**
20114
19344
  * Disallow useless case in switch statements.
20115
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
19345
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-switch-case.md
20116
19346
  */
20117
19347
  "unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
20118
19348
  /**
20119
19349
  * Disallow useless `undefined`.
20120
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
19350
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-useless-undefined.md
20121
19351
  */
20122
19352
  "unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
20123
19353
  /**
20124
19354
  * Disallow number literals with zero fractions or dangling dots.
20125
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
19355
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/no-zero-fractions.md
20126
19356
  */
20127
19357
  "unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
20128
19358
  /**
20129
19359
  * Enforce proper case for numeric literals.
20130
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
19360
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/number-literal-case.md
20131
19361
  */
20132
19362
  "unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
20133
19363
  /**
20134
19364
  * Enforce the style of numeric separators by correctly grouping digits.
20135
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
19365
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/numeric-separators-style.md
20136
19366
  */
20137
19367
  "unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
20138
19368
  /**
20139
19369
  * Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
20140
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
19370
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-add-event-listener.md
20141
19371
  */
20142
19372
  "unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
20143
19373
  /**
20144
19374
  * Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
20145
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
19375
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-find.md
20146
19376
  */
20147
19377
  "unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
20148
19378
  /**
20149
19379
  * Prefer `Array#flat()` over legacy techniques to flatten arrays.
20150
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
19380
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat.md
20151
19381
  */
20152
19382
  "unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
20153
19383
  /**
20154
19384
  * Prefer `.flatMap(…)` over `.map(…).flat()`.
20155
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
19385
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-flat-map.md
20156
19386
  */
20157
19387
  "unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
20158
19388
  /**
20159
19389
  * Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
20160
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
19390
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-index-of.md
20161
19391
  */
20162
19392
  "unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
20163
19393
  /**
20164
19394
  * Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
20165
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
19395
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-array-some.md
20166
19396
  */
20167
19397
  "unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
20168
19398
  /**
20169
19399
  * Prefer `.at()` method for index access and `String#charAt()`.
20170
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
19400
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-at.md
20171
19401
  */
20172
19402
  "unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
20173
19403
  /**
20174
19404
  * Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
20175
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
19405
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-blob-reading-methods.md
20176
19406
  */
20177
19407
  "unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
20178
19408
  /**
20179
19409
  * Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
20180
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
19410
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-code-point.md
20181
19411
  */
20182
19412
  "unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
20183
19413
  /**
20184
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
19414
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-dataset
20185
19415
  * @deprecated
20186
19416
  */
20187
19417
  "unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
20188
19418
  /**
20189
19419
  * Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
20190
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
19420
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-date-now.md
20191
19421
  */
20192
19422
  "unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
20193
19423
  /**
20194
19424
  * Prefer default parameters over reassignment.
20195
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
19425
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-default-parameters.md
20196
19426
  */
20197
19427
  "unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
20198
19428
  /**
20199
19429
  * Prefer `Node#append()` over `Node#appendChild()`.
20200
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
19430
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-append.md
20201
19431
  */
20202
19432
  "unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
20203
19433
  /**
20204
19434
  * Prefer using `.dataset` on DOM elements over calling attribute methods.
20205
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
19435
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-dataset.md
20206
19436
  */
20207
19437
  "unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
20208
19438
  /**
20209
19439
  * Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
20210
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
19440
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-remove.md
20211
19441
  */
20212
19442
  "unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
20213
19443
  /**
20214
19444
  * Prefer `.textContent` over `.innerText`.
20215
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
19445
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-dom-node-text-content.md
20216
19446
  */
20217
19447
  "unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
20218
19448
  /**
20219
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
19449
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-event-key
20220
19450
  * @deprecated
20221
19451
  */
20222
19452
  "unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
20223
19453
  /**
20224
19454
  * Prefer `EventTarget` over `EventEmitter`.
20225
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
19455
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-event-target.md
20226
19456
  */
20227
19457
  "unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
20228
19458
  /**
20229
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
19459
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
20230
19460
  * @deprecated
20231
19461
  */
20232
19462
  "unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
20233
19463
  /**
20234
19464
  * Prefer `export…from` when re-exporting.
20235
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
19465
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-export-from.md
20236
19466
  */
20237
19467
  "unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
20238
19468
  /**
20239
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
19469
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-flat-map
20240
19470
  * @deprecated
20241
19471
  */
20242
19472
  "unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
20243
19473
  /**
20244
19474
  * Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
20245
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
19475
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-includes.md
20246
19476
  */
20247
19477
  "unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
20248
19478
  /**
20249
19479
  * Prefer reading a JSON file as a buffer.
20250
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
19480
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-json-parse-buffer.md
20251
19481
  */
20252
19482
  "unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
20253
19483
  /**
20254
19484
  * Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
20255
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
19485
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-keyboard-event-key.md
20256
19486
  */
20257
19487
  "unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
20258
19488
  /**
20259
19489
  * Prefer using a logical operator over a ternary.
20260
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
19490
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-logical-operator-over-ternary.md
20261
19491
  */
20262
19492
  "unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
20263
19493
  /**
20264
19494
  * Enforce the use of `Math.trunc` instead of bitwise operators.
20265
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
19495
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-math-trunc.md
20266
19496
  */
20267
19497
  "unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
20268
19498
  /**
20269
19499
  * Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
20270
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
19500
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-dom-apis.md
20271
19501
  */
20272
19502
  "unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
20273
19503
  /**
20274
19504
  * Prefer modern `Math` APIs over legacy patterns.
20275
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
19505
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-modern-math-apis.md
20276
19506
  */
20277
19507
  "unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
20278
19508
  /**
20279
19509
  * Prefer JavaScript modules (ESM) over CommonJS.
20280
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
19510
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-module.md
20281
19511
  */
20282
19512
  "unicorn/prefer-module"?: Linter.RuleEntry<[]>;
20283
19513
  /**
20284
19514
  * Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
20285
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
19515
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-native-coercion-functions.md
20286
19516
  */
20287
19517
  "unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
20288
19518
  /**
20289
19519
  * Prefer negative index over `.length - index` when possible.
20290
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
19520
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-negative-index.md
20291
19521
  */
20292
19522
  "unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
20293
19523
  /**
20294
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
19524
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-append
20295
19525
  * @deprecated
20296
19526
  */
20297
19527
  "unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
20298
19528
  /**
20299
19529
  * Prefer using the `node:` protocol when importing Node.js builtin modules.
20300
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
19530
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-node-protocol.md
20301
19531
  */
20302
19532
  "unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
20303
19533
  /**
20304
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
19534
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-node-remove
20305
19535
  * @deprecated
20306
19536
  */
20307
19537
  "unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
20308
19538
  /**
20309
19539
  * Prefer `Number` static properties over global ones.
20310
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
19540
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-number-properties.md
20311
19541
  */
20312
19542
  "unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
20313
19543
  /**
20314
19544
  * Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
20315
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
19545
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-object-from-entries.md
20316
19546
  */
20317
19547
  "unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
20318
19548
  /**
20319
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
19549
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-object-has-own
20320
19550
  * @deprecated
20321
19551
  */
20322
19552
  "unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
20323
19553
  /**
20324
19554
  * Prefer omitting the `catch` binding parameter.
20325
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
19555
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-optional-catch-binding.md
20326
19556
  */
20327
19557
  "unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
20328
19558
  /**
20329
19559
  * Prefer borrowing methods from the prototype instead of the instance.
20330
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
19560
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-prototype-methods.md
20331
19561
  */
20332
19562
  "unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
20333
19563
  /**
20334
19564
  * Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
20335
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
19565
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-query-selector.md
20336
19566
  */
20337
19567
  "unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
20338
19568
  /**
20339
19569
  * Prefer `Reflect.apply()` over `Function#apply()`.
20340
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
19570
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-reflect-apply.md
20341
19571
  */
20342
19572
  "unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
20343
19573
  /**
20344
19574
  * Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
20345
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
19575
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-regexp-test.md
20346
19576
  */
20347
19577
  "unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
20348
19578
  /**
20349
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
19579
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-replace-all
20350
19580
  * @deprecated
20351
19581
  */
20352
19582
  "unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
20353
19583
  /**
20354
19584
  * Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
20355
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
19585
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-has.md
20356
19586
  */
20357
19587
  "unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
20358
19588
  /**
20359
19589
  * Prefer using `Set#size` instead of `Array#length`.
20360
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
19590
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-set-size.md
20361
19591
  */
20362
19592
  "unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
20363
19593
  /**
20364
19594
  * Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
20365
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
19595
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-spread.md
20366
19596
  */
20367
19597
  "unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
20368
19598
  /**
20369
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
19599
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
20370
19600
  * @deprecated
20371
19601
  */
20372
19602
  "unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
20373
19603
  /**
20374
19604
  * Prefer using the `String.raw` tag to avoid escaping `\`.
20375
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
19605
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-raw.md
20376
19606
  */
20377
19607
  "unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
20378
19608
  /**
20379
19609
  * Prefer `String#replaceAll()` over regex searches with the global flag.
20380
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
19610
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-replace-all.md
20381
19611
  */
20382
19612
  "unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
20383
19613
  /**
20384
19614
  * Prefer `String#slice()` over `String#substr()` and `String#substring()`.
20385
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
19615
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-slice.md
20386
19616
  */
20387
19617
  "unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
20388
19618
  /**
20389
19619
  * Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
20390
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
19620
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-starts-ends-with.md
20391
19621
  */
20392
19622
  "unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
20393
19623
  /**
20394
19624
  * Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
20395
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
19625
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-string-trim-start-end.md
20396
19626
  */
20397
19627
  "unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
20398
19628
  /**
20399
19629
  * Prefer using `structuredClone` to create a deep clone.
20400
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
19630
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-structured-clone.md
20401
19631
  */
20402
19632
  "unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
20403
19633
  /**
20404
19634
  * Prefer `switch` over multiple `else-if`.
20405
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
19635
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-switch.md
20406
19636
  */
20407
19637
  "unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
20408
19638
  /**
20409
19639
  * Prefer ternary expressions over simple `if-else` statements.
20410
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
19640
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-ternary.md
20411
19641
  */
20412
19642
  "unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
20413
19643
  /**
20414
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
19644
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-text-content
20415
19645
  * @deprecated
20416
19646
  */
20417
19647
  "unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
20418
19648
  /**
20419
19649
  * Prefer top-level await over top-level promises and async function calls.
20420
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
19650
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-top-level-await.md
20421
19651
  */
20422
19652
  "unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
20423
19653
  /**
20424
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
19654
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#prefer-trim-start-end
20425
19655
  * @deprecated
20426
19656
  */
20427
19657
  "unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
20428
19658
  /**
20429
19659
  * Enforce throwing `TypeError` in type checking conditions.
20430
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
19660
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prefer-type-error.md
20431
19661
  */
20432
19662
  "unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
20433
19663
  /**
20434
19664
  * Prevent abbreviations.
20435
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
19665
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/prevent-abbreviations.md
20436
19666
  */
20437
19667
  "unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
20438
19668
  /**
20439
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
19669
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/deprecated-rules.md#regex-shorthand
20440
19670
  * @deprecated
20441
19671
  */
20442
19672
  "unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
20443
19673
  /**
20444
19674
  * Enforce consistent relative URL style.
20445
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
19675
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/relative-url-style.md
20446
19676
  */
20447
19677
  "unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
20448
19678
  /**
20449
19679
  * Enforce using the separator argument with `Array#join()`.
20450
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
19680
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-array-join-separator.md
20451
19681
  */
20452
19682
  "unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
20453
19683
  /**
20454
19684
  * Enforce using the digits argument with `Number#toFixed()`.
20455
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
19685
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-number-to-fixed-digits-argument.md
20456
19686
  */
20457
19687
  "unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
20458
19688
  /**
20459
19689
  * Enforce using the `targetOrigin` argument with `window.postMessage()`.
20460
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
19690
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/require-post-message-target-origin.md
20461
19691
  */
20462
19692
  "unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
20463
19693
  /**
20464
19694
  * Enforce better string content.
20465
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
19695
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/string-content.md
20466
19696
  */
20467
19697
  "unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
20468
19698
  /**
20469
19699
  * Enforce consistent brace style for `case` clauses.
20470
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
19700
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/switch-case-braces.md
20471
19701
  */
20472
19702
  "unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
20473
19703
  /**
20474
19704
  * Fix whitespace-insensitive template indentation.
20475
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
19705
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/template-indent.md
20476
19706
  */
20477
19707
  "unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
20478
19708
  /**
20479
19709
  * Enforce consistent case for text encoding identifiers.
20480
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
19710
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/text-encoding-identifier-case.md
20481
19711
  */
20482
19712
  "unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
20483
19713
  /**
20484
19714
  * Require `new` when creating an error.
20485
- * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
19715
+ * @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/throw-new-error.md
20486
19716
  */
20487
19717
  "unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
20488
19718
  }