@jsse/eslint-config 0.2.24 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +189 -0
- package/LICENSE +1 -1
- package/dist/cli.cjs +28 -5
- package/dist/cli.js +28 -5
- package/dist/esm/cli.js +30 -4
- package/dist/esm/config-fns.d.ts +2 -0
- package/dist/esm/config-fns.js +4 -0
- package/dist/esm/configs/command.d.ts +10 -0
- package/dist/esm/configs/command.js +17 -0
- package/dist/esm/configs/react.js +0 -1
- package/dist/esm/configs/sort-tsconfig.js +0 -1
- package/dist/esm/configs/tailwind.js +1 -1
- package/dist/esm/const.js +15 -0
- package/dist/esm/define-config.js +7 -3
- package/dist/esm/generated/version.d.ts +1 -0
- package/dist/esm/generated/version.js +1 -0
- package/dist/esm/index.d.ts +2 -1
- package/dist/esm/index.js +2 -1
- package/dist/esm/lager.d.ts +0 -1
- package/dist/esm/lager.js +0 -1
- package/dist/esm/log.d.ts +2 -0
- package/dist/esm/log.js +2 -0
- package/dist/esm/plugins.d.ts +744 -2
- package/dist/esm/types.d.ts +6 -0
- package/dist/esm/utils.js +1 -1
- package/dist/index.cjs +122 -70
- package/dist/index.d.cts +994 -144
- package/dist/index.d.ts +994 -144
- package/dist/index.js +124 -45
- package/package.json +30 -28
package/dist/index.d.cts
CHANGED
|
@@ -4348,233 +4348,233 @@ interface IgnoresRuleOptions {}
|
|
|
4348
4348
|
interface ImportsRuleOptions {
|
|
4349
4349
|
/**
|
|
4350
4350
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
4351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/consistent-type-specifier-style.md
|
|
4352
4352
|
*/
|
|
4353
4353
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4354
4354
|
/**
|
|
4355
4355
|
* Ensure a default export is present, given a default import.
|
|
4356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/default.md
|
|
4357
4357
|
*/
|
|
4358
4358
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4359
4359
|
/**
|
|
4360
4360
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/dynamic-import-chunkname.md
|
|
4362
4362
|
*/
|
|
4363
4363
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4364
4364
|
/**
|
|
4365
4365
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
4366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/export.md
|
|
4367
4367
|
*/
|
|
4368
4368
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4369
4369
|
/**
|
|
4370
4370
|
* Ensure all exports appear after other statements.
|
|
4371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/exports-last.md
|
|
4372
4372
|
*/
|
|
4373
4373
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4374
4374
|
/**
|
|
4375
4375
|
* Ensure consistent use of file extension within the import path.
|
|
4376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/extensions.md
|
|
4377
4377
|
*/
|
|
4378
4378
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4379
4379
|
/**
|
|
4380
4380
|
* Ensure all imports appear before other statements.
|
|
4381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/first.md
|
|
4382
4382
|
*/
|
|
4383
4383
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4384
4384
|
/**
|
|
4385
4385
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
4386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/group-exports.md
|
|
4387
4387
|
*/
|
|
4388
4388
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4389
4389
|
/**
|
|
4390
4390
|
* Replaced by `import-x/first`.
|
|
4391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/imports-first.md
|
|
4392
4392
|
* @deprecated
|
|
4393
4393
|
*/
|
|
4394
4394
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4395
4395
|
/**
|
|
4396
4396
|
* Enforce the maximum number of dependencies a module can have.
|
|
4397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/max-dependencies.md
|
|
4398
4398
|
*/
|
|
4399
4399
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4400
4400
|
/**
|
|
4401
4401
|
* Ensure named imports correspond to a named export in the remote file.
|
|
4402
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/named.md
|
|
4403
4403
|
*/
|
|
4404
4404
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4405
4405
|
/**
|
|
4406
4406
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/namespace.md
|
|
4408
4408
|
*/
|
|
4409
4409
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4410
4410
|
/**
|
|
4411
4411
|
* Enforce a newline after import statements.
|
|
4412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/newline-after-import.md
|
|
4413
4413
|
*/
|
|
4414
4414
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4415
4415
|
/**
|
|
4416
4416
|
* Forbid import of modules using absolute paths.
|
|
4417
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-absolute-path.md
|
|
4418
4418
|
*/
|
|
4419
4419
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4420
4420
|
/**
|
|
4421
4421
|
* Forbid AMD `require` and `define` calls.
|
|
4422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-amd.md
|
|
4423
4423
|
*/
|
|
4424
4424
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4425
4425
|
/**
|
|
4426
4426
|
* Forbid anonymous values as default exports.
|
|
4427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-anonymous-default-export.md
|
|
4428
4428
|
*/
|
|
4429
4429
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4430
4430
|
/**
|
|
4431
4431
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4432
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4432
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-commonjs.md
|
|
4433
4433
|
*/
|
|
4434
4434
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4435
4435
|
/**
|
|
4436
4436
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
4437
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4437
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-cycle.md
|
|
4438
4438
|
*/
|
|
4439
4439
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4440
4440
|
/**
|
|
4441
4441
|
* Forbid default exports.
|
|
4442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4442
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-default-export.md
|
|
4443
4443
|
*/
|
|
4444
4444
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4445
4445
|
/**
|
|
4446
4446
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4447
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-deprecated.md
|
|
4448
4448
|
*/
|
|
4449
4449
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4450
4450
|
/**
|
|
4451
4451
|
* Forbid repeated import of the same module in multiple places.
|
|
4452
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4452
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-duplicates.md
|
|
4453
4453
|
*/
|
|
4454
4454
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4455
4455
|
/**
|
|
4456
4456
|
* Forbid `require()` calls with expressions.
|
|
4457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4457
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-dynamic-require.md
|
|
4458
4458
|
*/
|
|
4459
4459
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4460
4460
|
/**
|
|
4461
4461
|
* Forbid empty named import blocks.
|
|
4462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4462
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-empty-named-blocks.md
|
|
4463
4463
|
*/
|
|
4464
4464
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4465
4465
|
/**
|
|
4466
4466
|
* Forbid the use of extraneous packages.
|
|
4467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4467
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-extraneous-dependencies.md
|
|
4468
4468
|
*/
|
|
4469
4469
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4470
4470
|
/**
|
|
4471
4471
|
* Forbid import statements with CommonJS module.exports.
|
|
4472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4472
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-import-module-exports.md
|
|
4473
4473
|
*/
|
|
4474
4474
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4475
4475
|
/**
|
|
4476
4476
|
* Forbid importing the submodules of other modules.
|
|
4477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4477
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-internal-modules.md
|
|
4478
4478
|
*/
|
|
4479
4479
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4480
4480
|
/**
|
|
4481
4481
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4482
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4482
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-mutable-exports.md
|
|
4483
4483
|
*/
|
|
4484
4484
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4485
4485
|
/**
|
|
4486
4486
|
* Forbid use of exported name as identifier of default export.
|
|
4487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4487
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default.md
|
|
4488
4488
|
*/
|
|
4489
4489
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4490
4490
|
/**
|
|
4491
4491
|
* Forbid use of exported name as property of default export.
|
|
4492
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4492
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default-member.md
|
|
4493
4493
|
*/
|
|
4494
4494
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4495
4495
|
/**
|
|
4496
4496
|
* Forbid named default exports.
|
|
4497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4497
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-default.md
|
|
4498
4498
|
*/
|
|
4499
4499
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4500
4500
|
/**
|
|
4501
4501
|
* Forbid named exports.
|
|
4502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4502
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-export.md
|
|
4503
4503
|
*/
|
|
4504
4504
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4505
4505
|
/**
|
|
4506
4506
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4507
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-namespace.md
|
|
4508
4508
|
*/
|
|
4509
4509
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4510
4510
|
/**
|
|
4511
4511
|
* Forbid Node.js builtin modules.
|
|
4512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4512
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-nodejs-modules.md
|
|
4513
4513
|
*/
|
|
4514
4514
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4515
4515
|
/**
|
|
4516
4516
|
* Forbid importing packages through relative paths.
|
|
4517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4517
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-packages.md
|
|
4518
4518
|
*/
|
|
4519
4519
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4520
4520
|
/**
|
|
4521
4521
|
* Forbid importing modules from parent directories.
|
|
4522
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4522
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-parent-imports.md
|
|
4523
4523
|
*/
|
|
4524
4524
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4525
4525
|
/**
|
|
4526
4526
|
* Forbid importing a default export by a different name.
|
|
4527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4527
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-rename-default.md
|
|
4528
4528
|
*/
|
|
4529
4529
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4530
4530
|
/**
|
|
4531
4531
|
* Enforce which files can be imported in a given folder.
|
|
4532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4532
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-restricted-paths.md
|
|
4533
4533
|
*/
|
|
4534
4534
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4535
4535
|
/**
|
|
4536
4536
|
* Forbid a module from importing itself.
|
|
4537
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4537
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-self-import.md
|
|
4538
4538
|
*/
|
|
4539
4539
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4540
4540
|
/**
|
|
4541
4541
|
* Forbid unassigned imports.
|
|
4542
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4542
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unassigned-import.md
|
|
4543
4543
|
*/
|
|
4544
4544
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4545
4545
|
/**
|
|
4546
4546
|
* Ensure imports point to a file/module that can be resolved.
|
|
4547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4547
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unresolved.md
|
|
4548
4548
|
*/
|
|
4549
4549
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4550
4550
|
/**
|
|
4551
4551
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
4552
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4552
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unused-modules.md
|
|
4553
4553
|
*/
|
|
4554
4554
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4555
4555
|
/**
|
|
4556
4556
|
* Forbid unnecessary path segments in import and require statements.
|
|
4557
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4557
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-useless-path-segments.md
|
|
4558
4558
|
*/
|
|
4559
4559
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4560
4560
|
/**
|
|
4561
4561
|
* Forbid webpack loader syntax in imports.
|
|
4562
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4562
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-webpack-loader-syntax.md
|
|
4563
4563
|
*/
|
|
4564
4564
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4565
4565
|
/**
|
|
4566
4566
|
* Enforce a convention in module import order.
|
|
4567
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4567
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/order.md
|
|
4568
4568
|
*/
|
|
4569
4569
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4570
4570
|
/**
|
|
4571
4571
|
* Prefer a default export if module exports a single name or multiple names.
|
|
4572
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4572
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/prefer-default-export.md
|
|
4573
4573
|
*/
|
|
4574
4574
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4575
4575
|
/**
|
|
4576
4576
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4577
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4577
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/unambiguous.md
|
|
4578
4578
|
*/
|
|
4579
4579
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4580
4580
|
}
|
|
@@ -4608,6 +4608,7 @@ type ImportExtensions$1 =
|
|
|
4608
4608
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4609
4609
|
};
|
|
4610
4610
|
ignorePackages?: boolean;
|
|
4611
|
+
checkTypeImports?: boolean;
|
|
4611
4612
|
[k: string]: unknown | undefined;
|
|
4612
4613
|
},
|
|
4613
4614
|
]
|
|
@@ -4618,19 +4619,20 @@ type ImportExtensions$1 =
|
|
|
4618
4619
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4619
4620
|
};
|
|
4620
4621
|
ignorePackages?: boolean;
|
|
4622
|
+
checkTypeImports?: boolean;
|
|
4621
4623
|
[k: string]: unknown | undefined;
|
|
4622
4624
|
},
|
|
4623
4625
|
]
|
|
4624
4626
|
| []
|
|
4627
|
+
| ["always" | "ignorePackages" | "never"]
|
|
4625
4628
|
| [
|
|
4629
|
+
"always" | "ignorePackages" | "never",
|
|
4626
4630
|
{
|
|
4627
4631
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4628
4632
|
},
|
|
4629
4633
|
]
|
|
4630
4634
|
| []
|
|
4631
|
-
| ["always" | "ignorePackages" | "never"]
|
|
4632
4635
|
| [
|
|
4633
|
-
"always" | "ignorePackages" | "never",
|
|
4634
4636
|
{
|
|
4635
4637
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
4636
4638
|
},
|
|
@@ -8423,8 +8425,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8423
8425
|
| "Crypto"
|
|
8424
8426
|
| "CryptoKey"
|
|
8425
8427
|
| "SubtleCrypto"
|
|
8428
|
+
| "CloseEvent"
|
|
8426
8429
|
| "CustomEvent"
|
|
8427
8430
|
| "Event"
|
|
8431
|
+
| "EventSource"
|
|
8428
8432
|
| "EventTarget"
|
|
8429
8433
|
| "PerformanceEntry"
|
|
8430
8434
|
| "PerformanceMark"
|
|
@@ -8472,6 +8476,17 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8472
8476
|
| "process.execArgv"
|
|
8473
8477
|
| "process.execPath"
|
|
8474
8478
|
| "process.exitCode"
|
|
8479
|
+
| "process.features.cached_builtins"
|
|
8480
|
+
| "process.features.debug"
|
|
8481
|
+
| "process.features.inspector"
|
|
8482
|
+
| "process.features.ipv6"
|
|
8483
|
+
| "process.features.require_module"
|
|
8484
|
+
| "process.features.tls"
|
|
8485
|
+
| "process.features.tls_alpn"
|
|
8486
|
+
| "process.features.tls_ocsp"
|
|
8487
|
+
| "process.features.tls_sni"
|
|
8488
|
+
| "process.features.typescript"
|
|
8489
|
+
| "process.features.uv"
|
|
8475
8490
|
| "process.finalization.register"
|
|
8476
8491
|
| "process.finalization.registerBeforeExit"
|
|
8477
8492
|
| "process.finalization.unregister"
|
|
@@ -9119,10 +9134,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9119
9134
|
| "http.Server"
|
|
9120
9135
|
| "inspector"
|
|
9121
9136
|
| "inspector.Session"
|
|
9137
|
+
| "inspector.Network.loadingFailed"
|
|
9138
|
+
| "inspector.Network.loadingFinished"
|
|
9122
9139
|
| "inspector.Network.requestWillBeSent"
|
|
9123
9140
|
| "inspector.Network.responseReceived"
|
|
9124
|
-
| "inspector.Network.loadingFinished"
|
|
9125
|
-
| "inspector.Network.loadingFailed"
|
|
9126
9141
|
| "inspector.console"
|
|
9127
9142
|
| "inspector.close"
|
|
9128
9143
|
| "inspector.open"
|
|
@@ -9140,6 +9155,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9140
9155
|
| "module.createRequire"
|
|
9141
9156
|
| "module.createRequireFromPath"
|
|
9142
9157
|
| "module.enableCompileCache"
|
|
9158
|
+
| "module.flushCompileCache"
|
|
9143
9159
|
| "module.getCompileCacheDir"
|
|
9144
9160
|
| "module.isBuiltin"
|
|
9145
9161
|
| "module.register"
|
|
@@ -9150,6 +9166,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9150
9166
|
| "module.Module.createRequire"
|
|
9151
9167
|
| "module.Module.createRequireFromPath"
|
|
9152
9168
|
| "module.Module.enableCompileCache"
|
|
9169
|
+
| "module.Module.flushCompileCache"
|
|
9153
9170
|
| "module.Module.getCompileCacheDir"
|
|
9154
9171
|
| "module.Module.isBuiltin"
|
|
9155
9172
|
| "module.Module.register"
|
|
@@ -9358,10 +9375,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9358
9375
|
| "sea.getAsset"
|
|
9359
9376
|
| "sea.getAssetAsBlob"
|
|
9360
9377
|
| "sea.getRawAsset"
|
|
9361
|
-
| "sea.
|
|
9362
|
-
| "sea.
|
|
9363
|
-
| "sea.
|
|
9364
|
-
| "sea.
|
|
9378
|
+
| "sea.sea.isSea"
|
|
9379
|
+
| "sea.sea.getAsset"
|
|
9380
|
+
| "sea.sea.getAssetAsBlob"
|
|
9381
|
+
| "sea.sea.getRawAsset"
|
|
9365
9382
|
| "stream"
|
|
9366
9383
|
| "stream.promises"
|
|
9367
9384
|
| "stream.promises.pipeline"
|
|
@@ -9418,55 +9435,42 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9418
9435
|
| "string_decoder"
|
|
9419
9436
|
| "string_decoder.StringDecoder"
|
|
9420
9437
|
| "test"
|
|
9421
|
-
| "test.
|
|
9422
|
-
| "test.
|
|
9423
|
-
| "test.
|
|
9424
|
-
| "test.
|
|
9438
|
+
| "test.after"
|
|
9439
|
+
| "test.afterEach"
|
|
9440
|
+
| "test.before"
|
|
9441
|
+
| "test.beforeEach"
|
|
9425
9442
|
| "test.describe"
|
|
9443
|
+
| "test.describe.only"
|
|
9426
9444
|
| "test.describe.skip"
|
|
9427
9445
|
| "test.describe.todo"
|
|
9428
|
-
| "test.describe.only"
|
|
9429
9446
|
| "test.it"
|
|
9447
|
+
| "test.it.only"
|
|
9430
9448
|
| "test.it.skip"
|
|
9431
9449
|
| "test.it.todo"
|
|
9432
|
-
| "test.
|
|
9433
|
-
| "test.
|
|
9434
|
-
| "test.
|
|
9435
|
-
| "test.
|
|
9436
|
-
| "test.
|
|
9437
|
-
| "test.
|
|
9438
|
-
| "test.
|
|
9439
|
-
| "test.
|
|
9440
|
-
| "test.
|
|
9450
|
+
| "test.mock"
|
|
9451
|
+
| "test.mock.fn"
|
|
9452
|
+
| "test.mock.getter"
|
|
9453
|
+
| "test.mock.method"
|
|
9454
|
+
| "test.mock.module"
|
|
9455
|
+
| "test.mock.reset"
|
|
9456
|
+
| "test.mock.restoreAll"
|
|
9457
|
+
| "test.mock.setter"
|
|
9458
|
+
| "test.mock.timers"
|
|
9459
|
+
| "test.mock.timers.enable"
|
|
9460
|
+
| "test.mock.timers.reset"
|
|
9461
|
+
| "test.mock.timers.tick"
|
|
9462
|
+
| "test.only"
|
|
9463
|
+
| "test.run"
|
|
9441
9464
|
| "test.snapshot"
|
|
9442
9465
|
| "test.snapshot.setDefaultSnapshotSerializers"
|
|
9443
9466
|
| "test.snapshot.setResolveSnapshotPath"
|
|
9444
|
-
| "test.
|
|
9445
|
-
| "test.
|
|
9446
|
-
| "test.
|
|
9447
|
-
| "test.
|
|
9448
|
-
| "test.TestsStream"
|
|
9449
|
-
| "test.TestContext"
|
|
9450
|
-
| "test.SuiteContext"
|
|
9451
|
-
| "test.test.run"
|
|
9467
|
+
| "test.skip"
|
|
9468
|
+
| "test.suite"
|
|
9469
|
+
| "test.test"
|
|
9470
|
+
| "test.test.only"
|
|
9452
9471
|
| "test.test.skip"
|
|
9453
9472
|
| "test.test.todo"
|
|
9454
|
-
| "test.
|
|
9455
|
-
| "test.test.describe"
|
|
9456
|
-
| "test.test.it"
|
|
9457
|
-
| "test.test.suite"
|
|
9458
|
-
| "test.test.before"
|
|
9459
|
-
| "test.test.after"
|
|
9460
|
-
| "test.test.beforeEach"
|
|
9461
|
-
| "test.test.afterEach"
|
|
9462
|
-
| "test.test.snapshot"
|
|
9463
|
-
| "test.test.MockFunctionContext"
|
|
9464
|
-
| "test.test.MockModuleContext"
|
|
9465
|
-
| "test.test.MockTracker"
|
|
9466
|
-
| "test.test.MockTimers"
|
|
9467
|
-
| "test.test.TestsStream"
|
|
9468
|
-
| "test.test.TestContext"
|
|
9469
|
-
| "test.test.SuiteContext"
|
|
9473
|
+
| "test.todo"
|
|
9470
9474
|
| "timers"
|
|
9471
9475
|
| "timers.Immediate"
|
|
9472
9476
|
| "timers.Timeout"
|
|
@@ -9534,6 +9538,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9534
9538
|
| "util.getCallSite"
|
|
9535
9539
|
| "util.getSystemErrorName"
|
|
9536
9540
|
| "util.getSystemErrorMap"
|
|
9541
|
+
| "util.getSystemErrorMessage"
|
|
9537
9542
|
| "util.inherits"
|
|
9538
9543
|
| "util.inspect"
|
|
9539
9544
|
| "util.inspect.custom"
|
|
@@ -9711,6 +9716,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9711
9716
|
| "worker_threads.threadId"
|
|
9712
9717
|
| "worker_threads.workerData"
|
|
9713
9718
|
| "worker_threads.getEnvironmentData"
|
|
9719
|
+
| "worker_threads.markAsUncloneable"
|
|
9714
9720
|
| "worker_threads.markAsUntransferable"
|
|
9715
9721
|
| "worker_threads.isMarkedAsUntransferable"
|
|
9716
9722
|
| "worker_threads.moveMessagePortToContext"
|
|
@@ -13609,6 +13615,31 @@ type StylisticMaxStatementsPerLine =
|
|
|
13609
13615
|
| [
|
|
13610
13616
|
{
|
|
13611
13617
|
max?: number;
|
|
13618
|
+
ignoredNodes?: (
|
|
13619
|
+
| "BreakStatement"
|
|
13620
|
+
| "ClassDeclaration"
|
|
13621
|
+
| "ContinueStatement"
|
|
13622
|
+
| "DebuggerStatement"
|
|
13623
|
+
| "DoWhileStatement"
|
|
13624
|
+
| "ExpressionStatement"
|
|
13625
|
+
| "ForInStatement"
|
|
13626
|
+
| "ForOfStatement"
|
|
13627
|
+
| "ForStatement"
|
|
13628
|
+
| "FunctionDeclaration"
|
|
13629
|
+
| "IfStatement"
|
|
13630
|
+
| "ImportDeclaration"
|
|
13631
|
+
| "LabeledStatement"
|
|
13632
|
+
| "ReturnStatement"
|
|
13633
|
+
| "SwitchStatement"
|
|
13634
|
+
| "ThrowStatement"
|
|
13635
|
+
| "TryStatement"
|
|
13636
|
+
| "VariableDeclaration"
|
|
13637
|
+
| "WhileStatement"
|
|
13638
|
+
| "WithStatement"
|
|
13639
|
+
| "ExportNamedDeclaration"
|
|
13640
|
+
| "ExportDefaultDeclaration"
|
|
13641
|
+
| "ExportAllDeclaration"
|
|
13642
|
+
)[];
|
|
13612
13643
|
},
|
|
13613
13644
|
];
|
|
13614
13645
|
// ----- @stylistic/member-delimiter-style -----
|
|
@@ -13990,9 +14021,11 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
|
|
|
13990
14021
|
| "multiline-block-like"
|
|
13991
14022
|
| "multiline-expression"
|
|
13992
14023
|
| "multiline-const"
|
|
14024
|
+
| "multiline-export"
|
|
13993
14025
|
| "multiline-let"
|
|
13994
14026
|
| "multiline-var"
|
|
13995
14027
|
| "singleline-const"
|
|
14028
|
+
| "singleline-export"
|
|
13996
14029
|
| "singleline-let"
|
|
13997
14030
|
| "singleline-var"
|
|
13998
14031
|
| "block"
|
|
@@ -14038,9 +14071,11 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
|
|
|
14038
14071
|
| "multiline-block-like"
|
|
14039
14072
|
| "multiline-expression"
|
|
14040
14073
|
| "multiline-const"
|
|
14074
|
+
| "multiline-export"
|
|
14041
14075
|
| "multiline-let"
|
|
14042
14076
|
| "multiline-var"
|
|
14043
14077
|
| "singleline-const"
|
|
14078
|
+
| "singleline-export"
|
|
14044
14079
|
| "singleline-let"
|
|
14045
14080
|
| "singleline-var"
|
|
14046
14081
|
| "block"
|
|
@@ -14085,9 +14120,11 @@ type _StylisticPaddingLineBetweenStatementsStatementType =
|
|
|
14085
14120
|
| "multiline-block-like"
|
|
14086
14121
|
| "multiline-expression"
|
|
14087
14122
|
| "multiline-const"
|
|
14123
|
+
| "multiline-export"
|
|
14088
14124
|
| "multiline-let"
|
|
14089
14125
|
| "multiline-var"
|
|
14090
14126
|
| "singleline-const"
|
|
14127
|
+
| "singleline-export"
|
|
14091
14128
|
| "singleline-let"
|
|
14092
14129
|
| "singleline-var"
|
|
14093
14130
|
| "block"
|
|
@@ -14623,6 +14660,11 @@ interface VitestRuleOptions {
|
|
|
14623
14660
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect.md
|
|
14624
14661
|
*/
|
|
14625
14662
|
"vitest/valid-expect"?: Linter.RuleEntry<VitestValidExpect>;
|
|
14663
|
+
/**
|
|
14664
|
+
* Require promises that have expectations in their chain to be valid
|
|
14665
|
+
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
|
|
14666
|
+
*/
|
|
14667
|
+
"vitest/valid-expect-in-promise"?: Linter.RuleEntry<[]>;
|
|
14626
14668
|
/**
|
|
14627
14669
|
* enforce valid titles
|
|
14628
14670
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md
|
|
@@ -14654,7 +14696,7 @@ type VitestExpectExpect =
|
|
|
14654
14696
|
| []
|
|
14655
14697
|
| [
|
|
14656
14698
|
{
|
|
14657
|
-
assertFunctionNames?: []
|
|
14699
|
+
assertFunctionNames?: string[];
|
|
14658
14700
|
additionalTestBlockFunctions?: string[];
|
|
14659
14701
|
},
|
|
14660
14702
|
];
|
|
@@ -15659,233 +15701,233 @@ interface TypescriptRuleOptions {
|
|
|
15659
15701
|
>;
|
|
15660
15702
|
/**
|
|
15661
15703
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
15662
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15704
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/consistent-type-specifier-style.md
|
|
15663
15705
|
*/
|
|
15664
15706
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
15665
15707
|
/**
|
|
15666
15708
|
* Ensure a default export is present, given a default import.
|
|
15667
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15709
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/default.md
|
|
15668
15710
|
*/
|
|
15669
15711
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15670
15712
|
/**
|
|
15671
15713
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15672
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15714
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/dynamic-import-chunkname.md
|
|
15673
15715
|
*/
|
|
15674
15716
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15675
15717
|
/**
|
|
15676
15718
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
15677
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15719
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/export.md
|
|
15678
15720
|
*/
|
|
15679
15721
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15680
15722
|
/**
|
|
15681
15723
|
* Ensure all exports appear after other statements.
|
|
15682
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15724
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/exports-last.md
|
|
15683
15725
|
*/
|
|
15684
15726
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15685
15727
|
/**
|
|
15686
15728
|
* Ensure consistent use of file extension within the import path.
|
|
15687
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15729
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/extensions.md
|
|
15688
15730
|
*/
|
|
15689
15731
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15690
15732
|
/**
|
|
15691
15733
|
* Ensure all imports appear before other statements.
|
|
15692
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15734
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/first.md
|
|
15693
15735
|
*/
|
|
15694
15736
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15695
15737
|
/**
|
|
15696
15738
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
15697
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15739
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/group-exports.md
|
|
15698
15740
|
*/
|
|
15699
15741
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15700
15742
|
/**
|
|
15701
15743
|
* Replaced by `import-x/first`.
|
|
15702
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15744
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/imports-first.md
|
|
15703
15745
|
* @deprecated
|
|
15704
15746
|
*/
|
|
15705
15747
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15706
15748
|
/**
|
|
15707
15749
|
* Enforce the maximum number of dependencies a module can have.
|
|
15708
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15750
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/max-dependencies.md
|
|
15709
15751
|
*/
|
|
15710
15752
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15711
15753
|
/**
|
|
15712
15754
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15713
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15755
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/named.md
|
|
15714
15756
|
*/
|
|
15715
15757
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15716
15758
|
/**
|
|
15717
15759
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15718
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15760
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/namespace.md
|
|
15719
15761
|
*/
|
|
15720
15762
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15721
15763
|
/**
|
|
15722
15764
|
* Enforce a newline after import statements.
|
|
15723
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15765
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/newline-after-import.md
|
|
15724
15766
|
*/
|
|
15725
15767
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15726
15768
|
/**
|
|
15727
15769
|
* Forbid import of modules using absolute paths.
|
|
15728
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15770
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-absolute-path.md
|
|
15729
15771
|
*/
|
|
15730
15772
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15731
15773
|
/**
|
|
15732
15774
|
* Forbid AMD `require` and `define` calls.
|
|
15733
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15775
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-amd.md
|
|
15734
15776
|
*/
|
|
15735
15777
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15736
15778
|
/**
|
|
15737
15779
|
* Forbid anonymous values as default exports.
|
|
15738
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15780
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-anonymous-default-export.md
|
|
15739
15781
|
*/
|
|
15740
15782
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15741
15783
|
/**
|
|
15742
15784
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15743
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15785
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-commonjs.md
|
|
15744
15786
|
*/
|
|
15745
15787
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15746
15788
|
/**
|
|
15747
15789
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15748
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15790
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-cycle.md
|
|
15749
15791
|
*/
|
|
15750
15792
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15751
15793
|
/**
|
|
15752
15794
|
* Forbid default exports.
|
|
15753
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15795
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-default-export.md
|
|
15754
15796
|
*/
|
|
15755
15797
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15756
15798
|
/**
|
|
15757
15799
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15758
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15800
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-deprecated.md
|
|
15759
15801
|
*/
|
|
15760
15802
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15761
15803
|
/**
|
|
15762
15804
|
* Forbid repeated import of the same module in multiple places.
|
|
15763
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15805
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-duplicates.md
|
|
15764
15806
|
*/
|
|
15765
15807
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15766
15808
|
/**
|
|
15767
15809
|
* Forbid `require()` calls with expressions.
|
|
15768
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15810
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-dynamic-require.md
|
|
15769
15811
|
*/
|
|
15770
15812
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15771
15813
|
/**
|
|
15772
15814
|
* Forbid empty named import blocks.
|
|
15773
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15815
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-empty-named-blocks.md
|
|
15774
15816
|
*/
|
|
15775
15817
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15776
15818
|
/**
|
|
15777
15819
|
* Forbid the use of extraneous packages.
|
|
15778
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15820
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-extraneous-dependencies.md
|
|
15779
15821
|
*/
|
|
15780
15822
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15781
15823
|
/**
|
|
15782
15824
|
* Forbid import statements with CommonJS module.exports.
|
|
15783
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15825
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-import-module-exports.md
|
|
15784
15826
|
*/
|
|
15785
15827
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15786
15828
|
/**
|
|
15787
15829
|
* Forbid importing the submodules of other modules.
|
|
15788
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15830
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-internal-modules.md
|
|
15789
15831
|
*/
|
|
15790
15832
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15791
15833
|
/**
|
|
15792
15834
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15793
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15835
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-mutable-exports.md
|
|
15794
15836
|
*/
|
|
15795
15837
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15796
15838
|
/**
|
|
15797
15839
|
* Forbid use of exported name as identifier of default export.
|
|
15798
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15840
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default.md
|
|
15799
15841
|
*/
|
|
15800
15842
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15801
15843
|
/**
|
|
15802
15844
|
* Forbid use of exported name as property of default export.
|
|
15803
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15845
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-as-default-member.md
|
|
15804
15846
|
*/
|
|
15805
15847
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15806
15848
|
/**
|
|
15807
15849
|
* Forbid named default exports.
|
|
15808
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15850
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-default.md
|
|
15809
15851
|
*/
|
|
15810
15852
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15811
15853
|
/**
|
|
15812
15854
|
* Forbid named exports.
|
|
15813
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15855
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-named-export.md
|
|
15814
15856
|
*/
|
|
15815
15857
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15816
15858
|
/**
|
|
15817
15859
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15818
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15860
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-namespace.md
|
|
15819
15861
|
*/
|
|
15820
15862
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15821
15863
|
/**
|
|
15822
15864
|
* Forbid Node.js builtin modules.
|
|
15823
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15865
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-nodejs-modules.md
|
|
15824
15866
|
*/
|
|
15825
15867
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15826
15868
|
/**
|
|
15827
15869
|
* Forbid importing packages through relative paths.
|
|
15828
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15870
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-packages.md
|
|
15829
15871
|
*/
|
|
15830
15872
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15831
15873
|
/**
|
|
15832
15874
|
* Forbid importing modules from parent directories.
|
|
15833
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15875
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-relative-parent-imports.md
|
|
15834
15876
|
*/
|
|
15835
15877
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15836
15878
|
/**
|
|
15837
15879
|
* Forbid importing a default export by a different name.
|
|
15838
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15880
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-rename-default.md
|
|
15839
15881
|
*/
|
|
15840
15882
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15841
15883
|
/**
|
|
15842
15884
|
* Enforce which files can be imported in a given folder.
|
|
15843
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15885
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-restricted-paths.md
|
|
15844
15886
|
*/
|
|
15845
15887
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15846
15888
|
/**
|
|
15847
15889
|
* Forbid a module from importing itself.
|
|
15848
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15890
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-self-import.md
|
|
15849
15891
|
*/
|
|
15850
15892
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15851
15893
|
/**
|
|
15852
15894
|
* Forbid unassigned imports.
|
|
15853
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15895
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unassigned-import.md
|
|
15854
15896
|
*/
|
|
15855
15897
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15856
15898
|
/**
|
|
15857
15899
|
* Ensure imports point to a file/module that can be resolved.
|
|
15858
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15900
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unresolved.md
|
|
15859
15901
|
*/
|
|
15860
15902
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15861
15903
|
/**
|
|
15862
15904
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
15863
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15905
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-unused-modules.md
|
|
15864
15906
|
*/
|
|
15865
15907
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
15866
15908
|
/**
|
|
15867
15909
|
* Forbid unnecessary path segments in import and require statements.
|
|
15868
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15910
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-useless-path-segments.md
|
|
15869
15911
|
*/
|
|
15870
15912
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
15871
15913
|
/**
|
|
15872
15914
|
* Forbid webpack loader syntax in imports.
|
|
15873
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15915
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/no-webpack-loader-syntax.md
|
|
15874
15916
|
*/
|
|
15875
15917
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
15876
15918
|
/**
|
|
15877
15919
|
* Enforce a convention in module import order.
|
|
15878
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15920
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/order.md
|
|
15879
15921
|
*/
|
|
15880
15922
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
15881
15923
|
/**
|
|
15882
15924
|
* Prefer a default export if module exports a single name or multiple names.
|
|
15883
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15925
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/prefer-default-export.md
|
|
15884
15926
|
*/
|
|
15885
15927
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
15886
15928
|
/**
|
|
15887
15929
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
15888
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
15930
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.4.2/docs/rules/unambiguous.md
|
|
15889
15931
|
*/
|
|
15890
15932
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
15891
15933
|
}
|
|
@@ -18645,6 +18687,8 @@ type TypescriptEslintNoConfusingVoidExpression =
|
|
|
18645
18687
|
ignoreArrowShorthand?: boolean;
|
|
18646
18688
|
|
|
18647
18689
|
ignoreVoidOperator?: boolean;
|
|
18690
|
+
|
|
18691
|
+
ignoreVoidReturningFunctions?: boolean;
|
|
18648
18692
|
},
|
|
18649
18693
|
];
|
|
18650
18694
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
@@ -19124,6 +19168,24 @@ type TypescriptEslintOnlyThrowError =
|
|
|
19124
19168
|
| []
|
|
19125
19169
|
| [
|
|
19126
19170
|
{
|
|
19171
|
+
allow?: (
|
|
19172
|
+
| string
|
|
19173
|
+
| {
|
|
19174
|
+
from: "file";
|
|
19175
|
+
name: string | [string, ...string[]];
|
|
19176
|
+
path?: string;
|
|
19177
|
+
}
|
|
19178
|
+
| {
|
|
19179
|
+
from: "lib";
|
|
19180
|
+
name: string | [string, ...string[]];
|
|
19181
|
+
}
|
|
19182
|
+
| {
|
|
19183
|
+
from: "package";
|
|
19184
|
+
name: string | [string, ...string[]];
|
|
19185
|
+
package: string;
|
|
19186
|
+
}
|
|
19187
|
+
)[];
|
|
19188
|
+
|
|
19127
19189
|
allowThrowingAny?: boolean;
|
|
19128
19190
|
|
|
19129
19191
|
allowThrowingUnknown?: boolean;
|
|
@@ -19205,6 +19267,8 @@ type TypescriptEslintPreferNullishCoalescing =
|
|
|
19205
19267
|
{
|
|
19206
19268
|
allowRuleToRunWithoutStrictNullChecksIKnowWhatIAmDoing?: boolean;
|
|
19207
19269
|
|
|
19270
|
+
ignoreBooleanCoercion?: boolean;
|
|
19271
|
+
|
|
19208
19272
|
ignoreConditionalTests?: boolean;
|
|
19209
19273
|
|
|
19210
19274
|
ignoreMixedLogicalExpressions?: boolean;
|
|
@@ -19453,6 +19517,8 @@ type TypescriptEslintSwitchExhaustivenessCheck =
|
|
|
19453
19517
|
{
|
|
19454
19518
|
allowDefaultCaseForExhaustiveSwitch?: boolean;
|
|
19455
19519
|
|
|
19520
|
+
considerDefaultExhaustiveForUnions?: boolean;
|
|
19521
|
+
|
|
19456
19522
|
requireDefaultForNonUnion?: boolean;
|
|
19457
19523
|
},
|
|
19458
19524
|
];
|
|
@@ -19534,6 +19600,7 @@ type ImportExtensions =
|
|
|
19534
19600
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19535
19601
|
};
|
|
19536
19602
|
ignorePackages?: boolean;
|
|
19603
|
+
checkTypeImports?: boolean;
|
|
19537
19604
|
[k: string]: unknown | undefined;
|
|
19538
19605
|
},
|
|
19539
19606
|
]
|
|
@@ -19544,19 +19611,20 @@ type ImportExtensions =
|
|
|
19544
19611
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19545
19612
|
};
|
|
19546
19613
|
ignorePackages?: boolean;
|
|
19614
|
+
checkTypeImports?: boolean;
|
|
19547
19615
|
[k: string]: unknown | undefined;
|
|
19548
19616
|
},
|
|
19549
19617
|
]
|
|
19550
19618
|
| []
|
|
19619
|
+
| ["always" | "ignorePackages" | "never"]
|
|
19551
19620
|
| [
|
|
19621
|
+
"always" | "ignorePackages" | "never",
|
|
19552
19622
|
{
|
|
19553
19623
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19554
19624
|
},
|
|
19555
19625
|
]
|
|
19556
19626
|
| []
|
|
19557
|
-
| ["always" | "ignorePackages" | "never"]
|
|
19558
19627
|
| [
|
|
19559
|
-
"always" | "ignorePackages" | "never",
|
|
19560
19628
|
{
|
|
19561
19629
|
[k: string]: "always" | "ignorePackages" | "never";
|
|
19562
19630
|
},
|
|
@@ -21255,6 +21323,9 @@ type YamlPlainScalar =
|
|
|
21255
21323
|
"always" | "never",
|
|
21256
21324
|
{
|
|
21257
21325
|
ignorePatterns?: string[];
|
|
21326
|
+
overrides?: {
|
|
21327
|
+
mappingKey?: "always" | "never" | null;
|
|
21328
|
+
};
|
|
21258
21329
|
},
|
|
21259
21330
|
];
|
|
21260
21331
|
// ----- yaml/quotes -----
|
|
@@ -21557,6 +21628,12 @@ type OptionsConfig = {
|
|
|
21557
21628
|
* Array of rules to turn off.
|
|
21558
21629
|
*/
|
|
21559
21630
|
off?: string[];
|
|
21631
|
+
/**
|
|
21632
|
+
* Enable `eslint-plugin-command`
|
|
21633
|
+
*
|
|
21634
|
+
* @default true
|
|
21635
|
+
*/
|
|
21636
|
+
command?: boolean;
|
|
21560
21637
|
/**
|
|
21561
21638
|
* Enable fast mode.
|
|
21562
21639
|
*
|
|
@@ -21678,6 +21755,8 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
|
|
|
21678
21755
|
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
21679
21756
|
type DefineConfig = typeof defineConfig;
|
|
21680
21757
|
|
|
21758
|
+
declare const VERSION = "0.2.26";
|
|
21759
|
+
|
|
21681
21760
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
21682
21761
|
declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
21683
21762
|
declare const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
|
|
@@ -21704,8 +21783,408 @@ declare const GLOB_TESTS: string[];
|
|
|
21704
21783
|
declare const GLOB_ALL_SRC: string[];
|
|
21705
21784
|
declare const GLOB_EXCLUDE: string[];
|
|
21706
21785
|
|
|
21786
|
+
declare const globs_GLOB_ALL_SRC: typeof GLOB_ALL_SRC;
|
|
21787
|
+
declare const globs_GLOB_CSS: typeof GLOB_CSS;
|
|
21788
|
+
declare const globs_GLOB_EXCLUDE: typeof GLOB_EXCLUDE;
|
|
21789
|
+
declare const globs_GLOB_GRAPHQL: typeof GLOB_GRAPHQL;
|
|
21790
|
+
declare const globs_GLOB_HTML: typeof GLOB_HTML;
|
|
21791
|
+
declare const globs_GLOB_JS: typeof GLOB_JS;
|
|
21792
|
+
declare const globs_GLOB_JSON: typeof GLOB_JSON;
|
|
21793
|
+
declare const globs_GLOB_JSON5: typeof GLOB_JSON5;
|
|
21794
|
+
declare const globs_GLOB_JSONC: typeof GLOB_JSONC;
|
|
21795
|
+
declare const globs_GLOB_JSX: typeof GLOB_JSX;
|
|
21796
|
+
declare const globs_GLOB_JS_SRC_EXT: typeof GLOB_JS_SRC_EXT;
|
|
21797
|
+
declare const globs_GLOB_LESS: typeof GLOB_LESS;
|
|
21798
|
+
declare const globs_GLOB_MARKDOWN: typeof GLOB_MARKDOWN;
|
|
21799
|
+
declare const globs_GLOB_MARKDOWN_CODE: typeof GLOB_MARKDOWN_CODE;
|
|
21800
|
+
declare const globs_GLOB_MARKDOWN_IN_MARKDOWN: typeof GLOB_MARKDOWN_IN_MARKDOWN;
|
|
21801
|
+
declare const globs_GLOB_SCSS: typeof GLOB_SCSS;
|
|
21802
|
+
declare const globs_GLOB_SRC: typeof GLOB_SRC;
|
|
21803
|
+
declare const globs_GLOB_SRC_EXT: typeof GLOB_SRC_EXT;
|
|
21804
|
+
declare const globs_GLOB_STYLE: typeof GLOB_STYLE;
|
|
21805
|
+
declare const globs_GLOB_TESTS: typeof GLOB_TESTS;
|
|
21806
|
+
declare const globs_GLOB_TOML: typeof GLOB_TOML;
|
|
21807
|
+
declare const globs_GLOB_TS: typeof GLOB_TS;
|
|
21808
|
+
declare const globs_GLOB_TSCONFIG: typeof GLOB_TSCONFIG;
|
|
21809
|
+
declare const globs_GLOB_TSX: typeof GLOB_TSX;
|
|
21810
|
+
declare const globs_GLOB_YAML: typeof GLOB_YAML;
|
|
21811
|
+
declare namespace globs {
|
|
21812
|
+
export { globs_GLOB_ALL_SRC as GLOB_ALL_SRC, globs_GLOB_CSS as GLOB_CSS, globs_GLOB_EXCLUDE as GLOB_EXCLUDE, globs_GLOB_GRAPHQL as GLOB_GRAPHQL, globs_GLOB_HTML as GLOB_HTML, globs_GLOB_JS as GLOB_JS, globs_GLOB_JSON as GLOB_JSON, globs_GLOB_JSON5 as GLOB_JSON5, globs_GLOB_JSONC as GLOB_JSONC, globs_GLOB_JSX as GLOB_JSX, globs_GLOB_JS_SRC_EXT as GLOB_JS_SRC_EXT, globs_GLOB_LESS as GLOB_LESS, globs_GLOB_MARKDOWN as GLOB_MARKDOWN, globs_GLOB_MARKDOWN_CODE as GLOB_MARKDOWN_CODE, globs_GLOB_MARKDOWN_IN_MARKDOWN as GLOB_MARKDOWN_IN_MARKDOWN, globs_GLOB_SCSS as GLOB_SCSS, globs_GLOB_SRC as GLOB_SRC, globs_GLOB_SRC_EXT as GLOB_SRC_EXT, globs_GLOB_STYLE as GLOB_STYLE, globs_GLOB_TESTS as GLOB_TESTS, globs_GLOB_TOML as GLOB_TOML, globs_GLOB_TS as GLOB_TS, globs_GLOB_TSCONFIG as GLOB_TSCONFIG, globs_GLOB_TSX as GLOB_TSX, globs_GLOB_YAML as GLOB_YAML };
|
|
21813
|
+
}
|
|
21814
|
+
|
|
21707
21815
|
declare function importPluginReact(): Promise<{
|
|
21708
|
-
pluginReact:
|
|
21816
|
+
pluginReact: {
|
|
21817
|
+
deprecatedRules: Partial<{
|
|
21818
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
21819
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
21820
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
21821
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
21822
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
21823
|
+
'display-name': eslint.Rule.RuleModule;
|
|
21824
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
21825
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
21826
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
21827
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
21828
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
21829
|
+
'forward-ref-uses-ref': {
|
|
21830
|
+
meta: {
|
|
21831
|
+
docs: {
|
|
21832
|
+
description: string;
|
|
21833
|
+
category: string;
|
|
21834
|
+
recommended: boolean;
|
|
21835
|
+
url: string;
|
|
21836
|
+
};
|
|
21837
|
+
messages: {
|
|
21838
|
+
missingRefParameter: string;
|
|
21839
|
+
addRefParameter: string;
|
|
21840
|
+
removeForwardRef: string;
|
|
21841
|
+
};
|
|
21842
|
+
schema: undefined[];
|
|
21843
|
+
type: string;
|
|
21844
|
+
hasSuggestions: boolean;
|
|
21845
|
+
};
|
|
21846
|
+
create(context: any): {
|
|
21847
|
+
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
21848
|
+
};
|
|
21849
|
+
};
|
|
21850
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
21851
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
21852
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
21853
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
21854
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
21855
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
21856
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
21857
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
21858
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
21859
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
21860
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
21861
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
21862
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
21863
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
21864
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
21865
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
21866
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
21867
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
21868
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
21869
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
21870
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
21871
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
21872
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
21873
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
21874
|
+
'jsx-no-literals': {
|
|
21875
|
+
meta: eslint.Rule.RuleMetaData;
|
|
21876
|
+
create(context: any): (false & {
|
|
21877
|
+
Literal(node: any): void;
|
|
21878
|
+
JSXAttribute(node: any): void;
|
|
21879
|
+
JSXText(node: any): void;
|
|
21880
|
+
TemplateLiteral(node: any): void;
|
|
21881
|
+
}) | ({
|
|
21882
|
+
ImportDeclaration(node: any): void;
|
|
21883
|
+
VariableDeclaration(node: any): void;
|
|
21884
|
+
} & {
|
|
21885
|
+
Literal(node: any): void;
|
|
21886
|
+
JSXAttribute(node: any): void;
|
|
21887
|
+
JSXText(node: any): void;
|
|
21888
|
+
TemplateLiteral(node: any): void;
|
|
21889
|
+
});
|
|
21890
|
+
};
|
|
21891
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
21892
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
21893
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
21894
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
21895
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
21896
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
21897
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
21898
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
21899
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
21900
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
21901
|
+
'jsx-props-no-spread-multi': {
|
|
21902
|
+
meta: {
|
|
21903
|
+
docs: {
|
|
21904
|
+
description: string;
|
|
21905
|
+
category: string;
|
|
21906
|
+
recommended: boolean;
|
|
21907
|
+
url: string;
|
|
21908
|
+
};
|
|
21909
|
+
messages: {
|
|
21910
|
+
noMultiSpreading: string;
|
|
21911
|
+
};
|
|
21912
|
+
};
|
|
21913
|
+
create(context: any): {
|
|
21914
|
+
JSXOpeningElement(node: any): void;
|
|
21915
|
+
};
|
|
21916
|
+
};
|
|
21917
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
21918
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
21919
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
21920
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
21921
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
21922
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
21923
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
21924
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
21925
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
21926
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
21927
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
21928
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
21929
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
21930
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
21931
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
21932
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
21933
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
21934
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
21935
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
21936
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
21937
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
21938
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
21939
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
21940
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
21941
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
21942
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
21943
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
21944
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
21945
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
21946
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
21947
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
21948
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
21949
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
21950
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
21951
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
21952
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
21953
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
21954
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
21955
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
21956
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
21957
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
21958
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
21959
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
21960
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
21961
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
21962
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
21963
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
21964
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
21965
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
21966
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
21967
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
21968
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
21969
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
21970
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
21971
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
21972
|
+
}>;
|
|
21973
|
+
rules: {
|
|
21974
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
21975
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
21976
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
21977
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
21978
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
21979
|
+
'display-name': eslint.Rule.RuleModule;
|
|
21980
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
21981
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
21982
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
21983
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
21984
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
21985
|
+
'forward-ref-uses-ref': {
|
|
21986
|
+
meta: {
|
|
21987
|
+
docs: {
|
|
21988
|
+
description: string;
|
|
21989
|
+
category: string;
|
|
21990
|
+
recommended: boolean;
|
|
21991
|
+
url: string;
|
|
21992
|
+
};
|
|
21993
|
+
messages: {
|
|
21994
|
+
missingRefParameter: string;
|
|
21995
|
+
addRefParameter: string;
|
|
21996
|
+
removeForwardRef: string;
|
|
21997
|
+
};
|
|
21998
|
+
schema: undefined[];
|
|
21999
|
+
type: string;
|
|
22000
|
+
hasSuggestions: boolean;
|
|
22001
|
+
};
|
|
22002
|
+
create(context: any): {
|
|
22003
|
+
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22004
|
+
};
|
|
22005
|
+
};
|
|
22006
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
22007
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
22008
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
22009
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
22010
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
22011
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
22012
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
22013
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
22014
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
22015
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
22016
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
22017
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
22018
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
22019
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
22020
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
22021
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
22022
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
22023
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
22024
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
22025
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
22026
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
22027
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22028
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22029
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22030
|
+
'jsx-no-literals': {
|
|
22031
|
+
meta: eslint.Rule.RuleMetaData;
|
|
22032
|
+
create(context: any): (false & {
|
|
22033
|
+
Literal(node: any): void;
|
|
22034
|
+
JSXAttribute(node: any): void;
|
|
22035
|
+
JSXText(node: any): void;
|
|
22036
|
+
TemplateLiteral(node: any): void;
|
|
22037
|
+
}) | ({
|
|
22038
|
+
ImportDeclaration(node: any): void;
|
|
22039
|
+
VariableDeclaration(node: any): void;
|
|
22040
|
+
} & {
|
|
22041
|
+
Literal(node: any): void;
|
|
22042
|
+
JSXAttribute(node: any): void;
|
|
22043
|
+
JSXText(node: any): void;
|
|
22044
|
+
TemplateLiteral(node: any): void;
|
|
22045
|
+
});
|
|
22046
|
+
};
|
|
22047
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22048
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22049
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
22050
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
22051
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
22052
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
22053
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
22054
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22055
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22056
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22057
|
+
'jsx-props-no-spread-multi': {
|
|
22058
|
+
meta: {
|
|
22059
|
+
docs: {
|
|
22060
|
+
description: string;
|
|
22061
|
+
category: string;
|
|
22062
|
+
recommended: boolean;
|
|
22063
|
+
url: string;
|
|
22064
|
+
};
|
|
22065
|
+
messages: {
|
|
22066
|
+
noMultiSpreading: string;
|
|
22067
|
+
};
|
|
22068
|
+
};
|
|
22069
|
+
create(context: any): {
|
|
22070
|
+
JSXOpeningElement(node: any): void;
|
|
22071
|
+
};
|
|
22072
|
+
};
|
|
22073
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22074
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22075
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
22076
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
22077
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
22078
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
22079
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
22080
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
22081
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
22082
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
22083
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
22084
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
22085
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
22086
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
22087
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
22088
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
22089
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
22090
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
22091
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
22092
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
22093
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
22094
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
22095
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
22096
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
22097
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
22098
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
22099
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
22100
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
22101
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
22102
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
22103
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
22104
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
22105
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
22106
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
22107
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
22108
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
22109
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
22110
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
22111
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
22112
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
22113
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
22114
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
22115
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
22116
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
22117
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
22118
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
22119
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
22120
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
22121
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
22122
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
22123
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
22124
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
22125
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
22126
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
22127
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
22128
|
+
};
|
|
22129
|
+
configs: {
|
|
22130
|
+
recommended: {
|
|
22131
|
+
plugins: ["react"];
|
|
22132
|
+
parserOptions: {
|
|
22133
|
+
ecmaFeatures: {
|
|
22134
|
+
jsx: boolean;
|
|
22135
|
+
};
|
|
22136
|
+
};
|
|
22137
|
+
rules: {
|
|
22138
|
+
"react/display-name": number;
|
|
22139
|
+
"react/jsx-key": number;
|
|
22140
|
+
"react/jsx-no-comment-textnodes": number;
|
|
22141
|
+
"react/jsx-no-duplicate-props": number;
|
|
22142
|
+
"react/jsx-no-target-blank": number;
|
|
22143
|
+
"react/jsx-no-undef": number;
|
|
22144
|
+
"react/jsx-uses-react": number;
|
|
22145
|
+
"react/jsx-uses-vars": number;
|
|
22146
|
+
"react/no-children-prop": number;
|
|
22147
|
+
"react/no-danger-with-children": number;
|
|
22148
|
+
"react/no-deprecated": number;
|
|
22149
|
+
"react/no-direct-mutation-state": number;
|
|
22150
|
+
"react/no-find-dom-node": number;
|
|
22151
|
+
"react/no-is-mounted": number;
|
|
22152
|
+
"react/no-render-return-value": number;
|
|
22153
|
+
"react/no-string-refs": number;
|
|
22154
|
+
"react/no-unescaped-entities": number;
|
|
22155
|
+
"react/no-unknown-property": number;
|
|
22156
|
+
"react/no-unsafe": number;
|
|
22157
|
+
"react/prop-types": number;
|
|
22158
|
+
"react/react-in-jsx-scope": number;
|
|
22159
|
+
"react/require-render-return": number;
|
|
22160
|
+
};
|
|
22161
|
+
};
|
|
22162
|
+
all: {
|
|
22163
|
+
plugins: ["react"];
|
|
22164
|
+
parserOptions: {
|
|
22165
|
+
ecmaFeatures: {
|
|
22166
|
+
jsx: boolean;
|
|
22167
|
+
};
|
|
22168
|
+
};
|
|
22169
|
+
rules: Record<"boolean-prop-naming" | "button-has-type" | "checked-requires-onchange-or-readonly" | "default-props-match-prop-types" | "destructuring-assignment" | "display-name" | "forbid-component-props" | "forbid-dom-props" | "forbid-elements" | "forbid-foreign-prop-types" | "forbid-prop-types" | "prop-types" | "forward-ref-uses-ref" | "function-component-definition" | "hook-use-state" | "iframe-missing-sandbox" | "jsx-boolean-value" | "jsx-child-element-spacing" | "jsx-closing-bracket-location" | "jsx-closing-tag-location" | "jsx-curly-spacing" | "jsx-curly-newline" | "jsx-equals-spacing" | "jsx-filename-extension" | "jsx-first-prop-new-line" | "jsx-handler-names" | "jsx-indent" | "jsx-indent-props" | "jsx-key" | "jsx-max-depth" | "jsx-max-props-per-line" | "jsx-newline" | "jsx-no-bind" | "jsx-no-comment-textnodes" | "jsx-no-constructed-context-values" | "jsx-no-duplicate-props" | "jsx-no-leaked-render" | "jsx-no-literals" | "jsx-no-script-url" | "jsx-no-target-blank" | "jsx-no-useless-fragment" | "jsx-one-expression-per-line" | "jsx-no-undef" | "jsx-curly-brace-presence" | "jsx-pascal-case" | "jsx-fragments" | "jsx-props-no-multi-spaces" | "jsx-props-no-spreading" | "jsx-props-no-spread-multi" | "sort-default-props" | "jsx-sort-default-props" | "jsx-sort-props" | "jsx-tag-spacing" | "jsx-space-before-closing" | "jsx-uses-react" | "jsx-uses-vars" | "jsx-wrap-multilines" | "no-invalid-html-attribute" | "no-access-state-in-setstate" | "no-adjacent-inline-elements" | "no-array-index-key" | "no-arrow-function-lifecycle" | "no-children-prop" | "no-danger" | "no-danger-with-children" | "no-deprecated" | "no-direct-mutation-state" | "no-find-dom-node" | "no-is-mounted" | "no-multi-comp" | "no-namespace" | "no-set-state" | "no-string-refs" | "no-redundant-should-component-update" | "no-render-return-value" | "no-this-in-sfc" | "no-typos" | "no-unescaped-entities" | "no-unknown-property" | "no-unsafe" | "no-unstable-nested-components" | "no-unused-class-component-methods" | "no-unused-prop-types" | "no-unused-state" | "no-object-type-as-default-prop" | "prefer-es6-class" | "prefer-exact-props" | "prefer-read-only-props" | "prefer-stateless-function" | "react-in-jsx-scope" | "require-default-props" | "require-optimization" | "require-render-return" | "self-closing-comp" | "sort-comp" | "sort-prop-types" | "state-in-constructor" | "static-property-placement" | "style-prop-object" | "void-dom-elements-no-children" | "no-did-mount-set-state" | "no-did-update-set-state" | "no-will-update-set-state", 2 | "error">;
|
|
22170
|
+
};
|
|
22171
|
+
'jsx-runtime': {
|
|
22172
|
+
plugins: ["react"];
|
|
22173
|
+
parserOptions: {
|
|
22174
|
+
ecmaFeatures: {
|
|
22175
|
+
jsx: boolean;
|
|
22176
|
+
};
|
|
22177
|
+
jsxPragma: any;
|
|
22178
|
+
};
|
|
22179
|
+
rules: {
|
|
22180
|
+
"react/react-in-jsx-scope": number;
|
|
22181
|
+
"react/jsx-uses-react": number;
|
|
22182
|
+
};
|
|
22183
|
+
};
|
|
22184
|
+
} & {
|
|
22185
|
+
flat?: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22186
|
+
};
|
|
22187
|
+
};
|
|
21709
22188
|
}>;
|
|
21710
22189
|
declare function importPluginReactHooks(): Promise<{
|
|
21711
22190
|
pluginReactHooks: any;
|
|
@@ -21714,7 +22193,378 @@ declare function importPluginReactRefresh(): Promise<{
|
|
|
21714
22193
|
pluginReactRefresh: any;
|
|
21715
22194
|
}>;
|
|
21716
22195
|
declare function importReactPlugins(): Promise<{
|
|
21717
|
-
pluginReact:
|
|
22196
|
+
pluginReact: {
|
|
22197
|
+
deprecatedRules: Partial<{
|
|
22198
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
22199
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
22200
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
22201
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
22202
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
22203
|
+
'display-name': eslint.Rule.RuleModule;
|
|
22204
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
22205
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
22206
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
22207
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
22208
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
22209
|
+
'forward-ref-uses-ref': {
|
|
22210
|
+
meta: {
|
|
22211
|
+
docs: {
|
|
22212
|
+
description: string;
|
|
22213
|
+
category: string;
|
|
22214
|
+
recommended: boolean;
|
|
22215
|
+
url: string;
|
|
22216
|
+
};
|
|
22217
|
+
messages: {
|
|
22218
|
+
missingRefParameter: string;
|
|
22219
|
+
addRefParameter: string;
|
|
22220
|
+
removeForwardRef: string;
|
|
22221
|
+
};
|
|
22222
|
+
schema: undefined[];
|
|
22223
|
+
type: string;
|
|
22224
|
+
hasSuggestions: boolean;
|
|
22225
|
+
};
|
|
22226
|
+
create(context: any): {
|
|
22227
|
+
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22228
|
+
};
|
|
22229
|
+
};
|
|
22230
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
22231
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
22232
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
22233
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
22234
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
22235
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
22236
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
22237
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
22238
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
22239
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
22240
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
22241
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
22242
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
22243
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
22244
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
22245
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
22246
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
22247
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
22248
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
22249
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
22250
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
22251
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22252
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22253
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22254
|
+
'jsx-no-literals': {
|
|
22255
|
+
meta: eslint.Rule.RuleMetaData;
|
|
22256
|
+
create(context: any): (false & {
|
|
22257
|
+
Literal(node: any): void;
|
|
22258
|
+
JSXAttribute(node: any): void;
|
|
22259
|
+
JSXText(node: any): void;
|
|
22260
|
+
TemplateLiteral(node: any): void;
|
|
22261
|
+
}) | ({
|
|
22262
|
+
ImportDeclaration(node: any): void;
|
|
22263
|
+
VariableDeclaration(node: any): void;
|
|
22264
|
+
} & {
|
|
22265
|
+
Literal(node: any): void;
|
|
22266
|
+
JSXAttribute(node: any): void;
|
|
22267
|
+
JSXText(node: any): void;
|
|
22268
|
+
TemplateLiteral(node: any): void;
|
|
22269
|
+
});
|
|
22270
|
+
};
|
|
22271
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22272
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22273
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
22274
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
22275
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
22276
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
22277
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
22278
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22279
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22280
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22281
|
+
'jsx-props-no-spread-multi': {
|
|
22282
|
+
meta: {
|
|
22283
|
+
docs: {
|
|
22284
|
+
description: string;
|
|
22285
|
+
category: string;
|
|
22286
|
+
recommended: boolean;
|
|
22287
|
+
url: string;
|
|
22288
|
+
};
|
|
22289
|
+
messages: {
|
|
22290
|
+
noMultiSpreading: string;
|
|
22291
|
+
};
|
|
22292
|
+
};
|
|
22293
|
+
create(context: any): {
|
|
22294
|
+
JSXOpeningElement(node: any): void;
|
|
22295
|
+
};
|
|
22296
|
+
};
|
|
22297
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22298
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22299
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
22300
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
22301
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
22302
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
22303
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
22304
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
22305
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
22306
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
22307
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
22308
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
22309
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
22310
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
22311
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
22312
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
22313
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
22314
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
22315
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
22316
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
22317
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
22318
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
22319
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
22320
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
22321
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
22322
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
22323
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
22324
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
22325
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
22326
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
22327
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
22328
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
22329
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
22330
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
22331
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
22332
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
22333
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
22334
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
22335
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
22336
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
22337
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
22338
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
22339
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
22340
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
22341
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
22342
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
22343
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
22344
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
22345
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
22346
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
22347
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
22348
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
22349
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
22350
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
22351
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
22352
|
+
}>;
|
|
22353
|
+
rules: {
|
|
22354
|
+
'boolean-prop-naming': eslint.Rule.RuleModule;
|
|
22355
|
+
'button-has-type': eslint.Rule.RuleModule;
|
|
22356
|
+
'checked-requires-onchange-or-readonly': eslint.Rule.RuleModule;
|
|
22357
|
+
'default-props-match-prop-types': eslint.Rule.RuleModule;
|
|
22358
|
+
'destructuring-assignment': eslint.Rule.RuleModule;
|
|
22359
|
+
'display-name': eslint.Rule.RuleModule;
|
|
22360
|
+
'forbid-component-props': eslint.Rule.RuleModule;
|
|
22361
|
+
'forbid-dom-props': eslint.Rule.RuleModule;
|
|
22362
|
+
'forbid-elements': eslint.Rule.RuleModule;
|
|
22363
|
+
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
22364
|
+
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
22365
|
+
'forward-ref-uses-ref': {
|
|
22366
|
+
meta: {
|
|
22367
|
+
docs: {
|
|
22368
|
+
description: string;
|
|
22369
|
+
category: string;
|
|
22370
|
+
recommended: boolean;
|
|
22371
|
+
url: string;
|
|
22372
|
+
};
|
|
22373
|
+
messages: {
|
|
22374
|
+
missingRefParameter: string;
|
|
22375
|
+
addRefParameter: string;
|
|
22376
|
+
removeForwardRef: string;
|
|
22377
|
+
};
|
|
22378
|
+
schema: undefined[];
|
|
22379
|
+
type: string;
|
|
22380
|
+
hasSuggestions: boolean;
|
|
22381
|
+
};
|
|
22382
|
+
create(context: any): {
|
|
22383
|
+
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22384
|
+
};
|
|
22385
|
+
};
|
|
22386
|
+
'function-component-definition': eslint.Rule.RuleModule;
|
|
22387
|
+
'hook-use-state': eslint.Rule.RuleModule;
|
|
22388
|
+
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
22389
|
+
'jsx-boolean-value': eslint.Rule.RuleModule;
|
|
22390
|
+
'jsx-child-element-spacing': eslint.Rule.RuleModule;
|
|
22391
|
+
'jsx-closing-bracket-location': eslint.Rule.RuleModule;
|
|
22392
|
+
'jsx-closing-tag-location': eslint.Rule.RuleModule;
|
|
22393
|
+
'jsx-curly-spacing': eslint.Rule.RuleModule;
|
|
22394
|
+
'jsx-curly-newline': eslint.Rule.RuleModule;
|
|
22395
|
+
'jsx-equals-spacing': eslint.Rule.RuleModule;
|
|
22396
|
+
'jsx-filename-extension': eslint.Rule.RuleModule;
|
|
22397
|
+
'jsx-first-prop-new-line': eslint.Rule.RuleModule;
|
|
22398
|
+
'jsx-handler-names': eslint.Rule.RuleModule;
|
|
22399
|
+
'jsx-indent': eslint.Rule.RuleModule;
|
|
22400
|
+
'jsx-indent-props': eslint.Rule.RuleModule;
|
|
22401
|
+
'jsx-key': eslint.Rule.RuleModule;
|
|
22402
|
+
'jsx-max-depth': eslint.Rule.RuleModule;
|
|
22403
|
+
'jsx-max-props-per-line': eslint.Rule.RuleModule;
|
|
22404
|
+
'jsx-newline': eslint.Rule.RuleModule;
|
|
22405
|
+
'jsx-no-bind': eslint.Rule.RuleModule;
|
|
22406
|
+
'jsx-no-comment-textnodes': eslint.Rule.RuleModule;
|
|
22407
|
+
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22408
|
+
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22409
|
+
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22410
|
+
'jsx-no-literals': {
|
|
22411
|
+
meta: eslint.Rule.RuleMetaData;
|
|
22412
|
+
create(context: any): (false & {
|
|
22413
|
+
Literal(node: any): void;
|
|
22414
|
+
JSXAttribute(node: any): void;
|
|
22415
|
+
JSXText(node: any): void;
|
|
22416
|
+
TemplateLiteral(node: any): void;
|
|
22417
|
+
}) | ({
|
|
22418
|
+
ImportDeclaration(node: any): void;
|
|
22419
|
+
VariableDeclaration(node: any): void;
|
|
22420
|
+
} & {
|
|
22421
|
+
Literal(node: any): void;
|
|
22422
|
+
JSXAttribute(node: any): void;
|
|
22423
|
+
JSXText(node: any): void;
|
|
22424
|
+
TemplateLiteral(node: any): void;
|
|
22425
|
+
});
|
|
22426
|
+
};
|
|
22427
|
+
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22428
|
+
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22429
|
+
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
22430
|
+
'jsx-one-expression-per-line': eslint.Rule.RuleModule;
|
|
22431
|
+
'jsx-no-undef': eslint.Rule.RuleModule;
|
|
22432
|
+
'jsx-curly-brace-presence': eslint.Rule.RuleModule;
|
|
22433
|
+
'jsx-pascal-case': eslint.Rule.RuleModule;
|
|
22434
|
+
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22435
|
+
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22436
|
+
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22437
|
+
'jsx-props-no-spread-multi': {
|
|
22438
|
+
meta: {
|
|
22439
|
+
docs: {
|
|
22440
|
+
description: string;
|
|
22441
|
+
category: string;
|
|
22442
|
+
recommended: boolean;
|
|
22443
|
+
url: string;
|
|
22444
|
+
};
|
|
22445
|
+
messages: {
|
|
22446
|
+
noMultiSpreading: string;
|
|
22447
|
+
};
|
|
22448
|
+
};
|
|
22449
|
+
create(context: any): {
|
|
22450
|
+
JSXOpeningElement(node: any): void;
|
|
22451
|
+
};
|
|
22452
|
+
};
|
|
22453
|
+
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22454
|
+
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22455
|
+
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
22456
|
+
'jsx-tag-spacing': eslint.Rule.RuleModule;
|
|
22457
|
+
'jsx-uses-react': eslint.Rule.RuleModule;
|
|
22458
|
+
'jsx-uses-vars': eslint.Rule.RuleModule;
|
|
22459
|
+
'jsx-wrap-multilines': eslint.Rule.RuleModule;
|
|
22460
|
+
'no-invalid-html-attribute': eslint.Rule.RuleModule;
|
|
22461
|
+
'no-access-state-in-setstate': eslint.Rule.RuleModule;
|
|
22462
|
+
'no-adjacent-inline-elements': eslint.Rule.RuleModule;
|
|
22463
|
+
'no-array-index-key': eslint.Rule.RuleModule;
|
|
22464
|
+
'no-arrow-function-lifecycle': eslint.Rule.RuleModule;
|
|
22465
|
+
'no-children-prop': eslint.Rule.RuleModule;
|
|
22466
|
+
'no-danger': eslint.Rule.RuleModule;
|
|
22467
|
+
'no-danger-with-children': eslint.Rule.RuleModule;
|
|
22468
|
+
'no-deprecated': eslint.Rule.RuleModule;
|
|
22469
|
+
'no-did-mount-set-state': eslint.Rule.RuleModule;
|
|
22470
|
+
'no-did-update-set-state': eslint.Rule.RuleModule;
|
|
22471
|
+
'no-direct-mutation-state': eslint.Rule.RuleModule;
|
|
22472
|
+
'no-find-dom-node': eslint.Rule.RuleModule;
|
|
22473
|
+
'no-is-mounted': eslint.Rule.RuleModule;
|
|
22474
|
+
'no-multi-comp': eslint.Rule.RuleModule;
|
|
22475
|
+
'no-namespace': eslint.Rule.RuleModule;
|
|
22476
|
+
'no-set-state': eslint.Rule.RuleModule;
|
|
22477
|
+
'no-string-refs': eslint.Rule.RuleModule;
|
|
22478
|
+
'no-redundant-should-component-update': eslint.Rule.RuleModule;
|
|
22479
|
+
'no-render-return-value': eslint.Rule.RuleModule;
|
|
22480
|
+
'no-this-in-sfc': eslint.Rule.RuleModule;
|
|
22481
|
+
'no-typos': eslint.Rule.RuleModule;
|
|
22482
|
+
'no-unescaped-entities': eslint.Rule.RuleModule;
|
|
22483
|
+
'no-unknown-property': eslint.Rule.RuleModule;
|
|
22484
|
+
'no-unsafe': eslint.Rule.RuleModule;
|
|
22485
|
+
'no-unstable-nested-components': eslint.Rule.RuleModule;
|
|
22486
|
+
'no-unused-class-component-methods': eslint.Rule.RuleModule;
|
|
22487
|
+
'no-unused-prop-types': eslint.Rule.RuleModule;
|
|
22488
|
+
'no-unused-state': eslint.Rule.RuleModule;
|
|
22489
|
+
'no-object-type-as-default-prop': eslint.Rule.RuleModule;
|
|
22490
|
+
'no-will-update-set-state': eslint.Rule.RuleModule;
|
|
22491
|
+
'prefer-es6-class': eslint.Rule.RuleModule;
|
|
22492
|
+
'prefer-exact-props': eslint.Rule.RuleModule;
|
|
22493
|
+
'prefer-read-only-props': eslint.Rule.RuleModule;
|
|
22494
|
+
'prefer-stateless-function': eslint.Rule.RuleModule;
|
|
22495
|
+
'prop-types': eslint.Rule.RuleModule;
|
|
22496
|
+
'react-in-jsx-scope': eslint.Rule.RuleModule;
|
|
22497
|
+
'require-default-props': eslint.Rule.RuleModule;
|
|
22498
|
+
'require-optimization': eslint.Rule.RuleModule;
|
|
22499
|
+
'require-render-return': eslint.Rule.RuleModule;
|
|
22500
|
+
'self-closing-comp': eslint.Rule.RuleModule;
|
|
22501
|
+
'sort-comp': eslint.Rule.RuleModule;
|
|
22502
|
+
'sort-default-props': eslint.Rule.RuleModule;
|
|
22503
|
+
'sort-prop-types': eslint.Rule.RuleModule;
|
|
22504
|
+
'state-in-constructor': eslint.Rule.RuleModule;
|
|
22505
|
+
'static-property-placement': eslint.Rule.RuleModule;
|
|
22506
|
+
'style-prop-object': eslint.Rule.RuleModule;
|
|
22507
|
+
'void-dom-elements-no-children': eslint.Rule.RuleModule;
|
|
22508
|
+
};
|
|
22509
|
+
configs: {
|
|
22510
|
+
recommended: {
|
|
22511
|
+
plugins: ["react"];
|
|
22512
|
+
parserOptions: {
|
|
22513
|
+
ecmaFeatures: {
|
|
22514
|
+
jsx: boolean;
|
|
22515
|
+
};
|
|
22516
|
+
};
|
|
22517
|
+
rules: {
|
|
22518
|
+
"react/display-name": number;
|
|
22519
|
+
"react/jsx-key": number;
|
|
22520
|
+
"react/jsx-no-comment-textnodes": number;
|
|
22521
|
+
"react/jsx-no-duplicate-props": number;
|
|
22522
|
+
"react/jsx-no-target-blank": number;
|
|
22523
|
+
"react/jsx-no-undef": number;
|
|
22524
|
+
"react/jsx-uses-react": number;
|
|
22525
|
+
"react/jsx-uses-vars": number;
|
|
22526
|
+
"react/no-children-prop": number;
|
|
22527
|
+
"react/no-danger-with-children": number;
|
|
22528
|
+
"react/no-deprecated": number;
|
|
22529
|
+
"react/no-direct-mutation-state": number;
|
|
22530
|
+
"react/no-find-dom-node": number;
|
|
22531
|
+
"react/no-is-mounted": number;
|
|
22532
|
+
"react/no-render-return-value": number;
|
|
22533
|
+
"react/no-string-refs": number;
|
|
22534
|
+
"react/no-unescaped-entities": number;
|
|
22535
|
+
"react/no-unknown-property": number;
|
|
22536
|
+
"react/no-unsafe": number;
|
|
22537
|
+
"react/prop-types": number;
|
|
22538
|
+
"react/react-in-jsx-scope": number;
|
|
22539
|
+
"react/require-render-return": number;
|
|
22540
|
+
};
|
|
22541
|
+
};
|
|
22542
|
+
all: {
|
|
22543
|
+
plugins: ["react"];
|
|
22544
|
+
parserOptions: {
|
|
22545
|
+
ecmaFeatures: {
|
|
22546
|
+
jsx: boolean;
|
|
22547
|
+
};
|
|
22548
|
+
};
|
|
22549
|
+
rules: Record<"boolean-prop-naming" | "button-has-type" | "checked-requires-onchange-or-readonly" | "default-props-match-prop-types" | "destructuring-assignment" | "display-name" | "forbid-component-props" | "forbid-dom-props" | "forbid-elements" | "forbid-foreign-prop-types" | "forbid-prop-types" | "prop-types" | "forward-ref-uses-ref" | "function-component-definition" | "hook-use-state" | "iframe-missing-sandbox" | "jsx-boolean-value" | "jsx-child-element-spacing" | "jsx-closing-bracket-location" | "jsx-closing-tag-location" | "jsx-curly-spacing" | "jsx-curly-newline" | "jsx-equals-spacing" | "jsx-filename-extension" | "jsx-first-prop-new-line" | "jsx-handler-names" | "jsx-indent" | "jsx-indent-props" | "jsx-key" | "jsx-max-depth" | "jsx-max-props-per-line" | "jsx-newline" | "jsx-no-bind" | "jsx-no-comment-textnodes" | "jsx-no-constructed-context-values" | "jsx-no-duplicate-props" | "jsx-no-leaked-render" | "jsx-no-literals" | "jsx-no-script-url" | "jsx-no-target-blank" | "jsx-no-useless-fragment" | "jsx-one-expression-per-line" | "jsx-no-undef" | "jsx-curly-brace-presence" | "jsx-pascal-case" | "jsx-fragments" | "jsx-props-no-multi-spaces" | "jsx-props-no-spreading" | "jsx-props-no-spread-multi" | "sort-default-props" | "jsx-sort-default-props" | "jsx-sort-props" | "jsx-tag-spacing" | "jsx-space-before-closing" | "jsx-uses-react" | "jsx-uses-vars" | "jsx-wrap-multilines" | "no-invalid-html-attribute" | "no-access-state-in-setstate" | "no-adjacent-inline-elements" | "no-array-index-key" | "no-arrow-function-lifecycle" | "no-children-prop" | "no-danger" | "no-danger-with-children" | "no-deprecated" | "no-direct-mutation-state" | "no-find-dom-node" | "no-is-mounted" | "no-multi-comp" | "no-namespace" | "no-set-state" | "no-string-refs" | "no-redundant-should-component-update" | "no-render-return-value" | "no-this-in-sfc" | "no-typos" | "no-unescaped-entities" | "no-unknown-property" | "no-unsafe" | "no-unstable-nested-components" | "no-unused-class-component-methods" | "no-unused-prop-types" | "no-unused-state" | "no-object-type-as-default-prop" | "prefer-es6-class" | "prefer-exact-props" | "prefer-read-only-props" | "prefer-stateless-function" | "react-in-jsx-scope" | "require-default-props" | "require-optimization" | "require-render-return" | "self-closing-comp" | "sort-comp" | "sort-prop-types" | "state-in-constructor" | "static-property-placement" | "style-prop-object" | "void-dom-elements-no-children" | "no-did-mount-set-state" | "no-did-update-set-state" | "no-will-update-set-state", 2 | "error">;
|
|
22550
|
+
};
|
|
22551
|
+
'jsx-runtime': {
|
|
22552
|
+
plugins: ["react"];
|
|
22553
|
+
parserOptions: {
|
|
22554
|
+
ecmaFeatures: {
|
|
22555
|
+
jsx: boolean;
|
|
22556
|
+
};
|
|
22557
|
+
jsxPragma: any;
|
|
22558
|
+
};
|
|
22559
|
+
rules: {
|
|
22560
|
+
"react/react-in-jsx-scope": number;
|
|
22561
|
+
"react/jsx-uses-react": number;
|
|
22562
|
+
};
|
|
22563
|
+
};
|
|
22564
|
+
} & {
|
|
22565
|
+
flat?: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22566
|
+
};
|
|
22567
|
+
};
|
|
21718
22568
|
pluginReactHooks: any;
|
|
21719
22569
|
pluginReactRefresh: any;
|
|
21720
22570
|
}>;
|
|
@@ -22730,4 +23580,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
22730
23580
|
declare function error2warn<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
22731
23581
|
declare function warn2error<T extends TypedFlatConfigItem>(configs: T[]): T[];
|
|
22732
23582
|
|
|
22733
|
-
export { type Awaitable, type EslintConfigFn,
|
|
23583
|
+
export { type Awaitable, type EslintConfigFn, type LanguageOptions, type OptionsCommon, type OptionsComponentExts, type OptionsConfig, type OptionsFiles, type OptionsHasTypeScript, type OptionsIsInEditor, type OptionsOverrides, type OptionsPrefix, type OptionsReact, type OptionsStylistic, type OptionsTypeScriptParserOptions, type OptionsTypeScriptWithTypes, type OptionsTypescript, type PromiseFlatConfigItem, type RenamePefix, type RuleName, type Rules, SLOW_RULES, type StylisticConfig, type TailwindEslintSettings, type TailwindOptions, type TypedFlatConfigItem, type TypedFlatConfigItemWithId, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTailwind, importPluginTsdoc, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, renameRules, safeImportPluginTailwind, turnOffRules, uniqueStrings, warn2error };
|