@jsse/eslint-config 0.2.9 → 0.2.11

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.ts CHANGED
@@ -11,6 +11,7 @@ import * as yaml_eslint_parser from 'yaml-eslint-parser';
11
11
  import * as eslint_plugin_jsonc_types from 'eslint-plugin-jsonc/types';
12
12
  import * as eslint_plugin_jsonc_meta from 'eslint-plugin-jsonc/meta';
13
13
  import * as jsonc_eslint_parser from 'jsonc-eslint-parser';
14
+ export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
14
15
  export { default as pluginAntfu } from 'eslint-plugin-antfu';
15
16
  export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
16
17
  import * as eslintPluginImportX from 'eslint-plugin-import-x';
@@ -19,7 +20,6 @@ export { default as pluginN } from 'eslint-plugin-n';
19
20
  export { default as pluginPerfectionist } from 'eslint-plugin-perfectionist';
20
21
  export { default as pluginUnicorn } from 'eslint-plugin-unicorn';
21
22
  export { default as pluginUnusedImports } from 'eslint-plugin-unused-imports';
22
- export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
23
23
 
24
24
  /* eslint-disable */
25
25
  /* prettier-ignore */
@@ -1417,7 +1417,7 @@ interface BuiltinsRuleOptions {
1417
1417
  * Enforce the use of `u` or `v` flag on RegExp
1418
1418
  * @see https://eslint.org/docs/latest/rules/require-unicode-regexp
1419
1419
  */
1420
- "require-unicode-regexp"?: Linter.RuleEntry<[]>;
1420
+ "require-unicode-regexp"?: Linter.RuleEntry<RequireUnicodeRegexp>;
1421
1421
  /**
1422
1422
  * Require generator functions to contain `yield`
1423
1423
  * @see https://eslint.org/docs/latest/rules/require-yield
@@ -3906,6 +3906,14 @@ type RequireAtomicUpdates =
3906
3906
  allowProperties?: boolean;
3907
3907
  },
3908
3908
  ];
3909
+ // ----- require-unicode-regexp -----
3910
+ type RequireUnicodeRegexp =
3911
+ | []
3912
+ | [
3913
+ {
3914
+ requireFlag?: "u" | "v";
3915
+ },
3916
+ ];
3909
3917
  // ----- rest-spread-spacing -----
3910
3918
  type RestSpreadSpacing = [] | ["always" | "never"];
3911
3919
  // ----- semi -----
@@ -4120,6 +4128,11 @@ type Yoda =
4120
4128
 
4121
4129
 
4122
4130
  interface AntfuRuleOptions {
4131
+ /**
4132
+ * Having line breaks styles to object, array and named imports
4133
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-chaining.md
4134
+ */
4135
+ "antfu/consistent-chaining"?: Linter.RuleEntry<AntfuConsistentChaining>;
4123
4136
  /**
4124
4137
  * Having line breaks styles to object, array and named imports
4125
4138
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
@@ -4127,7 +4140,7 @@ interface AntfuRuleOptions {
4127
4140
  "antfu/consistent-list-newline"?: Linter.RuleEntry<AntfuConsistentListNewline>;
4128
4141
  /**
4129
4142
  * Enforce Anthony's style of curly bracket
4130
- * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
4143
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.md
4131
4144
  */
4132
4145
  "antfu/curly"?: Linter.RuleEntry<[]>;
4133
4146
  /**
@@ -4142,7 +4155,7 @@ interface AntfuRuleOptions {
4142
4155
  "antfu/import-dedupe"?: Linter.RuleEntry<[]>;
4143
4156
  /**
4144
4157
  * Enforce consistent indentation in `unindent` template tag
4145
- * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.test.ts
4158
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/indent-unindent.md
4146
4159
  */
4147
4160
  "antfu/indent-unindent"?: Linter.RuleEntry<AntfuIndentUnindent>;
4148
4161
  /**
@@ -4155,6 +4168,11 @@ interface AntfuRuleOptions {
4155
4168
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-import-node-modules-by-path.test.ts
4156
4169
  */
4157
4170
  "antfu/no-import-node-modules-by-path"?: Linter.RuleEntry<[]>;
4171
+ /**
4172
+ * Prevent using top-level await
4173
+ * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-top-level-await.test.ts
4174
+ */
4175
+ "antfu/no-top-level-await"?: Linter.RuleEntry<[]>;
4158
4176
  /**
4159
4177
  * Do not use `exports =`
4160
4178
  * @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/no-ts-export-equal.test.ts
@@ -4168,6 +4186,14 @@ interface AntfuRuleOptions {
4168
4186
  }
4169
4187
 
4170
4188
  /* ======= Declarations ======= */
4189
+ // ----- antfu/consistent-chaining -----
4190
+ type AntfuConsistentChaining =
4191
+ | []
4192
+ | [
4193
+ {
4194
+ allowLeadingPropertyAccess?: boolean;
4195
+ },
4196
+ ];
4171
4197
  // ----- antfu/consistent-list-newline -----
4172
4198
  type AntfuConsistentListNewline =
4173
4199
  | []
@@ -4318,233 +4344,233 @@ interface IgnoresRuleOptions {}
4318
4344
  interface ImportsRuleOptions {
4319
4345
  /**
4320
4346
  * Enforce or ban the use of inline type-only markers for named imports.
4321
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/consistent-type-specifier-style.md
4347
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
4322
4348
  */
4323
4349
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
4324
4350
  /**
4325
4351
  * Ensure a default export is present, given a default import.
4326
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/default.md
4352
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
4327
4353
  */
4328
4354
  "import/default"?: Linter.RuleEntry<[]>;
4329
4355
  /**
4330
4356
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
4331
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/dynamic-import-chunkname.md
4357
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
4332
4358
  */
4333
4359
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
4334
4360
  /**
4335
4361
  * Forbid any invalid exports, i.e. re-export of the same name.
4336
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/export.md
4362
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
4337
4363
  */
4338
4364
  "import/export"?: Linter.RuleEntry<[]>;
4339
4365
  /**
4340
4366
  * Ensure all exports appear after other statements.
4341
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/exports-last.md
4367
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
4342
4368
  */
4343
4369
  "import/exports-last"?: Linter.RuleEntry<[]>;
4344
4370
  /**
4345
4371
  * Ensure consistent use of file extension within the import path.
4346
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/extensions.md
4372
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
4347
4373
  */
4348
4374
  "import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
4349
4375
  /**
4350
4376
  * Ensure all imports appear before other statements.
4351
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/first.md
4377
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
4352
4378
  */
4353
4379
  "import/first"?: Linter.RuleEntry<ImportFirst$1>;
4354
4380
  /**
4355
4381
  * Prefer named exports to be grouped together in a single export declaration.
4356
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/group-exports.md
4382
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
4357
4383
  */
4358
4384
  "import/group-exports"?: Linter.RuleEntry<[]>;
4359
4385
  /**
4360
4386
  * Replaced by `import-x/first`.
4361
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
4387
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
4362
4388
  * @deprecated
4363
4389
  */
4364
4390
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
4365
4391
  /**
4366
4392
  * Enforce the maximum number of dependencies a module can have.
4367
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/max-dependencies.md
4393
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
4368
4394
  */
4369
4395
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
4370
4396
  /**
4371
4397
  * Ensure named imports correspond to a named export in the remote file.
4372
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/named.md
4398
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
4373
4399
  */
4374
4400
  "import/named"?: Linter.RuleEntry<ImportNamed$1>;
4375
4401
  /**
4376
4402
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
4377
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/namespace.md
4403
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
4378
4404
  */
4379
4405
  "import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
4380
4406
  /**
4381
4407
  * Enforce a newline after import statements.
4382
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/newline-after-import.md
4408
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
4383
4409
  */
4384
4410
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
4385
4411
  /**
4386
4412
  * Forbid import of modules using absolute paths.
4387
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-absolute-path.md
4413
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
4388
4414
  */
4389
4415
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
4390
4416
  /**
4391
4417
  * Forbid AMD `require` and `define` calls.
4392
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-amd.md
4418
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
4393
4419
  */
4394
4420
  "import/no-amd"?: Linter.RuleEntry<[]>;
4395
4421
  /**
4396
4422
  * Forbid anonymous values as default exports.
4397
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-anonymous-default-export.md
4423
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
4398
4424
  */
4399
4425
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
4400
4426
  /**
4401
4427
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
4402
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-commonjs.md
4428
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
4403
4429
  */
4404
4430
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
4405
4431
  /**
4406
4432
  * Forbid a module from importing a module with a dependency path back to itself.
4407
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-cycle.md
4433
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
4408
4434
  */
4409
4435
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
4410
4436
  /**
4411
4437
  * Forbid default exports.
4412
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-default-export.md
4438
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
4413
4439
  */
4414
4440
  "import/no-default-export"?: Linter.RuleEntry<[]>;
4415
4441
  /**
4416
4442
  * Forbid imported names marked with `@deprecated` documentation tag.
4417
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-deprecated.md
4443
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
4418
4444
  */
4419
4445
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
4420
4446
  /**
4421
4447
  * Forbid repeated import of the same module in multiple places.
4422
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-duplicates.md
4448
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
4423
4449
  */
4424
4450
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
4425
4451
  /**
4426
4452
  * Forbid `require()` calls with expressions.
4427
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-dynamic-require.md
4453
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
4428
4454
  */
4429
4455
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
4430
4456
  /**
4431
4457
  * Forbid empty named import blocks.
4432
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-empty-named-blocks.md
4458
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
4433
4459
  */
4434
4460
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
4435
4461
  /**
4436
4462
  * Forbid the use of extraneous packages.
4437
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-extraneous-dependencies.md
4463
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
4438
4464
  */
4439
4465
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
4440
4466
  /**
4441
4467
  * Forbid import statements with CommonJS module.exports.
4442
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-import-module-exports.md
4468
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
4443
4469
  */
4444
4470
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
4445
4471
  /**
4446
4472
  * Forbid importing the submodules of other modules.
4447
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-internal-modules.md
4473
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
4448
4474
  */
4449
4475
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
4450
4476
  /**
4451
4477
  * Forbid the use of mutable exports with `var` or `let`.
4452
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-mutable-exports.md
4478
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
4453
4479
  */
4454
4480
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
4455
4481
  /**
4456
4482
  * Forbid use of exported name as identifier of default export.
4457
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default.md
4483
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
4458
4484
  */
4459
4485
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
4460
4486
  /**
4461
4487
  * Forbid use of exported name as property of default export.
4462
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default-member.md
4488
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
4463
4489
  */
4464
4490
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
4465
4491
  /**
4466
4492
  * Forbid named default exports.
4467
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-default.md
4493
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
4468
4494
  */
4469
4495
  "import/no-named-default"?: Linter.RuleEntry<[]>;
4470
4496
  /**
4471
4497
  * Forbid named exports.
4472
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-export.md
4498
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
4473
4499
  */
4474
4500
  "import/no-named-export"?: Linter.RuleEntry<[]>;
4475
4501
  /**
4476
4502
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
4477
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-namespace.md
4503
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
4478
4504
  */
4479
4505
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
4480
4506
  /**
4481
4507
  * Forbid Node.js builtin modules.
4482
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-nodejs-modules.md
4508
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
4483
4509
  */
4484
4510
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
4485
4511
  /**
4486
4512
  * Forbid importing packages through relative paths.
4487
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-packages.md
4513
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
4488
4514
  */
4489
4515
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
4490
4516
  /**
4491
4517
  * Forbid importing modules from parent directories.
4492
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-parent-imports.md
4518
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
4493
4519
  */
4494
4520
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
4495
4521
  /**
4496
4522
  * Forbid importing a default export by a different name.
4497
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
4523
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
4498
4524
  */
4499
4525
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
4500
4526
  /**
4501
4527
  * Enforce which files can be imported in a given folder.
4502
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
4528
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
4503
4529
  */
4504
4530
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
4505
4531
  /**
4506
4532
  * Forbid a module from importing itself.
4507
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
4533
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
4508
4534
  */
4509
4535
  "import/no-self-import"?: Linter.RuleEntry<[]>;
4510
4536
  /**
4511
4537
  * Forbid unassigned imports.
4512
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
4538
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
4513
4539
  */
4514
4540
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
4515
4541
  /**
4516
4542
  * Ensure imports point to a file/module that can be resolved.
4517
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
4543
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
4518
4544
  */
4519
4545
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
4520
4546
  /**
4521
4547
  * Forbid modules without exports, or exports without matching import in another module.
4522
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
4548
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
4523
4549
  */
4524
4550
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
4525
4551
  /**
4526
4552
  * Forbid unnecessary path segments in import and require statements.
4527
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
4553
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
4528
4554
  */
4529
4555
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
4530
4556
  /**
4531
4557
  * Forbid webpack loader syntax in imports.
4532
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
4558
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
4533
4559
  */
4534
4560
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
4535
4561
  /**
4536
4562
  * Enforce a convention in module import order.
4537
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
4563
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
4538
4564
  */
4539
4565
  "import/order"?: Linter.RuleEntry<ImportOrder$1>;
4540
4566
  /**
4541
4567
  * Prefer a default export if module exports a single name or multiple names.
4542
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
4568
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
4543
4569
  */
4544
4570
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
4545
4571
  /**
4546
4572
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
4547
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
4573
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
4548
4574
  */
4549
4575
  "import/unambiguous"?: Linter.RuleEntry<[]>;
4550
4576
  }
@@ -4736,6 +4762,7 @@ type ImportNoExtraneousDependencies$1 =
4736
4762
  packageDir?: string | unknown[];
4737
4763
  includeInternal?: boolean;
4738
4764
  includeTypes?: boolean;
4765
+ whitelist?: unknown[];
4739
4766
  },
