@jsse/eslint-config 0.1.14 → 0.1.16
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 +6 -11
- package/dist/cli.js +6 -11
- package/dist/index.cjs +1501 -1173
- package/dist/index.d.cts +317 -250
- package/dist/index.d.ts +317 -250
- package/dist/index.js +1501 -1173
- package/package.json +24 -24
package/dist/index.d.cts
CHANGED
|
@@ -4137,6 +4137,11 @@ interface AntfuRuleOptions {
|
|
|
4137
4137
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/consistent-list-newline.md
|
|
4138
4138
|
*/
|
|
4139
4139
|
"antfu/consistent-list-newline"?: Linter.RuleEntry<AntfuConsistentListNewline>;
|
|
4140
|
+
/**
|
|
4141
|
+
* Enforce Anthony's style of curly bracket
|
|
4142
|
+
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/curly.test.ts
|
|
4143
|
+
*/
|
|
4144
|
+
"antfu/curly"?: Linter.RuleEntry<[]>;
|
|
4140
4145
|
/**
|
|
4141
4146
|
* Newline after if
|
|
4142
4147
|
* @see https://github.com/antfu/eslint-plugin-antfu/blob/main/src/rules/if-newline.md
|
|
@@ -4197,6 +4202,8 @@ type AntfuConsistentListNewline =
|
|
|
4197
4202
|
ObjectPattern?: boolean;
|
|
4198
4203
|
ArrayPattern?: boolean;
|
|
4199
4204
|
JSXOpeningElement?: boolean;
|
|
4205
|
+
JSONArrayExpression?: boolean;
|
|
4206
|
+
JSONObjectExpression?: boolean;
|
|
4200
4207
|
},
|
|
4201
4208
|
];
|
|
4202
4209
|
// ----- antfu/indent-unindent -----
|
|
@@ -4322,42 +4329,42 @@ interface IgnoresRuleOptions {}
|
|
|
4322
4329
|
interface ImportsRuleOptions {
|
|
4323
4330
|
/**
|
|
4324
4331
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4325
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4332
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
|
|
4326
4333
|
*/
|
|
4327
4334
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4328
4335
|
/**
|
|
4329
4336
|
* Ensure a default export is present, given a default import.
|
|
4330
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4337
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
|
|
4331
4338
|
*/
|
|
4332
4339
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4333
4340
|
/**
|
|
4334
4341
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4335
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
|
|
4336
4343
|
*/
|
|
4337
4344
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4338
4345
|
/**
|
|
4339
4346
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4340
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
|
|
4341
4348
|
*/
|
|
4342
4349
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4343
4350
|
/**
|
|
4344
4351
|
* Ensure all exports appear after other statements.
|
|
4345
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
|
|
4346
4353
|
*/
|
|
4347
4354
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4348
4355
|
/**
|
|
4349
4356
|
* Ensure consistent use of file extension within the import path.
|
|
4350
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
|
|
4351
4358
|
*/
|
|
4352
4359
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4353
4360
|
/**
|
|
4354
4361
|
* Ensure all imports appear before other statements.
|
|
4355
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
|
|
4356
4363
|
*/
|
|
4357
4364
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4358
4365
|
/**
|
|
4359
4366
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4360
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4367
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
|
|
4361
4368
|
*/
|
|
4362
4369
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4363
4370
|
/**
|
|
@@ -4368,182 +4375,182 @@ interface ImportsRuleOptions {
|
|
|
4368
4375
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4369
4376
|
/**
|
|
4370
4377
|
* Enforce the maximum number of dependencies a module can have.
|
|
4371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
|
|
4372
4379
|
*/
|
|
4373
4380
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4374
4381
|
/**
|
|
4375
4382
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
|
|
4377
4384
|
*/
|
|
4378
4385
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4379
4386
|
/**
|
|
4380
4387
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
|
|
4382
4389
|
*/
|
|
4383
4390
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4384
4391
|
/**
|
|
4385
4392
|
* Enforce a newline after import statements.
|
|
4386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
|
|
4387
4394
|
*/
|
|
4388
4395
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4389
4396
|
/**
|
|
4390
4397
|
* Forbid import of modules using absolute paths.
|
|
4391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
|
|
4392
4399
|
*/
|
|
4393
4400
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4394
4401
|
/**
|
|
4395
4402
|
* Forbid AMD `require` and `define` calls.
|
|
4396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
|
|
4397
4404
|
*/
|
|
4398
4405
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4399
4406
|
/**
|
|
4400
4407
|
* Forbid anonymous values as default exports.
|
|
4401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
|
|
4402
4409
|
*/
|
|
4403
4410
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4404
4411
|
/**
|
|
4405
4412
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
|
|
4407
4414
|
*/
|
|
4408
4415
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4409
4416
|
/**
|
|
4410
4417
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
|
|
4412
4419
|
*/
|
|
4413
4420
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4414
4421
|
/**
|
|
4415
4422
|
* Forbid default exports.
|
|
4416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
|
|
4417
4424
|
*/
|
|
4418
4425
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4419
4426
|
/**
|
|
4420
4427
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
|
|
4422
4429
|
*/
|
|
4423
4430
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4424
4431
|
/**
|
|
4425
4432
|
* Forbid repeated import of the same module in multiple places.
|
|
4426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
|
|
4427
4434
|
*/
|
|
4428
4435
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4429
4436
|
/**
|
|
4430
4437
|
* Forbid `require()` calls with expressions.
|
|
4431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
|
|
4432
4439
|
*/
|
|
4433
4440
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4434
4441
|
/**
|
|
4435
4442
|
* Forbid empty named import blocks.
|
|
4436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
|
|
4437
4444
|
*/
|
|
4438
4445
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4439
4446
|
/**
|
|
4440
4447
|
* Forbid the use of extraneous packages.
|
|
4441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
|
|
4442
4449
|
*/
|
|
4443
4450
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4444
4451
|
/**
|
|
4445
4452
|
* Forbid import statements with CommonJS module.exports.
|
|
4446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
|
|
4447
4454
|
*/
|
|
4448
4455
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4449
4456
|
/**
|
|
4450
4457
|
* Forbid importing the submodules of other modules.
|
|
4451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
|
|
4452
4459
|
*/
|
|
4453
4460
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4454
4461
|
/**
|
|
4455
4462
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
|
|
4457
4464
|
*/
|
|
4458
4465
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4459
4466
|
/**
|
|
4460
4467
|
* Forbid use of exported name as identifier of default export.
|
|
4461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
|
|
4462
4469
|
*/
|
|
4463
4470
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4464
4471
|
/**
|
|
4465
4472
|
* Forbid use of exported name as property of default export.
|
|
4466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
|
|
4467
4474
|
*/
|
|
4468
4475
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4469
4476
|
/**
|
|
4470
4477
|
* Forbid named default exports.
|
|
4471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
|
|
4472
4479
|
*/
|
|
4473
4480
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4474
4481
|
/**
|
|
4475
4482
|
* Forbid named exports.
|
|
4476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
|
|
4477
4484
|
*/
|
|
4478
4485
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4479
4486
|
/**
|
|
4480
4487
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
|
|
4482
4489
|
*/
|
|
4483
4490
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4484
4491
|
/**
|
|
4485
4492
|
* Forbid Node.js builtin modules.
|
|
4486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
|
|
4487
4494
|
*/
|
|
4488
4495
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4489
4496
|
/**
|
|
4490
4497
|
* Forbid importing packages through relative paths.
|
|
4491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
|
|
4492
4499
|
*/
|
|
4493
4500
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4494
4501
|
/**
|
|
4495
4502
|
* Forbid importing modules from parent directories.
|
|
4496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
|
|
4497
4504
|
*/
|
|
4498
4505
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4499
4506
|
/**
|
|
4500
4507
|
* Enforce which files can be imported in a given folder.
|
|
4501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
|
|
4502
4509
|
*/
|
|
4503
4510
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4504
4511
|
/**
|
|
4505
4512
|
* Forbid a module from importing itself.
|
|
4506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
|
|
4507
4514
|
*/
|
|
4508
4515
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4509
4516
|
/**
|
|
4510
4517
|
* Forbid unassigned imports.
|
|
4511
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
|
|
4512
4519
|
*/
|
|
4513
4520
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4514
4521
|
/**
|
|
4515
4522
|
* Ensure imports point to a file/module that can be resolved.
|
|
4516
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
|
|
4517
4524
|
*/
|
|
4518
4525
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4519
4526
|
/**
|
|
4520
4527
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4521
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
|
|
4522
4529
|
*/
|
|
4523
4530
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4524
4531
|
/**
|
|
4525
4532
|
* Forbid unnecessary path segments in import and require statements.
|
|
4526
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
|
|
4527
4534
|
*/
|
|
4528
4535
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4529
4536
|
/**
|
|
4530
4537
|
* Forbid webpack loader syntax in imports.
|
|
4531
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
4532
4539
|
*/
|
|
4533
4540
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4534
4541
|
/**
|
|
4535
4542
|
* Enforce a convention in module import order.
|
|
4536
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
|
|
4537
4544
|
*/
|
|
4538
4545
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4539
4546
|
/**
|
|
4540
4547
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4541
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
|
|
4542
4549
|
*/
|
|
4543
4550
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4544
4551
|
/**
|
|
4545
4552
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4546
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
4553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
|
|
4547
4554
|
*/
|
|
4548
4555
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4549
4556
|
}
|
|
@@ -6861,6 +6868,9 @@ type NHashbang =
|
|
|
6861
6868
|
];
|
|
6862
6869
|
ignoreUnpublished?: boolean;
|
|
6863
6870
|
additionalExecutables?: string[];
|
|
6871
|
+
executableMap?: {
|
|
6872
|
+
[k: string]: string;
|
|
6873
|
+
};
|
|
6864
6874
|
},
|
|
6865
6875
|
];
|
|
6866
6876
|
// ----- n/no-deprecated-api -----
|
|
@@ -7207,6 +7217,7 @@ type NNoUnpublishedImport =
|
|
|
7207
7217
|
];
|
|
7208
7218
|
resolvePaths?: string[];
|
|
7209
7219
|
ignoreTypeImport?: boolean;
|
|
7220
|
+
ignorePrivate?: boolean;
|
|
7210
7221
|
},
|
|
7211
7222
|
];
|
|
7212
7223
|
// ----- n/no-unpublished-require -----
|
|
@@ -7235,6 +7246,7 @@ type NNoUnpublishedRequire =
|
|
|
7235
7246
|
];
|
|
7236
7247
|
resolvePaths?: string[];
|
|
7237
7248
|
tryExtensions?: string[];
|
|
7249
|
+
ignorePrivate?: boolean;
|
|
7238
7250
|
},
|
|
7239
7251
|
];
|
|
7240
7252
|
// ----- n/no-unsupported-features/es-builtins -----
|
|
@@ -8253,6 +8265,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8253
8265
|
| "performance"
|
|
8254
8266
|
| "process"
|
|
8255
8267
|
| "process.allowedNodeEnvironmentFlags"
|
|
8268
|
+
| "process.availableMemory"
|
|
8256
8269
|
| "process.arch"
|
|
8257
8270
|
| "process.argv"
|
|
8258
8271
|
| "process.argv0"
|
|
@@ -8569,7 +8582,11 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8569
8582
|
| "crypto.DiffieHellmanGroup"
|
|
8570
8583
|
| "crypto.ECDH"
|
|
8571
8584
|
| "crypto.ECDH.convertKey"
|
|
8585
|
+
| "crypto.Hash()"
|
|
8586
|
+
| "new crypto.Hash()"
|
|
8572
8587
|
| "crypto.Hash"
|
|
8588
|
+
| "crypto.Hmac()"
|
|
8589
|
+
| "new crypto.Hmac()"
|
|
8573
8590
|
| "crypto.Hmac"
|
|
8574
8591
|
| "crypto.KeyObject"
|
|
8575
8592
|
| "crypto.KeyObject.from"
|
|
@@ -8700,29 +8717,31 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8700
8717
|
| "events.addAbortListener"
|
|
8701
8718
|
| "fs"
|
|
8702
8719
|
| "fs.promises"
|
|
8703
|
-
| "fs.promises.
|
|
8720
|
+
| "fs.promises.FileHandle"
|
|
8704
8721
|
| "fs.promises.access"
|
|
8705
8722
|
| "fs.promises.appendFile"
|
|
8706
8723
|
| "fs.promises.chmod"
|
|
8707
8724
|
| "fs.promises.chown"
|
|
8725
|
+
| "fs.promises.constants"
|
|
8708
8726
|
| "fs.promises.copyFile"
|
|
8709
8727
|
| "fs.promises.cp"
|
|
8728
|
+
| "fs.promises.glob"
|
|
8710
8729
|
| "fs.promises.lchmod"
|
|
8711
8730
|
| "fs.promises.lchown"
|
|
8712
|
-
| "fs.promises.lutimes"
|
|
8713
8731
|
| "fs.promises.link"
|
|
8714
8732
|
| "fs.promises.lstat"
|
|
8733
|
+
| "fs.promises.lutimes"
|
|
8715
8734
|
| "fs.promises.mkdir"
|
|
8716
8735
|
| "fs.promises.mkdtemp"
|
|
8717
8736
|
| "fs.promises.open"
|
|
8718
8737
|
| "fs.promises.opendir"
|
|
8719
|
-
| "fs.promises.readdir"
|
|
8720
8738
|
| "fs.promises.readFile"
|
|
8739
|
+
| "fs.promises.readdir"
|
|
8721
8740
|
| "fs.promises.readlink"
|
|
8722
8741
|
| "fs.promises.realpath"
|
|
8723
8742
|
| "fs.promises.rename"
|
|
8724
|
-
| "fs.promises.rmdir"
|
|
8725
8743
|
| "fs.promises.rm"
|
|
8744
|
+
| "fs.promises.rmdir"
|
|
8726
8745
|
| "fs.promises.stat"
|
|
8727
8746
|
| "fs.promises.statfs"
|
|
8728
8747
|
| "fs.promises.symlink"
|
|
@@ -8731,7 +8750,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8731
8750
|
| "fs.promises.utimes"
|
|
8732
8751
|
| "fs.promises.watch"
|
|
8733
8752
|
| "fs.promises.writeFile"
|
|
8734
|
-
| "fs.promises.FileHandle"
|
|
8735
8753
|
| "fs.access"
|
|
8736
8754
|
| "fs.appendFile"
|
|
8737
8755
|
| "fs.chmod"
|
|
@@ -8749,13 +8767,15 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8749
8767
|
| "fs.fsync"
|
|
8750
8768
|
| "fs.ftruncate"
|
|
8751
8769
|
| "fs.futimes"
|
|
8770
|
+
| "fs.glob"
|
|
8752
8771
|
| "fs.lchmod"
|
|
8753
8772
|
| "fs.lchown"
|
|
8754
|
-
| "fs.lutimes"
|
|
8755
8773
|
| "fs.link"
|
|
8756
8774
|
| "fs.lstat"
|
|
8775
|
+
| "fs.lutimes"
|
|
8757
8776
|
| "fs.mkdir"
|
|
8758
8777
|
| "fs.mkdtemp"
|
|
8778
|
+
| "fs.native"
|
|
8759
8779
|
| "fs.open"
|
|
8760
8780
|
| "fs.openAsBlob"
|
|
8761
8781
|
| "fs.opendir"
|
|
@@ -8766,10 +8786,9 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8766
8786
|
| "fs.readv"
|
|
8767
8787
|
| "fs.realpath"
|
|
8768
8788
|
| "fs.realpath.native"
|
|
8769
|
-
| "fs.native"
|
|
8770
8789
|
| "fs.rename"
|
|
8771
|
-
| "fs.rmdir"
|
|
8772
8790
|
| "fs.rm"
|
|
8791
|
+
| "fs.rmdir"
|
|
8773
8792
|
| "fs.stat"
|
|
8774
8793
|
| "fs.statfs"
|
|
8775
8794
|
| "fs.symlink"
|
|
@@ -8797,11 +8816,12 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8797
8816
|
| "fs.fsyncSync"
|
|
8798
8817
|
| "fs.ftruncateSync"
|
|
8799
8818
|
| "fs.futimesSync"
|
|
8819
|
+
| "fs.globSync"
|
|
8800
8820
|
| "fs.lchmodSync"
|
|
8801
8821
|
| "fs.lchownSync"
|
|
8802
|
-
| "fs.lutimesSync"
|
|
8803
8822
|
| "fs.linkSync"
|
|
8804
8823
|
| "fs.lstatSync"
|
|
8824
|
+
| "fs.lutimesSync"
|
|
8805
8825
|
| "fs.mkdirSync"
|
|
8806
8826
|
| "fs.mkdtempSync"
|
|
8807
8827
|
| "fs.opendirSync"
|
|
@@ -8816,8 +8836,8 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8816
8836
|
| "fs.renameSync"
|
|
8817
8837
|
| "fs.rmdirSync"
|
|
8818
8838
|
| "fs.rmSync"
|
|
8819
|
-
| "fs.statSync"
|
|
8820
8839
|
| "fs.statfsSync"
|
|
8840
|
+
| "fs.statSync"
|
|
8821
8841
|
| "fs.symlinkSync"
|
|
8822
8842
|
| "fs.truncateSync"
|
|
8823
8843
|
| "fs.unlinkSync"
|
|
@@ -8831,34 +8851,38 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8831
8851
|
| "fs.FSWatcher"
|
|
8832
8852
|
| "fs.StatWatcher"
|
|
8833
8853
|
| "fs.ReadStream"
|
|
8854
|
+
| "fs.Stats()"
|
|
8855
|
+
| "new fs.Stats()"
|
|
8834
8856
|
| "fs.Stats"
|
|
8835
8857
|
| "fs.StatFs"
|
|
8836
8858
|
| "fs.WriteStream"
|
|
8837
8859
|
| "fs.common_objects"
|
|
8838
8860
|
| "fs/promises"
|
|
8839
|
-
| "fs/promises.
|
|
8861
|
+
| "fs/promises.FileHandle"
|
|
8840
8862
|
| "fs/promises.access"
|
|
8841
8863
|
| "fs/promises.appendFile"
|
|
8842
8864
|
| "fs/promises.chmod"
|
|
8843
8865
|
| "fs/promises.chown"
|
|
8866
|
+
| "fs/promises.constants"
|
|
8844
8867
|
| "fs/promises.copyFile"
|
|
8845
8868
|
| "fs/promises.cp"
|
|
8869
|
+
| "fs/promises.glob"
|
|
8846
8870
|
| "fs/promises.lchmod"
|
|
8847
8871
|
| "fs/promises.lchown"
|
|
8848
|
-
| "fs/promises.lutimes"
|
|
8849
8872
|
| "fs/promises.link"
|
|
8850
8873
|
| "fs/promises.lstat"
|
|
8874
|
+
| "fs/promises.lutimes"
|
|
8851
8875
|
| "fs/promises.mkdir"
|
|
8852
8876
|
| "fs/promises.mkdtemp"
|
|
8853
8877
|
| "fs/promises.open"
|
|
8854
8878
|
| "fs/promises.opendir"
|
|
8855
|
-
| "fs/promises.readdir"
|
|
8856
8879
|
| "fs/promises.readFile"
|
|
8880
|
+
| "fs/promises.readdir"
|
|
8857
8881
|
| "fs/promises.readlink"
|
|
8858
8882
|
| "fs/promises.realpath"
|
|
8859
8883
|
| "fs/promises.rename"
|
|
8860
|
-
| "fs/promises.rmdir"
|
|
8861
8884
|
| "fs/promises.rm"
|
|
8885
|
+
| "fs/promises.rmdir"
|
|
8862
8886
|
| "fs/promises.stat"
|
|
8863
8887
|
| "fs/promises.statfs"
|
|
8864
8888
|
| "fs/promises.symlink"
|
|
@@ -8867,7 +8891,6 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8867
8891
|
| "fs/promises.utimes"
|
|
8868
8892
|
| "fs/promises.watch"
|
|
8869
8893
|
| "fs/promises.writeFile"
|
|
8870
|
-
| "fs/promises.FileHandle"
|
|
8871
8894
|
| "http2"
|
|
8872
8895
|
| "http2.constants"
|
|
8873
8896
|
| "http2.sensitiveHeaders"
|
|
@@ -9157,6 +9180,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9157
9180
|
| "test.it.skip"
|
|
9158
9181
|
| "test.it.todo"
|
|
9159
9182
|
| "test.it.only"
|
|
9183
|
+
| "test.suite"
|
|
9184
|
+
| "test.suite.skip"
|
|
9185
|
+
| "test.suite.todo"
|
|
9186
|
+
| "test.suite.only"
|
|
9160
9187
|
| "test.before"
|
|
9161
9188
|
| "test.after"
|
|
9162
9189
|
| "test.beforeEach"
|
|
@@ -9173,6 +9200,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9173
9200
|
| "test.test.only"
|
|
9174
9201
|
| "test.test.describe"
|
|
9175
9202
|
| "test.test.it"
|
|
9203
|
+
| "test.test.suite"
|
|
9176
9204
|
| "test.test.before"
|
|
9177
9205
|
| "test.test.after"
|
|
9178
9206
|
| "test.test.beforeEach"
|
|
@@ -9396,6 +9424,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9396
9424
|
| "v8.getHeapSnapshot"
|
|
9397
9425
|
| "v8.getHeapSpaceStatistics"
|
|
9398
9426
|
| "v8.getHeapStatistics"
|
|
9427
|
+
| "v8.queryObjects"
|
|
9399
9428
|
| "v8.setFlagsFromString"
|
|
9400
9429
|
| "v8.stopCoverage"
|
|
9401
9430
|
| "v8.takeCoverage"
|
|
@@ -9435,6 +9464,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9435
9464
|
| "worker_threads.MessagePort"
|
|
9436
9465
|
| "worker_threads.Worker"
|
|
9437
9466
|
| "zlib.constants"
|
|
9467
|
+
| "zlib.crc32"
|
|
9438
9468
|
| "zlib.createBrotliCompress"
|
|
9439
9469
|
| "zlib.createBrotliDecompress"
|
|
9440
9470
|
| "zlib.createDeflate"
|
|
@@ -9522,6 +9552,9 @@ type NShebang =
|
|
|
9522
9552
|
];
|
|
9523
9553
|
ignoreUnpublished?: boolean;
|
|
9524
9554
|
additionalExecutables?: string[];
|
|
9555
|
+
executableMap?: {
|
|
9556
|
+
[k: string]: string;
|
|
9557
|
+
};
|
|
9525
9558
|
},
|
|
9526
9559
|
];
|
|
9527
9560
|
|
|
@@ -9648,6 +9681,9 @@ type PerfectionistSortClasses =
|
|
|
9648
9681
|
| []
|
|
9649
9682
|
| [
|
|
9650
9683
|
{
|
|
9684
|
+
"custom-groups"?: {
|
|
9685
|
+
[k: string]: unknown | undefined;
|
|
9686
|
+
};
|
|
9651
9687
|
type?: "alphabetical" | "natural" | "line-length";
|
|
9652
9688
|
"ignore-case"?: boolean;
|
|
9653
9689
|
order?: "asc" | "desc";
|
|
@@ -10047,7 +10083,7 @@ interface ReactRuleOptions {
|
|
|
10047
10083
|
* Disallows JSX context provider values from taking values that will cause needless rerenders
|
|
10048
10084
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-constructed-context-values.md
|
|
10049
10085
|
*/
|
|
10050
|
-
"react/jsx-no-constructed-context-values"?: Linter.RuleEntry<
|
|
10086
|
+
"react/jsx-no-constructed-context-values"?: Linter.RuleEntry<[]>;
|
|
10051
10087
|
/**
|
|
10052
10088
|
* Disallow duplicate properties in JSX
|
|
10053
10089
|
* @see https://github.com/jsx-eslint/eslint-plugin-react/tree/master/docs/rules/jsx-no-duplicate-props.md
|
|
@@ -10792,10 +10828,6 @@ type ReactJsxNoBind =
|
|
|
10792
10828
|
ignoreDOMComponents?: boolean;
|
|
10793
10829
|
},
|
|
10794
10830
|
];
|
|
10795
|
-
// ----- react/jsx-no-constructed-context-values -----
|
|
10796
|
-
interface ReactJsxNoConstructedContextValues {
|
|
10797
|
-
[k: string]: unknown | undefined;
|
|
10798
|
-
}
|
|
10799
10831
|
// ----- react/jsx-no-duplicate-props -----
|
|
10800
10832
|
type ReactJsxNoDuplicateProps =
|
|
10801
10833
|
| []
|
|
@@ -12093,7 +12125,7 @@ type StylisticJsxOneExpressionPerLine =
|
|
|
12093
12125
|
| []
|
|
12094
12126
|
| [
|
|
12095
12127
|
{
|
|
12096
|
-
allow?: "none" | "literal" | "single-child" | "single-line";
|
|
12128
|
+
allow?: "none" | "literal" | "single-child" | "single-line" | "non-jsx";
|
|
12097
12129
|
},
|
|
12098
12130
|
];
|
|
12099
12131
|
// ----- @stylistic/jsx-pascal-case -----
|
|
@@ -13232,6 +13264,7 @@ type StylisticQuotes =
|
|
|
13232
13264
|
| {
|
|
13233
13265
|
avoidEscape?: boolean;
|
|
13234
13266
|
allowTemplateLiterals?: boolean;
|
|
13267
|
+
ignoreStringLiterals?: boolean;
|
|
13235
13268
|
}
|
|
13236
13269
|
),
|
|
13237
13270
|
];
|
|
@@ -14462,6 +14495,13 @@ interface TypescriptRuleOptions {
|
|
|
14462
14495
|
* @see https://typescript-eslint.io/rules/no-unnecessary-qualifier
|
|
14463
14496
|
*/
|
|
14464
14497
|
"@typescript-eslint/no-unnecessary-qualifier"?: Linter.RuleEntry<[]>;
|
|
14498
|
+
/**
|
|
14499
|
+
* Disallow unnecessary template expressions
|
|
14500
|
+
* @see https://typescript-eslint.io/rules/no-unnecessary-template-expression
|
|
14501
|
+
*/
|
|
14502
|
+
"@typescript-eslint/no-unnecessary-template-expression"?: Linter.RuleEntry<
|
|
14503
|
+
[]
|
|
14504
|
+
>;
|
|
14465
14505
|
/**
|
|
14466
14506
|
* Disallow type arguments that are equal to the default
|
|
14467
14507
|
* @see https://typescript-eslint.io/rules/no-unnecessary-type-arguments
|
|
@@ -14543,8 +14583,9 @@ interface TypescriptRuleOptions {
|
|
|
14543
14583
|
*/
|
|
14544
14584
|
"@typescript-eslint/no-useless-empty-export"?: Linter.RuleEntry<[]>;
|
|
14545
14585
|
/**
|
|
14546
|
-
* Disallow unnecessary template
|
|
14586
|
+
* Disallow unnecessary template expressions
|
|
14547
14587
|
* @see https://typescript-eslint.io/rules/no-useless-template-literals
|
|
14588
|
+
* @deprecated
|
|
14548
14589
|
*/
|
|
14549
14590
|
"@typescript-eslint/no-useless-template-literals"?: Linter.RuleEntry<[]>;
|
|
14550
14591
|
/**
|
|
@@ -14672,6 +14713,7 @@ interface TypescriptRuleOptions {
|
|
|
14672
14713
|
/**
|
|
14673
14714
|
* Enforce using `@ts-expect-error` over `@ts-ignore`
|
|
14674
14715
|
* @see https://typescript-eslint.io/rules/prefer-ts-expect-error
|
|
14716
|
+
* @deprecated
|
|
14675
14717
|
*/
|
|
14676
14718
|
"@typescript-eslint/prefer-ts-expect-error"?: Linter.RuleEntry<[]>;
|
|
14677
14719
|
/**
|
|
@@ -14691,7 +14733,7 @@ interface TypescriptRuleOptions {
|
|
|
14691
14733
|
*/
|
|
14692
14734
|
"@typescript-eslint/require-array-sort-compare"?: Linter.RuleEntry<TypescriptEslintRequireArraySortCompare>;
|
|
14693
14735
|
/**
|
|
14694
|
-
* Disallow async functions which have no `await` expression
|
|
14736
|
+
* Disallow async functions which do not return promises and have no `await` expression
|
|
14695
14737
|
* @see https://typescript-eslint.io/rules/require-await
|
|
14696
14738
|
*/
|
|
14697
14739
|
"@typescript-eslint/require-await"?: Linter.RuleEntry<[]>;
|
|
@@ -14706,7 +14748,7 @@ interface TypescriptRuleOptions {
|
|
|
14706
14748
|
*/
|
|
14707
14749
|
"@typescript-eslint/restrict-template-expressions"?: Linter.RuleEntry<TypescriptEslintRestrictTemplateExpressions>;
|
|
14708
14750
|
/**
|
|
14709
|
-
* Enforce consistent
|
|
14751
|
+
* Enforce consistent awaiting of returned promises
|
|
14710
14752
|
* @see https://typescript-eslint.io/rules/return-await
|
|
14711
14753
|
*/
|
|
14712
14754
|
"@typescript-eslint/return-await"?: Linter.RuleEntry<TypescriptEslintReturnAwait>;
|
|
@@ -14719,6 +14761,7 @@ interface TypescriptRuleOptions {
|
|
|
14719
14761
|
/**
|
|
14720
14762
|
* Enforce constituents of a type union/intersection to be sorted alphabetically
|
|
14721
14763
|
* @see https://typescript-eslint.io/rules/sort-type-constituents
|
|
14764
|
+
* @deprecated
|
|
14722
14765
|
*/
|
|
14723
14766
|
"@typescript-eslint/sort-type-constituents"?: Linter.RuleEntry<TypescriptEslintSortTypeConstituents>;
|
|
14724
14767
|
/**
|
|
@@ -14784,42 +14827,42 @@ interface TypescriptRuleOptions {
|
|
|
14784
14827
|
>;
|
|
14785
14828
|
/**
|
|
14786
14829
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
14787
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/consistent-type-specifier-style.md
|
|
14788
14831
|
*/
|
|
14789
14832
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
14790
14833
|
/**
|
|
14791
14834
|
* Ensure a default export is present, given a default import.
|
|
14792
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/default.md
|
|
14793
14836
|
*/
|
|
14794
14837
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
14795
14838
|
/**
|
|
14796
14839
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
14797
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/dynamic-import-chunkname.md
|
|
14798
14841
|
*/
|
|
14799
14842
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
14800
14843
|
/**
|
|
14801
14844
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
14802
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/export.md
|
|
14803
14846
|
*/
|
|
14804
14847
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
14805
14848
|
/**
|
|
14806
14849
|
* Ensure all exports appear after other statements.
|
|
14807
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/exports-last.md
|
|
14808
14851
|
*/
|
|
14809
14852
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
14810
14853
|
/**
|
|
14811
14854
|
* Ensure consistent use of file extension within the import path.
|
|
14812
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/extensions.md
|
|
14813
14856
|
*/
|
|
14814
14857
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
14815
14858
|
/**
|
|
14816
14859
|
* Ensure all imports appear before other statements.
|
|
14817
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/first.md
|
|
14818
14861
|
*/
|
|
14819
14862
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
14820
14863
|
/**
|
|
14821
14864
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
14822
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/group-exports.md
|
|
14823
14866
|
*/
|
|
14824
14867
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
14825
14868
|
/**
|
|
@@ -14830,182 +14873,182 @@ interface TypescriptRuleOptions {
|
|
|
14830
14873
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
14831
14874
|
/**
|
|
14832
14875
|
* Enforce the maximum number of dependencies a module can have.
|
|
14833
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14876
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/max-dependencies.md
|
|
14834
14877
|
*/
|
|
14835
14878
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
14836
14879
|
/**
|
|
14837
14880
|
* Ensure named imports correspond to a named export in the remote file.
|
|
14838
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14881
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/named.md
|
|
14839
14882
|
*/
|
|
14840
14883
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
14841
14884
|
/**
|
|
14842
14885
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
14843
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14886
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/namespace.md
|
|
14844
14887
|
*/
|
|
14845
14888
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
14846
14889
|
/**
|
|
14847
14890
|
* Enforce a newline after import statements.
|
|
14848
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14891
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/newline-after-import.md
|
|
14849
14892
|
*/
|
|
14850
14893
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
14851
14894
|
/**
|
|
14852
14895
|
* Forbid import of modules using absolute paths.
|
|
14853
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14896
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-absolute-path.md
|
|
14854
14897
|
*/
|
|
14855
14898
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
14856
14899
|
/**
|
|
14857
14900
|
* Forbid AMD `require` and `define` calls.
|
|
14858
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14901
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-amd.md
|
|
14859
14902
|
*/
|
|
14860
14903
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
14861
14904
|
/**
|
|
14862
14905
|
* Forbid anonymous values as default exports.
|
|
14863
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14906
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-anonymous-default-export.md
|
|
14864
14907
|
*/
|
|
14865
14908
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
14866
14909
|
/**
|
|
14867
14910
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
14868
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14911
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-commonjs.md
|
|
14869
14912
|
*/
|
|
14870
14913
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
14871
14914
|
/**
|
|
14872
14915
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
14873
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14916
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-cycle.md
|
|
14874
14917
|
*/
|
|
14875
14918
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
14876
14919
|
/**
|
|
14877
14920
|
* Forbid default exports.
|
|
14878
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14921
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-default-export.md
|
|
14879
14922
|
*/
|
|
14880
14923
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
14881
14924
|
/**
|
|
14882
14925
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
14883
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14926
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-deprecated.md
|
|
14884
14927
|
*/
|
|
14885
14928
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
14886
14929
|
/**
|
|
14887
14930
|
* Forbid repeated import of the same module in multiple places.
|
|
14888
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14931
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-duplicates.md
|
|
14889
14932
|
*/
|
|
14890
14933
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
14891
14934
|
/**
|
|
14892
14935
|
* Forbid `require()` calls with expressions.
|
|
14893
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14936
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-dynamic-require.md
|
|
14894
14937
|
*/
|
|
14895
14938
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
14896
14939
|
/**
|
|
14897
14940
|
* Forbid empty named import blocks.
|
|
14898
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14941
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-empty-named-blocks.md
|
|
14899
14942
|
*/
|
|
14900
14943
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
14901
14944
|
/**
|
|
14902
14945
|
* Forbid the use of extraneous packages.
|
|
14903
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14946
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-extraneous-dependencies.md
|
|
14904
14947
|
*/
|
|
14905
14948
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
14906
14949
|
/**
|
|
14907
14950
|
* Forbid import statements with CommonJS module.exports.
|
|
14908
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14951
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-import-module-exports.md
|
|
14909
14952
|
*/
|
|
14910
14953
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
14911
14954
|
/**
|
|
14912
14955
|
* Forbid importing the submodules of other modules.
|
|
14913
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14956
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-internal-modules.md
|
|
14914
14957
|
*/
|
|
14915
14958
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
14916
14959
|
/**
|
|
14917
14960
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
14918
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14961
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-mutable-exports.md
|
|
14919
14962
|
*/
|
|
14920
14963
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
14921
14964
|
/**
|
|
14922
14965
|
* Forbid use of exported name as identifier of default export.
|
|
14923
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14966
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default.md
|
|
14924
14967
|
*/
|
|
14925
14968
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
14926
14969
|
/**
|
|
14927
14970
|
* Forbid use of exported name as property of default export.
|
|
14928
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14971
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-as-default-member.md
|
|
14929
14972
|
*/
|
|
14930
14973
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
14931
14974
|
/**
|
|
14932
14975
|
* Forbid named default exports.
|
|
14933
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14976
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-default.md
|
|
14934
14977
|
*/
|
|
14935
14978
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
14936
14979
|
/**
|
|
14937
14980
|
* Forbid named exports.
|
|
14938
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14981
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-named-export.md
|
|
14939
14982
|
*/
|
|
14940
14983
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
14941
14984
|
/**
|
|
14942
14985
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
14943
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14986
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-namespace.md
|
|
14944
14987
|
*/
|
|
14945
14988
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
14946
14989
|
/**
|
|
14947
14990
|
* Forbid Node.js builtin modules.
|
|
14948
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14991
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-nodejs-modules.md
|
|
14949
14992
|
*/
|
|
14950
14993
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
14951
14994
|
/**
|
|
14952
14995
|
* Forbid importing packages through relative paths.
|
|
14953
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
14996
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-packages.md
|
|
14954
14997
|
*/
|
|
14955
14998
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
14956
14999
|
/**
|
|
14957
15000
|
* Forbid importing modules from parent directories.
|
|
14958
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15001
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-relative-parent-imports.md
|
|
14959
15002
|
*/
|
|
14960
15003
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
14961
15004
|
/**
|
|
14962
15005
|
* Enforce which files can be imported in a given folder.
|
|
14963
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15006
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-restricted-paths.md
|
|
14964
15007
|
*/
|
|
14965
15008
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
14966
15009
|
/**
|
|
14967
15010
|
* Forbid a module from importing itself.
|
|
14968
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15011
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-self-import.md
|
|
14969
15012
|
*/
|
|
14970
15013
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
14971
15014
|
/**
|
|
14972
15015
|
* Forbid unassigned imports.
|
|
14973
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15016
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unassigned-import.md
|
|
14974
15017
|
*/
|
|
14975
15018
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
14976
15019
|
/**
|
|
14977
15020
|
* Ensure imports point to a file/module that can be resolved.
|
|
14978
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15021
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unresolved.md
|
|
14979
15022
|
*/
|
|
14980
15023
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
14981
15024
|
/**
|
|
14982
15025
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
14983
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15026
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-unused-modules.md
|
|
14984
15027
|
*/
|
|
14985
15028
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
14986
15029
|
/**
|
|
14987
15030
|
* Forbid unnecessary path segments in import and require statements.
|
|
14988
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15031
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-useless-path-segments.md
|
|
14989
15032
|
*/
|
|
14990
15033
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
14991
15034
|
/**
|
|
14992
15035
|
* Forbid webpack loader syntax in imports.
|
|
14993
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15036
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
14994
15037
|
*/
|
|
14995
15038
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
14996
15039
|
/**
|
|
14997
15040
|
* Enforce a convention in module import order.
|
|
14998
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15041
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/order.md
|
|
14999
15042
|
*/
|
|
15000
15043
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15001
15044
|
/**
|
|
15002
15045
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15003
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15046
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/prefer-default-export.md
|
|
15004
15047
|
*/
|
|
15005
15048
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15006
15049
|
/**
|
|
15007
15050
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15008
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.
|
|
15051
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.5.1/docs/rules/unambiguous.md
|
|
15009
15052
|
*/
|
|
15010
15053
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15011
15054
|
}
|
|
@@ -18418,6 +18461,23 @@ type TypescriptEslintNoFloatingPromises =
|
|
|
18418
18461
|
ignoreVoid?: boolean;
|
|
18419
18462
|
|
|
18420
18463
|
ignoreIIFE?: boolean;
|
|
18464
|
+
allowForKnownSafePromises?: (
|
|
18465
|
+
| string
|
|
18466
|
+
| {
|
|
18467
|
+
from: "file";
|
|
18468
|
+
name: string | [string, ...string[]];
|
|
18469
|
+
path?: string;
|
|
18470
|
+
}
|
|
18471
|
+
| {
|
|
18472
|
+
from: "lib";
|
|
18473
|
+
name: string | [string, ...string[]];
|
|
18474
|
+
}
|
|
18475
|
+
| {
|
|
18476
|
+
from: "package";
|
|
18477
|
+
name: string | [string, ...string[]];
|
|
18478
|
+
package: string;
|
|
18479
|
+
}
|
|
18480
|
+
)[];
|
|
18421
18481
|
},
|
|
18422
18482
|
];
|
|
18423
18483
|
// ----- @typescript-eslint/no-inferrable-types -----
|
|
@@ -19130,6 +19190,8 @@ type TypescriptEslintSortTypeConstituents =
|
|
|
19130
19190
|
|
|
19131
19191
|
checkUnions?: boolean;
|
|
19132
19192
|
|
|
19193
|
+
caseSensitive?: boolean;
|
|
19194
|
+
|
|
19133
19195
|
groupOrder?: (
|
|
19134
19196
|
| "conditional"
|
|
19135
19197
|
| "function"
|
|
@@ -19637,677 +19699,682 @@ type ImportPreferDefaultExport =
|
|
|
19637
19699
|
interface UnicornRuleOptions {
|
|
19638
19700
|
/**
|
|
19639
19701
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
19640
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/better-regex.md
|
|
19641
19703
|
*/
|
|
19642
19704
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
19643
19705
|
/**
|
|
19644
19706
|
* Enforce a specific parameter name in catch clauses.
|
|
19645
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/catch-error-name.md
|
|
19646
19708
|
*/
|
|
19647
19709
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
19648
19710
|
/**
|
|
19649
19711
|
* Use destructured variables over properties.
|
|
19650
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-destructuring.md
|
|
19651
19713
|
*/
|
|
19652
19714
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
19653
19715
|
/**
|
|
19654
19716
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
19655
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-empty-array-spread.md
|
|
19656
19718
|
*/
|
|
19657
19719
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
19658
19720
|
/**
|
|
19659
19721
|
* Move function definitions to the highest possible scope.
|
|
19660
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/consistent-function-scoping.md
|
|
19661
19723
|
*/
|
|
19662
19724
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
19663
19725
|
/**
|
|
19664
19726
|
* Enforce correct `Error` subclassing.
|
|
19665
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/custom-error-definition.md
|
|
19666
19728
|
*/
|
|
19667
19729
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
19668
19730
|
/**
|
|
19669
19731
|
* Enforce no spaces between braces.
|
|
19670
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/empty-brace-spaces.md
|
|
19671
19733
|
*/
|
|
19672
19734
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
19673
19735
|
/**
|
|
19674
19736
|
* Enforce passing a `message` value when creating a built-in error.
|
|
19675
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/error-message.md
|
|
19676
19738
|
*/
|
|
19677
19739
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
19678
19740
|
/**
|
|
19679
19741
|
* Require escape sequences to use uppercase values.
|
|
19680
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/escape-case.md
|
|
19681
19743
|
*/
|
|
19682
19744
|
"unicorn/escape-case"?: Linter.RuleEntry<[]>;
|
|
19683
19745
|
/**
|
|
19684
19746
|
* Add expiration conditions to TODO comments.
|
|
19685
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/expiring-todo-comments.md
|
|
19686
19748
|
*/
|
|
19687
19749
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
19688
19750
|
/**
|
|
19689
19751
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
19690
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/explicit-length-check.md
|
|
19691
19753
|
*/
|
|
19692
19754
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
19693
19755
|
/**
|
|
19694
19756
|
* Enforce a case style for filenames.
|
|
19695
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/filename-case.md
|
|
19696
19758
|
*/
|
|
19697
19759
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
19698
19760
|
/**
|
|
19699
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19761
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#import-index
|
|
19700
19762
|
* @deprecated
|
|
19701
19763
|
*/
|
|
19702
19764
|
"unicorn/import-index"?: Linter.RuleEntry<[]>;
|
|
19703
19765
|
/**
|
|
19704
19766
|
* Enforce specific import styles per module.
|
|
19705
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/import-style.md
|
|
19706
19768
|
*/
|
|
19707
19769
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
19708
19770
|
/**
|
|
19709
19771
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
19710
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/new-for-builtins.md
|
|
19711
19773
|
*/
|
|
19712
19774
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
19713
19775
|
/**
|
|
19714
19776
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
19715
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
19716
19778
|
*/
|
|
19717
19779
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
19718
19780
|
/**
|
|
19719
19781
|
* Disallow anonymous functions and classes as the default export.
|
|
19720
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-anonymous-default-export.md
|
|
19721
19783
|
*/
|
|
19722
19784
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
19723
19785
|
/**
|
|
19724
19786
|
* Prevent passing a function reference directly to iterator methods.
|
|
19725
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-callback-reference.md
|
|
19726
19788
|
*/
|
|
19727
19789
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
19728
19790
|
/**
|
|
19729
19791
|
* Prefer `for…of` over the `forEach` method.
|
|
19730
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19792
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-for-each.md
|
|
19731
19793
|
*/
|
|
19732
19794
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
19733
19795
|
/**
|
|
19734
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19796
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
19735
19797
|
* @deprecated
|
|
19736
19798
|
*/
|
|
19737
19799
|
"unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
|
|
19738
19800
|
/**
|
|
19739
19801
|
* Disallow using the `this` argument in array methods.
|
|
19740
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-method-this-argument.md
|
|
19741
19803
|
*/
|
|
19742
19804
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
19743
19805
|
/**
|
|
19744
19806
|
* Enforce combining multiple `Array#push()` into one call.
|
|
19745
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-push-push.md
|
|
19746
19808
|
*/
|
|
19747
19809
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
19748
19810
|
/**
|
|
19749
19811
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
19750
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-array-reduce.md
|
|
19751
19813
|
*/
|
|
19752
19814
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
19753
19815
|
/**
|
|
19754
19816
|
* Disallow member access from await expression.
|
|
19755
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19817
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-expression-member.md
|
|
19756
19818
|
*/
|
|
19757
19819
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
19758
19820
|
/**
|
|
19759
19821
|
* Disallow using `await` in `Promise` method parameters.
|
|
19760
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19822
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-await-in-promise-methods.md
|
|
19761
19823
|
*/
|
|
19762
19824
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19763
19825
|
/**
|
|
19764
19826
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
19765
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19827
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-console-spaces.md
|
|
19766
19828
|
*/
|
|
19767
19829
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
19768
19830
|
/**
|
|
19769
19831
|
* Do not use `document.cookie` directly.
|
|
19770
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19832
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-document-cookie.md
|
|
19771
19833
|
*/
|
|
19772
19834
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
19773
19835
|
/**
|
|
19774
19836
|
* Disallow empty files.
|
|
19775
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19837
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-empty-file.md
|
|
19776
19838
|
*/
|
|
19777
19839
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
19778
19840
|
/**
|
|
19779
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19841
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
19780
19842
|
* @deprecated
|
|
19781
19843
|
*/
|
|
19782
19844
|
"unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
|
|
19783
19845
|
/**
|
|
19784
19846
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
19785
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19847
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-for-loop.md
|
|
19786
19848
|
*/
|
|
19787
19849
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
19788
19850
|
/**
|
|
19789
19851
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
19790
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19852
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-hex-escape.md
|
|
19791
19853
|
*/
|
|
19792
19854
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
19793
19855
|
/**
|
|
19794
19856
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
19795
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19857
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-instanceof-array.md
|
|
19796
19858
|
*/
|
|
19797
19859
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
19798
19860
|
/**
|
|
19799
19861
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
19800
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19862
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-fetch-options.md
|
|
19801
19863
|
*/
|
|
19802
19864
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
19803
19865
|
/**
|
|
19804
19866
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
19805
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19867
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
19806
19868
|
*/
|
|
19807
19869
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
19808
19870
|
/**
|
|
19809
19871
|
* Disallow identifiers starting with `new` or `class`.
|
|
19810
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19872
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-keyword-prefix.md
|
|
19811
19873
|
*/
|
|
19812
19874
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
19813
19875
|
/**
|
|
19814
19876
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
19815
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19877
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-lonely-if.md
|
|
19816
19878
|
*/
|
|
19817
19879
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
19818
19880
|
/**
|
|
19819
19881
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
19820
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19882
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
19821
19883
|
*/
|
|
19822
19884
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
19823
19885
|
/**
|
|
19824
19886
|
* Disallow negated conditions.
|
|
19825
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19887
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negated-condition.md
|
|
19826
19888
|
*/
|
|
19827
19889
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
19890
|
+
/**
|
|
19891
|
+
* Disallow negated expression in equality check.
|
|
19892
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-negation-in-equality-check.md
|
|
19893
|
+
*/
|
|
19894
|
+
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
19828
19895
|
/**
|
|
19829
19896
|
* Disallow nested ternary expressions.
|
|
19830
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19897
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-nested-ternary.md
|
|
19831
19898
|
*/
|
|
19832
19899
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
19833
19900
|
/**
|
|
19834
19901
|
* Disallow `new Array()`.
|
|
19835
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19902
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-array.md
|
|
19836
19903
|
*/
|
|
19837
19904
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
19838
19905
|
/**
|
|
19839
19906
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
19840
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19907
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-new-buffer.md
|
|
19841
19908
|
*/
|
|
19842
19909
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
19843
19910
|
/**
|
|
19844
19911
|
* Disallow the use of the `null` literal.
|
|
19845
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19912
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-null.md
|
|
19846
19913
|
*/
|
|
19847
19914
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
19848
19915
|
/**
|
|
19849
19916
|
* Disallow the use of objects as default parameters.
|
|
19850
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19917
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-object-as-default-parameter.md
|
|
19851
19918
|
*/
|
|
19852
19919
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
19853
19920
|
/**
|
|
19854
19921
|
* Disallow `process.exit()`.
|
|
19855
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19922
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-process-exit.md
|
|
19856
19923
|
*/
|
|
19857
19924
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
19858
19925
|
/**
|
|
19859
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19926
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-reduce
|
|
19860
19927
|
* @deprecated
|
|
19861
19928
|
*/
|
|
19862
19929
|
"unicorn/no-reduce"?: Linter.RuleEntry<[]>;
|
|
19863
19930
|
/**
|
|
19864
19931
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
19865
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19932
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
19866
19933
|
*/
|
|
19867
19934
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19868
19935
|
/**
|
|
19869
19936
|
* Disallow classes that only have static members.
|
|
19870
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19937
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-static-only-class.md
|
|
19871
19938
|
*/
|
|
19872
19939
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
19873
19940
|
/**
|
|
19874
19941
|
* Disallow `then` property.
|
|
19875
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19942
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-thenable.md
|
|
19876
19943
|
*/
|
|
19877
19944
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
19878
19945
|
/**
|
|
19879
19946
|
* Disallow assigning `this` to a variable.
|
|
19880
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19947
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-this-assignment.md
|
|
19881
19948
|
*/
|
|
19882
19949
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
19883
19950
|
/**
|
|
19884
19951
|
* Disallow comparing `undefined` using `typeof`.
|
|
19885
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19952
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-typeof-undefined.md
|
|
19886
19953
|
*/
|
|
19887
19954
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
19888
19955
|
/**
|
|
19889
19956
|
* Disallow awaiting non-promise values.
|
|
19890
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19957
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-await.md
|
|
19891
19958
|
*/
|
|
19892
19959
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
19893
19960
|
/**
|
|
19894
19961
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
19895
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19962
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
19896
19963
|
*/
|
|
19897
19964
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
19898
19965
|
/**
|
|
19899
19966
|
* Disallow unreadable array destructuring.
|
|
19900
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19967
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
19901
19968
|
*/
|
|
19902
19969
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
19903
19970
|
/**
|
|
19904
19971
|
* Disallow unreadable IIFEs.
|
|
19905
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19972
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unreadable-iife.md
|
|
19906
19973
|
*/
|
|
19907
19974
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
19908
19975
|
/**
|
|
19909
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19976
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
19910
19977
|
* @deprecated
|
|
19911
19978
|
*/
|
|
19912
19979
|
"unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
|
|
19913
19980
|
/**
|
|
19914
19981
|
* Disallow unused object properties.
|
|
19915
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19982
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-unused-properties.md
|
|
19916
19983
|
*/
|
|
19917
19984
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
19918
19985
|
/**
|
|
19919
19986
|
* Disallow useless fallback when spreading in object literals.
|
|
19920
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19987
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
19921
19988
|
*/
|
|
19922
19989
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
19923
19990
|
/**
|
|
19924
19991
|
* Disallow useless array length check.
|
|
19925
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19992
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-length-check.md
|
|
19926
19993
|
*/
|
|
19927
19994
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
19928
19995
|
/**
|
|
19929
19996
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
19930
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19997
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
19931
19998
|
*/
|
|
19932
19999
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
19933
20000
|
/**
|
|
19934
20001
|
* Disallow unnecessary spread.
|
|
19935
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20002
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-spread.md
|
|
19936
20003
|
*/
|
|
19937
20004
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
19938
20005
|
/**
|
|
19939
20006
|
* Disallow useless case in switch statements.
|
|
19940
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20007
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-switch-case.md
|
|
19941
20008
|
*/
|
|
19942
20009
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
19943
20010
|
/**
|
|
19944
20011
|
* Disallow useless `undefined`.
|
|
19945
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20012
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-useless-undefined.md
|
|
19946
20013
|
*/
|
|
19947
20014
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
19948
20015
|
/**
|
|
19949
20016
|
* Disallow number literals with zero fractions or dangling dots.
|
|
19950
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20017
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/no-zero-fractions.md
|
|
19951
20018
|
*/
|
|
19952
20019
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
19953
20020
|
/**
|
|
19954
20021
|
* Enforce proper case for numeric literals.
|
|
19955
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20022
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/number-literal-case.md
|
|
19956
20023
|
*/
|
|
19957
20024
|
"unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
|
|
19958
20025
|
/**
|
|
19959
20026
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
19960
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20027
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/numeric-separators-style.md
|
|
19961
20028
|
*/
|
|
19962
20029
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
19963
20030
|
/**
|
|
19964
20031
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
19965
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20032
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-add-event-listener.md
|
|
19966
20033
|
*/
|
|
19967
20034
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
19968
20035
|
/**
|
|
19969
20036
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
19970
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20037
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-find.md
|
|
19971
20038
|
*/
|
|
19972
20039
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
19973
20040
|
/**
|
|
19974
20041
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
19975
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20042
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat.md
|
|
19976
20043
|
*/
|
|
19977
20044
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
19978
20045
|
/**
|
|
19979
20046
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
19980
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20047
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-flat-map.md
|
|
19981
20048
|
*/
|
|
19982
20049
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
19983
20050
|
/**
|
|
19984
20051
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
19985
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20052
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-index-of.md
|
|
19986
20053
|
*/
|
|
19987
20054
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
19988
20055
|
/**
|
|
19989
|
-
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast}(…)`.
|
|
19990
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20056
|
+
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
20057
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-array-some.md
|
|
19991
20058
|
*/
|
|
19992
20059
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
19993
20060
|
/**
|
|
19994
20061
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
19995
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20062
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-at.md
|
|
19996
20063
|
*/
|
|
19997
20064
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
19998
20065
|
/**
|
|
19999
20066
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
20000
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20067
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
20001
20068
|
*/
|
|
20002
20069
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
20003
20070
|
/**
|
|
20004
20071
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
20005
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20072
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-code-point.md
|
|
20006
20073
|
*/
|
|
20007
20074
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
20008
20075
|
/**
|
|
20009
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20076
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
20010
20077
|
* @deprecated
|
|
20011
20078
|
*/
|
|
20012
20079
|
"unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
|
|
20013
20080
|
/**
|
|
20014
20081
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
20015
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20082
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-date-now.md
|
|
20016
20083
|
*/
|
|
20017
20084
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
20018
20085
|
/**
|
|
20019
20086
|
* Prefer default parameters over reassignment.
|
|
20020
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20087
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-default-parameters.md
|
|
20021
20088
|
*/
|
|
20022
20089
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
20023
20090
|
/**
|
|
20024
20091
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
20025
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20092
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-append.md
|
|
20026
20093
|
*/
|
|
20027
20094
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
20028
20095
|
/**
|
|
20029
20096
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
20030
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20097
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
20031
20098
|
*/
|
|
20032
20099
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
20033
20100
|
/**
|
|
20034
20101
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
20035
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20102
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-remove.md
|
|
20036
20103
|
*/
|
|
20037
20104
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
20038
20105
|
/**
|
|
20039
20106
|
* Prefer `.textContent` over `.innerText`.
|
|
20040
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20107
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
20041
20108
|
*/
|
|
20042
20109
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
20043
20110
|
/**
|
|
20044
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20111
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
20045
20112
|
* @deprecated
|
|
20046
20113
|
*/
|
|
20047
20114
|
"unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
|
|
20048
20115
|
/**
|
|
20049
20116
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
20050
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20117
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-event-target.md
|
|
20051
20118
|
*/
|
|
20052
20119
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
20053
20120
|
/**
|
|
20054
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20121
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
20055
20122
|
* @deprecated
|
|
20056
20123
|
*/
|
|
20057
20124
|
"unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
|
|
20058
20125
|
/**
|
|
20059
20126
|
* Prefer `export…from` when re-exporting.
|
|
20060
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20127
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-export-from.md
|
|
20061
20128
|
*/
|
|
20062
20129
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
20063
20130
|
/**
|
|
20064
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20131
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
20065
20132
|
* @deprecated
|
|
20066
20133
|
*/
|
|
20067
20134
|
"unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
|
|
20068
20135
|
/**
|
|
20069
|
-
* Prefer `.includes()` over `.indexOf()
|
|
20070
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20136
|
+
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
20137
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-includes.md
|
|
20071
20138
|
*/
|
|
20072
20139
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
20073
20140
|
/**
|
|
20074
20141
|
* Prefer reading a JSON file as a buffer.
|
|
20075
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20142
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
20076
20143
|
*/
|
|
20077
20144
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
20078
20145
|
/**
|
|
20079
20146
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
20080
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20147
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
20081
20148
|
*/
|
|
20082
20149
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
20083
20150
|
/**
|
|
20084
20151
|
* Prefer using a logical operator over a ternary.
|
|
20085
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20152
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
20086
20153
|
*/
|
|
20087
20154
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
20088
20155
|
/**
|
|
20089
20156
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
20090
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20157
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-math-trunc.md
|
|
20091
20158
|
*/
|
|
20092
20159
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
20093
20160
|
/**
|
|
20094
20161
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
20095
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20162
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
20096
20163
|
*/
|
|
20097
20164
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
20098
20165
|
/**
|
|
20099
20166
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
20100
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20167
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-modern-math-apis.md
|
|
20101
20168
|
*/
|
|
20102
20169
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
20103
20170
|
/**
|
|
20104
20171
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
20105
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20172
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-module.md
|
|
20106
20173
|
*/
|
|
20107
20174
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
20108
20175
|
/**
|
|
20109
20176
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
20110
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20177
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
20111
20178
|
*/
|
|
20112
20179
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
20113
20180
|
/**
|
|
20114
20181
|
* Prefer negative index over `.length - index` when possible.
|
|
20115
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20182
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-negative-index.md
|
|
20116
20183
|
*/
|
|
20117
20184
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
20118
20185
|
/**
|
|
20119
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20186
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
20120
20187
|
* @deprecated
|
|
20121
20188
|
*/
|
|
20122
20189
|
"unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
|
|
20123
20190
|
/**
|
|
20124
20191
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
20125
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20192
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-node-protocol.md
|
|
20126
20193
|
*/
|
|
20127
20194
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
20128
20195
|
/**
|
|
20129
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20196
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
20130
20197
|
* @deprecated
|
|
20131
20198
|
*/
|
|
20132
20199
|
"unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
|
|
20133
20200
|
/**
|
|
20134
20201
|
* Prefer `Number` static properties over global ones.
|
|
20135
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20202
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-number-properties.md
|
|
20136
20203
|
*/
|
|
20137
20204
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
20138
20205
|
/**
|
|
20139
20206
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
20140
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20207
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-object-from-entries.md
|
|
20141
20208
|
*/
|
|
20142
20209
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
20143
20210
|
/**
|
|
20144
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20211
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
20145
20212
|
* @deprecated
|
|
20146
20213
|
*/
|
|
20147
20214
|
"unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
|
|
20148
20215
|
/**
|
|
20149
20216
|
* Prefer omitting the `catch` binding parameter.
|
|
20150
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20217
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
20151
20218
|
*/
|
|
20152
20219
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
20153
20220
|
/**
|
|
20154
20221
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
20155
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20222
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-prototype-methods.md
|
|
20156
20223
|
*/
|
|
20157
20224
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
20158
20225
|
/**
|
|
20159
20226
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
20160
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20227
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-query-selector.md
|
|
20161
20228
|
*/
|
|
20162
20229
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
20163
20230
|
/**
|
|
20164
20231
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
20165
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20232
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-reflect-apply.md
|
|
20166
20233
|
*/
|
|
20167
20234
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
20168
20235
|
/**
|
|
20169
20236
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
20170
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20237
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-regexp-test.md
|
|
20171
20238
|
*/
|
|
20172
20239
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
20173
20240
|
/**
|
|
20174
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20241
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
20175
20242
|
* @deprecated
|
|
20176
20243
|
*/
|
|
20177
20244
|
"unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
|
|
20178
20245
|
/**
|
|
20179
20246
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
20180
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20247
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-has.md
|
|
20181
20248
|
*/
|
|
20182
20249
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
20183
20250
|
/**
|
|
20184
20251
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
20185
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20252
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-set-size.md
|
|
20186
20253
|
*/
|
|
20187
20254
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
20188
20255
|
/**
|
|
20189
20256
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
20190
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20257
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-spread.md
|
|
20191
20258
|
*/
|
|
20192
20259
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
20193
20260
|
/**
|
|
20194
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20261
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
20195
20262
|
* @deprecated
|
|
20196
20263
|
*/
|
|
20197
20264
|
"unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
20198
20265
|
/**
|
|
20199
20266
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
20200
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20267
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-raw.md
|
|
20201
20268
|
*/
|
|
20202
20269
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
20203
20270
|
/**
|
|
20204
20271
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
20205
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20272
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-replace-all.md
|
|
20206
20273
|
*/
|
|
20207
20274
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
20208
20275
|
/**
|
|
20209
20276
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
20210
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20277
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-slice.md
|
|
20211
20278
|
*/
|
|
20212
20279
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
20213
20280
|
/**
|
|
20214
20281
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
20215
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20282
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
20216
20283
|
*/
|
|
20217
20284
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
20218
20285
|
/**
|
|
20219
20286
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
20220
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20287
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
20221
20288
|
*/
|
|
20222
20289
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
20223
20290
|
/**
|
|
20224
20291
|
* Prefer using `structuredClone` to create a deep clone.
|
|
20225
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20292
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-structured-clone.md
|
|
20226
20293
|
*/
|
|
20227
20294
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
20228
20295
|
/**
|
|
20229
20296
|
* Prefer `switch` over multiple `else-if`.
|
|
20230
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20297
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-switch.md
|
|
20231
20298
|
*/
|
|
20232
20299
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
20233
20300
|
/**
|
|
20234
20301
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
20235
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20302
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-ternary.md
|
|
20236
20303
|
*/
|
|
20237
20304
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
20238
20305
|
/**
|
|
20239
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20306
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
20240
20307
|
* @deprecated
|
|
20241
20308
|
*/
|
|
20242
20309
|
"unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
|
|
20243
20310
|
/**
|
|
20244
20311
|
* Prefer top-level await over top-level promises and async function calls.
|
|
20245
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20312
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-top-level-await.md
|
|
20246
20313
|
*/
|
|
20247
20314
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
20248
20315
|
/**
|
|
20249
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20316
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
20250
20317
|
* @deprecated
|
|
20251
20318
|
*/
|
|
20252
20319
|
"unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
20253
20320
|
/**
|
|
20254
20321
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
20255
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20322
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prefer-type-error.md
|
|
20256
20323
|
*/
|
|
20257
20324
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
20258
20325
|
/**
|
|
20259
20326
|
* Prevent abbreviations.
|
|
20260
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20327
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/prevent-abbreviations.md
|
|
20261
20328
|
*/
|
|
20262
20329
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
20263
20330
|
/**
|
|
20264
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20331
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
20265
20332
|
* @deprecated
|
|
20266
20333
|
*/
|
|
20267
20334
|
"unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
|
|
20268
20335
|
/**
|
|
20269
20336
|
* Enforce consistent relative URL style.
|
|
20270
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20337
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/relative-url-style.md
|
|
20271
20338
|
*/
|
|
20272
20339
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
20273
20340
|
/**
|
|
20274
20341
|
* Enforce using the separator argument with `Array#join()`.
|
|
20275
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20342
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-array-join-separator.md
|
|
20276
20343
|
*/
|
|
20277
20344
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
20278
20345
|
/**
|
|
20279
20346
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
20280
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20347
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
20281
20348
|
*/
|
|
20282
20349
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
20283
20350
|
/**
|
|
20284
20351
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
20285
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20352
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/require-post-message-target-origin.md
|
|
20286
20353
|
*/
|
|
20287
20354
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
20288
20355
|
/**
|
|
20289
20356
|
* Enforce better string content.
|
|
20290
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20357
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/string-content.md
|
|
20291
20358
|
*/
|
|
20292
20359
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
20293
20360
|
/**
|
|
20294
20361
|
* Enforce consistent brace style for `case` clauses.
|
|
20295
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20362
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/switch-case-braces.md
|
|
20296
20363
|
*/
|
|
20297
20364
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
20298
20365
|
/**
|
|
20299
20366
|
* Fix whitespace-insensitive template indentation.
|
|
20300
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20367
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/template-indent.md
|
|
20301
20368
|
*/
|
|
20302
20369
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
20303
20370
|
/**
|
|
20304
20371
|
* Enforce consistent case for text encoding identifiers.
|
|
20305
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20372
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/text-encoding-identifier-case.md
|
|
20306
20373
|
*/
|
|
20307
20374
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
20308
20375
|
/**
|
|
20309
20376
|
* Require `new` when creating an error.
|
|
20310
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20377
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v54.0.0/docs/rules/throw-new-error.md
|
|
20311
20378
|
*/
|
|
20312
20379
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
20313
20380
|
}
|
|
@@ -22318,7 +22385,7 @@ declare function importPluginMarkdown(): Promise<{
|
|
|
22318
22385
|
}>;
|
|
22319
22386
|
declare function importPluginJsdoc(): Promise<{
|
|
22320
22387
|
pluginJsdoc: eslint.ESLint.Plugin & {
|
|
22321
|
-
configs: Record<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", eslint.Linter.FlatConfig
|
|
22388
|
+
configs: Record<"recommended" | "recommended-error" | "recommended-typescript" | "recommended-typescript-error" | "recommended-typescript-flavor" | "recommended-typescript-flavor-error" | "flat/recommended" | "flat/recommended-error" | "flat/recommended-typescript" | "flat/recommended-typescript-error" | "flat/recommended-typescript-flavor" | "flat/recommended-typescript-flavor-error", eslint.Linter.FlatConfig>;
|
|
22322
22389
|
};
|
|
22323
22390
|
}>;
|
|
22324
22391
|
declare function importPluginStylistic(): Promise<{
|