@jsse/eslint-config 0.2.25 → 0.2.26
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/CHANGELOG.md +189 -0
- package/LICENSE +1 -1
- package/dist/cli.cjs +28 -5
- package/dist/cli.js +28 -5
- package/dist/esm/cli.js +30 -4
- package/dist/esm/config-fns.d.ts +2 -0
- package/dist/esm/config-fns.js +4 -0
- package/dist/esm/configs/command.d.ts +10 -0
- package/dist/esm/configs/command.js +17 -0
- package/dist/esm/configs/sort-tsconfig.js +0 -1
- package/dist/esm/configs/tailwind.js +1 -1
- package/dist/esm/const.js +15 -0
- package/dist/esm/define-config.js +7 -3
- package/dist/esm/generated/version.d.ts +1 -0
- package/dist/esm/generated/version.js +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/lager.d.ts +0 -1
- package/dist/esm/lager.js +0 -1
- package/dist/esm/log.d.ts +2 -0
- package/dist/esm/log.js +2 -0
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/utils.js +1 -1
- package/dist/index.cjs +78 -60
- package/dist/index.d.cts +190 -138
- package/dist/index.d.ts +190 -138
- package/dist/index.js +80 -35
- package/package.json +22 -20
package/dist/index.d.ts
CHANGED
|
@@ -4348,233 +4348,233 @@ interface IgnoresRuleOptions {}
|
|
|
4348
4348
|
interface ImportsRuleOptions {
|
|
4349
4349
|
/**
|
|
4350
4350
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/consistent-type-specifier-style.md
|
|
4352
4352
|
*/
|
|
4353
4353
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4354
4354
|
/**
|
|
4355
4355
|
* Ensure a default export is present, given a default import.
|
|
4356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/default.md
|
|
4357
4357
|
*/
|
|
4358
4358
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4359
4359
|
/**
|
|
4360
4360
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/dynamic-import-chunkname.md
|
|
4362
4362
|
*/
|
|
4363
4363
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4364
4364
|
/**
|
|
4365
4365
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/export.md
|
|
4367
4367
|
*/
|
|
4368
4368
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4369
4369
|
/**
|
|
4370
4370
|
* Ensure all exports appear after other statements.
|
|
4371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/exports-last.md
|
|
4372
4372
|
*/
|
|
4373
4373
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4374
4374
|
/**
|
|
4375
4375
|
* Ensure consistent use of file extension within the import path.
|
|
4376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/extensions.md
|
|
4377
4377
|
*/
|
|
4378
4378
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4379
4379
|
/**
|
|
4380
4380
|
* Ensure all imports appear before other statements.
|
|
4381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/first.md
|
|
4382
4382
|
*/
|
|
4383
4383
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4384
4384
|
/**
|
|
4385
4385
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/group-exports.md
|
|
4387
4387
|
*/
|
|
4388
4388
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4389
4389
|
/**
|
|
4390
4390
|
* Replaced by `import-x/first`.
|
|
4391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/imports-first.md
|
|
4392
4392
|
* @deprecated
|
|
4393
4393
|
*/
|
|
4394
4394
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Enforce the maximum number of dependencies a module can have.
|
|
4397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/max-dependencies.md
|
|
4398
4398
|
*/
|
|
4399
4399
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4400
4400
|
/**
|
|
4401
4401
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/named.md
|
|
4403
4403
|
*/
|
|
4404
4404
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/namespace.md
|
|
4408
4408
|
*/
|
|
4409
4409
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4410
4410
|
/**
|
|
4411
4411
|
* Enforce a newline after import statements.
|
|
4412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/newline-after-import.md
|
|
4413
4413
|
*/
|
|
4414
4414
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Forbid import of modules using absolute paths.
|
|
4417
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-absolute-path.md
|
|
4418
4418
|
*/
|
|
4419
4419
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4420
4420
|
/**
|
|
4421
4421
|
* Forbid AMD `require` and `define` calls.
|
|
4422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-amd.md
|
|
4423
4423
|
*/
|
|
4424
4424
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4425
4425
|
/**
|
|
4426
4426
|
* Forbid anonymous values as default exports.
|
|
4427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-anonymous-default-export.md
|
|
4428
4428
|
*/
|
|
4429
4429
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4430
4430
|
/**
|
|
4431
4431
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4432
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4432
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-commonjs.md
|
|
4433
4433
|
*/
|
|
4434
4434
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4435
4435
|
/**
|
|
4436
4436
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4437
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4437
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-cycle.md
|
|
4438
4438
|
*/
|
|
4439
4439
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4440
4440
|
/**
|
|
4441
4441
|
* Forbid default exports.
|
|
4442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4442
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-default-export.md
|
|
4443
4443
|
*/
|
|
4444
4444
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4447
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-deprecated.md
|
|
4448
4448
|
*/
|
|
4449
4449
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4450
4450
|
/**
|
|
4451
4451
|
* Forbid repeated import of the same module in multiple places.
|
|
4452
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4452
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-duplicates.md
|
|
4453
4453
|
*/
|
|
4454
4454
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4455
4455
|
/**
|
|
4456
4456
|
* Forbid `require()` calls with expressions.
|
|
4457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4457
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-dynamic-require.md
|
|
4458
4458
|
*/
|
|
4459
4459
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4460
4460
|
/**
|
|
4461
4461
|
* Forbid empty named import blocks.
|
|
4462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4462
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-empty-named-blocks.md
|
|
4463
4463
|
*/
|
|
4464
4464
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4465
4465
|
/**
|
|
4466
4466
|
* Forbid the use of extraneous packages.
|
|
4467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4467
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-extraneous-dependencies.md
|
|
4468
4468
|
*/
|
|
4469
4469
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Forbid import statements with CommonJS module.exports.
|
|
4472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4472
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-import-module-exports.md
|
|
4473
4473
|
*/
|
|
4474
4474
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Forbid importing the submodules of other modules.
|
|
4477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4477
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-internal-modules.md
|
|
4478
4478
|
*/
|
|
4479
4479
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4482
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4482
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-mutable-exports.md
|
|
4483
4483
|
*/
|
|
4484
4484
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4485
4485
|
/**
|
|
4486
4486
|
* Forbid use of exported name as identifier of default export.
|
|
4487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4487
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default.md
|
|
4488
4488
|
*/
|
|
4489
4489
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4490
4490
|
/**
|
|
4491
4491
|
* Forbid use of exported name as property of default export.
|
|
4492
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4492
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default-member.md
|
|
4493
4493
|
*/
|
|
4494
4494
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4495
4495
|
/**
|
|
4496
4496
|
* Forbid named default exports.
|
|
4497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4497
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-default.md
|
|
4498
4498
|
*/
|
|
4499
4499
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4500
4500
|
/**
|
|
4501
4501
|
* Forbid named exports.
|
|
4502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4502
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-export.md
|
|
4503
4503
|
*/
|
|
4504
4504
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4505
4505
|
/**
|
|
4506
4506
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4507
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-namespace.md
|
|
4508
4508
|
*/
|
|
4509
4509
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4510
4510
|
/**
|
|
4511
4511
|
* Forbid Node.js builtin modules.
|
|
4512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4512
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-nodejs-modules.md
|
|
4513
4513
|
*/
|
|
4514
4514
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4515
4515
|
/**
|
|
4516
4516
|
* Forbid importing packages through relative paths.
|
|
4517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4517
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-packages.md
|
|
4518
4518
|
*/
|
|
4519
4519
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4520
4520
|
/**
|
|
4521
4521
|
* Forbid importing modules from parent directories.
|
|
4522
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4522
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-parent-imports.md
|
|
4523
4523
|
*/
|
|
4524
4524
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4525
4525
|
/**
|
|
4526
4526
|
* Forbid importing a default export by a different name.
|
|
4527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4527
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-rename-default.md
|
|
4528
4528
|
*/
|
|
4529
4529
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4530
4530
|
/**
|
|
4531
4531
|
* Enforce which files can be imported in a given folder.
|
|
4532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4532
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-restricted-paths.md
|
|
4533
4533
|
*/
|
|
4534
4534
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4535
4535
|
/**
|
|
4536
4536
|
* Forbid a module from importing itself.
|
|
4537
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4537
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-self-import.md
|
|
4538
4538
|
*/
|
|
4539
4539
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4540
4540
|
/**
|
|
4541
4541
|
* Forbid unassigned imports.
|
|
4542
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4542
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unassigned-import.md
|
|
4543
4543
|
*/
|
|
4544
4544
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4545
4545
|
/**
|
|
4546
4546
|
* Ensure imports point to a file/module that can be resolved.
|
|
4547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4547
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unresolved.md
|
|
4548
4548
|
*/
|
|
4549
4549
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4550
4550
|
/**
|
|
4551
4551
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4552
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4552
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unused-modules.md
|
|
4553
4553
|
*/
|
|
4554
4554
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4555
4555
|
/**
|
|
4556
4556
|
* Forbid unnecessary path segments in import and require statements.
|
|
4557
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4557
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-useless-path-segments.md
|
|
4558
4558
|
*/
|
|
4559
4559
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4560
4560
|
/**
|
|
4561
4561
|
* Forbid webpack loader syntax in imports.
|
|
4562
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4562
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-webpack-loader-syntax.md
|
|
4563
4563
|
*/
|
|
4564
4564
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4565
4565
|
/**
|
|
4566
4566
|
* Enforce a convention in module import order.
|
|
4567
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4567
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/order.md
|
|
4568
4568
|
*/
|
|
4569
4569
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4570
4570
|
/**
|
|
4571
4571
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4572
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4572
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/prefer-default-export.md
|
|
4573
4573
|
*/
|
|
4574
4574
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4575
4575
|
/**
|
|
4576
4576
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4577
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
4577
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/unambiguous.md
|
|
4578
4578
|
*/
|
|
4579
4579
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4580
4580
|
}
|
|
@@ -4624,15 +4624,15 @@ type ImportExtensions$1 =
|
|
|
4624
4624
|
},
|
|
4625
4625
|
]
|
|
4626
4626
|
| []
|
|
4627
|
+
| ["always" | "ignorePackages" | "never"]
|
|
4627
4628
|
| [
|
|
4629
|
+
"always" | "ignorePackages" | "never",
|
|
4628
4630
|
{
|
|
4629
4631
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4630
4632
|
},
|
|
4631
4633
|
]
|
|
4632
4634
|
| []
|
|
4633
|
-
| ["always" | "ignorePackages" | "never"]
|
|
4634
4635
|
| [
|
|
4635
|
-
"always" | "ignorePackages" | "never",
|
|
4636
4636
|
{
|
|
4637
4637
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4638
4638
|
},
|
|
@@ -8428,6 +8428,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8428
8428
|
| "CloseEvent"
|
|
8429
8429
|
| "CustomEvent"
|
|
8430
8430
|
| "Event"
|
|
8431
|
+
| "EventSource"
|
|
8431
8432
|
| "EventTarget"
|
|
8432
8433
|
| "PerformanceEntry"
|
|
8433
8434
|
| "PerformanceMark"
|
|
@@ -9133,10 +9134,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9133
9134
|
| "http.Server"
|
|
9134
9135
|
| "inspector"
|
|
9135
9136
|
| "inspector.Session"
|
|
9137
|
+
| "inspector.Network.loadingFailed"
|
|
9138
|
+
| "inspector.Network.loadingFinished"
|
|
9136
9139
|
| "inspector.Network.requestWillBeSent"
|
|
9137
9140
|
| "inspector.Network.responseReceived"
|
|
9138
|
-
| "inspector.Network.loadingFinished"
|
|
9139
|
-
| "inspector.Network.loadingFailed"
|
|
9140
9141
|
| "inspector.console"
|
|
9141
9142
|
| "inspector.close"
|
|
9142
9143
|
| "inspector.open"
|
|
@@ -9434,55 +9435,42 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9434
9435
|
| "string_decoder"
|
|
9435
9436
|
| "string_decoder.StringDecoder"
|
|
9436
9437
|
| "test"
|
|
9437
|
-
| "test.
|
|
9438
|
-
| "test.
|
|
9439
|
-
| "test.
|
|
9440
|
-
| "test.
|
|
9438
|
+
| "test.after"
|
|
9439
|
+
| "test.afterEach"
|
|
9440
|
+
| "test.before"
|
|
9441
|
+
| "test.beforeEach"
|
|
9441
9442
|
| "test.describe"
|
|
9443
|
+
| "test.describe.only"
|
|
9442
9444
|
| "test.describe.skip"
|
|
9443
9445
|
| "test.describe.todo"
|
|
9444
|
-
| "test.describe.only"
|
|
9445
9446
|
| "test.it"
|
|
9447
|
+
| "test.it.only"
|
|
9446
9448
|
| "test.it.skip"
|
|
9447
9449
|
| "test.it.todo"
|
|
9448
|
-
| "test.
|
|
9449
|
-
| "test.
|
|
9450
|
-
| "test.
|
|
9451
|
-
| "test.
|
|
9452
|
-
| "test.
|
|
9453
|
-
| "test.
|
|
9454
|
-
| "test.
|
|
9455
|
-
| "test.
|
|
9456
|
-
| "test.
|
|
9450
|
+
| "test.mock"
|
|
9451
|
+
| "test.mock.fn"
|
|
9452
|
+
| "test.mock.getter"
|
|
9453
|
+
| "test.mock.method"
|
|
9454
|
+
| "test.mock.module"
|
|
9455
|
+
| "test.mock.reset"
|
|
9456
|
+
| "test.mock.restoreAll"
|
|
9457
|
+
| "test.mock.setter"
|
|
9458
|
+
| "test.mock.timers"
|
|
9459
|
+
| "test.mock.timers.enable"
|
|
9460
|
+
| "test.mock.timers.reset"
|
|
9461
|
+
| "test.mock.timers.tick"
|
|
9462
|
+
| "test.only"
|
|
9463
|
+
| "test.run"
|
|
9457
9464
|
| "test.snapshot"
|
|
9458
9465
|
| "test.snapshot.setDefaultSnapshotSerializers"
|
|
9459
9466
|
| "test.snapshot.setResolveSnapshotPath"
|
|
9460
|
-
| "test.
|
|
9461
|
-
| "test.
|
|
9462
|
-
| "test.
|
|
9463
|
-
| "test.
|
|
9464
|
-
| "test.TestsStream"
|
|
9465
|
-
| "test.TestContext"
|
|
9466
|
-
| "test.SuiteContext"
|
|
9467
|
-
| "test.test.run"
|
|
9467
|
+
| "test.skip"
|
|
9468
|
+
| "test.suite"
|
|
9469
|
+
| "test.test"
|
|
9470
|
+
| "test.test.only"
|
|
9468
9471
|
| "test.test.skip"
|
|
9469
9472
|
| "test.test.todo"
|
|
9470
|
-
| "test.
|
|
9471
|
-
| "test.test.describe"
|
|
9472
|
-
| "test.test.it"
|
|
9473
|
-
| "test.test.suite"
|
|
9474
|
-
| "test.test.before"
|
|
9475
|
-
| "test.test.after"
|
|
9476
|
-
| "test.test.beforeEach"
|
|
9477
|
-
| "test.test.afterEach"
|
|
9478
|
-
| "test.test.snapshot"
|
|
9479
|
-
| "test.test.MockFunctionContext"
|
|
9480
|
-
| "test.test.MockModuleContext"
|
|
9481
|
-
| "test.test.MockTracker"
|
|
9482
|
-
| "test.test.MockTimers"
|
|
9483
|
-
| "test.test.TestsStream"
|
|
9484
|
-
| "test.test.TestContext"
|
|
9485
|
-
| "test.test.SuiteContext"
|
|
9473
|
+
| "test.todo"
|
|
9486
9474
|
| "timers"
|
|
9487
9475
|
| "timers.Immediate"
|
|
9488
9476
|
| "timers.Timeout"
|
|
@@ -14672,6 +14660,11 @@ interface VitestRuleOptions {
|
|
|
14672
14660
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
14673
14661
|
*/
|
|
14674
14662
|
"vitest/valid-expect"?: Linter.RuleEntry<VitestValidExpect>;
|
|
14663
|
+
/**
|
|
14664
|
+
* Require promises that have expectations in their chain to be valid
|
|
14665
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
|
|
14666
|
+
*/
|
|
14667
|
+
"vitest/valid-expect-in-promise"?: Linter.RuleEntry<[]>;
|
|
14675
14668
|
/**
|
|
14676
14669
|
* enforce valid titles
|
|
14677
14670
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
@@ -14703,7 +14696,7 @@ type VitestExpectExpect =
|
|
|
14703
14696
|
| []
|
|
14704
14697
|
| [
|
|
14705
14698
|
{
|
|
14706
|
-
assertFunctionNames?: []
|
|
14699
|
+
assertFunctionNames?: string[];
|
|
14707
14700
|
additionalTestBlockFunctions?: string[];
|
|
14708
14701
|
},
|
|
14709
14702
|
];
|
|
@@ -15708,233 +15701,233 @@ interface TypescriptRuleOptions {
|
|
|
15708
15701
|
>;
|
|
15709
15702
|
/**
|
|
15710
15703
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
15711
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/consistent-type-specifier-style.md
|
|
15712
15705
|
*/
|
|
15713
15706
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
15714
15707
|
/**
|
|
15715
15708
|
* Ensure a default export is present, given a default import.
|
|
15716
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/default.md
|
|
15717
15710
|
*/
|
|
15718
15711
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15719
15712
|
/**
|
|
15720
15713
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15721
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/dynamic-import-chunkname.md
|
|
15722
15715
|
*/
|
|
15723
15716
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15724
15717
|
/**
|
|
15725
15718
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
15726
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/export.md
|
|
15727
15720
|
*/
|
|
15728
15721
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15729
15722
|
/**
|
|
15730
15723
|
* Ensure all exports appear after other statements.
|
|
15731
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/exports-last.md
|
|
15732
15725
|
*/
|
|
15733
15726
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15734
15727
|
/**
|
|
15735
15728
|
* Ensure consistent use of file extension within the import path.
|
|
15736
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/extensions.md
|
|
15737
15730
|
*/
|
|
15738
15731
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15739
15732
|
/**
|
|
15740
15733
|
* Ensure all imports appear before other statements.
|
|
15741
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/first.md
|
|
15742
15735
|
*/
|
|
15743
15736
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15744
15737
|
/**
|
|
15745
15738
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
15746
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/group-exports.md
|
|
15747
15740
|
*/
|
|
15748
15741
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15749
15742
|
/**
|
|
15750
15743
|
* Replaced by `import-x/first`.
|
|
15751
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/imports-first.md
|
|
15752
15745
|
* @deprecated
|
|
15753
15746
|
*/
|
|
15754
15747
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15755
15748
|
/**
|
|
15756
15749
|
* Enforce the maximum number of dependencies a module can have.
|
|
15757
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15750
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/max-dependencies.md
|
|
15758
15751
|
*/
|
|
15759
15752
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15760
15753
|
/**
|
|
15761
15754
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15762
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15755
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/named.md
|
|
15763
15756
|
*/
|
|
15764
15757
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15765
15758
|
/**
|
|
15766
15759
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15767
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15760
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/namespace.md
|
|
15768
15761
|
*/
|
|
15769
15762
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15770
15763
|
/**
|
|
15771
15764
|
* Enforce a newline after import statements.
|
|
15772
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15765
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/newline-after-import.md
|
|
15773
15766
|
*/
|
|
15774
15767
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15775
15768
|
/**
|
|
15776
15769
|
* Forbid import of modules using absolute paths.
|
|
15777
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-absolute-path.md
|
|
15778
15771
|
*/
|
|
15779
15772
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15780
15773
|
/**
|
|
15781
15774
|
* Forbid AMD `require` and `define` calls.
|
|
15782
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-amd.md
|
|
15783
15776
|
*/
|
|
15784
15777
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15785
15778
|
/**
|
|
15786
15779
|
* Forbid anonymous values as default exports.
|
|
15787
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-anonymous-default-export.md
|
|
15788
15781
|
*/
|
|
15789
15782
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15790
15783
|
/**
|
|
15791
15784
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15792
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-commonjs.md
|
|
15793
15786
|
*/
|
|
15794
15787
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15795
15788
|
/**
|
|
15796
15789
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15797
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-cycle.md
|
|
15798
15791
|
*/
|
|
15799
15792
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15800
15793
|
/**
|
|
15801
15794
|
* Forbid default exports.
|
|
15802
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-default-export.md
|
|
15803
15796
|
*/
|
|
15804
15797
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15805
15798
|
/**
|
|
15806
15799
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15807
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-deprecated.md
|
|
15808
15801
|
*/
|
|
15809
15802
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15810
15803
|
/**
|
|
15811
15804
|
* Forbid repeated import of the same module in multiple places.
|
|
15812
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-duplicates.md
|
|
15813
15806
|
*/
|
|
15814
15807
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15815
15808
|
/**
|
|
15816
15809
|
* Forbid `require()` calls with expressions.
|
|
15817
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-dynamic-require.md
|
|
15818
15811
|
*/
|
|
15819
15812
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15820
15813
|
/**
|
|
15821
15814
|
* Forbid empty named import blocks.
|
|
15822
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-empty-named-blocks.md
|
|
15823
15816
|
*/
|
|
15824
15817
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15825
15818
|
/**
|
|
15826
15819
|
* Forbid the use of extraneous packages.
|
|
15827
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-extraneous-dependencies.md
|
|
15828
15821
|
*/
|
|
15829
15822
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15830
15823
|
/**
|
|
15831
15824
|
* Forbid import statements with CommonJS module.exports.
|
|
15832
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-import-module-exports.md
|
|
15833
15826
|
*/
|
|
15834
15827
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15835
15828
|
/**
|
|
15836
15829
|
* Forbid importing the submodules of other modules.
|
|
15837
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-internal-modules.md
|
|
15838
15831
|
*/
|
|
15839
15832
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15840
15833
|
/**
|
|
15841
15834
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15842
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-mutable-exports.md
|
|
15843
15836
|
*/
|
|
15844
15837
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15845
15838
|
/**
|
|
15846
15839
|
* Forbid use of exported name as identifier of default export.
|
|
15847
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default.md
|
|
15848
15841
|
*/
|
|
15849
15842
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15850
15843
|
/**
|
|
15851
15844
|
* Forbid use of exported name as property of default export.
|
|
15852
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default-member.md
|
|
15853
15846
|
*/
|
|
15854
15847
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15855
15848
|
/**
|
|
15856
15849
|
* Forbid named default exports.
|
|
15857
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-default.md
|
|
15858
15851
|
*/
|
|
15859
15852
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15860
15853
|
/**
|
|
15861
15854
|
* Forbid named exports.
|
|
15862
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-export.md
|
|
15863
15856
|
*/
|
|
15864
15857
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15865
15858
|
/**
|
|
15866
15859
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15867
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-namespace.md
|
|
15868
15861
|
*/
|
|
15869
15862
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15870
15863
|
/**
|
|
15871
15864
|
* Forbid Node.js builtin modules.
|
|
15872
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-nodejs-modules.md
|
|
15873
15866
|
*/
|
|
15874
15867
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15875
15868
|
/**
|
|
15876
15869
|
* Forbid importing packages through relative paths.
|
|
15877
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-packages.md
|
|
15878
15871
|
*/
|
|
15879
15872
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15880
15873
|
/**
|
|
15881
15874
|
* Forbid importing modules from parent directories.
|
|
15882
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-parent-imports.md
|
|
15883
15876
|
*/
|
|
15884
15877
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15885
15878
|
/**
|
|
15886
15879
|
* Forbid importing a default export by a different name.
|
|
15887
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-rename-default.md
|
|
15888
15881
|
*/
|
|
15889
15882
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15890
15883
|
/**
|
|
15891
15884
|
* Enforce which files can be imported in a given folder.
|
|
15892
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-restricted-paths.md
|
|
15893
15886
|
*/
|
|
15894
15887
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15895
15888
|
/**
|
|
15896
15889
|
* Forbid a module from importing itself.
|
|
15897
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-self-import.md
|
|
15898
15891
|
*/
|
|
15899
15892
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15900
15893
|
/**
|
|
15901
15894
|
* Forbid unassigned imports.
|
|
15902
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unassigned-import.md
|
|
15903
15896
|
*/
|
|
15904
15897
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15905
15898
|
/**
|
|
15906
15899
|
* Ensure imports point to a file/module that can be resolved.
|
|
15907
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unresolved.md
|
|
15908
15901
|
*/
|
|
15909
15902
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15910
15903
|
/**
|
|
15911
15904
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15912
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unused-modules.md
|
|
15913
15906
|
*/
|
|
15914
15907
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15915
15908
|
/**
|
|
15916
15909
|
* Forbid unnecessary path segments in import and require statements.
|
|
15917
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-useless-path-segments.md
|
|
15918
15911
|
*/
|
|
15919
15912
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15920
15913
|
/**
|
|
15921
15914
|
* Forbid webpack loader syntax in imports.
|
|
15922
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-webpack-loader-syntax.md
|
|
15923
15916
|
*/
|
|
15924
15917
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15925
15918
|
/**
|
|
15926
15919
|
* Enforce a convention in module import order.
|
|
15927
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/order.md
|
|
15928
15921
|
*/
|
|
15929
15922
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15930
15923
|
/**
|
|
15931
15924
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15932
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/prefer-default-export.md
|
|
15933
15926
|
*/
|
|
15934
15927
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15935
15928
|
/**
|
|
15936
15929
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15937
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.
|
|
15930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/unambiguous.md
|
|
15938
15931
|
*/
|
|
15939
15932
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15940
15933
|
}
|
|
@@ -18694,6 +18687,8 @@ type TypescriptEslintNoConfusingVoidExpression =
|
|
|
18694
18687
|
ignoreArrowShorthand?: boolean;
|
|
18695
18688
|
|
|
18696
18689
|
ignoreVoidOperator?: boolean;
|
|
18690
|
+
|
|
18691
|
+
ignoreVoidReturningFunctions?: boolean;
|
|
18697
18692
|
},
|
|
18698
18693
|
];
|
|
18699
18694
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
@@ -19173,6 +19168,24 @@ type TypescriptEslintOnlyThrowError =
|
|
|
19173
19168
|
| []
|
|
19174
19169
|
| [
|
|
19175
19170
|
{
|
|
19171
|
+
allow?: (
|
|
19172
|
+
| string
|
|
19173
|
+
| {
|
|
19174
|
+
from: "file";
|
|
19175
|
+
name: string | [string, ...string[]];
|
|
19176
|
+
path?: string;
|
|
19177
|
+
}
|
|
19178
|
+
| {
|
|
19179
|
+
from: "lib";
|
|
19180
|
+
name: string | [string, ...string[]];
|
|
19181
|
+
}
|
|
19182
|
+
| {
|
|
19183
|
+
from: "package";
|
|
19184
|
+
name: string | [string, ...string[]];
|
|
19185
|
+
package: string;
|
|
19186
|
+
}
|
|
19187
|
+
)[];
|
|
19188
|
+
|
|
19176
19189
|
allowThrowingAny?: boolean;
|
|
19177
19190
|
|
|
19178
19191
|
allowThrowingUnknown?: boolean;
|
|
@@ -19254,6 +19267,8 @@ type TypescriptEslintPreferNullishCoalescing =
|
|
|
19254
19267
|
{
|
|
19255
19268
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
19256
19269
|
|
|
19270
|
+
ignoreBooleanCoercion?: boolean;
|
|
19271
|
+
|
|
19257
19272
|
ignoreConditionalTests?: boolean;
|
|
19258
19273
|
|
|
19259
19274
|
ignoreMixedLogicalExpressions?: boolean;
|
|
@@ -19601,15 +19616,15 @@ type ImportExtensions =
|
|
|
19601
19616
|
},
|
|
19602
19617
|
]
|
|
19603
19618
|
| []
|
|
19619
|
+
| ["always" | "ignorePackages" | "never"]
|
|
19604
19620
|
| [
|
|
19621
|
+
"always" | "ignorePackages" | "never",
|
|
19605
19622
|
{
|
|
19606
19623
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19607
19624
|
},
|
|
19608
19625
|
]
|
|
19609
19626
|
| []
|
|
19610
|
-
| ["always" | "ignorePackages" | "never"]
|
|
19611
19627
|
| [
|
|
19612
|
-
"always" | "ignorePackages" | "never",
|
|
19613
19628
|
{
|
|
19614
19629
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19615
19630
|
},
|
|
@@ -21613,6 +21628,12 @@ type OptionsConfig = {
|
|
|
21613
21628
|
* Array of rules to turn off.
|
|
21614
21629
|
*/
|
|
21615
21630
|
off?: string[];
|
|
21631
|
+
/**
|
|
21632
|
+
* Enable `eslint-plugin-command`
|
|
21633
|
+
*
|
|
21634
|
+
* @default true
|
|
21635
|
+
*/
|
|
21636
|
+
command?: boolean;
|
|
21616
21637
|
/**
|
|
21617
21638
|
* Enable fast mode.
|
|
21618
21639
|
*
|
|
@@ -21734,6 +21755,8 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
|
|
|
21734
21755
|
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
21735
21756
|
type DefineConfig = typeof defineConfig;
|
|
21736
21757
|
|
|
21758
|
+
declare const VERSION = "0.2.26";
|
|
21759
|
+
|
|
21737
21760
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
21738
21761
|
declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
21739
21762
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -21760,6 +21783,35 @@ declare const GLOB_TESTS: string[];
|
|
|
21760
21783
|
declare const GLOB_ALL_SRC: string[];
|
|
21761
21784
|
declare const GLOB_EXCLUDE: string[];
|
|
21762
21785
|
|
|
21786
|
+
declare const globs_GLOB_ALL_SRC: typeof GLOB_ALL_SRC;
|
|
21787
|
+
declare const globs_GLOB_CSS: typeof GLOB_CSS;
|
|
21788
|
+
declare const globs_GLOB_EXCLUDE: typeof GLOB_EXCLUDE;
|
|
21789
|
+
declare const globs_GLOB_GRAPHQL: typeof GLOB_GRAPHQL;
|
|
21790
|
+
declare const globs_GLOB_HTML: typeof GLOB_HTML;
|
|
21791
|
+
declare const globs_GLOB_JS: typeof GLOB_JS;
|
|
21792
|
+
declare const globs_GLOB_JSON: typeof GLOB_JSON;
|
|
21793
|
+
declare const globs_GLOB_JSON5: typeof GLOB_JSON5;
|
|
21794
|
+
declare const globs_GLOB_JSONC: typeof GLOB_JSONC;
|
|
21795
|
+
declare const globs_GLOB_JSX: typeof GLOB_JSX;
|
|
21796
|
+
declare const globs_GLOB_JS_SRC_EXT: typeof GLOB_JS_SRC_EXT;
|
|
21797
|
+
declare const globs_GLOB_LESS: typeof GLOB_LESS;
|
|
21798
|
+
declare const globs_GLOB_MARKDOWN: typeof GLOB_MARKDOWN;
|
|
21799
|
+
declare const globs_GLOB_MARKDOWN_CODE: typeof GLOB_MARKDOWN_CODE;
|
|
21800
|
+
declare const globs_GLOB_MARKDOWN_IN_MARKDOWN: typeof GLOB_MARKDOWN_IN_MARKDOWN;
|
|
21801
|
+
declare const globs_GLOB_SCSS: typeof GLOB_SCSS;
|
|
21802
|
+
declare const globs_GLOB_SRC: typeof GLOB_SRC;
|
|
21803
|
+
declare const globs_GLOB_SRC_EXT: typeof GLOB_SRC_EXT;
|
|
21804
|
+
declare const globs_GLOB_STYLE: typeof GLOB_STYLE;
|
|
21805
|
+
declare const globs_GLOB_TESTS: typeof GLOB_TESTS;
|
|
21806
|
+
declare const globs_GLOB_TOML: typeof GLOB_TOML;
|
|
21807
|
+
declare const globs_GLOB_TS: typeof GLOB_TS;
|
|
21808
|
+
declare const globs_GLOB_TSCONFIG: typeof GLOB_TSCONFIG;
|
|
21809
|
+
declare const globs_GLOB_TSX: typeof GLOB_TSX;
|
|
21810
|
+
declare const globs_GLOB_YAML: typeof GLOB_YAML;
|
|
21811
|
+
declare namespace globs {
|
|
21812
|
+
export { globs_GLOB_ALL_SRC as GLOB_ALL_SRC, globs_GLOB_CSS as GLOB_CSS, globs_GLOB_EXCLUDE as GLOB_EXCLUDE, globs_GLOB_GRAPHQL as GLOB_GRAPHQL, globs_GLOB_HTML as GLOB_HTML, globs_GLOB_JS as GLOB_JS, globs_GLOB_JSON as GLOB_JSON, globs_GLOB_JSON5 as GLOB_JSON5, globs_GLOB_JSONC as GLOB_JSONC, globs_GLOB_JSX as GLOB_JSX, globs_GLOB_JS_SRC_EXT as GLOB_JS_SRC_EXT, globs_GLOB_LESS as GLOB_LESS, globs_GLOB_MARKDOWN as GLOB_MARKDOWN, globs_GLOB_MARKDOWN_CODE as GLOB_MARKDOWN_CODE, globs_GLOB_MARKDOWN_IN_MARKDOWN as GLOB_MARKDOWN_IN_MARKDOWN, globs_GLOB_SCSS as GLOB_SCSS, globs_GLOB_SRC as GLOB_SRC, globs_GLOB_SRC_EXT as GLOB_SRC_EXT, globs_GLOB_STYLE as GLOB_STYLE, globs_GLOB_TESTS as GLOB_TESTS, globs_GLOB_TOML as GLOB_TOML, globs_GLOB_TS as GLOB_TS, globs_GLOB_TSCONFIG as GLOB_TSCONFIG, globs_GLOB_TSX as GLOB_TSX, globs_GLOB_YAML as GLOB_YAML };
|
|
21813
|
+
}
|
|
21814
|
+
|
|
21763
21815
|
declare function importPluginReact(): Promise<{
|
|
21764
21816
|
pluginReact: {
|
|
21765
21817
|
deprecatedRules: Partial<{
|
|
@@ -23528,4 +23580,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
23528
23580
|
declare function error2warn<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
23529
23581
|
declare function warn2error<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
23530
23582
|
|
|
23531
|
-
export { type Awaitable, type EslintConfigFn,
|
|
23583
|
+
export { type Awaitable, type EslintConfigFn, 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 RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, renameRules, safeImportPluginTailwind, turnOffRules, uniqueStrings, warn2error };
|