4740
4767
  ];
4741
4768
  // ----- import/no-import-module-exports -----
@@ -9717,6 +9744,11 @@ interface PerfectionistRuleOptions {
9717
9744
  * @see https://perfectionist.dev/rules/sort-objects
9718
9745
  */
9719
9746
  "perfectionist/sort-objects"?: Linter.RuleEntry<PerfectionistSortObjects>;
9747
+ /**
9748
+ * Enforce sorted sets.
9749
+ * @see https://perfectionist.dev/rules/sort-sets
9750
+ */
9751
+ "perfectionist/sort-sets"?: Linter.RuleEntry<PerfectionistSortSets>;
9720
9752
  /**
9721
9753
  * Enforce sorted Svelte attributes.
9722
9754
  * @see https://perfectionist.dev/rules/sort-svelte-attributes
@@ -9792,9 +9824,91 @@ type PerfectionistSortClasses =
9792
9824
 
9793
9825
  groups?: (string | string[])[];
9794
9826
 
9795
- customGroups?: {
9796
- [k: string]: (string | string[]) | undefined;
9797
- };
9827
+ customGroups?:
9828
+ | {
9829
+ [k: string]: (string | string[]) | undefined;
9830
+ }
9831
+ | (
9832
+ | {
9833
+ groupName?: string;
9834
+
9835
+ type?:
9836
+ | "alphabetical"
9837
+ | "line-length"
9838
+ | "natural"
9839
+ | "unsorted";
9840
+
9841
+ order?: "desc" | "asc";
9842
+ anyOf?: {
9843
+ selector?:
9844
+ | "accessor-property"
9845
+ | "index-signature"
9846
+ | "constructor"
9847
+ | "static-block"
9848
+ | "get-method"
9849
+ | "set-method"
9850
+ | "function-property"
9851
+ | "property"
9852
+ | "method";
9853
+
9854
+ modifiers?: (
9855
+ | "protected"
9856
+ | "private"
9857
+ | "public"
9858
+ | "static"
9859
+ | "abstract"
9860
+ | "override"
9861
+ | "readonly"
9862
+ | "decorated"
9863
+ | "declare"
9864
+ | "optional"
9865
+ )[];
9866
+
9867
+ elementNamePattern?: string;
9868
+
9869
+ decoratorNamePattern?: string;
9870
+ }[];
9871
+ }
9872
+ | {
9873
+ groupName?: string;
9874
+
9875
+ type?:
9876
+ | "alphabetical"
9877
+ | "line-length"
9878
+ | "natural"
9879
+ | "unsorted";
9880
+
9881
+ order?: "desc" | "asc";
9882
+
9883
+ selector?:
9884
+ | "accessor-property"
9885
+ | "index-signature"
9886
+ | "constructor"
9887
+ | "static-block"
9888
+ | "get-method"
9889
+ | "set-method"
9890
+ | "function-property"
9891
+ | "property"
9892
+ | "method";
9893
+
9894
+ modifiers?: (
9895
+ | "protected"
9896
+ | "private"
9897
+ | "public"
9898
+ | "static"
9899
+ | "abstract"
9900
+ | "override"
9901
+ | "readonly"
9902
+ | "decorated"
9903
+ | "declare"
9904
+ | "optional"
9905
+ )[];
9906
+
9907
+ elementNamePattern?: string;
9908
+
9909
+ decoratorNamePattern?: string;
9910
+ }
9911
+ )[];
9798
9912
  },
9799
9913
  ];
9800
9914
  // ----- perfectionist/sort-enums -----
@@ -9839,6 +9953,8 @@ type _PerfectionistSortImportsSortImports =
9839
9953
 
9840
9954
  internalPattern?: string[];
9841
9955
 
9956
+ sortSideEffects?: boolean;
9957
+
9842
9958
  newlinesBetween?: "ignore" | "always" | "never";
9843
9959
 
9844
9960
  maxLineLength?: number;
@@ -10015,6 +10131,20 @@ type PerfectionistSortObjects =
10015
10131
  };
10016
10132
  },
10017
10133
  ];
10134
+ // ----- perfectionist/sort-sets -----
10135
+ type PerfectionistSortSets =
10136
+ | []
10137
+ | [
10138
+ {
10139
+ type?: "alphabetical" | "natural" | "line-length";
10140
+
10141
+ order?: "asc" | "desc";
10142
+
10143
+ ignoreCase?: boolean;
10144
+
10145
+ groupKind?: "mixed" | "literals-first" | "spreads-first";
10146
+ },
10147
+ ];
10018
10148
  // ----- perfectionist/sort-svelte-attributes -----
10019
10149
  type PerfectionistSortSvelteAttributes =
10020
10150
  | []
@@ -10167,6 +10297,11 @@ interface ReactRuleOptions {
10167
10297
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
10168
10298
  */
10169
10299
  "react/forbid-prop-types"?: Linter.RuleEntry<ReactForbidPropTypes>;
10300
+ /**
10301
+ * Require all forwardRef components include a ref parameter
10302
+ * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forward-ref-uses-ref.md
10303
+ */
10304
+ "react/forward-ref-uses-ref"?: Linter.RuleEntry<[]>;
10170
10305
  /**
10171
10306
  * Enforce a specific function type for function components
10172
10307
  * @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
@@ -11084,6 +11219,16 @@ type ReactJsxNoLiterals =
11084
11219
  | []
11085
11220
  | [
11086
11221
  {
11222
+ elementOverrides?: {
11223
+ [k: string]: {
11224
+ applyToNestedElements?: boolean;
11225
+ noStrings?: boolean;
11226
+ allowedStrings?: string[];
11227
+ ignoreProps?: boolean;
11228
+ noAttributeStrings?: boolean;
11229
+ [k: string]: unknown | undefined;
11230
+ };
11231
+ };
11087
11232
  noStrings?: boolean;
11088
11233
  allowedStrings?: string[];
11089
11234
  ignoreProps?: boolean;
@@ -11172,6 +11317,7 @@ type ReactJsxPropsNoSpreading =
11172
11317
  {
11173
11318
  html?: "enforce" | "ignore";
11174
11319
  custom?: "enforce" | "ignore";
11320
+ explicitSpread?: "enforce" | "ignore";
11175
11321
  exceptions?: string[];
11176
11322
  [k: string]: unknown | undefined;
11177
11323
  } & {
@@ -12224,6 +12370,7 @@ type StylisticIndent =
12224
12370
  offsetTernaryExpressions?: boolean;
12225
12371
  ignoredNodes?: string[];
12226
12372
  ignoreComments?: boolean;
12373
+ tabLength?: number;
12227
12374
  },
12228
12375
  ];
12229
12376
  // ----- @stylistic/indent-binary-ops -----
@@ -12717,6 +12864,10 @@ type StylisticKeywordSpacing =
12717
12864
  before?: boolean;
12718
12865
  after?: boolean;
12719
12866
  };
12867
+ satisfies?: {
12868
+ before?: boolean;
12869
+ after?: boolean;
12870
+ };
12720
12871
  set?: {
12721
12872
  before?: boolean;
12722
12873
  after?: boolean;
@@ -13665,7 +13816,6 @@ type StylisticTypeAnnotationSpacing =
13665
13816
  parameter?: _StylisticTypeAnnotationSpacing_SpacingConfig;
13666
13817
  property?: _StylisticTypeAnnotationSpacing_SpacingConfig;
13667
13818
  returnType?: _StylisticTypeAnnotationSpacing_SpacingConfig;
13668
- operator?: _StylisticTypeAnnotationSpacing_SpacingConfig;
13669
13819
  };
13670
13820
  },
13671
13821
  ];
@@ -13701,265 +13851,305 @@ type StylisticYieldStarSpacing =
13701
13851
  interface VitestRuleOptions {
13702
13852
  /**
13703
13853
  * require .spec test file pattern
13704
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
13854
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-filename.md
13705
13855
  */
13706
13856
  "vitest/consistent-test-filename"?: Linter.RuleEntry<VitestConsistentTestFilename>;
13707
13857
  /**
13708
13858
  * enforce using test or it but not both
13709
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
13859
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/consistent-test-it.md
13710
13860
  */
13711
13861
  "vitest/consistent-test-it"?: Linter.RuleEntry<VitestConsistentTestIt>;
13712
13862
  /**
13713
13863
  * enforce having expectation in test body
13714
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
13864
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/expect-expect.md
13715
13865
  */
13716
13866
  "vitest/expect-expect"?: Linter.RuleEntry<VitestExpectExpect>;
13717
13867
  /**
13718
13868
  * enforce a maximum number of expect per test
13719
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
13869
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-expects.md
13720
13870
  */
13721
13871
  "vitest/max-expects"?: Linter.RuleEntry<VitestMaxExpects>;
13722
13872
  /**
13723
13873
  * require describe block to be less than set max value or default value
13724
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
13874
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/max-nested-describe.md
13725
13875
  */
13726
13876
  "vitest/max-nested-describe"?: Linter.RuleEntry<VitestMaxNestedDescribe>;
13727
13877
  /**
13728
13878
  * disallow alias methods
13729
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
13879
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-alias-methods.md
13730
13880
  */
13731
13881
  "vitest/no-alias-methods"?: Linter.RuleEntry<[]>;
13732
13882
  /**
13733
13883
  * disallow commented out tests
13734
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
13884
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-commented-out-tests.md
13735
13885
  */
13736
13886
  "vitest/no-commented-out-tests"?: Linter.RuleEntry<[]>;
13737
13887
  /**
13738
13888
  * disallow conditional expects
13739
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
13889
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-expect.md
13740
13890
  */
13741
13891
  "vitest/no-conditional-expect"?: Linter.RuleEntry<[]>;
13742
13892
  /**
13743
13893
  * disallow conditional tests
13744
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
13894
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-in-test.md
13745
13895
  */
13746
13896
  "vitest/no-conditional-in-test"?: Linter.RuleEntry<[]>;
13747
13897
  /**
13748
13898
  * disallow conditional tests
13749
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
13899
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-conditional-tests.md
13750
13900
  */
13751
13901
  "vitest/no-conditional-tests"?: Linter.RuleEntry<[]>;
13752
13902
  /**
13753
13903
  * disallow disabled tests
13754
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
13904
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-disabled-tests.md
13755
13905
  */
13756
13906
  "vitest/no-disabled-tests"?: Linter.RuleEntry<[]>;
13757
13907
  /**
13758
13908
  * disallow using a callback in asynchronous tests and hooks
13759
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
13909
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-done-callback.md
13760
13910
  * @deprecated
13761
13911
  */
13762
13912
  "vitest/no-done-callback"?: Linter.RuleEntry<[]>;
13763
13913
  /**
13764
13914
  * disallow duplicate hooks and teardown hooks
13765
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
13915
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-duplicate-hooks.md
13766
13916
  */
13767
13917
  "vitest/no-duplicate-hooks"?: Linter.RuleEntry<[]>;
13768
13918
  /**
13769
13919
  * disallow focused tests
13770
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
13920
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-focused-tests.md
13771
13921
  */
13772
13922
  "vitest/no-focused-tests"?: Linter.RuleEntry<VitestNoFocusedTests>;
13773
13923
  /**
13774
13924
  * disallow setup and teardown hooks
13775
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
13925
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-hooks.md
13776
13926
  */
13777
13927
  "vitest/no-hooks"?: Linter.RuleEntry<VitestNoHooks>;
13778
13928
  /**
13779
13929
  * disallow identical titles
13780
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
13930
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-identical-title.md
13781
13931
  */
13782
13932
  "vitest/no-identical-title"?: Linter.RuleEntry<[]>;
13783
13933
  /**
13784
13934
  * disallow importing `node:test`
13785
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
13935
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-import-node-test.md
13786
13936
  */
13787
13937
  "vitest/no-import-node-test"?: Linter.RuleEntry<[]>;
13788
13938
  /**
13789
13939
  * disallow string interpolation in snapshots
13790
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
13940
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-interpolation-in-snapshots.md
13791
13941
  */
13792
13942
  "vitest/no-interpolation-in-snapshots"?: Linter.RuleEntry<[]>;
13793
13943
  /**
13794
13944
  * disallow large snapshots
13795
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
13945
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-large-snapshots.md
13796
13946
  */
13797
13947
  "vitest/no-large-snapshots"?: Linter.RuleEntry<VitestNoLargeSnapshots>;
13798
13948
  /**
13799
13949
  * disallow importing from __mocks__ directory
13800
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
13950
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-mocks-import.md
13801
13951
  */
13802
13952
  "vitest/no-mocks-import"?: Linter.RuleEntry<[]>;
13803
13953
  /**
13804
13954
  * disallow the use of certain matchers
13805
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
13955
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-matchers.md
13806
13956
  */
13807
13957
  "vitest/no-restricted-matchers"?: Linter.RuleEntry<VitestNoRestrictedMatchers>;
13808
13958
  /**
13809
13959
  * disallow specific `vi.` methods
13810
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
13960
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-restricted-vi-methods.md
13811
13961
  */
13812
13962
  "vitest/no-restricted-vi-methods"?: Linter.RuleEntry<VitestNoRestrictedViMethods>;
13813
13963
  /**
13814
13964
  * disallow using `expect` outside of `it` or `test` blocks
13815
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
13965
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-standalone-expect.md
13816
13966
  */
13817
13967
  "vitest/no-standalone-expect"?: Linter.RuleEntry<VitestNoStandaloneExpect>;
13818
13968
  /**
13819
13969
  * disallow using `test` as a prefix
13820
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
13970
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-prefixes.md
13821
13971
  */
13822
13972
  "vitest/no-test-prefixes"?: Linter.RuleEntry<[]>;
13823
13973
  /**
13824
13974
  * disallow return statements in tests
13825
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
13975
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/no-test-return-statement.md
13826
13976
  */
13827
13977
  "vitest/no-test-return-statement"?: Linter.RuleEntry<[]>;
13978
+ /**
13979
+ * Enforce padding around `afterAll` blocks
13980
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-all-blocks.md
13981
+ */
13982
+ "vitest/padding-around-after-all-blocks"?: Linter.RuleEntry<[]>;
13983
+ /**
13984
+ * Enforce padding around `afterEach` blocks
13985
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-after-each-blocks.md
13986
+ */
13987
+ "vitest/padding-around-after-each-blocks"?: Linter.RuleEntry<[]>;
13988
+ /**
13989
+ * Enforce padding around vitest functions
13990
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-all.md
13991
+ */
13992
+ "vitest/padding-around-all"?: Linter.RuleEntry<[]>;
13993
+ /**
13994
+ * Enforce padding around `beforeAll` blocks
13995
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-all-blocks.md
13996
+ */
13997
+ "vitest/padding-around-before-all-blocks"?: Linter.RuleEntry<[]>;
13998
+ /**
13999
+ * Enforce padding around `beforeEach` blocks
14000
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-before-each-blocks.md
14001
+ */
14002
+ "vitest/padding-around-before-each-blocks"?: Linter.RuleEntry<[]>;
14003
+ /**
14004
+ * Enforce padding around `describe` blocks
14005
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-describe-blocks.md
14006
+ */
14007
+ "vitest/padding-around-describe-blocks"?: Linter.RuleEntry<[]>;
14008
+ /**
14009
+ * Enforce padding around `expect` groups
14010
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-expect-groups.md
14011
+ */
14012
+ "vitest/padding-around-expect-groups"?: Linter.RuleEntry<[]>;
14013
+ /**
14014
+ * Enforce padding around afterAll blocks
14015
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
14016
+ */
14017
+ "vitest/padding-around-test-blocks"?: Linter.RuleEntry<[]>;
13828
14018
  /**
13829
14019
  * enforce using `toBeCalledWith()` or `toHaveBeenCalledWith()`
13830
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
14020
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-called-with.md
13831
14021
  */
13832
14022
  "vitest/prefer-called-with"?: Linter.RuleEntry<[]>;
13833
14023
  /**
13834
14024
  * enforce using the built-in comparison matchers
13835
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
14025
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-comparison-matcher.md
13836
14026
  */
13837
14027
  "vitest/prefer-comparison-matcher"?: Linter.RuleEntry<[]>;
13838
14028
  /**
13839
14029
  * enforce using `each` rather than manual loops
13840
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
14030
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-each.md
13841
14031
  */
13842
14032
  "vitest/prefer-each"?: Linter.RuleEntry<[]>;
13843
14033
  /**
13844
14034
  * enforce using the built-in quality matchers
13845
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
14035
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-equality-matcher.md
13846
14036
  */
13847
14037
  "vitest/prefer-equality-matcher"?: Linter.RuleEntry<[]>;
13848
14038
  /**
13849
14039
  * enforce using expect assertions instead of callbacks
13850
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
14040
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-assertions.md
13851
14041
  */
13852
14042
  "vitest/prefer-expect-assertions"?: Linter.RuleEntry<VitestPreferExpectAssertions>;
13853
14043
  /**
13854
14044
  * enforce using `expect().resolves` over `expect(await ...)` syntax
13855
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
14045
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-expect-resolves.md
13856
14046
  */
13857
14047
  "vitest/prefer-expect-resolves"?: Linter.RuleEntry<[]>;
13858
14048
  /**
13859
14049
  * enforce having hooks in consistent order
13860
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
14050
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-in-order.md
13861
14051
  */
13862
14052
  "vitest/prefer-hooks-in-order"?: Linter.RuleEntry<[]>;
13863
14053
  /**
13864
14054
  * enforce having hooks before any test cases
13865
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
14055
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-hooks-on-top.md
13866
14056
  */
13867
14057
  "vitest/prefer-hooks-on-top"?: Linter.RuleEntry<[]>;
13868
14058
  /**
13869
14059
  * enforce lowercase titles
13870
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
14060
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-lowercase-title.md
13871
14061
  */
13872
14062
  "vitest/prefer-lowercase-title"?: Linter.RuleEntry<VitestPreferLowercaseTitle>;
13873
14063
  /**
13874
14064
  * enforce mock resolved/rejected shorthands for promises
13875
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
14065
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-mock-promise-shorthand.md
13876
14066
  */
13877
14067
  "vitest/prefer-mock-promise-shorthand"?: Linter.RuleEntry<[]>;
13878
14068
  /**
13879
14069
  * enforce including a hint with external snapshots
13880
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
14070
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-snapshot-hint.md
13881
14071
  */
13882
14072
  "vitest/prefer-snapshot-hint"?: Linter.RuleEntry<VitestPreferSnapshotHint>;
13883
14073
  /**
13884
14074
  * enforce using `vi.spyOn`
13885
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
14075
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-spy-on.md
13886
14076
  */
13887
14077
  "vitest/prefer-spy-on"?: Linter.RuleEntry<[]>;
13888
14078
  /**
13889
14079
  * enforce strict equal over equal
13890
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
14080
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-strict-equal.md
13891
14081
  */
13892
14082
  "vitest/prefer-strict-equal"?: Linter.RuleEntry<[]>;
13893
14083
  /**
13894
14084
  * enforce using toBe()
13895
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
14085
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be.md
13896
14086
  */
13897
14087
  "vitest/prefer-to-be"?: Linter.RuleEntry<[]>;
13898
14088
  /**
13899
14089
  * enforce using toBeFalsy()
13900
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
14090
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-falsy.md
13901
14091
  */
13902
14092
  "vitest/prefer-to-be-falsy"?: Linter.RuleEntry<[]>;
13903
14093
  /**
13904
14094
  * enforce using toBeObject()
13905
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
14095
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-object.md
13906
14096
  */
13907
14097
  "vitest/prefer-to-be-object"?: Linter.RuleEntry<[]>;
13908
14098
  /**
13909
14099
  * enforce using `toBeTruthy`
13910
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
14100
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-be-truthy.md
13911
14101
  */
13912
14102
  "vitest/prefer-to-be-truthy"?: Linter.RuleEntry<[]>;
13913
14103
  /**
13914
14104
  * enforce using toContain()
13915
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
14105
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-contain.md
13916
14106
  */
13917
14107
  "vitest/prefer-to-contain"?: Linter.RuleEntry<[]>;
13918
14108
  /**
13919
14109
  * enforce using toHaveLength()
13920
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
14110
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-to-have-length.md
13921
14111
  */
13922
14112
  "vitest/prefer-to-have-length"?: Linter.RuleEntry<[]>;
13923
14113
  /**
13924
14114
  * enforce using `test.todo`
13925
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
14115
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
13926
14116
  */
13927
14117
  "vitest/prefer-todo"?: Linter.RuleEntry<[]>;
13928
14118
  /**
13929
14119
  * require setup and teardown to be within a hook
13930
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
14120
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
13931
14121
  */
13932
14122
  "vitest/require-hook"?: Linter.RuleEntry<VitestRequireHook>;
13933
14123
  /**
13934
14124
  * require local Test Context for concurrent snapshot tests
13935
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
14125
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-local-test-context-for-concurrent-snapshots.md
13936
14126
  */
13937
14127
  "vitest/require-local-test-context-for-concurrent-snapshots"?: Linter.RuleEntry<
13938
14128
  []
13939
14129
  >;
13940
14130
  /**
13941
14131
  * require toThrow() to be called with an error message
13942
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
14132
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-to-throw-message.md
13943
14133
  */
13944
14134
  "vitest/require-to-throw-message"?: Linter.RuleEntry<[]>;
13945
14135
  /**
13946
14136
  * enforce that all tests are in a top-level describe
13947
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
14137
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-top-level-describe.md
13948
14138
  */
13949
14139
  "vitest/require-top-level-describe"?: Linter.RuleEntry<VitestRequireTopLevelDescribe>;
13950
14140
  /**
13951
14141
  * enforce valid describe callback
13952
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
14142
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-describe-callback.md
13953
14143
  */
13954
14144
  "vitest/valid-describe-callback"?: Linter.RuleEntry<[]>;
13955
14145
  /**
13956
14146
  * enforce valid `expect()` usage
13957
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
14147
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
13958
14148
  */
13959
14149
  "vitest/valid-expect"?: Linter.RuleEntry<VitestValidExpect>;
13960
14150
  /**
13961
14151
  * enforce valid titles
13962
- * @see https://github.com/veritem/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
14152
+ * @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
13963
14153
  */
13964
14154
  "vitest/valid-title"?: Linter.RuleEntry<VitestValidTitle>;
13965
14155
  }
