@jsse/eslint-config 0.2.9 → 0.2.10
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/cli.cjs +1 -1
- package/dist/cli.js +3 -3
- package/dist/index.cjs +26 -0
- package/dist/index.d.cts +263 -99
- package/dist/index.d.ts +263 -99
- package/dist/index.js +41 -15
- package/package.json +29 -29
package/dist/index.d.ts
CHANGED
|
@@ -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.
|
|
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.
|
|
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
|
/**
|
|
@@ -4168,6 +4181,14 @@ interface AntfuRuleOptions {
|
|
|
4168
4181
|
}
|
|
4169
4182
|
|
|
4170
4183
|
/* ======= Declarations ======= */
|
|
4184
|
+
// ----- antfu/consistent-chaining -----
|
|
4185
|
+
type AntfuConsistentChaining =
|
|
4186
|
+
| []
|
|
4187
|
+
| [
|
|
4188
|
+
{
|
|
4189
|
+
allowLeadingPropertyAccess?: boolean;
|
|
4190
|
+
},
|
|
4191
|
+
];
|
|
4171
4192
|
// ----- antfu/consistent-list-newline -----
|
|
4172
4193
|
type AntfuConsistentListNewline =
|
|
4173
4194
|
| []
|
|
@@ -4318,233 +4339,233 @@ interface IgnoresRuleOptions {}
|
|
|
4318
4339
|
interface ImportsRuleOptions {
|
|
4319
4340
|
/**
|
|
4320
4341
|
* 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.
|
|
4342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
4322
4343
|
*/
|
|
4323
4344
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4324
4345
|
/**
|
|
4325
4346
|
* Ensure a default export is present, given a default import.
|
|
4326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
4327
4348
|
*/
|
|
4328
4349
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4329
4350
|
/**
|
|
4330
4351
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
4332
4353
|
*/
|
|
4333
4354
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4334
4355
|
/**
|
|
4335
4356
|
* 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.
|
|
4357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
4337
4358
|
*/
|
|
4338
4359
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4339
4360
|
/**
|
|
4340
4361
|
* Ensure all exports appear after other statements.
|
|
4341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
4342
4363
|
*/
|
|
4343
4364
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4344
4365
|
/**
|
|
4345
4366
|
* Ensure consistent use of file extension within the import path.
|
|
4346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
4347
4368
|
*/
|
|
4348
4369
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4349
4370
|
/**
|
|
4350
4371
|
* Ensure all imports appear before other statements.
|
|
4351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4372
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
4352
4373
|
*/
|
|
4353
4374
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4354
4375
|
/**
|
|
4355
4376
|
* 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.
|
|
4377
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
4357
4378
|
*/
|
|
4358
4379
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4359
4380
|
/**
|
|
4360
4381
|
* Replaced by `import-x/first`.
|
|
4361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4382
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
4362
4383
|
* @deprecated
|
|
4363
4384
|
*/
|
|
4364
4385
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4365
4386
|
/**
|
|
4366
4387
|
* Enforce the maximum number of dependencies a module can have.
|
|
4367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
4368
4389
|
*/
|
|
4369
4390
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4370
4391
|
/**
|
|
4371
4392
|
* 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.
|
|
4393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
4373
4394
|
*/
|
|
4374
4395
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4375
4396
|
/**
|
|
4376
4397
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4377
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
4378
4399
|
*/
|
|
4379
4400
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4380
4401
|
/**
|
|
4381
4402
|
* Enforce a newline after import statements.
|
|
4382
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
4383
4404
|
*/
|
|
4384
4405
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4385
4406
|
/**
|
|
4386
4407
|
* Forbid import of modules using absolute paths.
|
|
4387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
4388
4409
|
*/
|
|
4389
4410
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4390
4411
|
/**
|
|
4391
4412
|
* Forbid AMD `require` and `define` calls.
|
|
4392
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
4393
4414
|
*/
|
|
4394
4415
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4395
4416
|
/**
|
|
4396
4417
|
* Forbid anonymous values as default exports.
|
|
4397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
4398
4419
|
*/
|
|
4399
4420
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4400
4421
|
/**
|
|
4401
4422
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
4403
4424
|
*/
|
|
4404
4425
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4405
4426
|
/**
|
|
4406
4427
|
* 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.
|
|
4428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
4408
4429
|
*/
|
|
4409
4430
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4410
4431
|
/**
|
|
4411
4432
|
* Forbid default exports.
|
|
4412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
4413
4434
|
*/
|
|
4414
4435
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4415
4436
|
/**
|
|
4416
4437
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4417
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
4418
4439
|
*/
|
|
4419
4440
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4420
4441
|
/**
|
|
4421
4442
|
* Forbid repeated import of the same module in multiple places.
|
|
4422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
4423
4444
|
*/
|
|
4424
4445
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4425
4446
|
/**
|
|
4426
4447
|
* Forbid `require()` calls with expressions.
|
|
4427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
4428
4449
|
*/
|
|
4429
4450
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4430
4451
|
/**
|
|
4431
4452
|
* Forbid empty named import blocks.
|
|
4432
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
4433
4454
|
*/
|
|
4434
4455
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4435
4456
|
/**
|
|
4436
4457
|
* Forbid the use of extraneous packages.
|
|
4437
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
4438
4459
|
*/
|
|
4439
4460
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4440
4461
|
/**
|
|
4441
4462
|
* Forbid import statements with CommonJS module.exports.
|
|
4442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
4443
4464
|
*/
|
|
4444
4465
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4445
4466
|
/**
|
|
4446
4467
|
* Forbid importing the submodules of other modules.
|
|
4447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
4448
4469
|
*/
|
|
4449
4470
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4450
4471
|
/**
|
|
4451
4472
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4452
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
4453
4474
|
*/
|
|
4454
4475
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4455
4476
|
/**
|
|
4456
4477
|
* Forbid use of exported name as identifier of default export.
|
|
4457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
4458
4479
|
*/
|
|
4459
4480
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4460
4481
|
/**
|
|
4461
4482
|
* Forbid use of exported name as property of default export.
|
|
4462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
4463
4484
|
*/
|
|
4464
4485
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4465
4486
|
/**
|
|
4466
4487
|
* Forbid named default exports.
|
|
4467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
4468
4489
|
*/
|
|
4469
4490
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4470
4491
|
/**
|
|
4471
4492
|
* Forbid named exports.
|
|
4472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
4473
4494
|
*/
|
|
4474
4495
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4475
4496
|
/**
|
|
4476
4497
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
4478
4499
|
*/
|
|
4479
4500
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4480
4501
|
/**
|
|
4481
4502
|
* Forbid Node.js builtin modules.
|
|
4482
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
4483
4504
|
*/
|
|
4484
4505
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4485
4506
|
/**
|
|
4486
4507
|
* Forbid importing packages through relative paths.
|
|
4487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
4488
4509
|
*/
|
|
4489
4510
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4490
4511
|
/**
|
|
4491
4512
|
* Forbid importing modules from parent directories.
|
|
4492
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
4493
4514
|
*/
|
|
4494
4515
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4495
4516
|
/**
|
|
4496
4517
|
* Forbid importing a default export by a different name.
|
|
4497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
4498
4519
|
*/
|
|
4499
4520
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4500
4521
|
/**
|
|
4501
4522
|
* Enforce which files can be imported in a given folder.
|
|
4502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
4503
4524
|
*/
|
|
4504
4525
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4505
4526
|
/**
|
|
4506
4527
|
* Forbid a module from importing itself.
|
|
4507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
4508
4529
|
*/
|
|
4509
4530
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4510
4531
|
/**
|
|
4511
4532
|
* Forbid unassigned imports.
|
|
4512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
4513
4534
|
*/
|
|
4514
4535
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4515
4536
|
/**
|
|
4516
4537
|
* Ensure imports point to a file/module that can be resolved.
|
|
4517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
4518
4539
|
*/
|
|
4519
4540
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4520
4541
|
/**
|
|
4521
4542
|
* 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.
|
|
4543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
4523
4544
|
*/
|
|
4524
4545
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4525
4546
|
/**
|
|
4526
4547
|
* Forbid unnecessary path segments in import and require statements.
|
|
4527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
4528
4549
|
*/
|
|
4529
4550
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4530
4551
|
/**
|
|
4531
4552
|
* Forbid webpack loader syntax in imports.
|
|
4532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
4533
4554
|
*/
|
|
4534
4555
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4535
4556
|
/**
|
|
4536
4557
|
* Enforce a convention in module import order.
|
|
4537
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4558
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
4538
4559
|
*/
|
|
4539
4560
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4540
4561
|
/**
|
|
4541
4562
|
* 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.
|
|
4563
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
4543
4564
|
*/
|
|
4544
4565
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4545
4566
|
/**
|
|
4546
4567
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4568
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
4548
4569
|
*/
|
|
4549
4570
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4550
4571
|
}
|
|
@@ -4736,6 +4757,7 @@ type ImportNoExtraneousDependencies$1 =
|
|
|
4736
4757
|
packageDir?: string | unknown[];
|
|
4737
4758
|
includeInternal?: boolean;
|
|
4738
4759
|
includeTypes?: boolean;
|
|
4760
|
+
whitelist?: unknown[];
|
|
4739
4761
|
},
|
|
4740
4762
|
];
|
|
4741
4763
|
// ----- import/no-import-module-exports -----
|
|
@@ -9717,6 +9739,11 @@ interface PerfectionistRuleOptions {
|
|
|
9717
9739
|
* @see https://perfectionist.dev/rules/sort-objects
|
|
9718
9740
|
*/
|
|
9719
9741
|
"perfectionist/sort-objects"?: Linter.RuleEntry<PerfectionistSortObjects>;
|
|
9742
|
+
/**
|
|
9743
|
+
* Enforce sorted sets.
|
|
9744
|
+
* @see https://perfectionist.dev/rules/sort-sets
|
|
9745
|
+
*/
|
|
9746
|
+
"perfectionist/sort-sets"?: Linter.RuleEntry<PerfectionistSortSets>;
|
|
9720
9747
|
/**
|
|
9721
9748
|
* Enforce sorted Svelte attributes.
|
|
9722
9749
|
* @see https://perfectionist.dev/rules/sort-svelte-attributes
|
|
@@ -9792,9 +9819,91 @@ type PerfectionistSortClasses =
|
|
|
9792
9819
|
|
|
9793
9820
|
groups?: (string | string[])[];
|
|
9794
9821
|
|
|
9795
|
-
customGroups?:
|
|
9796
|
-
|
|
9797
|
-
|
|
9822
|
+
customGroups?:
|
|
9823
|
+
| {
|
|
9824
|
+
[k: string]: (string | string[]) | undefined;
|
|
9825
|
+
}
|
|
9826
|
+
| (
|
|
9827
|
+
| {
|
|
9828
|
+
groupName?: string;
|
|
9829
|
+
|
|
9830
|
+
type?:
|
|
9831
|
+
| "alphabetical"
|
|
9832
|
+
| "line-length"
|
|
9833
|
+
| "natural"
|
|
9834
|
+
| "unsorted";
|
|
9835
|
+
|
|
9836
|
+
order?: "desc" | "asc";
|
|
9837
|
+
anyOf?: {
|
|
9838
|
+
selector?:
|
|
9839
|
+
| "accessor-property"
|
|
9840
|
+
| "index-signature"
|
|
9841
|
+
| "constructor"
|
|
9842
|
+
| "static-block"
|
|
9843
|
+
| "get-method"
|
|
9844
|
+
| "set-method"
|
|
9845
|
+
| "function-property"
|
|
9846
|
+
| "property"
|
|
9847
|
+
| "method";
|
|
9848
|
+
|
|
9849
|
+
modifiers?: (
|
|
9850
|
+
| "protected"
|
|
9851
|
+
| "private"
|
|
9852
|
+
| "public"
|
|
9853
|
+
| "static"
|
|
9854
|
+
| "abstract"
|
|
9855
|
+
| "override"
|
|
9856
|
+
| "readonly"
|
|
9857
|
+
| "decorated"
|
|
9858
|
+
| "declare"
|
|
9859
|
+
| "optional"
|
|
9860
|
+
)[];
|
|
9861
|
+
|
|
9862
|
+
elementNamePattern?: string;
|
|
9863
|
+
|
|
9864
|
+
decoratorNamePattern?: string;
|
|
9865
|
+
}[];
|
|
9866
|
+
}
|
|
9867
|
+
| {
|
|
9868
|
+
groupName?: string;
|
|
9869
|
+
|
|
9870
|
+
type?:
|
|
9871
|
+
| "alphabetical"
|
|
9872
|
+
| "line-length"
|
|
9873
|
+
| "natural"
|
|
9874
|
+
| "unsorted";
|
|
9875
|
+
|
|
9876
|
+
order?: "desc" | "asc";
|
|
9877
|
+
|
|
9878
|
+
selector?:
|
|
9879
|
+
| "accessor-property"
|
|
9880
|
+
| "index-signature"
|
|
9881
|
+
| "constructor"
|
|
9882
|
+
| "static-block"
|
|
9883
|
+
| "get-method"
|
|
9884
|
+
| "set-method"
|
|
9885
|
+
| "function-property"
|
|
9886
|
+
| "property"
|
|
9887
|
+
| "method";
|
|
9888
|
+
|
|
9889
|
+
modifiers?: (
|
|
9890
|
+
| "protected"
|
|
9891
|
+
| "private"
|
|
9892
|
+
| "public"
|
|
9893
|
+
| "static"
|
|
9894
|
+
| "abstract"
|
|
9895
|
+
| "override"
|
|
9896
|
+
| "readonly"
|
|
9897
|
+
| "decorated"
|
|
9898
|
+
| "declare"
|
|
9899
|
+
| "optional"
|
|
9900
|
+
)[];
|
|
9901
|
+
|
|
9902
|
+
elementNamePattern?: string;
|
|
9903
|
+
|
|
9904
|
+
decoratorNamePattern?: string;
|
|
9905
|
+
}
|
|
9906
|
+
)[];
|
|
9798
9907
|
},
|
|
9799
9908
|
];
|
|
9800
9909
|
// ----- perfectionist/sort-enums -----
|
|
@@ -9839,6 +9948,8 @@ type _PerfectionistSortImportsSortImports =
|
|
|
9839
9948
|
|
|
9840
9949
|
internalPattern?: string[];
|
|
9841
9950
|
|
|
9951
|
+
sortSideEffects?: boolean;
|
|
9952
|
+
|
|
9842
9953
|
newlinesBetween?: "ignore" | "always" | "never";
|
|
9843
9954
|
|
|
9844
9955
|
maxLineLength?: number;
|
|
@@ -10015,6 +10126,20 @@ type PerfectionistSortObjects =
|
|
|
10015
10126
|
};
|
|
10016
10127
|
},
|
|
10017
10128
|
];
|
|
10129
|
+
// ----- perfectionist/sort-sets -----
|
|
10130
|
+
type PerfectionistSortSets =
|
|
10131
|
+
| []
|
|
10132
|
+
| [
|
|
10133
|
+
{
|
|
10134
|
+
type?: "alphabetical" | "natural" | "line-length";
|
|
10135
|
+
|
|
10136
|
+
order?: "asc" | "desc";
|
|
10137
|
+
|
|
10138
|
+
ignoreCase?: boolean;
|
|
10139
|
+
|
|
10140
|
+
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
10141
|
+
},
|
|
10142
|
+
];
|
|
10018
10143
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
10019
10144
|
type PerfectionistSortSvelteAttributes =
|
|
10020
10145
|
| []
|
|
@@ -10167,6 +10292,11 @@ interface ReactRuleOptions {
|
|
|
10167
10292
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forbid-prop-types.md
|
|
10168
10293
|
*/
|
|
10169
10294
|
"react/forbid-prop-types"?: Linter.RuleEntry<ReactForbidPropTypes>;
|
|
10295
|
+
/**
|
|
10296
|
+
* Require all forwardRef components include a ref parameter
|
|
10297
|
+
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/forward-ref-uses-ref.md
|
|
10298
|
+
*/
|
|
10299
|
+
"react/forward-ref-uses-ref"?: Linter.RuleEntry<[]>;
|
|
10170
10300
|
/**
|
|
10171
10301
|
* Enforce a specific function type for function components
|
|
10172
10302
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/function-component-definition.md
|
|
@@ -11084,6 +11214,16 @@ type ReactJsxNoLiterals =
|
|
|
11084
11214
|
| []
|
|
11085
11215
|
| [
|
|
11086
11216
|
{
|
|
11217
|
+
elementOverrides?: {
|
|
11218
|
+
[k: string]: {
|
|
11219
|
+
applyToNestedElements?: boolean;
|
|
11220
|
+
noStrings?: boolean;
|
|
11221
|
+
allowedStrings?: string[];
|
|
11222
|
+
ignoreProps?: boolean;
|
|
11223
|
+
noAttributeStrings?: boolean;
|
|
11224
|
+
[k: string]: unknown | undefined;
|
|
11225
|
+
};
|
|
11226
|
+
};
|
|
11087
11227
|
noStrings?: boolean;
|
|
11088
11228
|
allowedStrings?: string[];
|
|
11089
11229
|
ignoreProps?: boolean;
|
|
@@ -11172,6 +11312,7 @@ type ReactJsxPropsNoSpreading =
|
|
|
11172
11312
|
{
|
|
11173
11313
|
html?: "enforce" | "ignore";
|
|
11174
11314
|
custom?: "enforce" | "ignore";
|
|
11315
|
+
explicitSpread?: "enforce" | "ignore";
|
|
11175
11316
|
exceptions?: string[];
|
|
11176
11317
|
[k: string]: unknown | undefined;
|
|
11177
11318
|
} & {
|
|
@@ -12224,6 +12365,7 @@ type StylisticIndent =
|
|
|
12224
12365
|
offsetTernaryExpressions?: boolean;
|
|
12225
12366
|
ignoredNodes?: string[];
|
|
12226
12367
|
ignoreComments?: boolean;
|
|
12368
|
+
tabLength?: number;
|
|
12227
12369
|
},
|
|
12228
12370
|
];
|
|
12229
12371
|
// ----- @stylistic/indent-binary-ops -----
|
|
@@ -12717,6 +12859,10 @@ type StylisticKeywordSpacing =
|
|
|
12717
12859
|
before?: boolean;
|
|
12718
12860
|
after?: boolean;
|
|
12719
12861
|
};
|
|
12862
|
+
satisfies?: {
|
|
12863
|
+
before?: boolean;
|
|
12864
|
+
after?: boolean;
|
|
12865
|
+
};
|
|
12720
12866
|
set?: {
|
|
12721
12867
|
before?: boolean;
|
|
12722
12868
|
after?: boolean;
|
|
@@ -13665,7 +13811,6 @@ type StylisticTypeAnnotationSpacing =
|
|
|
13665
13811
|
parameter?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13666
13812
|
property?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13667
13813
|
returnType?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13668
|
-
operator?: _StylisticTypeAnnotationSpacing_SpacingConfig;
|
|
13669
13814
|
};
|
|
13670
13815
|
},
|
|
13671
13816
|
];
|
|
@@ -14992,233 +15137,233 @@ interface TypescriptRuleOptions {
|
|
|
14992
15137
|
>;
|
|
14993
15138
|
/**
|
|
14994
15139
|
* 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.
|
|
15140
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/consistent-type-specifier-style.md
|
|
14996
15141
|
*/
|
|
14997
15142
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
14998
15143
|
/**
|
|
14999
15144
|
* Ensure a default export is present, given a default import.
|
|
15000
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15145
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/default.md
|
|
15001
15146
|
*/
|
|
15002
15147
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15003
15148
|
/**
|
|
15004
15149
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15005
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15150
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/dynamic-import-chunkname.md
|
|
15006
15151
|
*/
|
|
15007
15152
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15008
15153
|
/**
|
|
15009
15154
|
* 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.
|
|
15155
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/export.md
|
|
15011
15156
|
*/
|
|
15012
15157
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15013
15158
|
/**
|
|
15014
15159
|
* Ensure all exports appear after other statements.
|
|
15015
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15160
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/exports-last.md
|
|
15016
15161
|
*/
|
|
15017
15162
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15018
15163
|
/**
|
|
15019
15164
|
* Ensure consistent use of file extension within the import path.
|
|
15020
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15165
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/extensions.md
|
|
15021
15166
|
*/
|
|
15022
15167
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15023
15168
|
/**
|
|
15024
15169
|
* Ensure all imports appear before other statements.
|
|
15025
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15170
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/first.md
|
|
15026
15171
|
*/
|
|
15027
15172
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15028
15173
|
/**
|
|
15029
15174
|
* 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.
|
|
15175
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/group-exports.md
|
|
15031
15176
|
*/
|
|
15032
15177
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15033
15178
|
/**
|
|
15034
15179
|
* Replaced by `import-x/first`.
|
|
15035
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15180
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/imports-first.md
|
|
15036
15181
|
* @deprecated
|
|
15037
15182
|
*/
|
|
15038
15183
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15039
15184
|
/**
|
|
15040
15185
|
* Enforce the maximum number of dependencies a module can have.
|
|
15041
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15186
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/max-dependencies.md
|
|
15042
15187
|
*/
|
|
15043
15188
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15044
15189
|
/**
|
|
15045
15190
|
* 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.
|
|
15191
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/named.md
|
|
15047
15192
|
*/
|
|
15048
15193
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15049
15194
|
/**
|
|
15050
15195
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15051
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15196
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/namespace.md
|
|
15052
15197
|
*/
|
|
15053
15198
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15054
15199
|
/**
|
|
15055
15200
|
* Enforce a newline after import statements.
|
|
15056
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15201
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/newline-after-import.md
|
|
15057
15202
|
*/
|
|
15058
15203
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15059
15204
|
/**
|
|
15060
15205
|
* Forbid import of modules using absolute paths.
|
|
15061
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15206
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-absolute-path.md
|
|
15062
15207
|
*/
|
|
15063
15208
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15064
15209
|
/**
|
|
15065
15210
|
* Forbid AMD `require` and `define` calls.
|
|
15066
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15211
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-amd.md
|
|
15067
15212
|
*/
|
|
15068
15213
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15069
15214
|
/**
|
|
15070
15215
|
* Forbid anonymous values as default exports.
|
|
15071
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15216
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-anonymous-default-export.md
|
|
15072
15217
|
*/
|
|
15073
15218
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15074
15219
|
/**
|
|
15075
15220
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15076
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15221
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-commonjs.md
|
|
15077
15222
|
*/
|
|
15078
15223
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15079
15224
|
/**
|
|
15080
15225
|
* 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.
|
|
15226
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-cycle.md
|
|
15082
15227
|
*/
|
|
15083
15228
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15084
15229
|
/**
|
|
15085
15230
|
* Forbid default exports.
|
|
15086
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15231
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-default-export.md
|
|
15087
15232
|
*/
|
|
15088
15233
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15089
15234
|
/**
|
|
15090
15235
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15091
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15236
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-deprecated.md
|
|
15092
15237
|
*/
|
|
15093
15238
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15094
15239
|
/**
|
|
15095
15240
|
* Forbid repeated import of the same module in multiple places.
|
|
15096
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15241
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-duplicates.md
|
|
15097
15242
|
*/
|
|
15098
15243
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15099
15244
|
/**
|
|
15100
15245
|
* Forbid `require()` calls with expressions.
|
|
15101
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15246
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-dynamic-require.md
|
|
15102
15247
|
*/
|
|
15103
15248
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15104
15249
|
/**
|
|
15105
15250
|
* Forbid empty named import blocks.
|
|
15106
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15251
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-empty-named-blocks.md
|
|
15107
15252
|
*/
|
|
15108
15253
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15109
15254
|
/**
|
|
15110
15255
|
* Forbid the use of extraneous packages.
|
|
15111
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15256
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-extraneous-dependencies.md
|
|
15112
15257
|
*/
|
|
15113
15258
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15114
15259
|
/**
|
|
15115
15260
|
* Forbid import statements with CommonJS module.exports.
|
|
15116
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15261
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-import-module-exports.md
|
|
15117
15262
|
*/
|
|
15118
15263
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15119
15264
|
/**
|
|
15120
15265
|
* Forbid importing the submodules of other modules.
|
|
15121
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15266
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-internal-modules.md
|
|
15122
15267
|
*/
|
|
15123
15268
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15124
15269
|
/**
|
|
15125
15270
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15126
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15271
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-mutable-exports.md
|
|
15127
15272
|
*/
|
|
15128
15273
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15129
15274
|
/**
|
|
15130
15275
|
* Forbid use of exported name as identifier of default export.
|
|
15131
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15276
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default.md
|
|
15132
15277
|
*/
|
|
15133
15278
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15134
15279
|
/**
|
|
15135
15280
|
* Forbid use of exported name as property of default export.
|
|
15136
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15281
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-as-default-member.md
|
|
15137
15282
|
*/
|
|
15138
15283
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15139
15284
|
/**
|
|
15140
15285
|
* Forbid named default exports.
|
|
15141
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15286
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-default.md
|
|
15142
15287
|
*/
|
|
15143
15288
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15144
15289
|
/**
|
|
15145
15290
|
* Forbid named exports.
|
|
15146
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15291
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-named-export.md
|
|
15147
15292
|
*/
|
|
15148
15293
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15149
15294
|
/**
|
|
15150
15295
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15151
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15296
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-namespace.md
|
|
15152
15297
|
*/
|
|
15153
15298
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15154
15299
|
/**
|
|
15155
15300
|
* Forbid Node.js builtin modules.
|
|
15156
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15301
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-nodejs-modules.md
|
|
15157
15302
|
*/
|
|
15158
15303
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15159
15304
|
/**
|
|
15160
15305
|
* Forbid importing packages through relative paths.
|
|
15161
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15306
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-packages.md
|
|
15162
15307
|
*/
|
|
15163
15308
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15164
15309
|
/**
|
|
15165
15310
|
* Forbid importing modules from parent directories.
|
|
15166
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15311
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-relative-parent-imports.md
|
|
15167
15312
|
*/
|
|
15168
15313
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15169
15314
|
/**
|
|
15170
15315
|
* Forbid importing a default export by a different name.
|
|
15171
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15316
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-rename-default.md
|
|
15172
15317
|
*/
|
|
15173
15318
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15174
15319
|
/**
|
|
15175
15320
|
* Enforce which files can be imported in a given folder.
|
|
15176
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15321
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-restricted-paths.md
|
|
15177
15322
|
*/
|
|
15178
15323
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15179
15324
|
/**
|
|
15180
15325
|
* Forbid a module from importing itself.
|
|
15181
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-self-import.md
|
|
15182
15327
|
*/
|
|
15183
15328
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15184
15329
|
/**
|
|
15185
15330
|
* Forbid unassigned imports.
|
|
15186
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unassigned-import.md
|
|
15187
15332
|
*/
|
|
15188
15333
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15189
15334
|
/**
|
|
15190
15335
|
* Ensure imports point to a file/module that can be resolved.
|
|
15191
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unresolved.md
|
|
15192
15337
|
*/
|
|
15193
15338
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15194
15339
|
/**
|
|
15195
15340
|
* 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.
|
|
15341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-unused-modules.md
|
|
15197
15342
|
*/
|
|
15198
15343
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15199
15344
|
/**
|
|
15200
15345
|
* Forbid unnecessary path segments in import and require statements.
|
|
15201
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-useless-path-segments.md
|
|
15202
15347
|
*/
|
|
15203
15348
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15204
15349
|
/**
|
|
15205
15350
|
* Forbid webpack loader syntax in imports.
|
|
15206
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/no-webpack-loader-syntax.md
|
|
15207
15352
|
*/
|
|
15208
15353
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15209
15354
|
/**
|
|
15210
15355
|
* Enforce a convention in module import order.
|
|
15211
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/order.md
|
|
15212
15357
|
*/
|
|
15213
15358
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15214
15359
|
/**
|
|
15215
15360
|
* 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.
|
|
15361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/prefer-default-export.md
|
|
15217
15362
|
*/
|
|
15218
15363
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15219
15364
|
/**
|
|
15220
15365
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15221
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.2.1/docs/rules/unambiguous.md
|
|
15222
15367
|
*/
|
|
15223
15368
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15224
15369
|
}
|
|
@@ -18688,6 +18833,24 @@ type TypescriptEslintRestrictTemplateExpressions =
|
|
|
18688
18833
|
allowRegExp?: boolean;
|
|
18689
18834
|
|
|
18690
18835
|
allowNever?: boolean;
|
|
18836
|
+
|
|
18837
|
+
allow?: (
|
|
18838
|
+
| string
|
|
18839
|
+
| {
|
|
18840
|
+
from: "file";
|
|
18841
|
+
name: string | [string, ...string[]];
|
|
18842
|
+
path?: string;
|
|
18843
|
+
}
|
|
18844
|
+
| {
|
|
18845
|
+
from: "lib";
|
|
18846
|
+
name: string | [string, ...string[]];
|
|
18847
|
+
}
|
|
18848
|
+
| {
|
|
18849
|
+
from: "package";
|
|
18850
|
+
name: string | [string, ...string[]];
|
|
18851
|
+
package: string;
|
|
18852
|
+
}
|
|
18853
|
+
)[];
|
|
18691
18854
|
},
|
|
18692
18855
|
];
|
|
18693
18856
|
// ----- @typescript-eslint/return-await -----
|
|
@@ -18998,6 +19161,7 @@ type ImportNoExtraneousDependencies =
|
|
|
18998
19161
|
packageDir?: string | unknown[];
|
|
18999
19162
|
includeInternal?: boolean;
|
|
19000
19163
|
includeTypes?: boolean;
|
|
19164
|
+
whitelist?: unknown[];
|
|
19001
19165
|
},
|
|
19002
19166
|
];
|
|
19003
19167
|
// ----- import/no-import-module-exports -----
|