@jsse/eslint-config 0.2.17 → 0.2.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +27 -33
- package/dist/index.d.cts +537 -245
- package/dist/index.d.ts +537 -245
- package/dist/index.js +27 -33
- package/package.json +20 -19
package/dist/index.d.cts
CHANGED
|
@@ -11,6 +11,7 @@ import * as yaml_eslint_parser from 'yaml-eslint-parser';
|
|
|
11
11
|
import * as eslint_plugin_jsonc_types from 'eslint-plugin-jsonc/types';
|
|
12
12
|
import * as eslint_plugin_jsonc_meta from 'eslint-plugin-jsonc/meta';
|
|
13
13
|
import * as jsonc_eslint_parser from 'jsonc-eslint-parser';
|
|
14
|
+
import * as eslint_plugin_react from 'eslint-plugin-react';
|
|
14
15
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
15
16
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
16
17
|
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
@@ -4344,233 +4345,233 @@ interface IgnoresRuleOptions {}
|
|
|
4344
4345
|
interface ImportsRuleOptions {
|
|
4345
4346
|
/**
|
|
4346
4347
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4347
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4348
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
4348
4349
|
*/
|
|
4349
4350
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4350
4351
|
/**
|
|
4351
4352
|
* Ensure a default export is present, given a default import.
|
|
4352
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4353
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
4353
4354
|
*/
|
|
4354
4355
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4355
4356
|
/**
|
|
4356
4357
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4357
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4358
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
4358
4359
|
*/
|
|
4359
4360
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4360
4361
|
/**
|
|
4361
4362
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4362
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4363
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
4363
4364
|
*/
|
|
4364
4365
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4365
4366
|
/**
|
|
4366
4367
|
* Ensure all exports appear after other statements.
|
|
4367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
4368
4369
|
*/
|
|
4369
4370
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4370
4371
|
/**
|
|
4371
4372
|
* Ensure consistent use of file extension within the import path.
|
|
4372
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
4373
4374
|
*/
|
|
4374
4375
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4375
4376
|
/**
|
|
4376
4377
|
* Ensure all imports appear before other statements.
|
|
4377
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
4378
4379
|
*/
|
|
4379
4380
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4380
4381
|
/**
|
|
4381
4382
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4382
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
4383
4384
|
*/
|
|
4384
4385
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4385
4386
|
/**
|
|
4386
4387
|
* Replaced by `import-x/first`.
|
|
4387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
4388
4389
|
* @deprecated
|
|
4389
4390
|
*/
|
|
4390
4391
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4391
4392
|
/**
|
|
4392
4393
|
* Enforce the maximum number of dependencies a module can have.
|
|
4393
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4394
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
4394
4395
|
*/
|
|
4395
4396
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4396
4397
|
/**
|
|
4397
4398
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4398
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
4399
4400
|
*/
|
|
4400
4401
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4401
4402
|
/**
|
|
4402
4403
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4403
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
4404
4405
|
*/
|
|
4405
4406
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4406
4407
|
/**
|
|
4407
4408
|
* Enforce a newline after import statements.
|
|
4408
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
4409
4410
|
*/
|
|
4410
4411
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4411
4412
|
/**
|
|
4412
4413
|
* Forbid import of modules using absolute paths.
|
|
4413
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
4414
4415
|
*/
|
|
4415
4416
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4416
4417
|
/**
|
|
4417
4418
|
* Forbid AMD `require` and `define` calls.
|
|
4418
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
4419
4420
|
*/
|
|
4420
4421
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4421
4422
|
/**
|
|
4422
4423
|
* Forbid anonymous values as default exports.
|
|
4423
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
4424
4425
|
*/
|
|
4425
4426
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4426
4427
|
/**
|
|
4427
4428
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4428
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4429
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
4429
4430
|
*/
|
|
4430
4431
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4431
4432
|
/**
|
|
4432
4433
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4433
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4434
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
4434
4435
|
*/
|
|
4435
4436
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4436
4437
|
/**
|
|
4437
4438
|
* Forbid default exports.
|
|
4438
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4439
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
4439
4440
|
*/
|
|
4440
4441
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4441
4442
|
/**
|
|
4442
4443
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4443
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4444
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
4444
4445
|
*/
|
|
4445
4446
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4446
4447
|
/**
|
|
4447
4448
|
* Forbid repeated import of the same module in multiple places.
|
|
4448
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4449
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
4449
4450
|
*/
|
|
4450
4451
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4451
4452
|
/**
|
|
4452
4453
|
* Forbid `require()` calls with expressions.
|
|
4453
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4454
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
4454
4455
|
*/
|
|
4455
4456
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4456
4457
|
/**
|
|
4457
4458
|
* Forbid empty named import blocks.
|
|
4458
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4459
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
4459
4460
|
*/
|
|
4460
4461
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4461
4462
|
/**
|
|
4462
4463
|
* Forbid the use of extraneous packages.
|
|
4463
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4464
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
4464
4465
|
*/
|
|
4465
4466
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4466
4467
|
/**
|
|
4467
4468
|
* Forbid import statements with CommonJS module.exports.
|
|
4468
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4469
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
4469
4470
|
*/
|
|
4470
4471
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4471
4472
|
/**
|
|
4472
4473
|
* Forbid importing the submodules of other modules.
|
|
4473
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4474
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
4474
4475
|
*/
|
|
4475
4476
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4476
4477
|
/**
|
|
4477
4478
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4478
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4479
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
4479
4480
|
*/
|
|
4480
4481
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4481
4482
|
/**
|
|
4482
4483
|
* Forbid use of exported name as identifier of default export.
|
|
4483
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4484
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
4484
4485
|
*/
|
|
4485
4486
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4486
4487
|
/**
|
|
4487
4488
|
* Forbid use of exported name as property of default export.
|
|
4488
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4489
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
4489
4490
|
*/
|
|
4490
4491
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4491
4492
|
/**
|
|
4492
4493
|
* Forbid named default exports.
|
|
4493
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4494
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
4494
4495
|
*/
|
|
4495
4496
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4496
4497
|
/**
|
|
4497
4498
|
* Forbid named exports.
|
|
4498
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4499
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
4499
4500
|
*/
|
|
4500
4501
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4501
4502
|
/**
|
|
4502
4503
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4503
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4504
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
4504
4505
|
*/
|
|
4505
4506
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4506
4507
|
/**
|
|
4507
4508
|
* Forbid Node.js builtin modules.
|
|
4508
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4509
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
4509
4510
|
*/
|
|
4510
4511
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4511
4512
|
/**
|
|
4512
4513
|
* Forbid importing packages through relative paths.
|
|
4513
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4514
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
4514
4515
|
*/
|
|
4515
4516
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4516
4517
|
/**
|
|
4517
4518
|
* Forbid importing modules from parent directories.
|
|
4518
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4519
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
4519
4520
|
*/
|
|
4520
4521
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4521
4522
|
/**
|
|
4522
4523
|
* Forbid importing a default export by a different name.
|
|
4523
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4524
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
4524
4525
|
*/
|
|
4525
4526
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4526
4527
|
/**
|
|
4527
4528
|
* Enforce which files can be imported in a given folder.
|
|
4528
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4529
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
4529
4530
|
*/
|
|
4530
4531
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4531
4532
|
/**
|
|
4532
4533
|
* Forbid a module from importing itself.
|
|
4533
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4534
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
4534
4535
|
*/
|
|
4535
4536
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4536
4537
|
/**
|
|
4537
4538
|
* Forbid unassigned imports.
|
|
4538
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4539
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
4539
4540
|
*/
|
|
4540
4541
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4541
4542
|
/**
|
|
4542
4543
|
* Ensure imports point to a file/module that can be resolved.
|
|
4543
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4544
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
4544
4545
|
*/
|
|
4545
4546
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4546
4547
|
/**
|
|
4547
4548
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4548
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4549
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
4549
4550
|
*/
|
|
4550
4551
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4551
4552
|
/**
|
|
4552
4553
|
* Forbid unnecessary path segments in import and require statements.
|
|
4553
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4554
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
4554
4555
|
*/
|
|
4555
4556
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4556
4557
|
/**
|
|
4557
4558
|
* Forbid webpack loader syntax in imports.
|
|
4558
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4559
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
4559
4560
|
*/
|
|
4560
4561
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4561
4562
|
/**
|
|
4562
4563
|
* Enforce a convention in module import order.
|
|
4563
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4564
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
4564
4565
|
*/
|
|
4565
4566
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4566
4567
|
/**
|
|
4567
4568
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4568
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4569
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
4569
4570
|
*/
|
|
4570
4571
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4571
4572
|
/**
|
|
4572
4573
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4573
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
4574
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
4574
4575
|
*/
|
|
4575
4576
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4576
4577
|
}
|
|
@@ -5820,6 +5821,7 @@ type JsdocRequireParam =
|
|
|
5820
5821
|
enableRestElementFixer?: boolean;
|
|
5821
5822
|
enableRootFixer?: boolean;
|
|
5822
5823
|
exemptedBy?: string[];
|
|
5824
|
+
ignoreWhenAllParamsMissing?: boolean;
|
|
5823
5825
|
unnamedRootBase?: string[];
|
|
5824
5826
|
useDefaultObjectProperties?: boolean;
|
|
5825
5827
|
},
|
|
@@ -9786,9 +9788,15 @@ type PerfectionistSortArrayIncludes =
|
|
|
9786
9788
|
|
|
9787
9789
|
order?: "asc" | "desc";
|
|
9788
9790
|
|
|
9791
|
+
matcher?: "minimatch" | "regex";
|
|
9792
|
+
|
|
9789
9793
|
ignoreCase?: boolean;
|
|
9790
9794
|
|
|
9791
9795
|
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
9796
|
+
|
|
9797
|
+
partitionByComment?: string[] | boolean | string;
|
|
9798
|
+
|
|
9799
|
+
partitionByNewLine?: boolean;
|
|
9792
9800
|
},
|
|
9793
9801
|
];
|
|
9794
9802
|
// ----- perfectionist/sort-astro-attributes -----
|
|
@@ -9800,6 +9808,8 @@ type PerfectionistSortAstroAttributes =
|
|
|
9800
9808
|
|
|
9801
9809
|
order?: "asc" | "desc";
|
|
9802
9810
|
|
|
9811
|
+
matcher?: "minimatch" | "regex";
|
|
9812
|
+
|
|
9803
9813
|
ignoreCase?: boolean;
|
|
9804
9814
|
|
|
9805
9815
|
groups?: (string | string[])[];
|
|
@@ -9818,6 +9828,8 @@ type PerfectionistSortClasses =
|
|
|
9818
9828
|
|
|
9819
9829
|
order?: "asc" | "desc";
|
|
9820
9830
|
|
|
9831
|
+
matcher?: "minimatch" | "regex";
|
|
9832
|
+
|
|
9821
9833
|
ignoreCase?: boolean;
|
|
9822
9834
|
|
|
9823
9835
|
partitionByComment?: string[] | boolean | string;
|
|
@@ -9920,6 +9932,8 @@ type PerfectionistSortEnums =
|
|
|
9920
9932
|
|
|
9921
9933
|
order?: "asc" | "desc";
|
|
9922
9934
|
|
|
9935
|
+
matcher?: "minimatch" | "regex";
|
|
9936
|
+
|
|
9923
9937
|
ignoreCase?: boolean;
|
|
9924
9938
|
|
|
9925
9939
|
sortByValue?: boolean;
|
|
@@ -9927,6 +9941,8 @@ type PerfectionistSortEnums =
|
|
|
9927
9941
|
forceNumericSort?: boolean;
|
|
9928
9942
|
|
|
9929
9943
|
partitionByComment?: string[] | boolean | string;
|
|
9944
|
+
|
|
9945
|
+
partitionByNewLine?: boolean;
|
|
9930
9946
|
},
|
|
9931
9947
|
];
|
|
9932
9948
|
// ----- perfectionist/sort-exports -----
|
|
@@ -9938,7 +9954,15 @@ type PerfectionistSortExports =
|
|
|
9938
9954
|
|
|
9939
9955
|
order?: "asc" | "desc";
|
|
9940
9956
|
|
|
9957
|
+
matcher?: "minimatch" | "regex";
|
|
9958
|
+
|
|
9941
9959
|
ignoreCase?: boolean;
|
|
9960
|
+
|
|
9961
|
+
partitionByComment?: string[] | boolean | string;
|
|
9962
|
+
|
|
9963
|
+
partitionByNewLine?: boolean;
|
|
9964
|
+
|
|
9965
|
+
groupKind?: "mixed" | "values-first" | "types-first";
|
|
9942
9966
|
},
|
|
9943
9967
|
];
|
|
9944
9968
|
// ----- perfectionist/sort-imports -----
|
|
@@ -9949,6 +9973,8 @@ type _PerfectionistSortImportsSortImports =
|
|
|
9949
9973
|
|
|
9950
9974
|
order?: "asc" | "desc";
|
|
9951
9975
|
|
|
9976
|
+
matcher?: "minimatch" | "regex";
|
|
9977
|
+
|
|
9952
9978
|
ignoreCase?: boolean;
|
|
9953
9979
|
|
|
9954
9980
|
internalPattern?: string[];
|
|
@@ -9990,10 +10016,14 @@ type PerfectionistSortInterfaces =
|
|
|
9990
10016
|
|
|
9991
10017
|
order?: "asc" | "desc";
|
|
9992
10018
|
|
|
10019
|
+
matcher?: "minimatch" | "regex";
|
|
10020
|
+
|
|
9993
10021
|
ignoreCase?: boolean;
|
|
9994
10022
|
|
|
9995
10023
|
ignorePattern?: string[];
|
|
9996
10024
|
|
|
10025
|
+
partitionByComment?: boolean | string | string[];
|
|
10026
|
+
|
|
9997
10027
|
partitionByNewLine?: boolean;
|
|
9998
10028
|
|
|
9999
10029
|
groupKind?: "mixed" | "optional-first" | "required-first";
|
|
@@ -10014,9 +10044,15 @@ type PerfectionistSortIntersectionTypes =
|
|
|
10014
10044
|
|
|
10015
10045
|
order?: "asc" | "desc";
|
|
10016
10046
|
|
|
10047
|
+
matcher?: "minimatch" | "regex";
|
|
10048
|
+
|
|
10017
10049
|
ignoreCase?: boolean;
|
|
10018
10050
|
|
|
10019
10051
|
groups?: (string | string[])[];
|
|
10052
|
+
|
|
10053
|
+
partitionByComment?: string[] | boolean | string;
|
|
10054
|
+
|
|
10055
|
+
partitionByNewLine?: boolean;
|
|
10020
10056
|
},
|
|
10021
10057
|
];
|
|
10022
10058
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10028,6 +10064,8 @@ type PerfectionistSortJsxProps =
|
|
|
10028
10064
|
|
|
10029
10065
|
order?: "asc" | "desc";
|
|
10030
10066
|
|
|
10067
|
+
matcher?: "minimatch" | "regex";
|
|
10068
|
+
|
|
10031
10069
|
ignoreCase?: boolean;
|
|
10032
10070
|
|
|
10033
10071
|
ignorePattern?: string[];
|
|
@@ -10048,7 +10086,13 @@ type PerfectionistSortMaps =
|
|
|
10048
10086
|
|
|
10049
10087
|
order?: "asc" | "desc";
|
|
10050
10088
|
|
|
10089
|
+
matcher?: "minimatch" | "regex";
|
|
10090
|
+
|
|
10051
10091
|
ignoreCase?: boolean;
|
|
10092
|
+
|
|
10093
|
+
partitionByComment?: string[] | boolean | string;
|
|
10094
|
+
|
|
10095
|
+
partitionByNewLine?: boolean;
|
|
10052
10096
|
},
|
|
10053
10097
|
];
|
|
10054
10098
|
// ----- perfectionist/sort-named-exports -----
|
|
@@ -10060,9 +10104,15 @@ type PerfectionistSortNamedExports =
|
|
|
10060
10104
|
|
|
10061
10105
|
order?: "asc" | "desc";
|
|
10062
10106
|
|
|
10107
|
+
matcher?: "minimatch" | "regex";
|
|
10108
|
+
|
|
10063
10109
|
ignoreCase?: boolean;
|
|
10064
10110
|
|
|
10065
10111
|
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10112
|
+
|
|
10113
|
+
partitionByComment?: string[] | boolean | string;
|
|
10114
|
+
|
|
10115
|
+
partitionByNewLine?: boolean;
|
|
10066
10116
|
},
|
|
10067
10117
|
];
|
|
10068
10118
|
// ----- perfectionist/sort-named-imports -----
|
|
@@ -10074,11 +10124,17 @@ type PerfectionistSortNamedImports =
|
|
|
10074
10124
|
|
|
10075
10125
|
order?: "asc" | "desc";
|
|
10076
10126
|
|
|
10127
|
+
matcher?: "minimatch" | "regex";
|
|
10128
|
+
|
|
10077
10129
|
ignoreCase?: boolean;
|
|
10078
10130
|
|
|
10079
10131
|
ignoreAlias?: boolean;
|
|
10080
10132
|
|
|
10081
10133
|
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10134
|
+
|
|
10135
|
+
partitionByComment?: string[] | boolean | string;
|
|
10136
|
+
|
|
10137
|
+
partitionByNewLine?: boolean;
|
|
10082
10138
|
},
|
|
10083
10139
|
];
|
|
10084
10140
|
// ----- perfectionist/sort-object-types -----
|
|
@@ -10090,8 +10146,12 @@ type PerfectionistSortObjectTypes =
|
|
|
10090
10146
|
|
|
10091
10147
|
order?: "asc" | "desc";
|
|
10092
10148
|
|
|
10149
|
+
matcher?: "minimatch" | "regex";
|
|
10150
|
+
|
|
10093
10151
|
ignoreCase?: boolean;
|
|
10094
10152
|
|
|
10153
|
+
partitionByComment?: string[] | boolean | string;
|
|
10154
|
+
|
|
10095
10155
|
partitionByNewLine?: boolean;
|
|
10096
10156
|
|
|
10097
10157
|
groupKind?: "mixed" | "required-first" | "optional-first";
|
|
@@ -10112,6 +10172,8 @@ type PerfectionistSortObjects =
|
|
|
10112
10172
|
|
|
10113
10173
|
order?: "asc" | "desc";
|
|
10114
10174
|
|
|
10175
|
+
matcher?: "minimatch" | "regex";
|
|
10176
|
+
|
|
10115
10177
|
ignoreCase?: boolean;
|
|
10116
10178
|
|
|
10117
10179
|
partitionByComment?: string[] | boolean | string;
|
|
@@ -10140,9 +10202,15 @@ type PerfectionistSortSets =
|
|
|
10140
10202
|
|
|
10141
10203
|
order?: "asc" | "desc";
|
|
10142
10204
|
|
|
10205
|
+
matcher?: "minimatch" | "regex";
|
|
10206
|
+
|
|
10143
10207
|
ignoreCase?: boolean;
|
|
10144
10208
|
|
|
10145
10209
|
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
10210
|
+
|
|
10211
|
+
partitionByComment?: string[] | boolean | string;
|
|
10212
|
+
|
|
10213
|
+
partitionByNewLine?: boolean;
|
|
10146
10214
|
},
|
|
10147
10215
|
];
|
|
10148
10216
|
// ----- perfectionist/sort-svelte-attributes -----
|
|
@@ -10154,6 +10222,8 @@ type PerfectionistSortSvelteAttributes =
|
|
|
10154
10222
|
|
|
10155
10223
|
order?: "asc" | "desc";
|
|
10156
10224
|
|
|
10225
|
+
matcher?: "minimatch" | "regex";
|
|
10226
|
+
|
|
10157
10227
|
ignoreCase?: boolean;
|
|
10158
10228
|
|
|
10159
10229
|
groups?: (string | string[])[];
|
|
@@ -10184,9 +10254,15 @@ type PerfectionistSortUnionTypes =
|
|
|
10184
10254
|
|
|
10185
10255
|
order?: "asc" | "desc";
|
|
10186
10256
|
|
|
10257
|
+
matcher?: "minimatch" | "regex";
|
|
10258
|
+
|
|
10187
10259
|
ignoreCase?: boolean;
|
|
10188
10260
|
|
|
10189
10261
|
groups?: (string | string[])[];
|
|
10262
|
+
|
|
10263
|
+
partitionByComment?: string[] | boolean | string;
|
|
10264
|
+
|
|
10265
|
+
partitionByNewLine?: boolean;
|
|
10190
10266
|
},
|
|
10191
10267
|
];
|
|
10192
10268
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -10198,7 +10274,13 @@ type PerfectionistSortVariableDeclarations =
|
|
|
10198
10274
|
|
|
10199
10275
|
order?: "asc" | "desc";
|
|
10200
10276
|
|
|
10277
|
+
matcher?: "minimatch" | "regex";
|
|
10278
|
+
|
|
10201
10279
|
ignoreCase?: boolean;
|
|
10280
|
+
|
|
10281
|
+
partitionByComment?: string[] | boolean | string;
|
|
10282
|
+
|
|
10283
|
+
partitionByNewLine?: boolean;
|
|
10202
10284
|
},
|
|
10203
10285
|
];
|
|
10204
10286
|
// ----- perfectionist/sort-vue-attributes -----
|
|
@@ -10210,6 +10292,8 @@ type PerfectionistSortVueAttributes =
|
|
|
10210
10292
|
|
|
10211
10293
|
order?: "asc" | "desc";
|
|
10212
10294
|
|
|
10295
|
+
matcher?: "minimatch" | "regex";
|
|
10296
|
+
|
|
10213
10297
|
ignoreCase?: boolean;
|
|
10214
10298
|
|
|
10215
10299
|
groups?: (string | string[])[];
|
|
@@ -10849,25 +10933,31 @@ type ReactForbidComponentProps =
|
|
|
10849
10933
|
| {
|
|
10850
10934
|
propName?: string;
|
|
10851
10935
|
allowedFor?: string[];
|
|
10936
|
+
allowedForPatterns?: string[];
|
|
10852
10937
|
message?: string;
|
|
10853
10938
|
}
|
|
10854
|
-
|
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10939
|
+
| (
|
|
10940
|
+
| {
|
|
10941
|
+
[k: string]: unknown | undefined;
|
|
10942
|
+
}
|
|
10943
|
+
| {
|
|
10944
|
+
[k: string]: unknown | undefined;
|
|
10945
|
+
}
|
|
10946
|
+
)
|
|
10860
10947
|
| {
|
|
10861
10948
|
propNamePattern?: string;
|
|
10862
10949
|
allowedFor?: string[];
|
|
10950
|
+
allowedForPatterns?: string[];
|
|
10863
10951
|
message?: string;
|
|
10864
10952
|
}
|
|
10865
|
-
|
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10953
|
+
| (
|
|
10954
|
+
| {
|
|
10955
|
+
[k: string]: unknown | undefined;
|
|
10956
|
+
}
|
|
10957
|
+
| {
|
|
10958
|
+
[k: string]: unknown | undefined;
|
|
10959
|
+
}
|
|
10960
|
+
)
|
|
10871
10961
|
)[];
|
|
10872
10962
|
[k: string]: unknown | undefined;
|
|
10873
10963
|
},
|
|
@@ -11492,6 +11582,7 @@ type ReactNoUnstableNestedComponents =
|
|
|
11492
11582
|
{
|
|
11493
11583
|
customValidators?: string[];
|
|
11494
11584
|
allowAsProps?: boolean;
|
|
11585
|
+
propNamePattern?: string;
|
|
11495
11586
|
},
|
|
11496
11587
|
];
|
|
11497
11588
|
// ----- react/no-unused-prop-types -----
|
|
@@ -11703,6 +11794,11 @@ interface StylisticRuleOptions {
|
|
|
11703
11794
|
* @see https://eslint.style/rules/js/computed-property-spacing
|
|
11704
11795
|
*/
|
|
11705
11796
|
"@stylistic/computed-property-spacing"?: Linter.RuleEntry<StylisticComputedPropertySpacing>;
|
|
11797
|
+
/**
|
|
11798
|
+
* Enforce consistent line breaks after opening and before closing braces
|
|
11799
|
+
* @see https://eslint.style/rules/plus/curly-newline
|
|
11800
|
+
*/
|
|
11801
|
+
"@stylistic/curly-newline"?: Linter.RuleEntry<StylisticCurlyNewline>;
|
|
11706
11802
|
/**
|
|
11707
11803
|
* Enforce consistent newlines before and after dots
|
|
11708
11804
|
* @see https://eslint.style/rules/js/dot-location
|
|
@@ -11767,7 +11863,7 @@ interface StylisticRuleOptions {
|
|
|
11767
11863
|
* Enforce closing tag location for multiline JSX
|
|
11768
11864
|
* @see https://eslint.style/rules/jsx/jsx-closing-tag-location
|
|
11769
11865
|
*/
|
|
11770
|
-
"@stylistic/jsx-closing-tag-location"?: Linter.RuleEntry<
|
|
11866
|
+
"@stylistic/jsx-closing-tag-location"?: Linter.RuleEntry<StylisticJsxClosingTagLocation>;
|
|
11771
11867
|
/**
|
|
11772
11868
|
* Disallow unnecessary JSX expressions when literals alone are sufficient or enforce JSX expressions on literals in JSX children or attributes
|
|
11773
11869
|
* @see https://eslint.style/rules/jsx/jsx-curly-brace-presence
|
|
@@ -12255,6 +12351,178 @@ type StylisticComputedPropertySpacing =
|
|
|
12255
12351
|
enforceForClassMembers?: boolean;
|
|
12256
12352
|
},
|
|
12257
12353
|
];
|
|
12354
|
+
// ----- @stylistic/curly-newline -----
|
|
12355
|
+
type StylisticCurlyNewline =
|
|
12356
|
+
| []
|
|
12357
|
+
| [
|
|
12358
|
+
| ("always" | "never")
|
|
12359
|
+
| {
|
|
12360
|
+
IfStatementConsequent?:
|
|
12361
|
+
| ("always" | "never")
|
|
12362
|
+
| {
|
|
12363
|
+
multiline?: boolean;
|
|
12364
|
+
minElements?: number;
|
|
12365
|
+
consistent?: boolean;
|
|
12366
|
+
};
|
|
12367
|
+
IfStatementAlternative?:
|
|
12368
|
+
| ("always" | "never")
|
|
12369
|
+
| {
|
|
12370
|
+
multiline?: boolean;
|
|
12371
|
+
minElements?: number;
|
|
12372
|
+
consistent?: boolean;
|
|
12373
|
+
};
|
|
12374
|
+
DoWhileStatement?:
|
|
12375
|
+
| ("always" | "never")
|
|
12376
|
+
| {
|
|
12377
|
+
multiline?: boolean;
|
|
12378
|
+
minElements?: number;
|
|
12379
|
+
consistent?: boolean;
|
|
12380
|
+
};
|
|
12381
|
+
ForInStatement?:
|
|
12382
|
+
| ("always" | "never")
|
|
12383
|
+
| {
|
|
12384
|
+
multiline?: boolean;
|
|
12385
|
+
minElements?: number;
|
|
12386
|
+
consistent?: boolean;
|
|
12387
|
+
};
|
|
12388
|
+
ForOfStatement?:
|
|
12389
|
+
| ("always" | "never")
|
|
12390
|
+
| {
|
|
12391
|
+
multiline?: boolean;
|
|
12392
|
+
minElements?: number;
|
|
12393
|
+
consistent?: boolean;
|
|
12394
|
+
};
|
|
12395
|
+
ForStatement?:
|
|
12396
|
+
| ("always" | "never")
|
|
12397
|
+
| {
|
|
12398
|
+
multiline?: boolean;
|
|
12399
|
+
minElements?: number;
|
|
12400
|
+
consistent?: boolean;
|
|
12401
|
+
};
|
|
12402
|
+
WhileStatement?:
|
|
12403
|
+
| ("always" | "never")
|
|
12404
|
+
| {
|
|
12405
|
+
multiline?: boolean;
|
|
12406
|
+
minElements?: number;
|
|
12407
|
+
consistent?: boolean;
|
|
12408
|
+
};
|
|
12409
|
+
SwitchStatement?:
|
|
12410
|
+
| ("always" | "never")
|
|
12411
|
+
| {
|
|
12412
|
+
multiline?: boolean;
|
|
12413
|
+
minElements?: number;
|
|
12414
|
+
consistent?: boolean;
|
|
12415
|
+
};
|
|
12416
|
+
SwitchCase?:
|
|
12417
|
+
| ("always" | "never")
|
|
12418
|
+
| {
|
|
12419
|
+
multiline?: boolean;
|
|
12420
|
+
minElements?: number;
|
|
12421
|
+
consistent?: boolean;
|
|
12422
|
+
};
|
|
12423
|
+
TryStatementBlock?:
|
|
12424
|
+
| ("always" | "never")
|
|
12425
|
+
| {
|
|
12426
|
+
multiline?: boolean;
|
|
12427
|
+
minElements?: number;
|
|
12428
|
+
consistent?: boolean;
|
|
12429
|
+
};
|
|
12430
|
+
TryStatementHandler?:
|
|
12431
|
+
| ("always" | "never")
|
|
12432
|
+
| {
|
|
12433
|
+
multiline?: boolean;
|
|
12434
|
+
minElements?: number;
|
|
12435
|
+
consistent?: boolean;
|
|
12436
|
+
};
|
|
12437
|
+
TryStatementFinalizer?:
|
|
12438
|
+
| ("always" | "never")
|
|
12439
|
+
| {
|
|
12440
|
+
multiline?: boolean;
|
|
12441
|
+
minElements?: number;
|
|
12442
|
+
consistent?: boolean;
|
|
12443
|
+
};
|
|
12444
|
+
BlockStatement?:
|
|
12445
|
+
| ("always" | "never")
|
|
12446
|
+
| {
|
|
12447
|
+
multiline?: boolean;
|
|
12448
|
+
minElements?: number;
|
|
12449
|
+
consistent?: boolean;
|
|
12450
|
+
};
|
|
12451
|
+
ArrowFunctionExpression?:
|
|
12452
|
+
| ("always" | "never")
|
|
12453
|
+
| {
|
|
12454
|
+
multiline?: boolean;
|
|
12455
|
+
minElements?: number;
|
|
12456
|
+
consistent?: boolean;
|
|
12457
|
+
};
|
|
12458
|
+
FunctionDeclaration?:
|
|
12459
|
+
| ("always" | "never")
|
|
12460
|
+
| {
|
|
12461
|
+
multiline?: boolean;
|
|
12462
|
+
minElements?: number;
|
|
12463
|
+
consistent?: boolean;
|
|
12464
|
+
};
|
|
12465
|
+
FunctionExpression?:
|
|
12466
|
+
| ("always" | "never")
|
|
12467
|
+
| {
|
|
12468
|
+
multiline?: boolean;
|
|
12469
|
+
minElements?: number;
|
|
12470
|
+
consistent?: boolean;
|
|
12471
|
+
};
|
|
12472
|
+
Property?:
|
|
12473
|
+
| ("always" | "never")
|
|
12474
|
+
| {
|
|
12475
|
+
multiline?: boolean;
|
|
12476
|
+
minElements?: number;
|
|
12477
|
+
consistent?: boolean;
|
|
12478
|
+
};
|
|
12479
|
+
ClassBody?:
|
|
12480
|
+
| ("always" | "never")
|
|
12481
|
+
| {
|
|
12482
|
+
multiline?: boolean;
|
|
12483
|
+
minElements?: number;
|
|
12484
|
+
consistent?: boolean;
|
|
12485
|
+
};
|
|
12486
|
+
StaticBlock?:
|
|
12487
|
+
| ("always" | "never")
|
|
12488
|
+
| {
|
|
12489
|
+
multiline?: boolean;
|
|
12490
|
+
minElements?: number;
|
|
12491
|
+
consistent?: boolean;
|
|
12492
|
+
};
|
|
12493
|
+
WithStatement?:
|
|
12494
|
+
| ("always" | "never")
|
|
12495
|
+
| {
|
|
12496
|
+
multiline?: boolean;
|
|
12497
|
+
minElements?: number;
|
|
12498
|
+
consistent?: boolean;
|
|
12499
|
+
};
|
|
12500
|
+
TSEnumBody?:
|
|
12501
|
+
| ("always" | "never")
|
|
12502
|
+
| {
|
|
12503
|
+
multiline?: boolean;
|
|
12504
|
+
minElements?: number;
|
|
12505
|
+
consistent?: boolean;
|
|
12506
|
+
};
|
|
12507
|
+
TSInterfaceBody?:
|
|
12508
|
+
| ("always" | "never")
|
|
12509
|
+
| {
|
|
12510
|
+
multiline?: boolean;
|
|
12511
|
+
minElements?: number;
|
|
12512
|
+
consistent?: boolean;
|
|
12513
|
+
};
|
|
12514
|
+
TSModuleBlock?:
|
|
12515
|
+
| ("always" | "never")
|
|
12516
|
+
| {
|
|
12517
|
+
multiline?: boolean;
|
|
12518
|
+
minElements?: number;
|
|
12519
|
+
consistent?: boolean;
|
|
12520
|
+
};
|
|
12521
|
+
multiline?: boolean;
|
|
12522
|
+
minElements?: number;
|
|
12523
|
+
consistent?: boolean;
|
|
12524
|
+
},
|
|
12525
|
+
];
|
|
12258
12526
|
// ----- @stylistic/dot-location -----
|
|
12259
12527
|
type StylisticDotLocation = [] | ["object" | "property"];
|
|
12260
12528
|
// ----- @stylistic/eol-last -----
|
|
@@ -12396,6 +12664,8 @@ type StylisticJsxClosingBracketLocation =
|
|
|
12396
12664
|
| false;
|
|
12397
12665
|
},
|
|
12398
12666
|
];
|
|
12667
|
+
// ----- @stylistic/jsx-closing-tag-location -----
|
|
12668
|
+
type StylisticJsxClosingTagLocation = [] | ["tag-aligned" | "line-aligned"];
|
|
12399
12669
|
// ----- @stylistic/jsx-curly-brace-presence -----
|
|
12400
12670
|
type StylisticJsxCurlyBracePresence =
|
|
12401
12671
|
| []
|
|
@@ -14115,6 +14385,11 @@ interface VitestRuleOptions {
|
|
|
14115
14385
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-todo.md
|
|
14116
14386
|
*/
|
|
14117
14387
|
"vitest/prefer-todo"?: Linter.RuleEntry<[]>;
|
|
14388
|
+
/**
|
|
14389
|
+
* Prefer `vi.mocked()` over `fn as Mock`
|
|
14390
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
14391
|
+
*/
|
|
14392
|
+
"vitest/prefer-vi-mocked"?: Linter.RuleEntry<[]>;
|
|
14118
14393
|
/**
|
|
14119
14394
|
* require setup and teardown to be within a hook
|
|
14120
14395
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/require-hook.md
|
|
@@ -15183,233 +15458,233 @@ interface TypescriptRuleOptions {
|
|
|
15183
15458
|
>;
|
|
15184
15459
|
/**
|
|
15185
15460
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
15186
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/consistent-type-specifier-style.md
|
|
15187
15462
|
*/
|
|
15188
15463
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
15189
15464
|
/**
|
|
15190
15465
|
* Ensure a default export is present, given a default import.
|
|
15191
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/default.md
|
|
15192
15467
|
*/
|
|
15193
15468
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15194
15469
|
/**
|
|
15195
15470
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15196
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/dynamic-import-chunkname.md
|
|
15197
15472
|
*/
|
|
15198
15473
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15199
15474
|
/**
|
|
15200
15475
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
15201
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/export.md
|
|
15202
15477
|
*/
|
|
15203
15478
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15204
15479
|
/**
|
|
15205
15480
|
* Ensure all exports appear after other statements.
|
|
15206
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/exports-last.md
|
|
15207
15482
|
*/
|
|
15208
15483
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15209
15484
|
/**
|
|
15210
15485
|
* Ensure consistent use of file extension within the import path.
|
|
15211
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/extensions.md
|
|
15212
15487
|
*/
|
|
15213
15488
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15214
15489
|
/**
|
|
15215
15490
|
* Ensure all imports appear before other statements.
|
|
15216
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/first.md
|
|
15217
15492
|
*/
|
|
15218
15493
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15219
15494
|
/**
|
|
15220
15495
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
15221
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/group-exports.md
|
|
15222
15497
|
*/
|
|
15223
15498
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15224
15499
|
/**
|
|
15225
15500
|
* Replaced by `import-x/first`.
|
|
15226
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/imports-first.md
|
|
15227
15502
|
* @deprecated
|
|
15228
15503
|
*/
|
|
15229
15504
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15230
15505
|
/**
|
|
15231
15506
|
* Enforce the maximum number of dependencies a module can have.
|
|
15232
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15507
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/max-dependencies.md
|
|
15233
15508
|
*/
|
|
15234
15509
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15235
15510
|
/**
|
|
15236
15511
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15237
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15512
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/named.md
|
|
15238
15513
|
*/
|
|
15239
15514
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15240
15515
|
/**
|
|
15241
15516
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15242
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15517
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/namespace.md
|
|
15243
15518
|
*/
|
|
15244
15519
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15245
15520
|
/**
|
|
15246
15521
|
* Enforce a newline after import statements.
|
|
15247
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15522
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/newline-after-import.md
|
|
15248
15523
|
*/
|
|
15249
15524
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15250
15525
|
/**
|
|
15251
15526
|
* Forbid import of modules using absolute paths.
|
|
15252
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15527
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-absolute-path.md
|
|
15253
15528
|
*/
|
|
15254
15529
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15255
15530
|
/**
|
|
15256
15531
|
* Forbid AMD `require` and `define` calls.
|
|
15257
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15532
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-amd.md
|
|
15258
15533
|
*/
|
|
15259
15534
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15260
15535
|
/**
|
|
15261
15536
|
* Forbid anonymous values as default exports.
|
|
15262
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15537
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-anonymous-default-export.md
|
|
15263
15538
|
*/
|
|
15264
15539
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15265
15540
|
/**
|
|
15266
15541
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15267
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15542
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-commonjs.md
|
|
15268
15543
|
*/
|
|
15269
15544
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15270
15545
|
/**
|
|
15271
15546
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15272
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15547
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-cycle.md
|
|
15273
15548
|
*/
|
|
15274
15549
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15275
15550
|
/**
|
|
15276
15551
|
* Forbid default exports.
|
|
15277
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15552
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-default-export.md
|
|
15278
15553
|
*/
|
|
15279
15554
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15280
15555
|
/**
|
|
15281
15556
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15282
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15557
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-deprecated.md
|
|
15283
15558
|
*/
|
|
15284
15559
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15285
15560
|
/**
|
|
15286
15561
|
* Forbid repeated import of the same module in multiple places.
|
|
15287
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15562
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-duplicates.md
|
|
15288
15563
|
*/
|
|
15289
15564
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15290
15565
|
/**
|
|
15291
15566
|
* Forbid `require()` calls with expressions.
|
|
15292
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15567
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-dynamic-require.md
|
|
15293
15568
|
*/
|
|
15294
15569
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15295
15570
|
/**
|
|
15296
15571
|
* Forbid empty named import blocks.
|
|
15297
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15572
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-empty-named-blocks.md
|
|
15298
15573
|
*/
|
|
15299
15574
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15300
15575
|
/**
|
|
15301
15576
|
* Forbid the use of extraneous packages.
|
|
15302
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15577
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-extraneous-dependencies.md
|
|
15303
15578
|
*/
|
|
15304
15579
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15305
15580
|
/**
|
|
15306
15581
|
* Forbid import statements with CommonJS module.exports.
|
|
15307
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15582
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-import-module-exports.md
|
|
15308
15583
|
*/
|
|
15309
15584
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15310
15585
|
/**
|
|
15311
15586
|
* Forbid importing the submodules of other modules.
|
|
15312
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15587
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-internal-modules.md
|
|
15313
15588
|
*/
|
|
15314
15589
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15315
15590
|
/**
|
|
15316
15591
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15317
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15592
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-mutable-exports.md
|
|
15318
15593
|
*/
|
|
15319
15594
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15320
15595
|
/**
|
|
15321
15596
|
* Forbid use of exported name as identifier of default export.
|
|
15322
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15597
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default.md
|
|
15323
15598
|
*/
|
|
15324
15599
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15325
15600
|
/**
|
|
15326
15601
|
* Forbid use of exported name as property of default export.
|
|
15327
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15602
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-as-default-member.md
|
|
15328
15603
|
*/
|
|
15329
15604
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15330
15605
|
/**
|
|
15331
15606
|
* Forbid named default exports.
|
|
15332
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15607
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-default.md
|
|
15333
15608
|
*/
|
|
15334
15609
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15335
15610
|
/**
|
|
15336
15611
|
* Forbid named exports.
|
|
15337
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15612
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-named-export.md
|
|
15338
15613
|
*/
|
|
15339
15614
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15340
15615
|
/**
|
|
15341
15616
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15342
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15617
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-namespace.md
|
|
15343
15618
|
*/
|
|
15344
15619
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15345
15620
|
/**
|
|
15346
15621
|
* Forbid Node.js builtin modules.
|
|
15347
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15622
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-nodejs-modules.md
|
|
15348
15623
|
*/
|
|
15349
15624
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15350
15625
|
/**
|
|
15351
15626
|
* Forbid importing packages through relative paths.
|
|
15352
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15627
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-packages.md
|
|
15353
15628
|
*/
|
|
15354
15629
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15355
15630
|
/**
|
|
15356
15631
|
* Forbid importing modules from parent directories.
|
|
15357
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15632
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-relative-parent-imports.md
|
|
15358
15633
|
*/
|
|
15359
15634
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15360
15635
|
/**
|
|
15361
15636
|
* Forbid importing a default export by a different name.
|
|
15362
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15637
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-rename-default.md
|
|
15363
15638
|
*/
|
|
15364
15639
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15365
15640
|
/**
|
|
15366
15641
|
* Enforce which files can be imported in a given folder.
|
|
15367
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15642
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-restricted-paths.md
|
|
15368
15643
|
*/
|
|
15369
15644
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15370
15645
|
/**
|
|
15371
15646
|
* Forbid a module from importing itself.
|
|
15372
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15647
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-self-import.md
|
|
15373
15648
|
*/
|
|
15374
15649
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15375
15650
|
/**
|
|
15376
15651
|
* Forbid unassigned imports.
|
|
15377
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15652
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unassigned-import.md
|
|
15378
15653
|
*/
|
|
15379
15654
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15380
15655
|
/**
|
|
15381
15656
|
* Ensure imports point to a file/module that can be resolved.
|
|
15382
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15657
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unresolved.md
|
|
15383
15658
|
*/
|
|
15384
15659
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15385
15660
|
/**
|
|
15386
15661
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15387
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15662
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-unused-modules.md
|
|
15388
15663
|
*/
|
|
15389
15664
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15390
15665
|
/**
|
|
15391
15666
|
* Forbid unnecessary path segments in import and require statements.
|
|
15392
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15667
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-useless-path-segments.md
|
|
15393
15668
|
*/
|
|
15394
15669
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15395
15670
|
/**
|
|
15396
15671
|
* Forbid webpack loader syntax in imports.
|
|
15397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15672
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/no-webpack-loader-syntax.md
|
|
15398
15673
|
*/
|
|
15399
15674
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15400
15675
|
/**
|
|
15401
15676
|
* Enforce a convention in module import order.
|
|
15402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15677
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/order.md
|
|
15403
15678
|
*/
|
|
15404
15679
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15405
15680
|
/**
|
|
15406
15681
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15682
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/prefer-default-export.md
|
|
15408
15683
|
*/
|
|
15409
15684
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15410
15685
|
/**
|
|
15411
15686
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.
|
|
15687
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.3.1/docs/rules/unambiguous.md
|
|
15413
15688
|
*/
|
|
15414
15689
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15415
15690
|
}
|
|
@@ -18563,6 +18838,8 @@ type TypescriptEslintNoUnnecessaryCondition =
|
|
|
18563
18838
|
allowConstantLoopConditions?: boolean;
|
|
18564
18839
|
|
|
18565
18840
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
18841
|
+
|
|
18842
|
+
checkTypePredicates?: boolean;
|
|
18566
18843
|
},
|
|
18567
18844
|
];
|
|
18568
18845
|
// ----- @typescript-eslint/no-unnecessary-type-assertion -----
|
|
@@ -19404,687 +19681,702 @@ type ImportPreferDefaultExport =
|
|
|
19404
19681
|
interface UnicornRuleOptions {
|
|
19405
19682
|
/**
|
|
19406
19683
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
19407
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19684
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/better-regex.md
|
|
19408
19685
|
*/
|
|
19409
19686
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
19410
19687
|
/**
|
|
19411
19688
|
* Enforce a specific parameter name in catch clauses.
|
|
19412
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19689
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/catch-error-name.md
|
|
19413
19690
|
*/
|
|
19414
19691
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
19415
19692
|
/**
|
|
19416
19693
|
* Use destructured variables over properties.
|
|
19417
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19694
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-destructuring.md
|
|
19418
19695
|
*/
|
|
19419
19696
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
19420
19697
|
/**
|
|
19421
19698
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
19422
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19699
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-empty-array-spread.md
|
|
19423
19700
|
*/
|
|
19424
19701
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
19702
|
+
/**
|
|
19703
|
+
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
19704
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-existence-index-check.md
|
|
19705
|
+
*/
|
|
19706
|
+
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
19425
19707
|
/**
|
|
19426
19708
|
* Move function definitions to the highest possible scope.
|
|
19427
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19709
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/consistent-function-scoping.md
|
|
19428
19710
|
*/
|
|
19429
19711
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
19430
19712
|
/**
|
|
19431
19713
|
* Enforce correct `Error` subclassing.
|
|
19432
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19714
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/custom-error-definition.md
|
|
19433
19715
|
*/
|
|
19434
19716
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
19435
19717
|
/**
|
|
19436
19718
|
* Enforce no spaces between braces.
|
|
19437
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19719
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/empty-brace-spaces.md
|
|
19438
19720
|
*/
|
|
19439
19721
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
19440
19722
|
/**
|
|
19441
19723
|
* Enforce passing a `message` value when creating a built-in error.
|
|
19442
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19724
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/error-message.md
|
|
19443
19725
|
*/
|
|
19444
19726
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
19445
19727
|
/**
|
|
19446
19728
|
* Require escape sequences to use uppercase values.
|
|
19447
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19729
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/escape-case.md
|
|
19448
19730
|
*/
|
|
19449
19731
|
"unicorn/escape-case"?: Linter.RuleEntry<[]>;
|
|
19450
19732
|
/**
|
|
19451
19733
|
* Add expiration conditions to TODO comments.
|
|
19452
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19734
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/expiring-todo-comments.md
|
|
19453
19735
|
*/
|
|
19454
19736
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
19455
19737
|
/**
|
|
19456
19738
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
19457
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19739
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/explicit-length-check.md
|
|
19458
19740
|
*/
|
|
19459
19741
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
19460
19742
|
/**
|
|
19461
19743
|
* Enforce a case style for filenames.
|
|
19462
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19744
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/filename-case.md
|
|
19463
19745
|
*/
|
|
19464
19746
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
19465
19747
|
/**
|
|
19466
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19748
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#import-index
|
|
19467
19749
|
* @deprecated
|
|
19468
19750
|
*/
|
|
19469
19751
|
"unicorn/import-index"?: Linter.RuleEntry<[]>;
|
|
19470
19752
|
/**
|
|
19471
19753
|
* Enforce specific import styles per module.
|
|
19472
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19754
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/import-style.md
|
|
19473
19755
|
*/
|
|
19474
19756
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
19475
19757
|
/**
|
|
19476
19758
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
19477
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19759
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/new-for-builtins.md
|
|
19478
19760
|
*/
|
|
19479
19761
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
19480
19762
|
/**
|
|
19481
19763
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
19482
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19764
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
19483
19765
|
*/
|
|
19484
19766
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
19485
19767
|
/**
|
|
19486
19768
|
* Disallow anonymous functions and classes as the default export.
|
|
19487
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19769
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-anonymous-default-export.md
|
|
19488
19770
|
*/
|
|
19489
19771
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
19490
19772
|
/**
|
|
19491
19773
|
* Prevent passing a function reference directly to iterator methods.
|
|
19492
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19774
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-callback-reference.md
|
|
19493
19775
|
*/
|
|
19494
19776
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
19495
19777
|
/**
|
|
19496
19778
|
* Prefer `for…of` over the `forEach` method.
|
|
19497
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19779
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-for-each.md
|
|
19498
19780
|
*/
|
|
19499
19781
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
19500
19782
|
/**
|
|
19501
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19783
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-array-instanceof
|
|
19502
19784
|
* @deprecated
|
|
19503
19785
|
*/
|
|
19504
19786
|
"unicorn/no-array-instanceof"?: Linter.RuleEntry<[]>;
|
|
19505
19787
|
/**
|
|
19506
19788
|
* Disallow using the `this` argument in array methods.
|
|
19507
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19789
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-method-this-argument.md
|
|
19508
19790
|
*/
|
|
19509
19791
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
19510
19792
|
/**
|
|
19511
19793
|
* Enforce combining multiple `Array#push()` into one call.
|
|
19512
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19794
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-push-push.md
|
|
19513
19795
|
*/
|
|
19514
19796
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<UnicornNoArrayPushPush>;
|
|
19515
19797
|
/**
|
|
19516
19798
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
19517
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19799
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-array-reduce.md
|
|
19518
19800
|
*/
|
|
19519
19801
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
19520
19802
|
/**
|
|
19521
19803
|
* Disallow member access from await expression.
|
|
19522
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19804
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-expression-member.md
|
|
19523
19805
|
*/
|
|
19524
19806
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
19525
19807
|
/**
|
|
19526
19808
|
* Disallow using `await` in `Promise` method parameters.
|
|
19527
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19809
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-await-in-promise-methods.md
|
|
19528
19810
|
*/
|
|
19529
19811
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19530
19812
|
/**
|
|
19531
19813
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
19532
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19814
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-console-spaces.md
|
|
19533
19815
|
*/
|
|
19534
19816
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
19535
19817
|
/**
|
|
19536
19818
|
* Do not use `document.cookie` directly.
|
|
19537
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19819
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-document-cookie.md
|
|
19538
19820
|
*/
|
|
19539
19821
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
19540
19822
|
/**
|
|
19541
19823
|
* Disallow empty files.
|
|
19542
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19824
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-empty-file.md
|
|
19543
19825
|
*/
|
|
19544
19826
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
19545
19827
|
/**
|
|
19546
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-fn-reference-in-iterator
|
|
19547
19829
|
* @deprecated
|
|
19548
19830
|
*/
|
|
19549
19831
|
"unicorn/no-fn-reference-in-iterator"?: Linter.RuleEntry<[]>;
|
|
19550
19832
|
/**
|
|
19551
19833
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
19552
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19834
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-for-loop.md
|
|
19553
19835
|
*/
|
|
19554
19836
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
19555
19837
|
/**
|
|
19556
19838
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
19557
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19839
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-hex-escape.md
|
|
19558
19840
|
*/
|
|
19559
19841
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
19560
19842
|
/**
|
|
19561
19843
|
* Require `Array.isArray()` instead of `instanceof Array`.
|
|
19562
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19844
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-instanceof-array.md
|
|
19563
19845
|
*/
|
|
19564
19846
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
19565
19847
|
/**
|
|
19566
19848
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
19567
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19849
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-fetch-options.md
|
|
19568
19850
|
*/
|
|
19569
19851
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
19570
19852
|
/**
|
|
19571
19853
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
19572
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19854
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
19573
19855
|
*/
|
|
19574
19856
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
19575
19857
|
/**
|
|
19576
19858
|
* Disallow identifiers starting with `new` or `class`.
|
|
19577
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19859
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-keyword-prefix.md
|
|
19578
19860
|
*/
|
|
19579
19861
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
19580
19862
|
/**
|
|
19581
19863
|
* Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
19582
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19864
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-length-as-slice-end.md
|
|
19583
19865
|
*/
|
|
19584
19866
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
19585
19867
|
/**
|
|
19586
19868
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
19587
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-lonely-if.md
|
|
19588
19870
|
*/
|
|
19589
19871
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
19590
19872
|
/**
|
|
19591
19873
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
19592
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
19593
19875
|
*/
|
|
19594
19876
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
19595
19877
|
/**
|
|
19596
19878
|
* Disallow negated conditions.
|
|
19597
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negated-condition.md
|
|
19598
19880
|
*/
|
|
19599
19881
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
19600
19882
|
/**
|
|
19601
19883
|
* Disallow negated expression in equality check.
|
|
19602
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-negation-in-equality-check.md
|
|
19603
19885
|
*/
|
|
19604
19886
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
19605
19887
|
/**
|
|
19606
19888
|
* Disallow nested ternary expressions.
|
|
19607
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-nested-ternary.md
|
|
19608
19890
|
*/
|
|
19609
19891
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
19610
19892
|
/**
|
|
19611
19893
|
* Disallow `new Array()`.
|
|
19612
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19894
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-array.md
|
|
19613
19895
|
*/
|
|
19614
19896
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
19615
19897
|
/**
|
|
19616
19898
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
19617
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19899
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-new-buffer.md
|
|
19618
19900
|
*/
|
|
19619
19901
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
19620
19902
|
/**
|
|
19621
19903
|
* Disallow the use of the `null` literal.
|
|
19622
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19904
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-null.md
|
|
19623
19905
|
*/
|
|
19624
19906
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
19625
19907
|
/**
|
|
19626
19908
|
* Disallow the use of objects as default parameters.
|
|
19627
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19909
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-object-as-default-parameter.md
|
|
19628
19910
|
*/
|
|
19629
19911
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
19630
19912
|
/**
|
|
19631
19913
|
* Disallow `process.exit()`.
|
|
19632
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19914
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-process-exit.md
|
|
19633
19915
|
*/
|
|
19634
19916
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
19635
19917
|
/**
|
|
19636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19918
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-reduce
|
|
19637
19919
|
* @deprecated
|
|
19638
19920
|
*/
|
|
19639
19921
|
"unicorn/no-reduce"?: Linter.RuleEntry<[]>;
|
|
19640
19922
|
/**
|
|
19641
19923
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
19642
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19924
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
19643
19925
|
*/
|
|
19644
19926
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
19645
19927
|
/**
|
|
19646
19928
|
* Disallow classes that only have static members.
|
|
19647
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19929
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-static-only-class.md
|
|
19648
19930
|
*/
|
|
19649
19931
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
19650
19932
|
/**
|
|
19651
19933
|
* Disallow `then` property.
|
|
19652
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19934
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-thenable.md
|
|
19653
19935
|
*/
|
|
19654
19936
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
19655
19937
|
/**
|
|
19656
19938
|
* Disallow assigning `this` to a variable.
|
|
19657
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19939
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-this-assignment.md
|
|
19658
19940
|
*/
|
|
19659
19941
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
19660
19942
|
/**
|
|
19661
19943
|
* Disallow comparing `undefined` using `typeof`.
|
|
19662
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19944
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-typeof-undefined.md
|
|
19663
19945
|
*/
|
|
19664
19946
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
19665
19947
|
/**
|
|
19666
19948
|
* Disallow awaiting non-promise values.
|
|
19667
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19949
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-await.md
|
|
19668
19950
|
*/
|
|
19669
19951
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
19670
19952
|
/**
|
|
19671
19953
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
19672
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19954
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
19673
19955
|
*/
|
|
19674
19956
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
19675
19957
|
/**
|
|
19676
19958
|
* Disallow unreadable array destructuring.
|
|
19677
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19959
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
19678
19960
|
*/
|
|
19679
19961
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
19680
19962
|
/**
|
|
19681
19963
|
* Disallow unreadable IIFEs.
|
|
19682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19964
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unreadable-iife.md
|
|
19683
19965
|
*/
|
|
19684
19966
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
19685
19967
|
/**
|
|
19686
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19968
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#no-unsafe-regex
|
|
19687
19969
|
* @deprecated
|
|
19688
19970
|
*/
|
|
19689
19971
|
"unicorn/no-unsafe-regex"?: Linter.RuleEntry<[]>;
|
|
19690
19972
|
/**
|
|
19691
19973
|
* Disallow unused object properties.
|
|
19692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19974
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-unused-properties.md
|
|
19693
19975
|
*/
|
|
19694
19976
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
19695
19977
|
/**
|
|
19696
19978
|
* Disallow useless fallback when spreading in object literals.
|
|
19697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19979
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
19698
19980
|
*/
|
|
19699
19981
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
19700
19982
|
/**
|
|
19701
19983
|
* Disallow useless array length check.
|
|
19702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19984
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-length-check.md
|
|
19703
19985
|
*/
|
|
19704
19986
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
19705
19987
|
/**
|
|
19706
19988
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
19707
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19989
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
19708
19990
|
*/
|
|
19709
19991
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
19710
19992
|
/**
|
|
19711
19993
|
* Disallow unnecessary spread.
|
|
19712
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19994
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-spread.md
|
|
19713
19995
|
*/
|
|
19714
19996
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
19715
19997
|
/**
|
|
19716
19998
|
* Disallow useless case in switch statements.
|
|
19717
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
19999
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-switch-case.md
|
|
19718
20000
|
*/
|
|
19719
20001
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
19720
20002
|
/**
|
|
19721
20003
|
* Disallow useless `undefined`.
|
|
19722
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20004
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-useless-undefined.md
|
|
19723
20005
|
*/
|
|
19724
20006
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
19725
20007
|
/**
|
|
19726
20008
|
* Disallow number literals with zero fractions or dangling dots.
|
|
19727
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20009
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/no-zero-fractions.md
|
|
19728
20010
|
*/
|
|
19729
20011
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
19730
20012
|
/**
|
|
19731
20013
|
* Enforce proper case for numeric literals.
|
|
19732
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20014
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/number-literal-case.md
|
|
19733
20015
|
*/
|
|
19734
20016
|
"unicorn/number-literal-case"?: Linter.RuleEntry<[]>;
|
|
19735
20017
|
/**
|
|
19736
20018
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
19737
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20019
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/numeric-separators-style.md
|
|
19738
20020
|
*/
|
|
19739
20021
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
19740
20022
|
/**
|
|
19741
20023
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
19742
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20024
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-add-event-listener.md
|
|
19743
20025
|
*/
|
|
19744
20026
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
19745
20027
|
/**
|
|
19746
20028
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
19747
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20029
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-find.md
|
|
19748
20030
|
*/
|
|
19749
20031
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
19750
20032
|
/**
|
|
19751
20033
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
19752
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20034
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat.md
|
|
19753
20035
|
*/
|
|
19754
20036
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
19755
20037
|
/**
|
|
19756
20038
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
19757
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20039
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-flat-map.md
|
|
19758
20040
|
*/
|
|
19759
20041
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
19760
20042
|
/**
|
|
19761
20043
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
19762
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20044
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-index-of.md
|
|
19763
20045
|
*/
|
|
19764
20046
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
19765
20047
|
/**
|
|
19766
20048
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
19767
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20049
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-array-some.md
|
|
19768
20050
|
*/
|
|
19769
20051
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
19770
20052
|
/**
|
|
19771
20053
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
19772
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20054
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-at.md
|
|
19773
20055
|
*/
|
|
19774
20056
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
19775
20057
|
/**
|
|
19776
20058
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
19777
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20059
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
19778
20060
|
*/
|
|
19779
20061
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
19780
20062
|
/**
|
|
19781
20063
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
19782
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20064
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-code-point.md
|
|
19783
20065
|
*/
|
|
19784
20066
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
19785
20067
|
/**
|
|
19786
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20068
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-dataset
|
|
19787
20069
|
* @deprecated
|
|
19788
20070
|
*/
|
|
19789
20071
|
"unicorn/prefer-dataset"?: Linter.RuleEntry<[]>;
|
|
19790
20072
|
/**
|
|
19791
20073
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
19792
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20074
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-date-now.md
|
|
19793
20075
|
*/
|
|
19794
20076
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
19795
20077
|
/**
|
|
19796
20078
|
* Prefer default parameters over reassignment.
|
|
19797
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20079
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-default-parameters.md
|
|
19798
20080
|
*/
|
|
19799
20081
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
19800
20082
|
/**
|
|
19801
20083
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
19802
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20084
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-append.md
|
|
19803
20085
|
*/
|
|
19804
20086
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
19805
20087
|
/**
|
|
19806
20088
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
19807
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20089
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
19808
20090
|
*/
|
|
19809
20091
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
19810
20092
|
/**
|
|
19811
20093
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
19812
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20094
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-remove.md
|
|
19813
20095
|
*/
|
|
19814
20096
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
19815
20097
|
/**
|
|
19816
20098
|
* Prefer `.textContent` over `.innerText`.
|
|
19817
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20099
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
19818
20100
|
*/
|
|
19819
20101
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
19820
20102
|
/**
|
|
19821
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20103
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-event-key
|
|
19822
20104
|
* @deprecated
|
|
19823
20105
|
*/
|
|
19824
20106
|
"unicorn/prefer-event-key"?: Linter.RuleEntry<[]>;
|
|
19825
20107
|
/**
|
|
19826
20108
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
19827
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20109
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-event-target.md
|
|
19828
20110
|
*/
|
|
19829
20111
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
19830
20112
|
/**
|
|
19831
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20113
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-exponentiation-operator
|
|
19832
20114
|
* @deprecated
|
|
19833
20115
|
*/
|
|
19834
20116
|
"unicorn/prefer-exponentiation-operator"?: Linter.RuleEntry<[]>;
|
|
19835
20117
|
/**
|
|
19836
20118
|
* Prefer `export…from` when re-exporting.
|
|
19837
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20119
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-export-from.md
|
|
19838
20120
|
*/
|
|
19839
20121
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
19840
20122
|
/**
|
|
19841
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20123
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-flat-map
|
|
19842
20124
|
* @deprecated
|
|
19843
20125
|
*/
|
|
19844
20126
|
"unicorn/prefer-flat-map"?: Linter.RuleEntry<[]>;
|
|
20127
|
+
/**
|
|
20128
|
+
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
20129
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-global-this.md
|
|
20130
|
+
*/
|
|
20131
|
+
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
19845
20132
|
/**
|
|
19846
20133
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
19847
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20134
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-includes.md
|
|
19848
20135
|
*/
|
|
19849
20136
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
19850
20137
|
/**
|
|
19851
20138
|
* Prefer reading a JSON file as a buffer.
|
|
19852
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20139
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
19853
20140
|
*/
|
|
19854
20141
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
19855
20142
|
/**
|
|
19856
20143
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
19857
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20144
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
19858
20145
|
*/
|
|
19859
20146
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
19860
20147
|
/**
|
|
19861
20148
|
* Prefer using a logical operator over a ternary.
|
|
19862
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20149
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
19863
20150
|
*/
|
|
19864
20151
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
20152
|
+
/**
|
|
20153
|
+
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
20154
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-min-max.md
|
|
20155
|
+
*/
|
|
20156
|
+
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
19865
20157
|
/**
|
|
19866
20158
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
19867
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20159
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-math-trunc.md
|
|
19868
20160
|
*/
|
|
19869
20161
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
19870
20162
|
/**
|
|
19871
20163
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
19872
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20164
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
19873
20165
|
*/
|
|
19874
20166
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
19875
20167
|
/**
|
|
19876
20168
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
19877
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20169
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-modern-math-apis.md
|
|
19878
20170
|
*/
|
|
19879
20171
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
19880
20172
|
/**
|
|
19881
20173
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
19882
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20174
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-module.md
|
|
19883
20175
|
*/
|
|
19884
20176
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
19885
20177
|
/**
|
|
19886
20178
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
19887
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20179
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
19888
20180
|
*/
|
|
19889
20181
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
19890
20182
|
/**
|
|
19891
20183
|
* Prefer negative index over `.length - index` when possible.
|
|
19892
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20184
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-negative-index.md
|
|
19893
20185
|
*/
|
|
19894
20186
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
19895
20187
|
/**
|
|
19896
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20188
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-append
|
|
19897
20189
|
* @deprecated
|
|
19898
20190
|
*/
|
|
19899
20191
|
"unicorn/prefer-node-append"?: Linter.RuleEntry<[]>;
|
|
19900
20192
|
/**
|
|
19901
20193
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
19902
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20194
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-node-protocol.md
|
|
19903
20195
|
*/
|
|
19904
20196
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
19905
20197
|
/**
|
|
19906
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20198
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-node-remove
|
|
19907
20199
|
* @deprecated
|
|
19908
20200
|
*/
|
|
19909
20201
|
"unicorn/prefer-node-remove"?: Linter.RuleEntry<[]>;
|
|
19910
20202
|
/**
|
|
19911
20203
|
* Prefer `Number` static properties over global ones.
|
|
19912
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20204
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-number-properties.md
|
|
19913
20205
|
*/
|
|
19914
20206
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
19915
20207
|
/**
|
|
19916
20208
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
19917
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20209
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-object-from-entries.md
|
|
19918
20210
|
*/
|
|
19919
20211
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
19920
20212
|
/**
|
|
19921
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20213
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-object-has-own
|
|
19922
20214
|
* @deprecated
|
|
19923
20215
|
*/
|
|
19924
20216
|
"unicorn/prefer-object-has-own"?: Linter.RuleEntry<[]>;
|
|
19925
20217
|
/**
|
|
19926
20218
|
* Prefer omitting the `catch` binding parameter.
|
|
19927
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20219
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
19928
20220
|
*/
|
|
19929
20221
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
19930
20222
|
/**
|
|
19931
20223
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
19932
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20224
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-prototype-methods.md
|
|
19933
20225
|
*/
|
|
19934
20226
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
19935
20227
|
/**
|
|
19936
|
-
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()`.
|
|
19937
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20228
|
+
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
20229
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-query-selector.md
|
|
19938
20230
|
*/
|
|
19939
20231
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
19940
20232
|
/**
|
|
19941
20233
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
19942
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20234
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-reflect-apply.md
|
|
19943
20235
|
*/
|
|
19944
20236
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
19945
20237
|
/**
|
|
19946
20238
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
19947
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20239
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-regexp-test.md
|
|
19948
20240
|
*/
|
|
19949
20241
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
19950
20242
|
/**
|
|
19951
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20243
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-replace-all
|
|
19952
20244
|
* @deprecated
|
|
19953
20245
|
*/
|
|
19954
20246
|
"unicorn/prefer-replace-all"?: Linter.RuleEntry<[]>;
|
|
19955
20247
|
/**
|
|
19956
20248
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
19957
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20249
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-has.md
|
|
19958
20250
|
*/
|
|
19959
20251
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
19960
20252
|
/**
|
|
19961
20253
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
19962
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20254
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-set-size.md
|
|
19963
20255
|
*/
|
|
19964
20256
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
19965
20257
|
/**
|
|
19966
20258
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
19967
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20259
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-spread.md
|
|
19968
20260
|
*/
|
|
19969
20261
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
19970
20262
|
/**
|
|
19971
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20263
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-starts-ends-with
|
|
19972
20264
|
* @deprecated
|
|
19973
20265
|
*/
|
|
19974
20266
|
"unicorn/prefer-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
19975
20267
|
/**
|
|
19976
20268
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
19977
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20269
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-raw.md
|
|
19978
20270
|
*/
|
|
19979
20271
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
19980
20272
|
/**
|
|
19981
20273
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
19982
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20274
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-replace-all.md
|
|
19983
20275
|
*/
|
|
19984
20276
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
19985
20277
|
/**
|
|
19986
20278
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
19987
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20279
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-slice.md
|
|
19988
20280
|
*/
|
|
19989
20281
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
19990
20282
|
/**
|
|
19991
20283
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
19992
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20284
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
19993
20285
|
*/
|
|
19994
20286
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
19995
20287
|
/**
|
|
19996
20288
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
19997
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20289
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
19998
20290
|
*/
|
|
19999
20291
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
20000
20292
|
/**
|
|
20001
20293
|
* Prefer using `structuredClone` to create a deep clone.
|
|
20002
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20294
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-structured-clone.md
|
|
20003
20295
|
*/
|
|
20004
20296
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
20005
20297
|
/**
|
|
20006
20298
|
* Prefer `switch` over multiple `else-if`.
|
|
20007
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20299
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-switch.md
|
|
20008
20300
|
*/
|
|
20009
20301
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
20010
20302
|
/**
|
|
20011
20303
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
20012
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20304
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-ternary.md
|
|
20013
20305
|
*/
|
|
20014
20306
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
20015
20307
|
/**
|
|
20016
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20308
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-text-content
|
|
20017
20309
|
* @deprecated
|
|
20018
20310
|
*/
|
|
20019
20311
|
"unicorn/prefer-text-content"?: Linter.RuleEntry<[]>;
|
|
20020
20312
|
/**
|
|
20021
20313
|
* Prefer top-level await over top-level promises and async function calls.
|
|
20022
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20314
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-top-level-await.md
|
|
20023
20315
|
*/
|
|
20024
20316
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
20025
20317
|
/**
|
|
20026
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20318
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#prefer-trim-start-end
|
|
20027
20319
|
* @deprecated
|
|
20028
20320
|
*/
|
|
20029
20321
|
"unicorn/prefer-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
20030
20322
|
/**
|
|
20031
20323
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
20032
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20324
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prefer-type-error.md
|
|
20033
20325
|
*/
|
|
20034
20326
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
20035
20327
|
/**
|
|
20036
20328
|
* Prevent abbreviations.
|
|
20037
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20329
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/prevent-abbreviations.md
|
|
20038
20330
|
*/
|
|
20039
20331
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
20040
20332
|
/**
|
|
20041
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20333
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/deprecated-rules.md#regex-shorthand
|
|
20042
20334
|
* @deprecated
|
|
20043
20335
|
*/
|
|
20044
20336
|
"unicorn/regex-shorthand"?: Linter.RuleEntry<[]>;
|
|
20045
20337
|
/**
|
|
20046
20338
|
* Enforce consistent relative URL style.
|
|
20047
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20339
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/relative-url-style.md
|
|
20048
20340
|
*/
|
|
20049
20341
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
20050
20342
|
/**
|
|
20051
20343
|
* Enforce using the separator argument with `Array#join()`.
|
|
20052
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20344
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-array-join-separator.md
|
|
20053
20345
|
*/
|
|
20054
20346
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
20055
20347
|
/**
|
|
20056
20348
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
20057
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20349
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
20058
20350
|
*/
|
|
20059
20351
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
20060
20352
|
/**
|
|
20061
20353
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
20062
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20354
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/require-post-message-target-origin.md
|
|
20063
20355
|
*/
|
|
20064
20356
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
20065
20357
|
/**
|
|
20066
20358
|
* Enforce better string content.
|
|
20067
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20359
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/string-content.md
|
|
20068
20360
|
*/
|
|
20069
20361
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
20070
20362
|
/**
|
|
20071
20363
|
* Enforce consistent brace style for `case` clauses.
|
|
20072
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20364
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/switch-case-braces.md
|
|
20073
20365
|
*/
|
|
20074
20366
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
20075
20367
|
/**
|
|
20076
20368
|
* Fix whitespace-insensitive template indentation.
|
|
20077
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20369
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/template-indent.md
|
|
20078
20370
|
*/
|
|
20079
20371
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
20080
20372
|
/**
|
|
20081
20373
|
* Enforce consistent case for text encoding identifiers.
|
|
20082
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20374
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/text-encoding-identifier-case.md
|
|
20083
20375
|
*/
|
|
20084
20376
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
20085
20377
|
/**
|
|
20086
20378
|
* Require `new` when creating an error.
|
|
20087
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
20379
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v56.0.0/docs/rules/throw-new-error.md
|
|
20088
20380
|
*/
|
|
20089
20381
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
20090
20382
|
}
|
|
@@ -21208,7 +21500,7 @@ declare const GLOB_ALL_SRC: string[];
|
|
|
21208
21500
|
declare const GLOB_EXCLUDE: string[];
|
|
21209
21501
|
|
|
21210
21502
|
declare function importPluginReact(): Promise<{
|
|
21211
|
-
pluginReact:
|
|
21503
|
+
pluginReact: typeof eslint_plugin_react;
|
|
21212
21504
|
}>;
|
|
21213
21505
|
declare function importPluginReactHooks(): Promise<{
|
|
21214
21506
|
pluginReactHooks: any;
|
|
@@ -21217,7 +21509,7 @@ declare function importPluginReactRefresh(): Promise<{
|
|
|
21217
21509
|
pluginReactRefresh: any;
|
|
21218
21510
|
}>;
|
|
21219
21511
|
declare function importReactPlugins(): Promise<{
|
|
21220
|
-
pluginReact:
|
|
21512
|
+
pluginReact: typeof eslint_plugin_react;
|
|
21221
21513
|
pluginReactHooks: any;
|
|
21222
21514
|
pluginReactRefresh: any;
|
|
21223
21515
|
}>;
|