@@ -14057,7 +14247,8 @@ type VitestNoStandaloneExpect =
14057
14247
  | []
14058
14248
  | [
14059
14249
  {
14060
- additionalTestBlockFunctions?: string[];
14250
+ additionaltestblockfunctions?: string[];
14251
+ [k: string]: unknown | undefined;
14061
14252
  },
14062
14253
  ];
14063
14254
  // ----- vitest/prefer-expect-assertions -----
@@ -14992,233 +15183,233 @@ interface TypescriptRuleOptions {
14992
15183
  >;
14993
15184
  /**
14994
15185
  * Enforce or ban the use of inline type-only markers for named imports.
14995
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/consistent-type-specifier-style.md
15186
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
14996
15187
  */
14997
15188
  "import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
14998
15189
  /**
14999
15190
  * Ensure a default export is present, given a default import.
15000
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/default.md
15191
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
15001
15192
  */
15002
15193
  "import/default"?: Linter.RuleEntry<[]>;
15003
15194
  /**
15004
15195
  * Enforce a leading comment with the webpackChunkName for dynamic imports.
15005
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/dynamic-import-chunkname.md
15196
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
15006
15197
  */
15007
15198
  "import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
15008
15199
  /**
15009
15200
  * Forbid any invalid exports, i.e. re-export of the same name.
15010
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/export.md
15201
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
15011
15202
  */
15012
15203
  "import/export"?: Linter.RuleEntry<[]>;
15013
15204
  /**
15014
15205
  * Ensure all exports appear after other statements.
15015
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/exports-last.md
15206
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
15016
15207
  */
15017
15208
  "import/exports-last"?: Linter.RuleEntry<[]>;
15018
15209
  /**
15019
15210
  * Ensure consistent use of file extension within the import path.
15020
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/extensions.md
15211
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
15021
15212
  */
15022
15213
  "import/extensions"?: Linter.RuleEntry<ImportExtensions>;
15023
15214
  /**
15024
15215
  * Ensure all imports appear before other statements.
15025
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/first.md
15216
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
15026
15217
  */
15027
15218
  "import/first"?: Linter.RuleEntry<ImportFirst>;
15028
15219
  /**
15029
15220
  * Prefer named exports to be grouped together in a single export declaration.
15030
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/group-exports.md
15221
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
15031
15222
  */
15032
15223
  "import/group-exports"?: Linter.RuleEntry<[]>;
15033
15224
  /**
15034
15225
  * Replaced by `import-x/first`.
15035
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/imports-first.md
15226
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
15036
15227
  * @deprecated
15037
15228
  */
15038
15229
  "import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
15039
15230
  /**
15040
15231
  * Enforce the maximum number of dependencies a module can have.
15041
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/max-dependencies.md
15232
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
15042
15233
  */
15043
15234
  "import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
15044
15235
  /**
15045
15236
  * Ensure named imports correspond to a named export in the remote file.
15046
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/named.md
15237
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
15047
15238
  */
15048
15239
  "import/named"?: Linter.RuleEntry<ImportNamed>;
15049
15240
  /**
15050
15241
  * Ensure imported namespaces contain dereferenced properties as they are dereferenced.
15051
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/namespace.md
15242
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
15052
15243
  */
15053
15244
  "import/namespace"?: Linter.RuleEntry<ImportNamespace>;
15054
15245
  /**
15055
15246
  * Enforce a newline after import statements.
15056
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/newline-after-import.md
15247
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
15057
15248
  */
15058
15249
  "import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
15059
15250
  /**
15060
15251
  * Forbid import of modules using absolute paths.
15061
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-absolute-path.md
15252
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
15062
15253
  */
15063
15254
  "import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
15064
15255
  /**
15065
15256
  * Forbid AMD `require` and `define` calls.
15066
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-amd.md
15257
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
15067
15258
  */
15068
15259
  "import/no-amd"?: Linter.RuleEntry<[]>;
15069
15260
  /**
15070
15261
  * Forbid anonymous values as default exports.
15071
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-anonymous-default-export.md
15262
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
15072
15263
  */
15073
15264
  "import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
15074
15265
  /**
15075
15266
  * Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
15076
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-commonjs.md
15267
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
15077
15268
  */
15078
15269
  "import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
15079
15270
  /**
15080
15271
  * Forbid a module from importing a module with a dependency path back to itself.
15081
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-cycle.md
15272
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
15082
15273
  */
15083
15274
  "import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
15084
15275
  /**
15085
15276
  * Forbid default exports.
15086
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-default-export.md
15277
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
15087
15278
  */
15088
15279
  "import/no-default-export"?: Linter.RuleEntry<[]>;
15089
15280
  /**
15090
15281
  * Forbid imported names marked with `@deprecated` documentation tag.
15091
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-deprecated.md
15282
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
15092
15283
  */
15093
15284
  "import/no-deprecated"?: Linter.RuleEntry<[]>;
15094
15285
  /**
15095
15286
  * Forbid repeated import of the same module in multiple places.
15096
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-duplicates.md
15287
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
15097
15288
  */
15098
15289
  "import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
15099
15290
  /**
15100
15291
  * Forbid `require()` calls with expressions.
15101
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-dynamic-require.md
15292
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
15102
15293
  */
15103
15294
  "import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
15104
15295
  /**
15105
15296
  * Forbid empty named import blocks.
15106
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-empty-named-blocks.md
15297
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
15107
15298
  */
15108
15299
  "import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
15109
15300
  /**
15110
15301
  * Forbid the use of extraneous packages.
15111
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-extraneous-dependencies.md
15302
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
15112
15303
  */
15113
15304
  "import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
15114
15305
  /**
15115
15306
  * Forbid import statements with CommonJS module.exports.
15116
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-import-module-exports.md
15307
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
15117
15308
  */
15118
15309
  "import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
15119
15310
  /**
15120
15311
  * Forbid importing the submodules of other modules.
15121
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-internal-modules.md
15312
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
15122
15313
  */
15123
15314
  "import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
15124
15315
  /**
15125
15316
  * Forbid the use of mutable exports with `var` or `let`.
15126
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-mutable-exports.md
15317
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
15127
15318
  */
15128
15319
  "import/no-mutable-exports"?: Linter.RuleEntry<[]>;
15129
15320
  /**
15130
15321
  * Forbid use of exported name as identifier of default export.
15131
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default.md
15322
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
15132
15323
  */
15133
15324
  "import/no-named-as-default"?: Linter.RuleEntry<[]>;
15134
15325
  /**
15135
15326
  * Forbid use of exported name as property of default export.
15136
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-as-default-member.md
15327
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
15137
15328
  */
15138
15329
  "import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
15139
15330
  /**
15140
15331
  * Forbid named default exports.
15141
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-default.md
15332
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
15142
15333
  */
15143
15334
  "import/no-named-default"?: Linter.RuleEntry<[]>;
15144
15335
  /**
15145
15336
  * Forbid named exports.
15146
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-named-export.md
15337
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
15147
15338
  */
15148
15339
  "import/no-named-export"?: Linter.RuleEntry<[]>;
15149
15340
  /**
15150
15341
  * Forbid namespace (a.k.a. "wildcard" `*`) imports.
15151
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-namespace.md
15342
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
15152
15343
  */
15153
15344
  "import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
15154
15345
  /**
15155
15346
  * Forbid Node.js builtin modules.
15156
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-nodejs-modules.md
15347
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
15157
15348
  */
15158
15349
  "import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
15159
15350
  /**
15160
15351
  * Forbid importing packages through relative paths.
15161
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-packages.md
15352
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
15162
15353
  */
15163
15354
  "import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
15164
15355
  /**
15165
15356
  * Forbid importing modules from parent directories.
15166
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-relative-parent-imports.md
15357
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
15167
15358
  */
15168
15359
  "import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
15169
15360
  /**
15170
15361
  * Forbid importing a default export by a different name.
15171
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-rename-default.md
15362
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
15172
15363
  */
15173
15364
  "import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
15174
15365
  /**
15175
15366
  * Enforce which files can be imported in a given folder.
15176
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-restricted-paths.md
15367
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
15177
15368
  */
15178
15369
  "import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
15179
15370
  /**
15180
15371
  * Forbid a module from importing itself.
15181
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-self-import.md
15372
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
15182
15373
  */
15183
15374
  "import/no-self-import"?: Linter.RuleEntry<[]>;
15184
15375
  /**
15185
15376
  * Forbid unassigned imports.
15186
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unassigned-import.md
15377
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
15187
15378
  */
15188
15379
  "import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
15189
15380
  /**
15190
15381
  * Ensure imports point to a file/module that can be resolved.
15191
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unresolved.md
15382
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
15192
15383
  */
15193
15384
  "import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
15194
15385
  /**
15195
15386
  * Forbid modules without exports, or exports without matching import in another module.
15196
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-unused-modules.md
15387
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
15197
15388
  */
15198
15389
  "import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
15199
15390
  /**
15200
15391
  * Forbid unnecessary path segments in import and require statements.
15201
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-useless-path-segments.md
15392
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
15202
15393
  */
15203
15394
  "import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
15204
15395
  /**
15205
15396
  * Forbid webpack loader syntax in imports.
15206
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/no-webpack-loader-syntax.md
15397
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
15207
15398
  */
15208
15399
  "import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
15209
15400
  /**
15210
15401
  * Enforce a convention in module import order.
15211
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/order.md
15402
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
15212
15403
  */
15213
15404
  "import/order"?: Linter.RuleEntry<ImportOrder>;
15214
15405
  /**
15215
15406
  * Prefer a default export if module exports a single name or multiple names.
15216
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/prefer-default-export.md
15407
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
15217
15408
  */
15218
15409
  "import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
15219
15410
  /**
15220
15411
  * Forbid potentially ambiguous parse goal (`script` vs. `module`).
15221
- * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.1.1/docs/rules/unambiguous.md
15412
+ * @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
15222
15413
  */
15223
15414
  "import/unambiguous"?: Linter.RuleEntry<[]>;
15224
15415
  }
@@ -18688,6 +18879,24 @@ type TypescriptEslintRestrictTemplateExpressions =
18688
18879
  allowRegExp?: boolean;
18689
18880
 
18690
18881
  allowNever?: boolean;
18882
+
18883
+ allow?: (
18884
+ | string
18885
+ | {
18886
+ from: "file";
18887
+ name: string | [string, ...string[]];
18888
+ path?: string;
18889
+ }
18890
+ | {
18891
+ from: "lib";
18892
+ name: string | [string, ...string[]];
18893
+ }
18894
+ | {
18895
+ from: "package";
18896
+ name: string | [string, ...string[]];
18897
+ package: string;
18898
+ }
18899
+ )[];
18691
18900
  },
18692
18901
  ];
18693
18902
  // ----- @typescript-eslint/return-await -----
@@ -18998,6 +19207,7 @@ type ImportNoExtraneousDependencies =
18998
19207
  packageDir?: string | unknown[];
18999
19208
  includeInternal?: boolean;
19000
19209
  includeTypes?: boolean;
19210
+ whitelist?: unknown[];
19001
19211
  },
19002
19212
  ];
19003
19213
  // ----- import/no-import-module-exports -----
@@ -20674,6 +20884,8 @@ type YamlSpacedComment =
20674
20884
  },
20675
20885
  ];
20676
20886
 
20887
+ /* eslint-disable perfectionist/sort-imports */
20888
+ /* eslint-disable perfectionist/sort-exports */
20677
20889
  // generated by scripts/typegen-v2.ts
20678
20890
 
20679
20891
 
@@ -20881,6 +21093,10 @@ type OptionsConfig = {
20881
21093
  */
20882
21094
  gitignore?: boolean | FlatGitignoreOptions;
20883
21095
  tsPrefix?: string;
21096
+ /**
21097
+ * Glob patterns for ADDITIONAL tsconfig files to lint (aka sort)
21098
+ */
21099
+ extendTsconfigLintGlobs?: string[];
20884
21100
  typeAware?: boolean;
20885
21101
  /**
20886
21102
  * Enable TypeScript support.
@@ -20972,8 +21188,10 @@ declare const GLOB_JSON5 = "**/*.json5";
20972
21188
  declare const GLOB_JSONC = "**/*.jsonc";
20973
21189
  declare const GLOB_TOML = "**/*.toml";
20974
21190
  declare const GLOB_MARKDOWN = "**/*.md";
21191
+ declare const GLOB_GRAPHQL: string[];
20975
21192
  declare const GLOB_YAML = "**/*.y?(a)ml";
20976
21193
  declare const GLOB_HTML = "**/*.htm?(l)";
21194
+ declare const GLOB_TSCONFIG: string[];
20977
21195
  declare const GLOB_MARKDOWN_CODE = "**/*.md/**/*.?([cm])[jt]s?(x)";
20978
21196
  declare const GLOB_TESTS: string[];
20979
21197
  declare const GLOB_ALL_SRC: string[];
@@ -21948,6 +22166,9 @@ declare function importPluginTailwind(): Promise<{
21948
22166
  pluginTailwind: any;
21949
22167
  }>;
21950
22168
 
22169
+ declare function jssestd(): Promise<TypedFlatConfigItem[]>;
22170
+ declare function jsseReact(): Promise<TypedFlatConfigItem[]>;
22171
+
21951
22172
  /**
21952
22173
  * Combine array and non-array configs into a single array.
21953
22174
  */
@@ -21962,8 +22183,11 @@ declare function interopDefault<T>(m: Awaitable<T>): Promise<T extends {
21962
22183
  } ? U : T>;
21963
22184
  declare function isCI(): boolean;
21964
22185
  declare function isInEditor(): boolean;
22186
+ /**
22187
+ * Make an array of strings unique maintaining order.
22188
+ * @param strings strings to make unique
22189
+ * @returns unique strings
22190
+ */
22191
+ declare function uniqueStrings(...strings: (string | string[])[]): string[];
21965
22192
 
21966
- declare function jssestd(): Promise<TypedFlatConfigItem[]>;
21967
- declare function jsseReact(): Promise<TypedFlatConfigItem[]>;
21968
-
21969
- export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type Rules, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, combine, combineAsync, jsse as default, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, jssestd, renameRules };
22193
+ export { type Awaitable, type EslintConfigFn, GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_YAML, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type Rules, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, combine, combineAsync, jsse as default, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, jssestd, renameRules, uniqueStrings };