@jsse/eslint-config 0.2.29 → 0.2.31
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 +12 -0
- package/dist/cli.cjs +8 -8
- package/dist/cli.js +8 -8
- package/dist/esm/cli.js +3 -3
- package/dist/esm/configs/ts/requires-type-checking.js +1 -0
- package/dist/esm/fixable.js +1 -1
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins.d.ts +107 -269
- package/dist/esm/plugins.js +1 -4
- package/dist/index.cjs +55 -32
- package/dist/index.d.cts +1087 -632
- package/dist/index.d.ts +1087 -632
- package/dist/index.js +60 -37
- package/package.json +35 -35
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { Linter, Rule } from 'eslint';
|
|
|
6
6
|
import { FlatGitignoreOptions } from 'eslint-config-flat-gitignore';
|
|
7
7
|
import * as neverthrow from 'neverthrow';
|
|
8
8
|
import * as _stylistic_eslint_plugin from '@stylistic/eslint-plugin';
|
|
9
|
+
import * as eslint_plugin_jsdoc from 'eslint-plugin-jsdoc';
|
|
9
10
|
import * as _eslint_markdown from '@eslint/markdown';
|
|
10
11
|
import * as eslint_plugin_yml_lib_types_js from 'eslint-plugin-yml/lib/types.js';
|
|
11
12
|
import * as eslint_plugin_yml_lib_meta_js from 'eslint-plugin-yml/lib/meta.js';
|
|
@@ -167,7 +168,7 @@ interface BuiltinsRuleOptions {
|
|
|
167
168
|
*/
|
|
168
169
|
"default-case"?: Linter.RuleEntry<DefaultCase>;
|
|
169
170
|
/**
|
|
170
|
-
* Enforce default clauses in switch statements to be last
|
|
171
|
+
* Enforce `default` clauses in `switch` statements to be last
|
|
171
172
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
172
173
|
*/
|
|
173
174
|
"default-case-last"?: Linter.RuleEntry<[]>;
|
|
@@ -199,7 +200,7 @@ interface BuiltinsRuleOptions {
|
|
|
199
200
|
*/
|
|
200
201
|
eqeqeq?: Linter.RuleEntry<Eqeqeq>;
|
|
201
202
|
/**
|
|
202
|
-
* Enforce
|
|
203
|
+
* Enforce `for` loop update clause moving the counter in the right direction
|
|
203
204
|
* @see https://eslint.org/docs/latest/rules/for-direction
|
|
204
205
|
*/
|
|
205
206
|
"for-direction"?: Linter.RuleEntry<[]>;
|
|
@@ -507,7 +508,7 @@ interface BuiltinsRuleOptions {
|
|
|
507
508
|
*/
|
|
508
509
|
"no-class-assign"?: Linter.RuleEntry<[]>;
|
|
509
510
|
/**
|
|
510
|
-
* Disallow comparing against
|
|
511
|
+
* Disallow comparing against `-0`
|
|
511
512
|
* @see https://eslint.org/docs/latest/rules/no-compare-neg-zero
|
|
512
513
|
*/
|
|
513
514
|
"no-compare-neg-zero"?: Linter.RuleEntry<[]>;
|
|
@@ -916,7 +917,7 @@ interface BuiltinsRuleOptions {
|
|
|
916
917
|
*/
|
|
917
918
|
"no-octal-escape"?: Linter.RuleEntry<[]>;
|
|
918
919
|
/**
|
|
919
|
-
* Disallow reassigning
|
|
920
|
+
* Disallow reassigning function parameters
|
|
920
921
|
* @see https://eslint.org/docs/latest/rules/no-param-reassign
|
|
921
922
|
*/
|
|
922
923
|
"no-param-reassign"?: Linter.RuleEntry<NoParamReassign>;
|
|
@@ -1011,7 +1012,7 @@ interface BuiltinsRuleOptions {
|
|
|
1011
1012
|
*/
|
|
1012
1013
|
"no-return-await"?: Linter.RuleEntry<[]>;
|
|
1013
1014
|
/**
|
|
1014
|
-
* Disallow `javascript:`
|
|
1015
|
+
* Disallow `javascript:` URLs
|
|
1015
1016
|
* @see https://eslint.org/docs/latest/rules/no-script-url
|
|
1016
1017
|
*/
|
|
1017
1018
|
"no-script-url"?: Linter.RuleEntry<[]>;
|
|
@@ -1354,7 +1355,7 @@ interface BuiltinsRuleOptions {
|
|
|
1354
1355
|
*/
|
|
1355
1356
|
"prefer-object-has-own"?: Linter.RuleEntry<[]>;
|
|
1356
1357
|
/**
|
|
1357
|
-
* Disallow using Object.assign with an object literal as the first argument and prefer the use of object spread instead
|
|
1358
|
+
* Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead
|
|
1358
1359
|
* @see https://eslint.org/docs/latest/rules/prefer-object-spread
|
|
1359
1360
|
*/
|
|
1360
1361
|
"prefer-object-spread"?: Linter.RuleEntry<[]>;
|
|
@@ -1417,7 +1418,7 @@ interface BuiltinsRuleOptions {
|
|
|
1417
1418
|
*/
|
|
1418
1419
|
"require-await"?: Linter.RuleEntry<[]>;
|
|
1419
1420
|
/**
|
|
1420
|
-
* Enforce the use of `u` or `v` flag on
|
|
1421
|
+
* Enforce the use of `u` or `v` flag on regular expressions
|
|
1421
1422
|
* @see https://eslint.org/docs/latest/rules/require-unicode-regexp
|
|
1422
1423
|
*/
|
|
1423
1424
|
"require-unicode-regexp"?: Linter.RuleEntry<RequireUnicodeRegexp>;
|
|
@@ -1451,7 +1452,7 @@ interface BuiltinsRuleOptions {
|
|
|
1451
1452
|
*/
|
|
1452
1453
|
"semi-style"?: Linter.RuleEntry<SemiStyle>;
|
|
1453
1454
|
/**
|
|
1454
|
-
* Enforce sorted import declarations within modules
|
|
1455
|
+
* Enforce sorted `import` declarations within modules
|
|
1455
1456
|
* @see https://eslint.org/docs/latest/rules/sort-imports
|
|
1456
1457
|
*/
|
|
1457
1458
|
"sort-imports"?: Linter.RuleEntry<SortImports>;
|
|
@@ -3979,6 +3980,7 @@ type SortKeys =
|
|
|
3979
3980
|
natural?: boolean;
|
|
3980
3981
|
minKeys?: number;
|
|
3981
3982
|
allowLineSeparatedGroups?: boolean;
|
|
3983
|
+
ignoreComputedKeys?: boolean;
|
|
3982
3984
|
},
|
|
3983
3985
|
];
|
|
3984
3986
|
// ----- sort-vars -----
|
|
@@ -4348,233 +4350,233 @@ interface IgnoresRuleOptions {}
|
|
|
4348
4350
|
interface ImportsRuleOptions {
|
|
4349
4351
|
/**
|
|
4350
4352
|
* 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.
|
|
4353
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
4352
4354
|
*/
|
|
4353
4355
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
4354
4356
|
/**
|
|
4355
4357
|
* Ensure a default export is present, given a default import.
|
|
4356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4358
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
4357
4359
|
*/
|
|
4358
4360
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
4359
4361
|
/**
|
|
4360
4362
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
4361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4363
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
4362
4364
|
*/
|
|
4363
4365
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
4364
4366
|
/**
|
|
4365
4367
|
* 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.
|
|
4368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
4367
4369
|
*/
|
|
4368
4370
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
4369
4371
|
/**
|
|
4370
4372
|
* Ensure all exports appear after other statements.
|
|
4371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
4372
4374
|
*/
|
|
4373
4375
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
4374
4376
|
/**
|
|
4375
4377
|
* Ensure consistent use of file extension within the import path.
|
|
4376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
4377
4379
|
*/
|
|
4378
4380
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
4379
4381
|
/**
|
|
4380
4382
|
* Ensure all imports appear before other statements.
|
|
4381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
4382
4384
|
*/
|
|
4383
4385
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
4384
4386
|
/**
|
|
4385
4387
|
* 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.
|
|
4388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
4387
4389
|
*/
|
|
4388
4390
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
4389
4391
|
/**
|
|
4390
4392
|
* Replaced by `import-x/first`.
|
|
4391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
4392
4394
|
* @deprecated
|
|
4393
4395
|
*/
|
|
4394
4396
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
4395
4397
|
/**
|
|
4396
4398
|
* Enforce the maximum number of dependencies a module can have.
|
|
4397
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4399
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
4398
4400
|
*/
|
|
4399
4401
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
4400
4402
|
/**
|
|
4401
4403
|
* 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.
|
|
4404
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
4403
4405
|
*/
|
|
4404
4406
|
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
4405
4407
|
/**
|
|
4406
4408
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
4407
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4409
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
4408
4410
|
*/
|
|
4409
4411
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
4410
4412
|
/**
|
|
4411
4413
|
* Enforce a newline after import statements.
|
|
4412
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4414
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
4413
4415
|
*/
|
|
4414
4416
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
4415
4417
|
/**
|
|
4416
4418
|
* Forbid import of modules using absolute paths.
|
|
4417
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4419
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
4418
4420
|
*/
|
|
4419
4421
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
4420
4422
|
/**
|
|
4421
4423
|
* Forbid AMD `require` and `define` calls.
|
|
4422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4424
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
4423
4425
|
*/
|
|
4424
4426
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
4425
4427
|
/**
|
|
4426
4428
|
* Forbid anonymous values as default exports.
|
|
4427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4429
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
4428
4430
|
*/
|
|
4429
4431
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
4430
4432
|
/**
|
|
4431
4433
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
4432
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4434
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
4433
4435
|
*/
|
|
4434
4436
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
4435
4437
|
/**
|
|
4436
4438
|
* 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.
|
|
4439
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
4438
4440
|
*/
|
|
4439
4441
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
4440
4442
|
/**
|
|
4441
4443
|
* Forbid default exports.
|
|
4442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4444
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
4443
4445
|
*/
|
|
4444
4446
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
4445
4447
|
/**
|
|
4446
4448
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
4447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4449
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
4448
4450
|
*/
|
|
4449
4451
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
4450
4452
|
/**
|
|
4451
4453
|
* Forbid repeated import of the same module in multiple places.
|
|
4452
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4454
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
4453
4455
|
*/
|
|
4454
4456
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
4455
4457
|
/**
|
|
4456
4458
|
* Forbid `require()` calls with expressions.
|
|
4457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4459
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
4458
4460
|
*/
|
|
4459
4461
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
4460
4462
|
/**
|
|
4461
4463
|
* Forbid empty named import blocks.
|
|
4462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4464
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
4463
4465
|
*/
|
|
4464
4466
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
4465
4467
|
/**
|
|
4466
4468
|
* Forbid the use of extraneous packages.
|
|
4467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4469
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
4468
4470
|
*/
|
|
4469
4471
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
4470
4472
|
/**
|
|
4471
4473
|
* Forbid import statements with CommonJS module.exports.
|
|
4472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4474
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
4473
4475
|
*/
|
|
4474
4476
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
4475
4477
|
/**
|
|
4476
4478
|
* Forbid importing the submodules of other modules.
|
|
4477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4479
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
4478
4480
|
*/
|
|
4479
4481
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
4480
4482
|
/**
|
|
4481
4483
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
4482
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4484
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
4483
4485
|
*/
|
|
4484
4486
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
4485
4487
|
/**
|
|
4486
4488
|
* Forbid use of exported name as identifier of default export.
|
|
4487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4489
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
4488
4490
|
*/
|
|
4489
4491
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
4490
4492
|
/**
|
|
4491
4493
|
* Forbid use of exported name as property of default export.
|
|
4492
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4494
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
4493
4495
|
*/
|
|
4494
4496
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
4495
4497
|
/**
|
|
4496
4498
|
* Forbid named default exports.
|
|
4497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4499
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
4498
4500
|
*/
|
|
4499
4501
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
4500
4502
|
/**
|
|
4501
4503
|
* Forbid named exports.
|
|
4502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4504
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
4503
4505
|
*/
|
|
4504
4506
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
4505
4507
|
/**
|
|
4506
4508
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
4507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4509
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
4508
4510
|
*/
|
|
4509
4511
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
4510
4512
|
/**
|
|
4511
4513
|
* Forbid Node.js builtin modules.
|
|
4512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4514
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
4513
4515
|
*/
|
|
4514
4516
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
4515
4517
|
/**
|
|
4516
4518
|
* Forbid importing packages through relative paths.
|
|
4517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4519
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
4518
4520
|
*/
|
|
4519
4521
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
4520
4522
|
/**
|
|
4521
4523
|
* Forbid importing modules from parent directories.
|
|
4522
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4524
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
4523
4525
|
*/
|
|
4524
4526
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
4525
4527
|
/**
|
|
4526
4528
|
* Forbid importing a default export by a different name.
|
|
4527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4529
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
4528
4530
|
*/
|
|
4529
4531
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
4530
4532
|
/**
|
|
4531
4533
|
* Enforce which files can be imported in a given folder.
|
|
4532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4534
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
4533
4535
|
*/
|
|
4534
4536
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
4535
4537
|
/**
|
|
4536
4538
|
* Forbid a module from importing itself.
|
|
4537
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4539
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
4538
4540
|
*/
|
|
4539
4541
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
4540
4542
|
/**
|
|
4541
4543
|
* Forbid unassigned imports.
|
|
4542
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4544
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
4543
4545
|
*/
|
|
4544
4546
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
4545
4547
|
/**
|
|
4546
4548
|
* Ensure imports point to a file/module that can be resolved.
|
|
4547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4549
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
4548
4550
|
*/
|
|
4549
4551
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
4550
4552
|
/**
|
|
4551
4553
|
* 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.
|
|
4554
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
4553
4555
|
*/
|
|
4554
4556
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
4555
4557
|
/**
|
|
4556
4558
|
* Forbid unnecessary path segments in import and require statements.
|
|
4557
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4559
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
4558
4560
|
*/
|
|
4559
4561
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
4560
4562
|
/**
|
|
4561
4563
|
* Forbid webpack loader syntax in imports.
|
|
4562
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4564
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
4563
4565
|
*/
|
|
4564
4566
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
4565
4567
|
/**
|
|
4566
4568
|
* Enforce a convention in module import order.
|
|
4567
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4569
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
4568
4570
|
*/
|
|
4569
4571
|
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
4570
4572
|
/**
|
|
4571
4573
|
* 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.
|
|
4574
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
4573
4575
|
*/
|
|
4574
4576
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
4575
4577
|
/**
|
|
4576
4578
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
4577
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
4579
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
4578
4580
|
*/
|
|
4579
4581
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
4580
4582
|
}
|
|
@@ -5507,6 +5509,7 @@ type JsdocLinesBeforeBlock =
|
|
|
5507
5509
|
| []
|
|
5508
5510
|
| [
|
|
5509
5511
|
{
|
|
5512
|
+
checkBlockStarts?: boolean;
|
|
5510
5513
|
excludedTags?: string[];
|
|
5511
5514
|
ignoreSameLine?: boolean;
|
|
5512
5515
|
lines?: number;
|
|
@@ -7173,6 +7176,9 @@ type NNoExtraneousImport =
|
|
|
7173
7176
|
}[],
|
|
7174
7177
|
];
|
|
7175
7178
|
resolvePaths?: string[];
|
|
7179
|
+
resolverConfig?: {
|
|
7180
|
+
[k: string]: unknown | undefined;
|
|
7181
|
+
};
|
|
7176
7182
|
},
|
|
7177
7183
|
];
|
|
7178
7184
|
// ----- n/no-extraneous-require -----
|
|
@@ -7200,6 +7206,9 @@ type NNoExtraneousRequire =
|
|
|
7200
7206
|
}[],
|
|
7201
7207
|
];
|
|
7202
7208
|
resolvePaths?: string[];
|
|
7209
|
+
resolverConfig?: {
|
|
7210
|
+
[k: string]: unknown | undefined;
|
|
7211
|
+
};
|
|
7203
7212
|
tryExtensions?: string[];
|
|
7204
7213
|
},
|
|
7205
7214
|
];
|
|
@@ -7250,6 +7259,9 @@ type NNoMissingImport =
|
|
|
7250
7259
|
{
|
|
7251
7260
|
allowModules?: string[];
|
|
7252
7261
|
resolvePaths?: string[];
|
|
7262
|
+
resolverConfig?: {
|
|
7263
|
+
[k: string]: unknown | undefined;
|
|
7264
|
+
};
|
|
7253
7265
|
tryExtensions?: string[];
|
|
7254
7266
|
ignoreTypeImport?: boolean;
|
|
7255
7267
|
tsconfigPath?: string;
|
|
@@ -7272,6 +7284,9 @@ type NNoMissingRequire =
|
|
|
7272
7284
|
allowModules?: string[];
|
|
7273
7285
|
tryExtensions?: string[];
|
|
7274
7286
|
resolvePaths?: string[];
|
|
7287
|
+
resolverConfig?: {
|
|
7288
|
+
[k: string]: unknown | undefined;
|
|
7289
|
+
};
|
|
7275
7290
|
typescriptExtensionMap?:
|
|
7276
7291
|
| unknown[][]
|
|
7277
7292
|
| (
|
|
@@ -7332,6 +7347,7 @@ type NNoSync =
|
|
|
7332
7347
|
| [
|
|
7333
7348
|
{
|
|
7334
7349
|
allowAtRootLevel?: boolean;
|
|
7350
|
+
ignores?: string[];
|
|
7335
7351
|
},
|
|
7336
7352
|
];
|
|
7337
7353
|
// ----- n/no-unpublished-bin -----
|
|
@@ -7385,6 +7401,9 @@ type NNoUnpublishedImport =
|
|
|
7385
7401
|
}[],
|
|
7386
7402
|
];
|
|
7387
7403
|
resolvePaths?: string[];
|
|
7404
|
+
resolverConfig?: {
|
|
7405
|
+
[k: string]: unknown | undefined;
|
|
7406
|
+
};
|
|
7388
7407
|
ignoreTypeImport?: boolean;
|
|
7389
7408
|
ignorePrivate?: boolean;
|
|
7390
7409
|
},
|
|
@@ -7414,6 +7433,9 @@ type NNoUnpublishedRequire =
|
|
|
7414
7433
|
}[],
|
|
7415
7434
|
];
|
|
7416
7435
|
resolvePaths?: string[];
|
|
7436
|
+
resolverConfig?: {
|
|
7437
|
+
[k: string]: unknown | undefined;
|
|
7438
|
+
};
|
|
7417
7439
|
tryExtensions?: string[];
|
|
7418
7440
|
ignorePrivate?: boolean;
|
|
7419
7441
|
},
|
|
@@ -8499,6 +8521,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
8499
8521
|
| "process.ppid"
|
|
8500
8522
|
| "process.release"
|
|
8501
8523
|
| "process.report"
|
|
8524
|
+
| "process.report.excludeEnv"
|
|
8502
8525
|
| "process.sourceMapsEnabled"
|
|
8503
8526
|
| "process.stdin"
|
|
8504
8527
|
| "process.stdin.isRaw"
|
|
@@ -9145,6 +9168,10 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9145
9168
|
| "inspector.waitForDebugger"
|
|
9146
9169
|
| "inspector/promises"
|
|
9147
9170
|
| "inspector/promises.Session"
|
|
9171
|
+
| "inspector/promises.Network.loadingFailed"
|
|
9172
|
+
| "inspector/promises.Network.loadingFinished"
|
|
9173
|
+
| "inspector/promises.Network.requestWillBeSent"
|
|
9174
|
+
| "inspector/promises.Network.responseReceived"
|
|
9148
9175
|
| "inspector/promises.console"
|
|
9149
9176
|
| "inspector/promises.close"
|
|
9150
9177
|
| "inspector/promises.open"
|
|
@@ -9155,10 +9182,12 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9155
9182
|
| "module.createRequire"
|
|
9156
9183
|
| "module.createRequireFromPath"
|
|
9157
9184
|
| "module.enableCompileCache"
|
|
9185
|
+
| "module.findPackageJSON"
|
|
9158
9186
|
| "module.flushCompileCache"
|
|
9159
9187
|
| "module.getCompileCacheDir"
|
|
9160
9188
|
| "module.isBuiltin"
|
|
9161
9189
|
| "module.register"
|
|
9190
|
+
| "module.stripTypeScriptTypes"
|
|
9162
9191
|
| "module.syncBuiltinESMExports"
|
|
9163
9192
|
| "module.findSourceMap"
|
|
9164
9193
|
| "module.SourceMap"
|
|
@@ -9166,10 +9195,12 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9166
9195
|
| "module.Module.createRequire"
|
|
9167
9196
|
| "module.Module.createRequireFromPath"
|
|
9168
9197
|
| "module.Module.enableCompileCache"
|
|
9198
|
+
| "module.Module.findPackageJSON"
|
|
9169
9199
|
| "module.Module.flushCompileCache"
|
|
9170
9200
|
| "module.Module.getCompileCacheDir"
|
|
9171
9201
|
| "module.Module.isBuiltin"
|
|
9172
9202
|
| "module.Module.register"
|
|
9203
|
+
| "module.Module.stripTypeScriptTypes"
|
|
9173
9204
|
| "module.Module.syncBuiltinESMExports"
|
|
9174
9205
|
| "module.Module.findSourceMap"
|
|
9175
9206
|
| "module.Module.SourceMap"
|
|
@@ -9490,6 +9521,8 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9490
9521
|
| "timers/promises.setTimeout"
|
|
9491
9522
|
| "timers/promises.setImmediate"
|
|
9492
9523
|
| "timers/promises.setInterval"
|
|
9524
|
+
| "timers/promises.scheduler.wait"
|
|
9525
|
+
| "timers/promises.scheduler.yield"
|
|
9493
9526
|
| "tls"
|
|
9494
9527
|
| "tls.rootCertificates"
|
|
9495
9528
|
| "tls.DEFAULT_ECDH_CURVE"
|
|
@@ -9536,6 +9569,7 @@ type NNoUnsupportedFeaturesNodeBuiltins =
|
|
|
9536
9569
|
| "util.format"
|
|
9537
9570
|
| "util.formatWithOptions"
|
|
9538
9571
|
| "util.getCallSite"
|
|
9572
|
+
| "util.getCallSites"
|
|
9539
9573
|
| "util.getSystemErrorName"
|
|
9540
9574
|
| "util.getSystemErrorMap"
|
|
9541
9575
|
| "util.getSystemErrorMessage"
|
|
@@ -9940,32 +9974,94 @@ interface PerfectionistRuleOptions {
|
|
|
9940
9974
|
|
|
9941
9975
|
/* ======= Declarations ======= */
|
|
9942
9976
|
// ----- perfectionist/sort-array-includes -----
|
|
9943
|
-
type PerfectionistSortArrayIncludes =
|
|
9944
|
-
|
|
|
9945
|
-
| [
|
|
9946
|
-
{
|
|
9947
|
-
partitionByComment?: string[] | boolean | string;
|
|
9977
|
+
type PerfectionistSortArrayIncludes = {
|
|
9978
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
9948
9979
|
|
|
9949
|
-
|
|
9980
|
+
ignoreCase?: boolean;
|
|
9950
9981
|
|
|
9951
|
-
|
|
9982
|
+
alphabet?: string;
|
|
9952
9983
|
|
|
9953
|
-
|
|
9984
|
+
locales?: string | string[];
|
|
9954
9985
|
|
|
9955
|
-
|
|
9986
|
+
order?: "asc" | "desc";
|
|
9956
9987
|
|
|
9957
|
-
|
|
9988
|
+
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
9958
9989
|
|
|
9959
|
-
|
|
9990
|
+
customGroups?: (
|
|
9991
|
+
| {
|
|
9992
|
+
groupName?: string;
|
|
9960
9993
|
|
|
9961
|
-
type?: "alphabetical" | "natural" | "
|
|
9962
|
-
|
|
9963
|
-
|
|
9994
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
9995
|
+
|
|
9996
|
+
order?: "desc" | "asc";
|
|
9997
|
+
|
|
9998
|
+
newlinesInside?: "always" | "never";
|
|
9999
|
+
anyOf?: {
|
|
10000
|
+
selector?: "literal" | "spread";
|
|
10001
|
+
|
|
10002
|
+
elementNamePattern?: string;
|
|
10003
|
+
}[];
|
|
10004
|
+
}
|
|
10005
|
+
| {
|
|
10006
|
+
groupName?: string;
|
|
10007
|
+
|
|
10008
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10009
|
+
|
|
10010
|
+
order?: "desc" | "asc";
|
|
10011
|
+
|
|
10012
|
+
newlinesInside?: "always" | "never";
|
|
10013
|
+
|
|
10014
|
+
selector?: "literal" | "spread";
|
|
10015
|
+
|
|
10016
|
+
elementNamePattern?: string;
|
|
10017
|
+
}
|
|
10018
|
+
)[];
|
|
10019
|
+
useConfigurationIf?: {
|
|
10020
|
+
allNamesMatchPattern?: string;
|
|
10021
|
+
};
|
|
10022
|
+
|
|
10023
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
10024
|
+
|
|
10025
|
+
partitionByComment?:
|
|
10026
|
+
| string[]
|
|
10027
|
+
| boolean
|
|
10028
|
+
| string
|
|
10029
|
+
| {
|
|
10030
|
+
block?: string[] | boolean | string;
|
|
10031
|
+
line?: string[] | boolean | string;
|
|
10032
|
+
[k: string]: unknown | undefined;
|
|
10033
|
+
};
|
|
10034
|
+
|
|
10035
|
+
partitionByNewLine?: boolean;
|
|
10036
|
+
|
|
10037
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10038
|
+
|
|
10039
|
+
groups?: (
|
|
10040
|
+
| string
|
|
10041
|
+
| string[]
|
|
10042
|
+
| {
|
|
10043
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10044
|
+
[k: string]: unknown | undefined;
|
|
10045
|
+
}
|
|
10046
|
+
)[];
|
|
10047
|
+
}[];
|
|
9964
10048
|
// ----- perfectionist/sort-classes -----
|
|
9965
10049
|
type PerfectionistSortClasses =
|
|
9966
10050
|
| []
|
|
9967
10051
|
| [
|
|
9968
10052
|
{
|
|
10053
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10054
|
+
|
|
10055
|
+
ignoreCase?: boolean;
|
|
10056
|
+
|
|
10057
|
+
alphabet?: string;
|
|
10058
|
+
|
|
10059
|
+
locales?: string | string[];
|
|
10060
|
+
|
|
10061
|
+
order?: "asc" | "desc";
|
|
10062
|
+
|
|
10063
|
+
ignoreCallbackDependenciesPatterns?: string[];
|
|
10064
|
+
|
|
9969
10065
|
customGroups?: (
|
|
9970
10066
|
| {
|
|
9971
10067
|
groupName?: string;
|
|
@@ -9973,7 +10069,11 @@ type PerfectionistSortClasses =
|
|
|
9973
10069
|
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
9974
10070
|
|
|
9975
10071
|
order?: "desc" | "asc";
|
|
10072
|
+
|
|
10073
|
+
newlinesInside?: "always" | "never";
|
|
9976
10074
|
anyOf?: {
|
|
10075
|
+
decoratorNamePattern?: string;
|
|
10076
|
+
|
|
9977
10077
|
modifiers?: (
|
|
9978
10078
|
| "async"
|
|
9979
10079
|
| "protected"
|
|
@@ -9988,10 +10088,6 @@ type PerfectionistSortClasses =
|
|
|
9988
10088
|
| "optional"
|
|
9989
10089
|
)[];
|
|
9990
10090
|
|
|
9991
|
-
elementValuePattern?: string;
|
|
9992
|
-
|
|
9993
|
-
decoratorNamePattern?: string;
|
|
9994
|
-
|
|
9995
10091
|
selector?:
|
|
9996
10092
|
| "accessor-property"
|
|
9997
10093
|
| "index-signature"
|
|
@@ -10003,6 +10099,8 @@ type PerfectionistSortClasses =
|
|
|
10003
10099
|
| "property"
|
|
10004
10100
|
| "method";
|
|
10005
10101
|
|
|
10102
|
+
elementValuePattern?: string;
|
|
10103
|
+
|
|
10006
10104
|
elementNamePattern?: string;
|
|
10007
10105
|
}[];
|
|
10008
10106
|
}
|
|
@@ -10013,6 +10111,10 @@ type PerfectionistSortClasses =
|
|
|
10013
10111
|
|
|
10014
10112
|
order?: "desc" | "asc";
|
|
10015
10113
|
|
|
10114
|
+
newlinesInside?: "always" | "never";
|
|
10115
|
+
|
|
10116
|
+
decoratorNamePattern?: string;
|
|
10117
|
+
|
|
10016
10118
|
modifiers?: (
|
|
10017
10119
|
| "async"
|
|
10018
10120
|
| "protected"
|
|
@@ -10027,10 +10129,6 @@ type PerfectionistSortClasses =
|
|
|
10027
10129
|
| "optional"
|
|
10028
10130
|
)[];
|
|
10029
10131
|
|
|
10030
|
-
elementValuePattern?: string;
|
|
10031
|
-
|
|
10032
|
-
decoratorNamePattern?: string;
|
|
10033
|
-
|
|
10034
10132
|
selector?:
|
|
10035
10133
|
| "accessor-property"
|
|
10036
10134
|
| "index-signature"
|
|
@@ -10042,29 +10140,36 @@ type PerfectionistSortClasses =
|
|
|
10042
10140
|
| "property"
|
|
10043
10141
|
| "method";
|
|
10044
10142
|
|
|
10143
|
+
elementValuePattern?: string;
|
|
10144
|
+
|
|
10045
10145
|
elementNamePattern?: string;
|
|
10046
10146
|
}
|
|
10047
10147
|
)[];
|
|
10048
10148
|
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10149
|
+
partitionByComment?:
|
|
10150
|
+
| string[]
|
|
10151
|
+
| boolean
|
|
10152
|
+
| string
|
|
10153
|
+
| {
|
|
10154
|
+
block?: string[] | boolean | string;
|
|
10155
|
+
line?: string[] | boolean | string;
|
|
10156
|
+
[k: string]: unknown | undefined;
|
|
10157
|
+
};
|
|
10052
10158
|
|
|
10053
10159
|
partitionByNewLine?: boolean;
|
|
10054
10160
|
|
|
10055
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10056
|
-
|
|
10057
10161
|
newlinesBetween?: "ignore" | "always" | "never";
|
|
10058
10162
|
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
locales?: string | string[];
|
|
10062
|
-
|
|
10063
|
-
groups?: (string | string[])[];
|
|
10064
|
-
|
|
10065
|
-
order?: "asc" | "desc";
|
|
10163
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10066
10164
|
|
|
10067
|
-
|
|
10165
|
+
groups?: (
|
|
10166
|
+
| string
|
|
10167
|
+
| string[]
|
|
10168
|
+
| {
|
|
10169
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10170
|
+
[k: string]: unknown | undefined;
|
|
10171
|
+
}
|
|
10172
|
+
)[];
|
|
10068
10173
|
},
|
|
10069
10174
|
];
|
|
10070
10175
|
// ----- perfectionist/sort-decorators -----
|
|
@@ -10072,7 +10177,15 @@ type PerfectionistSortDecorators =
|
|
|
10072
10177
|
| []
|
|
10073
10178
|
| [
|
|
10074
10179
|
{
|
|
10075
|
-
|
|
10180
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10181
|
+
|
|
10182
|
+
ignoreCase?: boolean;
|
|
10183
|
+
|
|
10184
|
+
alphabet?: string;
|
|
10185
|
+
|
|
10186
|
+
locales?: string | string[];
|
|
10187
|
+
|
|
10188
|
+
order?: "asc" | "desc";
|
|
10076
10189
|
|
|
10077
10190
|
sortOnParameters?: boolean;
|
|
10078
10191
|
|
|
@@ -10084,21 +10197,30 @@ type PerfectionistSortDecorators =
|
|
|
10084
10197
|
|
|
10085
10198
|
sortOnClasses?: boolean;
|
|
10086
10199
|
|
|
10087
|
-
|
|
10200
|
+
partitionByComment?:
|
|
10201
|
+
| string[]
|
|
10202
|
+
| boolean
|
|
10203
|
+
| string
|
|
10204
|
+
| {
|
|
10205
|
+
block?: string[] | boolean | string;
|
|
10206
|
+
line?: string[] | boolean | string;
|
|
10207
|
+
[k: string]: unknown | undefined;
|
|
10208
|
+
};
|
|
10088
10209
|
|
|
10089
10210
|
customGroups?: {
|
|
10090
10211
|
[k: string]: (string | string[]) | undefined;
|
|
10091
10212
|
};
|
|
10092
10213
|
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
locales?: string | string[];
|
|
10096
|
-
|
|
10097
|
-
groups?: (string | string[])[];
|
|
10214
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10098
10215
|
|
|
10099
|
-
|
|
10100
|
-
|
|
10101
|
-
|
|
10216
|
+
groups?: (
|
|
10217
|
+
| string
|
|
10218
|
+
| string[]
|
|
10219
|
+
| {
|
|
10220
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10221
|
+
[k: string]: unknown | undefined;
|
|
10222
|
+
}
|
|
10223
|
+
)[];
|
|
10102
10224
|
},
|
|
10103
10225
|
];
|
|
10104
10226
|
// ----- perfectionist/sort-enums -----
|
|
@@ -10106,23 +10228,33 @@ type PerfectionistSortEnums =
|
|
|
10106
10228
|
| []
|
|
10107
10229
|
| [
|
|
10108
10230
|
{
|
|
10109
|
-
partitionByComment?: string[] | boolean | string;
|
|
10110
|
-
|
|
10111
|
-
forceNumericSort?: boolean;
|
|
10112
|
-
|
|
10113
|
-
sortByValue?: boolean;
|
|
10114
|
-
|
|
10115
|
-
partitionByNewLine?: boolean;
|
|
10116
|
-
|
|
10117
10231
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10118
10232
|
|
|
10119
10233
|
ignoreCase?: boolean;
|
|
10120
10234
|
|
|
10235
|
+
alphabet?: string;
|
|
10236
|
+
|
|
10121
10237
|
locales?: string | string[];
|
|
10122
10238
|
|
|
10123
10239
|
order?: "asc" | "desc";
|
|
10124
10240
|
|
|
10125
|
-
|
|
10241
|
+
forceNumericSort?: boolean;
|
|
10242
|
+
|
|
10243
|
+
sortByValue?: boolean;
|
|
10244
|
+
|
|
10245
|
+
partitionByComment?:
|
|
10246
|
+
| string[]
|
|
10247
|
+
| boolean
|
|
10248
|
+
| string
|
|
10249
|
+
| {
|
|
10250
|
+
block?: string[] | boolean | string;
|
|
10251
|
+
line?: string[] | boolean | string;
|
|
10252
|
+
[k: string]: unknown | undefined;
|
|
10253
|
+
};
|
|
10254
|
+
|
|
10255
|
+
partitionByNewLine?: boolean;
|
|
10256
|
+
|
|
10257
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10126
10258
|
},
|
|
10127
10259
|
];
|
|
10128
10260
|
// ----- perfectionist/sort-exports -----
|
|
@@ -10130,21 +10262,31 @@ type PerfectionistSortExports =
|
|
|
10130
10262
|
| []
|
|
10131
10263
|
| [
|
|
10132
10264
|
{
|
|
10133
|
-
partitionByComment?: string[] | boolean | string;
|
|
10134
|
-
|
|
10135
|
-
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10136
|
-
|
|
10137
|
-
partitionByNewLine?: boolean;
|
|
10138
|
-
|
|
10139
10265
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10140
10266
|
|
|
10141
10267
|
ignoreCase?: boolean;
|
|
10142
10268
|
|
|
10269
|
+
alphabet?: string;
|
|
10270
|
+
|
|
10143
10271
|
locales?: string | string[];
|
|
10144
10272
|
|
|
10145
10273
|
order?: "asc" | "desc";
|
|
10146
10274
|
|
|
10147
|
-
|
|
10275
|
+
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10276
|
+
|
|
10277
|
+
partitionByComment?:
|
|
10278
|
+
| string[]
|
|
10279
|
+
| boolean
|
|
10280
|
+
| string
|
|
10281
|
+
| {
|
|
10282
|
+
block?: string[] | boolean | string;
|
|
10283
|
+
line?: string[] | boolean | string;
|
|
10284
|
+
[k: string]: unknown | undefined;
|
|
10285
|
+
};
|
|
10286
|
+
|
|
10287
|
+
partitionByNewLine?: boolean;
|
|
10288
|
+
|
|
10289
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10148
10290
|
},
|
|
10149
10291
|
];
|
|
10150
10292
|
// ----- perfectionist/sort-heritage-clauses -----
|
|
@@ -10154,25 +10296,44 @@ type PerfectionistSortHeritageClauses =
|
|
|
10154
10296
|
{
|
|
10155
10297
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10156
10298
|
|
|
10157
|
-
customGroups?: {
|
|
10158
|
-
[k: string]: (string | string[]) | undefined;
|
|
10159
|
-
};
|
|
10160
|
-
|
|
10161
10299
|
ignoreCase?: boolean;
|
|
10162
10300
|
|
|
10163
|
-
|
|
10301
|
+
alphabet?: string;
|
|
10164
10302
|
|
|
10165
|
-
|
|
10303
|
+
locales?: string | string[];
|
|
10166
10304
|
|
|
10167
10305
|
order?: "asc" | "desc";
|
|
10168
10306
|
|
|
10169
|
-
|
|
10307
|
+
customGroups?: {
|
|
10308
|
+
[k: string]: (string | string[]) | undefined;
|
|
10309
|
+
};
|
|
10310
|
+
|
|
10311
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10312
|
+
|
|
10313
|
+
groups?: (
|
|
10314
|
+
| string
|
|
10315
|
+
| string[]
|
|
10316
|
+
| {
|
|
10317
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10318
|
+
[k: string]: unknown | undefined;
|
|
10319
|
+
}
|
|
10320
|
+
)[];
|
|
10170
10321
|
},
|
|
10171
10322
|
];
|
|
10172
10323
|
// ----- perfectionist/sort-imports -----
|
|
10173
10324
|
type PerfectionistSortImports = [] | [_PerfectionistSortImportsSortImports];
|
|
10174
10325
|
type _PerfectionistSortImportsSortImports =
|
|
10175
10326
|
_PerfectionistSortImportsMaxLineLengthRequiresLineLengthType & {
|
|
10327
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10328
|
+
|
|
10329
|
+
ignoreCase?: boolean;
|
|
10330
|
+
|
|
10331
|
+
alphabet?: string;
|
|
10332
|
+
|
|
10333
|
+
locales?: string | string[];
|
|
10334
|
+
|
|
10335
|
+
order?: "asc" | "desc";
|
|
10336
|
+
|
|
10176
10337
|
customGroups?: {
|
|
10177
10338
|
value?: {
|
|
10178
10339
|
[k: string]: unknown | undefined;
|
|
@@ -10183,8 +10344,6 @@ type _PerfectionistSortImportsSortImports =
|
|
|
10183
10344
|
};
|
|
10184
10345
|
};
|
|
10185
10346
|
|
|
10186
|
-
partitionByComment?: string[] | boolean | string;
|
|
10187
|
-
|
|
10188
10347
|
internalPattern?: string[];
|
|
10189
10348
|
|
|
10190
10349
|
maxLineLength?: number;
|
|
@@ -10195,21 +10354,30 @@ type _PerfectionistSortImportsSortImports =
|
|
|
10195
10354
|
|
|
10196
10355
|
tsconfigRootDir?: string;
|
|
10197
10356
|
|
|
10198
|
-
|
|
10357
|
+
partitionByComment?:
|
|
10358
|
+
| string[]
|
|
10359
|
+
| boolean
|
|
10360
|
+
| string
|
|
10361
|
+
| {
|
|
10362
|
+
block?: string[] | boolean | string;
|
|
10363
|
+
line?: string[] | boolean | string;
|
|
10364
|
+
[k: string]: unknown | undefined;
|
|
10365
|
+
};
|
|
10199
10366
|
|
|
10200
|
-
|
|
10367
|
+
partitionByNewLine?: boolean;
|
|
10201
10368
|
|
|
10202
10369
|
newlinesBetween?: "ignore" | "always" | "never";
|
|
10203
10370
|
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
locales?: string | string[];
|
|
10207
|
-
|
|
10208
|
-
groups?: (string | string[])[];
|
|
10371
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10209
10372
|
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10373
|
+
groups?: (
|
|
10374
|
+
| string
|
|
10375
|
+
| string[]
|
|
10376
|
+
| {
|
|
10377
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10378
|
+
[k: string]: unknown | undefined;
|
|
10379
|
+
}
|
|
10380
|
+
)[];
|
|
10213
10381
|
};
|
|
10214
10382
|
type _PerfectionistSortImportsMaxLineLengthRequiresLineLengthType =
|
|
10215
10383
|
| {
|
|
@@ -10221,59 +10389,136 @@ interface _PerfectionistSortImports_IsLineLength {
|
|
|
10221
10389
|
[k: string]: unknown | undefined;
|
|
10222
10390
|
}
|
|
10223
10391
|
// ----- perfectionist/sort-interfaces -----
|
|
10224
|
-
type PerfectionistSortInterfaces =
|
|
10225
|
-
|
|
|
10226
|
-
| [
|
|
10227
|
-
{
|
|
10228
|
-
ignorePattern?: string[];
|
|
10392
|
+
type PerfectionistSortInterfaces = {
|
|
10393
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10229
10394
|
|
|
10230
|
-
|
|
10395
|
+
ignoreCase?: boolean;
|
|
10231
10396
|
|
|
10232
|
-
|
|
10397
|
+
alphabet?: string;
|
|
10233
10398
|
|
|
10234
|
-
|
|
10399
|
+
locales?: string | string[];
|
|
10235
10400
|
|
|
10236
|
-
|
|
10401
|
+
order?: "asc" | "desc";
|
|
10237
10402
|
|
|
10238
|
-
|
|
10403
|
+
ignorePattern?: string[];
|
|
10404
|
+
useConfigurationIf?: {
|
|
10405
|
+
allNamesMatchPattern?: string;
|
|
10406
|
+
declarationMatchesPattern?: string;
|
|
10407
|
+
};
|
|
10408
|
+
customGroups?:
|
|
10409
|
+
| {
|
|
10410
|
+
[k: string]: (string | string[]) | undefined;
|
|
10411
|
+
}
|
|
10412
|
+
| (
|
|
10413
|
+
| {
|
|
10414
|
+
groupName?: string;
|
|
10239
10415
|
|
|
10240
|
-
|
|
10241
|
-
[k: string]: (string | string[]) | undefined;
|
|
10242
|
-
};
|
|
10416
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10243
10417
|
|
|
10244
|
-
|
|
10418
|
+
order?: "desc" | "asc";
|
|
10245
10419
|
|
|
10246
|
-
|
|
10420
|
+
newlinesInside?: "always" | "never";
|
|
10421
|
+
anyOf?: {
|
|
10422
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10247
10423
|
|
|
10248
|
-
|
|
10424
|
+
selector?:
|
|
10425
|
+
| "index-signature"
|
|
10426
|
+
| "member"
|
|
10427
|
+
| "method"
|
|
10428
|
+
| "multiline"
|
|
10429
|
+
| "property";
|
|
10249
10430
|
|
|
10250
|
-
|
|
10431
|
+
elementNamePattern?: string;
|
|
10432
|
+
}[];
|
|
10433
|
+
}
|
|
10434
|
+
| {
|
|
10435
|
+
groupName?: string;
|
|
10251
10436
|
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10437
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10438
|
+
|
|
10439
|
+
order?: "desc" | "asc";
|
|
10440
|
+
|
|
10441
|
+
newlinesInside?: "always" | "never";
|
|
10442
|
+
|
|
10443
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10444
|
+
|
|
10445
|
+
selector?:
|
|
10446
|
+
| "index-signature"
|
|
10447
|
+
| "member"
|
|
10448
|
+
| "method"
|
|
10449
|
+
| "multiline"
|
|
10450
|
+
| "property";
|
|
10451
|
+
|
|
10452
|
+
elementNamePattern?: string;
|
|
10453
|
+
}
|
|
10454
|
+
)[];
|
|
10455
|
+
|
|
10456
|
+
groupKind?: "mixed" | "required-first" | "optional-first";
|
|
10457
|
+
|
|
10458
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
10459
|
+
|
|
10460
|
+
partitionByComment?:
|
|
10461
|
+
| string[]
|
|
10462
|
+
| boolean
|
|
10463
|
+
| string
|
|
10464
|
+
| {
|
|
10465
|
+
block?: string[] | boolean | string;
|
|
10466
|
+
line?: string[] | boolean | string;
|
|
10467
|
+
[k: string]: unknown | undefined;
|
|
10468
|
+
};
|
|
10469
|
+
|
|
10470
|
+
partitionByNewLine?: boolean;
|
|
10471
|
+
|
|
10472
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10473
|
+
|
|
10474
|
+
groups?: (
|
|
10475
|
+
| string
|
|
10476
|
+
| string[]
|
|
10477
|
+
| {
|
|
10478
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10479
|
+
[k: string]: unknown | undefined;
|
|
10480
|
+
}
|
|
10481
|
+
)[];
|
|
10482
|
+
}[];
|
|
10255
10483
|
// ----- perfectionist/sort-intersection-types -----
|
|
10256
10484
|
type PerfectionistSortIntersectionTypes =
|
|
10257
10485
|
| []
|
|
10258
10486
|
| [
|
|
10259
10487
|
{
|
|
10260
|
-
partitionByComment?: string[] | boolean | string;
|
|
10261
|
-
|
|
10262
|
-
partitionByNewLine?: boolean;
|
|
10263
|
-
|
|
10264
10488
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10265
10489
|
|
|
10266
|
-
newlinesBetween?: "ignore" | "always" | "never";
|
|
10267
|
-
|
|
10268
10490
|
ignoreCase?: boolean;
|
|
10269
10491
|
|
|
10270
|
-
|
|
10492
|
+
alphabet?: string;
|
|
10271
10493
|
|
|
10272
|
-
|
|
10494
|
+
locales?: string | string[];
|
|
10273
10495
|
|
|
10274
10496
|
order?: "asc" | "desc";
|
|
10275
10497
|
|
|
10276
|
-
|
|
10498
|
+
partitionByComment?:
|
|
10499
|
+
| string[]
|
|
10500
|
+
| boolean
|
|
10501
|
+
| string
|
|
10502
|
+
| {
|
|
10503
|
+
block?: string[] | boolean | string;
|
|
10504
|
+
line?: string[] | boolean | string;
|
|
10505
|
+
[k: string]: unknown | undefined;
|
|
10506
|
+
};
|
|
10507
|
+
|
|
10508
|
+
partitionByNewLine?: boolean;
|
|
10509
|
+
|
|
10510
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10511
|
+
|
|
10512
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10513
|
+
|
|
10514
|
+
groups?: (
|
|
10515
|
+
| string
|
|
10516
|
+
| string[]
|
|
10517
|
+
| {
|
|
10518
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10519
|
+
[k: string]: unknown | undefined;
|
|
10520
|
+
}
|
|
10521
|
+
)[];
|
|
10277
10522
|
},
|
|
10278
10523
|
];
|
|
10279
10524
|
// ----- perfectionist/sort-jsx-props -----
|
|
@@ -10281,50 +10526,119 @@ type PerfectionistSortJsxProps =
|
|
|
10281
10526
|
| []
|
|
10282
10527
|
| [
|
|
10283
10528
|
{
|
|
10284
|
-
ignorePattern?: string[];
|
|
10285
|
-
|
|
10286
10529
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10287
10530
|
|
|
10288
|
-
customGroups?: {
|
|
10289
|
-
[k: string]: (string | string[]) | undefined;
|
|
10290
|
-
};
|
|
10291
|
-
|
|
10292
10531
|
ignoreCase?: boolean;
|
|
10293
10532
|
|
|
10294
|
-
|
|
10533
|
+
alphabet?: string;
|
|
10295
10534
|
|
|
10296
|
-
|
|
10535
|
+
locales?: string | string[];
|
|
10297
10536
|
|
|
10298
10537
|
order?: "asc" | "desc";
|
|
10299
10538
|
|
|
10300
|
-
|
|
10539
|
+
ignorePattern?: string[];
|
|
10540
|
+
|
|
10541
|
+
partitionByNewLine?: boolean;
|
|
10542
|
+
|
|
10543
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10544
|
+
|
|
10545
|
+
customGroups?: {
|
|
10546
|
+
[k: string]: (string | string[]) | undefined;
|
|
10547
|
+
};
|
|
10548
|
+
|
|
10549
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10550
|
+
|
|
10551
|
+
groups?: (
|
|
10552
|
+
| string
|
|
10553
|
+
| string[]
|
|
10554
|
+
| {
|
|
10555
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10556
|
+
[k: string]: unknown | undefined;
|
|
10557
|
+
}
|
|
10558
|
+
)[];
|
|
10301
10559
|
},
|
|
10302
10560
|
];
|
|
10303
10561
|
// ----- perfectionist/sort-maps -----
|
|
10304
|
-
type PerfectionistSortMaps =
|
|
10305
|
-
|
|
|
10306
|
-
| [
|
|
10307
|
-
{
|
|
10308
|
-
partitionByComment?: string[] | boolean | string;
|
|
10562
|
+
type PerfectionistSortMaps = {
|
|
10563
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10309
10564
|
|
|
10310
|
-
|
|
10565
|
+
ignoreCase?: boolean;
|
|
10311
10566
|
|
|
10312
|
-
|
|
10567
|
+
alphabet?: string;
|
|
10313
10568
|
|
|
10314
|
-
|
|
10569
|
+
locales?: string | string[];
|
|
10315
10570
|
|
|
10316
|
-
|
|
10571
|
+
order?: "asc" | "desc";
|
|
10317
10572
|
|
|
10318
|
-
|
|
10573
|
+
customGroups?: (
|
|
10574
|
+
| {
|
|
10575
|
+
groupName?: string;
|
|
10319
10576
|
|
|
10320
|
-
type?: "alphabetical" | "natural" | "
|
|
10321
|
-
|
|
10322
|
-
|
|
10577
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10578
|
+
|
|
10579
|
+
order?: "desc" | "asc";
|
|
10580
|
+
|
|
10581
|
+
newlinesInside?: "always" | "never";
|
|
10582
|
+
anyOf?: {
|
|
10583
|
+
elementNamePattern?: string;
|
|
10584
|
+
}[];
|
|
10585
|
+
}
|
|
10586
|
+
| {
|
|
10587
|
+
groupName?: string;
|
|
10588
|
+
|
|
10589
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10590
|
+
|
|
10591
|
+
order?: "desc" | "asc";
|
|
10592
|
+
|
|
10593
|
+
newlinesInside?: "always" | "never";
|
|
10594
|
+
|
|
10595
|
+
elementNamePattern?: string;
|
|
10596
|
+
}
|
|
10597
|
+
)[];
|
|
10598
|
+
useConfigurationIf?: {
|
|
10599
|
+
allNamesMatchPattern?: string;
|
|
10600
|
+
};
|
|
10601
|
+
|
|
10602
|
+
partitionByComment?:
|
|
10603
|
+
| string[]
|
|
10604
|
+
| boolean
|
|
10605
|
+
| string
|
|
10606
|
+
| {
|
|
10607
|
+
block?: string[] | boolean | string;
|
|
10608
|
+
line?: string[] | boolean | string;
|
|
10609
|
+
[k: string]: unknown | undefined;
|
|
10610
|
+
};
|
|
10611
|
+
|
|
10612
|
+
partitionByNewLine?: boolean;
|
|
10613
|
+
|
|
10614
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10615
|
+
|
|
10616
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10617
|
+
|
|
10618
|
+
groups?: (
|
|
10619
|
+
| string
|
|
10620
|
+
| string[]
|
|
10621
|
+
| {
|
|
10622
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10623
|
+
[k: string]: unknown | undefined;
|
|
10624
|
+
}
|
|
10625
|
+
)[];
|
|
10626
|
+
}[];
|
|
10323
10627
|
// ----- perfectionist/sort-modules -----
|
|
10324
10628
|
type PerfectionistSortModules =
|
|
10325
10629
|
| []
|
|
10326
10630
|
| [
|
|
10327
10631
|
{
|
|
10632
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10633
|
+
|
|
10634
|
+
ignoreCase?: boolean;
|
|
10635
|
+
|
|
10636
|
+
alphabet?: string;
|
|
10637
|
+
|
|
10638
|
+
locales?: string | string[];
|
|
10639
|
+
|
|
10640
|
+
order?: "asc" | "desc";
|
|
10641
|
+
|
|
10328
10642
|
customGroups?: (
|
|
10329
10643
|
| {
|
|
10330
10644
|
groupName?: string;
|
|
@@ -10332,7 +10646,11 @@ type PerfectionistSortModules =
|
|
|
10332
10646
|
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10333
10647
|
|
|
10334
10648
|
order?: "desc" | "asc";
|
|
10649
|
+
|
|
10650
|
+
newlinesInside?: "always" | "never";
|
|
10335
10651
|
anyOf?: {
|
|
10652
|
+
decoratorNamePattern?: string;
|
|
10653
|
+
|
|
10336
10654
|
modifiers?: (
|
|
10337
10655
|
| "async"
|
|
10338
10656
|
| "declare"
|
|
@@ -10341,10 +10659,6 @@ type PerfectionistSortModules =
|
|
|
10341
10659
|
| "export"
|
|
10342
10660
|
)[];
|
|
10343
10661
|
|
|
10344
|
-
elementValuePattern?: string;
|
|
10345
|
-
|
|
10346
|
-
decoratorNamePattern?: string;
|
|
10347
|
-
|
|
10348
10662
|
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
10349
10663
|
|
|
10350
10664
|
elementNamePattern?: string;
|
|
@@ -10357,6 +10671,10 @@ type PerfectionistSortModules =
|
|
|
10357
10671
|
|
|
10358
10672
|
order?: "desc" | "asc";
|
|
10359
10673
|
|
|
10674
|
+
newlinesInside?: "always" | "never";
|
|
10675
|
+
|
|
10676
|
+
decoratorNamePattern?: string;
|
|
10677
|
+
|
|
10360
10678
|
modifiers?: (
|
|
10361
10679
|
| "async"
|
|
10362
10680
|
| "declare"
|
|
@@ -10365,167 +10683,364 @@ type PerfectionistSortModules =
|
|
|
10365
10683
|
| "export"
|
|
10366
10684
|
)[];
|
|
10367
10685
|
|
|
10368
|
-
elementValuePattern?: string;
|
|
10369
|
-
|
|
10370
|
-
decoratorNamePattern?: string;
|
|
10371
|
-
|
|
10372
10686
|
selector?: "enum" | "function" | "interface" | "type" | "class";
|
|
10373
10687
|
|
|
10374
10688
|
elementNamePattern?: string;
|
|
10375
10689
|
}
|
|
10376
10690
|
)[];
|
|
10377
10691
|
|
|
10378
|
-
partitionByComment?:
|
|
10692
|
+
partitionByComment?:
|
|
10693
|
+
| string[]
|
|
10694
|
+
| boolean
|
|
10695
|
+
| string
|
|
10696
|
+
| {
|
|
10697
|
+
block?: string[] | boolean | string;
|
|
10698
|
+
line?: string[] | boolean | string;
|
|
10699
|
+
[k: string]: unknown | undefined;
|
|
10700
|
+
};
|
|
10379
10701
|
|
|
10380
10702
|
partitionByNewLine?: boolean;
|
|
10381
10703
|
|
|
10382
|
-
specialCharacters?: "remove" | "trim" | "keep";
|
|
10383
|
-
|
|
10384
10704
|
newlinesBetween?: "ignore" | "always" | "never";
|
|
10385
10705
|
|
|
10706
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10707
|
+
|
|
10708
|
+
groups?: (
|
|
10709
|
+
| string
|
|
10710
|
+
| string[]
|
|
10711
|
+
| {
|
|
10712
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10713
|
+
[k: string]: unknown | undefined;
|
|
10714
|
+
}
|
|
10715
|
+
)[];
|
|
10716
|
+
},
|
|
10717
|
+
];
|
|
10718
|
+
// ----- perfectionist/sort-named-exports -----
|
|
10719
|
+
type PerfectionistSortNamedExports =
|
|
10720
|
+
| []
|
|
10721
|
+
| [
|
|
10722
|
+
{
|
|
10723
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10724
|
+
|
|
10386
10725
|
ignoreCase?: boolean;
|
|
10387
10726
|
|
|
10388
|
-
|
|
10727
|
+
alphabet?: string;
|
|
10389
10728
|
|
|
10390
|
-
|
|
10729
|
+
locales?: string | string[];
|
|
10391
10730
|
|
|
10392
10731
|
order?: "asc" | "desc";
|
|
10393
10732
|
|
|
10394
|
-
|
|
10733
|
+
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10734
|
+
|
|
10735
|
+
partitionByComment?:
|
|
10736
|
+
| string[]
|
|
10737
|
+
| boolean
|
|
10738
|
+
| string
|
|
10739
|
+
| {
|
|
10740
|
+
block?: string[] | boolean | string;
|
|
10741
|
+
line?: string[] | boolean | string;
|
|
10742
|
+
[k: string]: unknown | undefined;
|
|
10743
|
+
};
|
|
10744
|
+
|
|
10745
|
+
partitionByNewLine?: boolean;
|
|
10746
|
+
|
|
10747
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10395
10748
|
},
|
|
10396
10749
|
];
|
|
10397
|
-
// ----- perfectionist/sort-named-
|
|
10398
|
-
type
|
|
10750
|
+
// ----- perfectionist/sort-named-imports -----
|
|
10751
|
+
type PerfectionistSortNamedImports =
|
|
10399
10752
|
| []
|
|
10400
10753
|
| [
|
|
10401
10754
|
{
|
|
10402
|
-
|
|
10755
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10756
|
+
|
|
10757
|
+
ignoreCase?: boolean;
|
|
10758
|
+
|
|
10759
|
+
alphabet?: string;
|
|
10760
|
+
|
|
10761
|
+
locales?: string | string[];
|
|
10762
|
+
|
|
10763
|
+
order?: "asc" | "desc";
|
|
10403
10764
|
|
|
10404
10765
|
groupKind?: "mixed" | "values-first" | "types-first";
|
|
10405
10766
|
|
|
10767
|
+
ignoreAlias?: boolean;
|
|
10768
|
+
|
|
10769
|
+
partitionByComment?:
|
|
10770
|
+
| string[]
|
|
10771
|
+
| boolean
|
|
10772
|
+
| string
|
|
10773
|
+
| {
|
|
10774
|
+
block?: string[] | boolean | string;
|
|
10775
|
+
line?: string[] | boolean | string;
|
|
10776
|
+
[k: string]: unknown | undefined;
|
|
10777
|
+
};
|
|
10778
|
+
|
|
10406
10779
|
partitionByNewLine?: boolean;
|
|
10407
10780
|
|
|
10408
|
-
|
|
10781
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10782
|
+
},
|
|
10783
|
+
];
|
|
10784
|
+
// ----- perfectionist/sort-object-types -----
|
|
10785
|
+
type PerfectionistSortObjectTypes = {
|
|
10786
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10787
|
+
|
|
10788
|
+
ignoreCase?: boolean;
|
|
10789
|
+
|
|
10790
|
+
alphabet?: string;
|
|
10791
|
+
|
|
10792
|
+
locales?: string | string[];
|
|
10793
|
+
|
|
10794
|
+
order?: "asc" | "desc";
|
|
10795
|
+
|
|
10796
|
+
ignorePattern?: string[];
|
|
10797
|
+
useConfigurationIf?: {
|
|
10798
|
+
allNamesMatchPattern?: string;
|
|
10799
|
+
declarationMatchesPattern?: string;
|
|
10800
|
+
};
|
|
10801
|
+
customGroups?:
|
|
10802
|
+
| {
|
|
10803
|
+
[k: string]: (string | string[]) | undefined;
|
|
10804
|
+
}
|
|
10805
|
+
| (
|
|
10806
|
+
| {
|
|
10807
|
+
groupName?: string;
|
|
10808
|
+
|
|
10809
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10810
|
+
|
|
10811
|
+
order?: "desc" | "asc";
|
|
10812
|
+
|
|
10813
|
+
newlinesInside?: "always" | "never";
|
|
10814
|
+
anyOf?: {
|
|
10815
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10816
|
+
|
|
10817
|
+
selector?:
|
|
10818
|
+
| "index-signature"
|
|
10819
|
+
| "member"
|
|
10820
|
+
| "method"
|
|
10821
|
+
| "multiline"
|
|
10822
|
+
| "property";
|
|
10823
|
+
|
|
10824
|
+
elementNamePattern?: string;
|
|
10825
|
+
}[];
|
|
10826
|
+
}
|
|
10827
|
+
| {
|
|
10828
|
+
groupName?: string;
|
|
10829
|
+
|
|
10830
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10831
|
+
|
|
10832
|
+
order?: "desc" | "asc";
|
|
10833
|
+
|
|
10834
|
+
newlinesInside?: "always" | "never";
|
|
10835
|
+
|
|
10836
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10837
|
+
|
|
10838
|
+
selector?:
|
|
10839
|
+
| "index-signature"
|
|
10840
|
+
| "member"
|
|
10841
|
+
| "method"
|
|
10842
|
+
| "multiline"
|
|
10843
|
+
| "property";
|
|
10844
|
+
|
|
10845
|
+
elementNamePattern?: string;
|
|
10846
|
+
}
|
|
10847
|
+
)[];
|
|
10848
|
+
|
|
10849
|
+
groupKind?: "mixed" | "required-first" | "optional-first";
|
|
10850
|
+
|
|
10851
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
10852
|
+
|
|
10853
|
+
partitionByComment?:
|
|
10854
|
+
| string[]
|
|
10855
|
+
| boolean
|
|
10856
|
+
| string
|
|
10857
|
+
| {
|
|
10858
|
+
block?: string[] | boolean | string;
|
|
10859
|
+
line?: string[] | boolean | string;
|
|
10860
|
+
[k: string]: unknown | undefined;
|
|
10861
|
+
};
|
|
10862
|
+
|
|
10863
|
+
partitionByNewLine?: boolean;
|
|
10864
|
+
|
|
10865
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10866
|
+
|
|
10867
|
+
groups?: (
|
|
10868
|
+
| string
|
|
10869
|
+
| string[]
|
|
10870
|
+
| {
|
|
10871
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10872
|
+
[k: string]: unknown | undefined;
|
|
10873
|
+
}
|
|
10874
|
+
)[];
|
|
10875
|
+
}[];
|
|
10876
|
+
// ----- perfectionist/sort-objects -----
|
|
10877
|
+
type PerfectionistSortObjects = {
|
|
10878
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10879
|
+
|
|
10880
|
+
ignoreCase?: boolean;
|
|
10881
|
+
|
|
10882
|
+
alphabet?: string;
|
|
10883
|
+
|
|
10884
|
+
locales?: string | string[];
|
|
10885
|
+
|
|
10886
|
+
order?: "asc" | "desc";
|
|
10887
|
+
|
|
10888
|
+
destructuredObjects?:
|
|
10889
|
+
| boolean
|
|
10890
|
+
| {
|
|
10891
|
+
groups?: boolean;
|
|
10892
|
+
};
|
|
10893
|
+
|
|
10894
|
+
ignorePattern?: string[];
|
|
10895
|
+
useConfigurationIf?: {
|
|
10896
|
+
allNamesMatchPattern?: string;
|
|
10897
|
+
callingFunctionNamePattern?: string;
|
|
10898
|
+
};
|
|
10899
|
+
customGroups?:
|
|
10900
|
+
| {
|
|
10901
|
+
[k: string]: (string | string[]) | undefined;
|
|
10902
|
+
}
|
|
10903
|
+
| (
|
|
10904
|
+
| {
|
|
10905
|
+
groupName?: string;
|
|
10409
10906
|
|
|
10410
|
-
|
|
10907
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10411
10908
|
|
|
10412
|
-
|
|
10909
|
+
order?: "desc" | "asc";
|
|
10413
10910
|
|
|
10414
|
-
|
|
10911
|
+
newlinesInside?: "always" | "never";
|
|
10912
|
+
anyOf?: {
|
|
10913
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10415
10914
|
|
|
10416
|
-
|
|
10417
|
-
},
|
|
10418
|
-
];
|
|
10419
|
-
// ----- perfectionist/sort-named-imports -----
|
|
10420
|
-
type PerfectionistSortNamedImports =
|
|
10421
|
-
| []
|
|
10422
|
-
| [
|
|
10423
|
-
{
|
|
10424
|
-
partitionByComment?: string[] | boolean | string;
|
|
10915
|
+
selector?: "member" | "method" | "multiline" | "property";
|
|
10425
10916
|
|
|
10426
|
-
|
|
10917
|
+
elementValuePattern?: string;
|
|
10427
10918
|
|
|
10428
|
-
|
|
10919
|
+
elementNamePattern?: string;
|
|
10920
|
+
}[];
|
|
10921
|
+
}
|
|
10922
|
+
| {
|
|
10923
|
+
groupName?: string;
|
|
10429
10924
|
|
|
10430
|
-
|
|
10925
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10431
10926
|
|
|
10432
|
-
|
|
10927
|
+
order?: "desc" | "asc";
|
|
10433
10928
|
|
|
10434
|
-
|
|
10929
|
+
newlinesInside?: "always" | "never";
|
|
10435
10930
|
|
|
10436
|
-
|
|
10931
|
+
modifiers?: ("optional" | "required" | "multiline")[];
|
|
10437
10932
|
|
|
10438
|
-
|
|
10933
|
+
selector?: "member" | "method" | "multiline" | "property";
|
|
10439
10934
|
|
|
10440
|
-
|
|
10441
|
-
},
|
|
10442
|
-
];
|
|
10443
|
-
// ----- perfectionist/sort-object-types -----
|
|
10444
|
-
type PerfectionistSortObjectTypes =
|
|
10445
|
-
| []
|
|
10446
|
-
| [
|
|
10447
|
-
{
|
|
10448
|
-
partitionByComment?: string[] | boolean | string;
|
|
10935
|
+
elementValuePattern?: string;
|
|
10449
10936
|
|
|
10450
|
-
|
|
10937
|
+
elementNamePattern?: string;
|
|
10938
|
+
}
|
|
10939
|
+
)[];
|
|
10451
10940
|
|
|
10452
|
-
|
|
10941
|
+
destructureOnly?: boolean;
|
|
10453
10942
|
|
|
10454
|
-
|
|
10943
|
+
objectDeclarations?: boolean;
|
|
10455
10944
|
|
|
10456
|
-
|
|
10945
|
+
styledComponents?: boolean;
|
|
10457
10946
|
|
|
10458
|
-
|
|
10459
|
-
[k: string]: (string | string[]) | undefined;
|
|
10460
|
-
};
|
|
10947
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
10461
10948
|
|
|
10462
|
-
|
|
10949
|
+
partitionByComment?:
|
|
10950
|
+
| string[]
|
|
10951
|
+
| boolean
|
|
10952
|
+
| string
|
|
10953
|
+
| {
|
|
10954
|
+
block?: string[] | boolean | string;
|
|
10955
|
+
line?: string[] | boolean | string;
|
|
10956
|
+
[k: string]: unknown | undefined;
|
|
10957
|
+
};
|
|
10463
10958
|
|
|
10464
|
-
|
|
10959
|
+
partitionByNewLine?: boolean;
|
|
10465
10960
|
|
|
10466
|
-
|
|
10961
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10467
10962
|
|
|
10468
|
-
|
|
10963
|
+
groups?: (
|
|
10964
|
+
| string
|
|
10965
|
+
| string[]
|
|
10966
|
+
| {
|
|
10967
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10968
|
+
[k: string]: unknown | undefined;
|
|
10969
|
+
}
|
|
10970
|
+
)[];
|
|
10971
|
+
}[];
|
|
10972
|
+
// ----- perfectionist/sort-sets -----
|
|
10973
|
+
type PerfectionistSortSets = {
|
|
10974
|
+
specialCharacters?: "remove" | "trim" | "keep";
|
|
10469
10975
|
|
|
10470
|
-
|
|
10471
|
-
},
|
|
10472
|
-
];
|
|
10473
|
-
// ----- perfectionist/sort-objects -----
|
|
10474
|
-
type PerfectionistSortObjects =
|
|
10475
|
-
| []
|
|
10476
|
-
| [
|
|
10477
|
-
{
|
|
10478
|
-
ignorePattern?: string[];
|
|
10976
|
+
ignoreCase?: boolean;
|
|
10479
10977
|
|
|
10480
|
-
|
|
10978
|
+
alphabet?: string;
|
|
10481
10979
|
|
|
10482
|
-
|
|
10980
|
+
locales?: string | string[];
|
|
10483
10981
|
|
|
10484
|
-
|
|
10982
|
+
order?: "asc" | "desc";
|
|
10485
10983
|
|
|
10486
|
-
|
|
10984
|
+
groupKind?: "mixed" | "literals-first" | "spreads-first";
|
|
10487
10985
|
|
|
10488
|
-
|
|
10986
|
+
customGroups?: (
|
|
10987
|
+
| {
|
|
10988
|
+
groupName?: string;
|
|
10489
10989
|
|
|
10490
|
-
|
|
10990
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10491
10991
|
|
|
10492
|
-
|
|
10493
|
-
[k: string]: (string | string[]) | undefined;
|
|
10494
|
-
};
|
|
10992
|
+
order?: "desc" | "asc";
|
|
10495
10993
|
|
|
10496
|
-
|
|
10994
|
+
newlinesInside?: "always" | "never";
|
|
10995
|
+
anyOf?: {
|
|
10996
|
+
selector?: "literal" | "spread";
|
|
10497
10997
|
|
|
10498
|
-
|
|
10998
|
+
elementNamePattern?: string;
|
|
10999
|
+
}[];
|
|
11000
|
+
}
|
|
11001
|
+
| {
|
|
11002
|
+
groupName?: string;
|
|
10499
11003
|
|
|
10500
|
-
|
|
11004
|
+
type?: "alphabetical" | "line-length" | "natural" | "unsorted";
|
|
10501
11005
|
|
|
10502
|
-
order?: "
|
|
11006
|
+
order?: "desc" | "asc";
|
|
10503
11007
|
|
|
10504
|
-
|
|
10505
|
-
},
|
|
10506
|
-
];
|
|
10507
|
-
// ----- perfectionist/sort-sets -----
|
|
10508
|
-
type PerfectionistSortSets =
|
|
10509
|
-
| []
|
|
10510
|
-
| [
|
|
10511
|
-
{
|
|
10512
|
-
partitionByComment?: string[] | boolean | string;
|
|
11008
|
+
newlinesInside?: "always" | "never";
|
|
10513
11009
|
|
|
10514
|
-
|
|
11010
|
+
selector?: "literal" | "spread";
|
|
10515
11011
|
|
|
10516
|
-
|
|
11012
|
+
elementNamePattern?: string;
|
|
11013
|
+
}
|
|
11014
|
+
)[];
|
|
11015
|
+
useConfigurationIf?: {
|
|
11016
|
+
allNamesMatchPattern?: string;
|
|
11017
|
+
};
|
|
10517
11018
|
|
|
10518
|
-
|
|
11019
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom" | "unsorted";
|
|
10519
11020
|
|
|
10520
|
-
|
|
11021
|
+
partitionByComment?:
|
|
11022
|
+
| string[]
|
|
11023
|
+
| boolean
|
|
11024
|
+
| string
|
|
11025
|
+
| {
|
|
11026
|
+
block?: string[] | boolean | string;
|
|
11027
|
+
line?: string[] | boolean | string;
|
|
11028
|
+
[k: string]: unknown | undefined;
|
|
11029
|
+
};
|
|
10521
11030
|
|
|
10522
|
-
|
|
11031
|
+
partitionByNewLine?: boolean;
|
|
10523
11032
|
|
|
10524
|
-
|
|
11033
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
10525
11034
|
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
]
|
|
11035
|
+
groups?: (
|
|
11036
|
+
| string
|
|
11037
|
+
| string[]
|
|
11038
|
+
| {
|
|
11039
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
11040
|
+
[k: string]: unknown | undefined;
|
|
11041
|
+
}
|
|
11042
|
+
)[];
|
|
11043
|
+
}[];
|
|
10529
11044
|
// ----- perfectionist/sort-switch-case -----
|
|
10530
11045
|
type PerfectionistSortSwitchCase =
|
|
10531
11046
|
| []
|
|
@@ -10535,11 +11050,13 @@ type PerfectionistSortSwitchCase =
|
|
|
10535
11050
|
|
|
10536
11051
|
ignoreCase?: boolean;
|
|
10537
11052
|
|
|
11053
|
+
alphabet?: string;
|
|
11054
|
+
|
|
10538
11055
|
locales?: string | string[];
|
|
10539
11056
|
|
|
10540
11057
|
order?: "asc" | "desc";
|
|
10541
11058
|
|
|
10542
|
-
type?: "alphabetical" | "natural" | "line-length";
|
|
11059
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10543
11060
|
},
|
|
10544
11061
|
];
|
|
10545
11062
|
// ----- perfectionist/sort-union-types -----
|
|
@@ -10547,23 +11064,40 @@ type PerfectionistSortUnionTypes =
|
|
|
10547
11064
|
| []
|
|
10548
11065
|
| [
|
|
10549
11066
|
{
|
|
10550
|
-
partitionByComment?: string[] | boolean | string;
|
|
10551
|
-
|
|
10552
|
-
partitionByNewLine?: boolean;
|
|
10553
|
-
|
|
10554
11067
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10555
11068
|
|
|
10556
|
-
newlinesBetween?: "ignore" | "always" | "never";
|
|
10557
|
-
|
|
10558
11069
|
ignoreCase?: boolean;
|
|
10559
11070
|
|
|
10560
|
-
|
|
11071
|
+
alphabet?: string;
|
|
10561
11072
|
|
|
10562
|
-
|
|
11073
|
+
locales?: string | string[];
|
|
10563
11074
|
|
|
10564
11075
|
order?: "asc" | "desc";
|
|
10565
11076
|
|
|
10566
|
-
|
|
11077
|
+
partitionByComment?:
|
|
11078
|
+
| string[]
|
|
11079
|
+
| boolean
|
|
11080
|
+
| string
|
|
11081
|
+
| {
|
|
11082
|
+
block?: string[] | boolean | string;
|
|
11083
|
+
line?: string[] | boolean | string;
|
|
11084
|
+
[k: string]: unknown | undefined;
|
|
11085
|
+
};
|
|
11086
|
+
|
|
11087
|
+
partitionByNewLine?: boolean;
|
|
11088
|
+
|
|
11089
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
11090
|
+
|
|
11091
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
11092
|
+
|
|
11093
|
+
groups?: (
|
|
11094
|
+
| string
|
|
11095
|
+
| string[]
|
|
11096
|
+
| {
|
|
11097
|
+
newlinesBetween?: "ignore" | "always" | "never";
|
|
11098
|
+
[k: string]: unknown | undefined;
|
|
11099
|
+
}
|
|
11100
|
+
)[];
|
|
10567
11101
|
},
|
|
10568
11102
|
];
|
|
10569
11103
|
// ----- perfectionist/sort-variable-declarations -----
|
|
@@ -10571,19 +11105,29 @@ type PerfectionistSortVariableDeclarations =
|
|
|
10571
11105
|
| []
|
|
10572
11106
|
| [
|
|
10573
11107
|
{
|
|
10574
|
-
partitionByComment?: string[] | boolean | string;
|
|
10575
|
-
|
|
10576
|
-
partitionByNewLine?: boolean;
|
|
10577
|
-
|
|
10578
11108
|
specialCharacters?: "remove" | "trim" | "keep";
|
|
10579
11109
|
|
|
10580
11110
|
ignoreCase?: boolean;
|
|
10581
11111
|
|
|
11112
|
+
alphabet?: string;
|
|
11113
|
+
|
|
10582
11114
|
locales?: string | string[];
|
|
10583
11115
|
|
|
10584
11116
|
order?: "asc" | "desc";
|
|
10585
11117
|
|
|
10586
|
-
|
|
11118
|
+
partitionByComment?:
|
|
11119
|
+
| string[]
|
|
11120
|
+
| boolean
|
|
11121
|
+
| string
|
|
11122
|
+
| {
|
|
11123
|
+
block?: string[] | boolean | string;
|
|
11124
|
+
line?: string[] | boolean | string;
|
|
11125
|
+
[k: string]: unknown | undefined;
|
|
11126
|
+
};
|
|
11127
|
+
|
|
11128
|
+
partitionByNewLine?: boolean;
|
|
11129
|
+
|
|
11130
|
+
type?: "alphabetical" | "natural" | "line-length" | "custom";
|
|
10587
11131
|
},
|
|
10588
11132
|
];
|
|
10589
11133
|
|
|
@@ -11143,9 +11687,10 @@ type ReactRefreshOnlyExportComponents =
|
|
|
11143
11687
|
| []
|
|
11144
11688
|
| [
|
|
11145
11689
|
{
|
|
11690
|
+
allowExportNames?: string[];
|
|
11146
11691
|
allowConstantExport?: boolean;
|
|
11692
|
+
customHOCs?: string[];
|
|
11147
11693
|
checkJS?: boolean;
|
|
11148
|
-
allowExportNames?: string[];
|
|
11149
11694
|
},
|
|
11150
11695
|
];
|
|
11151
11696
|
// ----- react/boolean-prop-naming -----
|
|
@@ -12929,6 +13474,7 @@ type StylisticIndent =
|
|
|
12929
13474
|
ImportDeclaration?: number | ("first" | "off");
|
|
12930
13475
|
flatTernaryExpressions?: boolean;
|
|
12931
13476
|
offsetTernaryExpressions?: boolean;
|
|
13477
|
+
offsetTernaryExpressionsOffsetCallExpressions?: boolean;
|
|
12932
13478
|
ignoredNodes?: string[];
|
|
12933
13479
|
ignoreComments?: boolean;
|
|
12934
13480
|
tabLength?: number;
|
|
@@ -13183,6 +13729,16 @@ type StylisticKeySpacing =
|
|
|
13183
13729
|
mode?: "strict" | "minimum";
|
|
13184
13730
|
beforeColon?: boolean;
|
|
13185
13731
|
afterColon?: boolean;
|
|
13732
|
+
ignoredNodes?: (
|
|
13733
|
+
| "ObjectExpression"
|
|
13734
|
+
| "ObjectPattern"
|
|
13735
|
+
| "ImportDeclaration"
|
|
13736
|
+
| "ExportNamedDeclaration"
|
|
13737
|
+
| "ExportAllDeclaration"
|
|
13738
|
+
| "TSTypeLiteral"
|
|
13739
|
+
| "TSInterfaceBody"
|
|
13740
|
+
| "ClassBody"
|
|
13741
|
+
)[];
|
|
13186
13742
|
}
|
|
13187
13743
|
| {
|
|
13188
13744
|
singleLine?: {
|
|
@@ -13819,6 +14375,7 @@ type StylisticNoExtraParens =
|
|
|
13819
14375
|
enforceForNewInMemberExpressions?: boolean;
|
|
13820
14376
|
enforceForFunctionPrototypeMethods?: boolean;
|
|
13821
14377
|
allowParensAfterCommentPattern?: string;
|
|
14378
|
+
nestedConditionalExpressions?: boolean;
|
|
13822
14379
|
},
|
|
13823
14380
|
];
|
|
13824
14381
|
// ----- @stylistic/no-mixed-operators -----
|
|
@@ -14070,20 +14627,20 @@ type StylisticOperatorLinebreak =
|
|
|
14070
14627
|
type StylisticPaddedBlocks =
|
|
14071
14628
|
| []
|
|
14072
14629
|
| [
|
|
14073
|
-
| ("always" | "never")
|
|
14630
|
+
| ("always" | "never" | "start" | "end")
|
|
14074
14631
|
| {
|
|
14075
|
-
blocks?: "always" | "never";
|
|
14076
|
-
switches?: "always" | "never";
|
|
14077
|
-
classes?: "always" | "never";
|
|
14632
|
+
blocks?: "always" | "never" | "start" | "end";
|
|
14633
|
+
switches?: "always" | "never" | "start" | "end";
|
|
14634
|
+
classes?: "always" | "never" | "start" | "end";
|
|
14078
14635
|
},
|
|
14079
14636
|
]
|
|
14080
14637
|
| [
|
|
14081
14638
|
(
|
|
14082
|
-
| ("always" | "never")
|
|
14639
|
+
| ("always" | "never" | "start" | "end")
|
|
14083
14640
|
| {
|
|
14084
|
-
blocks?: "always" | "never";
|
|
14085
|
-
switches?: "always" | "never";
|
|
14086
|
-
classes?: "always" | "never";
|
|
14641
|
+
blocks?: "always" | "never" | "start" | "end";
|
|
14642
|
+
switches?: "always" | "never" | "start" | "end";
|
|
14643
|
+
classes?: "always" | "never" | "start" | "end";
|
|
14087
14644
|
}
|
|
14088
14645
|
),
|
|
14089
14646
|
{
|
|
@@ -14605,7 +15162,7 @@ interface VitestRuleOptions {
|
|
|
14605
15162
|
*/
|
|
14606
15163
|
"vitest/padding-around-expect-groups"?: Linter.RuleEntry<[]>;
|
|
14607
15164
|
/**
|
|
14608
|
-
* Enforce padding around
|
|
15165
|
+
* Enforce padding around `test` blocks
|
|
14609
15166
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/padding-around-test-blocks.md
|
|
14610
15167
|
*/
|
|
14611
15168
|
"vitest/padding-around-test-blocks"?: Linter.RuleEntry<[]>;
|
|
@@ -14710,7 +15267,7 @@ interface VitestRuleOptions {
|
|
|
14710
15267
|
*/
|
|
14711
15268
|
"vitest/prefer-todo"?: Linter.RuleEntry<[]>;
|
|
14712
15269
|
/**
|
|
14713
|
-
*
|
|
15270
|
+
* require `vi.mocked()` over `fn as Mock`
|
|
14714
15271
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/prefer-vi-mocked.md
|
|
14715
15272
|
*/
|
|
14716
15273
|
"vitest/prefer-vi-mocked"?: Linter.RuleEntry<[]>;
|
|
@@ -14747,7 +15304,7 @@ interface VitestRuleOptions {
|
|
|
14747
15304
|
*/
|
|
14748
15305
|
"vitest/valid-expect"?: Linter.RuleEntry<VitestValidExpect>;
|
|
14749
15306
|
/**
|
|
14750
|
-
*
|
|
15307
|
+
* require promises that have expectations in their chain to be valid
|
|
14751
15308
|
* @see https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-expect-in-promise.md
|
|
14752
15309
|
*/
|
|
14753
15310
|
"vitest/valid-expect-in-promise"?: Linter.RuleEntry<[]>;
|
|
@@ -14851,8 +15408,7 @@ type VitestNoStandaloneExpect =
|
|
|
14851
15408
|
| []
|
|
14852
15409
|
| [
|
|
14853
15410
|
{
|
|
14854
|
-
|
|
14855
|
-
[k: string]: unknown | undefined;
|
|
15411
|
+
additionalTestBlockFunctions?: string[];
|
|
14856
15412
|
},
|
|
14857
15413
|
];
|
|
14858
15414
|
// ----- vitest/prefer-expect-assertions -----
|
|
@@ -15283,7 +15839,7 @@ interface TypescriptRuleOptions {
|
|
|
15283
15839
|
* Disallow using code marked as `@deprecated`
|
|
15284
15840
|
* @see https://typescript-eslint.io/rules/no-deprecated
|
|
15285
15841
|
*/
|
|
15286
|
-
"@typescript-eslint/no-deprecated"?: Linter.RuleEntry<
|
|
15842
|
+
"@typescript-eslint/no-deprecated"?: Linter.RuleEntry<TypescriptEslintNoDeprecated>;
|
|
15287
15843
|
/**
|
|
15288
15844
|
* Disallow duplicate class members
|
|
15289
15845
|
* @see https://typescript-eslint.io/rules/no-dupe-class-members
|
|
@@ -15401,6 +15957,11 @@ interface TypescriptRuleOptions {
|
|
|
15401
15957
|
* @see https://typescript-eslint.io/rules/no-misused-promises
|
|
15402
15958
|
*/
|
|
15403
15959
|
"@typescript-eslint/no-misused-promises"?: Linter.RuleEntry<TypescriptEslintNoMisusedPromises>;
|
|
15960
|
+
/**
|
|
15961
|
+
* Disallow using the spread operator when it might cause unexpected behavior
|
|
15962
|
+
* @see https://typescript-eslint.io/rules/no-misused-spread
|
|
15963
|
+
*/
|
|
15964
|
+
"@typescript-eslint/no-misused-spread"?: Linter.RuleEntry<TypescriptEslintNoMisusedSpread>;
|
|
15404
15965
|
/**
|
|
15405
15966
|
* Disallow enums from having both number and string members
|
|
15406
15967
|
* @see https://typescript-eslint.io/rules/no-mixed-enums
|
|
@@ -15607,7 +16168,7 @@ interface TypescriptRuleOptions {
|
|
|
15607
16168
|
*/
|
|
15608
16169
|
"@typescript-eslint/no-wrapper-object-types"?: Linter.RuleEntry<[]>;
|
|
15609
16170
|
/**
|
|
15610
|
-
* Enforce non-null assertions over explicit type
|
|
16171
|
+
* Enforce non-null assertions over explicit type assertions
|
|
15611
16172
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
15612
16173
|
*/
|
|
15613
16174
|
"@typescript-eslint/non-nullable-type-assertion-style"?: Linter.RuleEntry<[]>;
|
|
@@ -15692,7 +16253,7 @@ interface TypescriptRuleOptions {
|
|
|
15692
16253
|
*/
|
|
15693
16254
|
"@typescript-eslint/prefer-readonly-parameter-types"?: Linter.RuleEntry<TypescriptEslintPreferReadonlyParameterTypes>;
|
|
15694
16255
|
/**
|
|
15695
|
-
* Enforce using type parameter when calling `Array#reduce` instead of
|
|
16256
|
+
* Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
|
|
15696
16257
|
* @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
15697
16258
|
*/
|
|
15698
16259
|
"@typescript-eslint/prefer-reduce-type-parameter"?: Linter.RuleEntry<[]>;
|
|
@@ -15797,233 +16358,233 @@ interface TypescriptRuleOptions {
|
|
|
15797
16358
|
>;
|
|
15798
16359
|
/**
|
|
15799
16360
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
15800
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
15801
16362
|
*/
|
|
15802
16363
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
15803
16364
|
/**
|
|
15804
16365
|
* Ensure a default export is present, given a default import.
|
|
15805
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
15806
16367
|
*/
|
|
15807
16368
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
15808
16369
|
/**
|
|
15809
16370
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
15810
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
15811
16372
|
*/
|
|
15812
16373
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
15813
16374
|
/**
|
|
15814
16375
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
15815
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
15816
16377
|
*/
|
|
15817
16378
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
15818
16379
|
/**
|
|
15819
16380
|
* Ensure all exports appear after other statements.
|
|
15820
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
15821
16382
|
*/
|
|
15822
16383
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
15823
16384
|
/**
|
|
15824
16385
|
* Ensure consistent use of file extension within the import path.
|
|
15825
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
15826
16387
|
*/
|
|
15827
16388
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
15828
16389
|
/**
|
|
15829
16390
|
* Ensure all imports appear before other statements.
|
|
15830
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
15831
16392
|
*/
|
|
15832
16393
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
15833
16394
|
/**
|
|
15834
16395
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
15835
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
15836
16397
|
*/
|
|
15837
16398
|
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
15838
16399
|
/**
|
|
15839
16400
|
* Replaced by `import-x/first`.
|
|
15840
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
15841
16402
|
* @deprecated
|
|
15842
16403
|
*/
|
|
15843
16404
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
15844
16405
|
/**
|
|
15845
16406
|
* Enforce the maximum number of dependencies a module can have.
|
|
15846
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
15847
16408
|
*/
|
|
15848
16409
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
15849
16410
|
/**
|
|
15850
16411
|
* Ensure named imports correspond to a named export in the remote file.
|
|
15851
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
15852
16413
|
*/
|
|
15853
16414
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
15854
16415
|
/**
|
|
15855
16416
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
15856
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
15857
16418
|
*/
|
|
15858
16419
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
15859
16420
|
/**
|
|
15860
16421
|
* Enforce a newline after import statements.
|
|
15861
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16422
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
15862
16423
|
*/
|
|
15863
16424
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
15864
16425
|
/**
|
|
15865
16426
|
* Forbid import of modules using absolute paths.
|
|
15866
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16427
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
15867
16428
|
*/
|
|
15868
16429
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
15869
16430
|
/**
|
|
15870
16431
|
* Forbid AMD `require` and `define` calls.
|
|
15871
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16432
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
15872
16433
|
*/
|
|
15873
16434
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
15874
16435
|
/**
|
|
15875
16436
|
* Forbid anonymous values as default exports.
|
|
15876
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16437
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
15877
16438
|
*/
|
|
15878
16439
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
15879
16440
|
/**
|
|
15880
16441
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
15881
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16442
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
15882
16443
|
*/
|
|
15883
16444
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
15884
16445
|
/**
|
|
15885
16446
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
15886
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16447
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
15887
16448
|
*/
|
|
15888
16449
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
15889
16450
|
/**
|
|
15890
16451
|
* Forbid default exports.
|
|
15891
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16452
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
15892
16453
|
*/
|
|
15893
16454
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
15894
16455
|
/**
|
|
15895
16456
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
15896
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16457
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
15897
16458
|
*/
|
|
15898
16459
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
15899
16460
|
/**
|
|
15900
16461
|
* Forbid repeated import of the same module in multiple places.
|
|
15901
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16462
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
15902
16463
|
*/
|
|
15903
16464
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
15904
16465
|
/**
|
|
15905
16466
|
* Forbid `require()` calls with expressions.
|
|
15906
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16467
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
15907
16468
|
*/
|
|
15908
16469
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
15909
16470
|
/**
|
|
15910
16471
|
* Forbid empty named import blocks.
|
|
15911
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16472
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
15912
16473
|
*/
|
|
15913
16474
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
15914
16475
|
/**
|
|
15915
16476
|
* Forbid the use of extraneous packages.
|
|
15916
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16477
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
15917
16478
|
*/
|
|
15918
16479
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
15919
16480
|
/**
|
|
15920
16481
|
* Forbid import statements with CommonJS module.exports.
|
|
15921
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16482
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
15922
16483
|
*/
|
|
15923
16484
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
15924
16485
|
/**
|
|
15925
16486
|
* Forbid importing the submodules of other modules.
|
|
15926
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16487
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
15927
16488
|
*/
|
|
15928
16489
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
15929
16490
|
/**
|
|
15930
16491
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
15931
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16492
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
15932
16493
|
*/
|
|
15933
16494
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
15934
16495
|
/**
|
|
15935
16496
|
* Forbid use of exported name as identifier of default export.
|
|
15936
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16497
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
15937
16498
|
*/
|
|
15938
16499
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
15939
16500
|
/**
|
|
15940
16501
|
* Forbid use of exported name as property of default export.
|
|
15941
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16502
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
15942
16503
|
*/
|
|
15943
16504
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
15944
16505
|
/**
|
|
15945
16506
|
* Forbid named default exports.
|
|
15946
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16507
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
15947
16508
|
*/
|
|
15948
16509
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
15949
16510
|
/**
|
|
15950
16511
|
* Forbid named exports.
|
|
15951
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16512
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
15952
16513
|
*/
|
|
15953
16514
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
15954
16515
|
/**
|
|
15955
16516
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
15956
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16517
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
15957
16518
|
*/
|
|
15958
16519
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
15959
16520
|
/**
|
|
15960
16521
|
* Forbid Node.js builtin modules.
|
|
15961
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16522
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
15962
16523
|
*/
|
|
15963
16524
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
15964
16525
|
/**
|
|
15965
16526
|
* Forbid importing packages through relative paths.
|
|
15966
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16527
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
15967
16528
|
*/
|
|
15968
16529
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
15969
16530
|
/**
|
|
15970
16531
|
* Forbid importing modules from parent directories.
|
|
15971
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16532
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
15972
16533
|
*/
|
|
15973
16534
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
15974
16535
|
/**
|
|
15975
16536
|
* Forbid importing a default export by a different name.
|
|
15976
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16537
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
15977
16538
|
*/
|
|
15978
16539
|
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
15979
16540
|
/**
|
|
15980
16541
|
* Enforce which files can be imported in a given folder.
|
|
15981
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16542
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
15982
16543
|
*/
|
|
15983
16544
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
15984
16545
|
/**
|
|
15985
16546
|
* Forbid a module from importing itself.
|
|
15986
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16547
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
15987
16548
|
*/
|
|
15988
16549
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
15989
16550
|
/**
|
|
15990
16551
|
* Forbid unassigned imports.
|
|
15991
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16552
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
15992
16553
|
*/
|
|
15993
16554
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
15994
16555
|
/**
|
|
15995
16556
|
* Ensure imports point to a file/module that can be resolved.
|
|
15996
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16557
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
15997
16558
|
*/
|
|
15998
16559
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
15999
16560
|
/**
|
|
16000
16561
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
16001
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16562
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
16002
16563
|
*/
|
|
16003
16564
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
16004
16565
|
/**
|
|
16005
16566
|
* Forbid unnecessary path segments in import and require statements.
|
|
16006
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16567
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
16007
16568
|
*/
|
|
16008
16569
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
16009
16570
|
/**
|
|
16010
16571
|
* Forbid webpack loader syntax in imports.
|
|
16011
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16572
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
16012
16573
|
*/
|
|
16013
16574
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
16014
16575
|
/**
|
|
16015
16576
|
* Enforce a convention in module import order.
|
|
16016
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16577
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
16017
16578
|
*/
|
|
16018
16579
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
16019
16580
|
/**
|
|
16020
16581
|
* Prefer a default export if module exports a single name or multiple names.
|
|
16021
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16582
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
16022
16583
|
*/
|
|
16023
16584
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
16024
16585
|
/**
|
|
16025
16586
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
16026
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
16587
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
16027
16588
|
*/
|
|
16028
16589
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
16029
16590
|
}
|
|
@@ -16111,7 +16672,9 @@ type TypescriptEslintConsistentTypeAssertions =
|
|
|
16111
16672
|
assertionStyle: "never";
|
|
16112
16673
|
}
|
|
16113
16674
|
| {
|
|
16114
|
-
|
|
16675
|
+
arrayLiteralTypeAssertions?: "allow" | "allow-as-parameter" | "never";
|
|
16676
|
+
|
|
16677
|
+
assertionStyle?: "as" | "angle-bracket";
|
|
16115
16678
|
|
|
16116
16679
|
objectLiteralTypeAssertions?:
|
|
16117
16680
|
| "allow"
|
|
@@ -18787,6 +19350,30 @@ type TypescriptEslintNoConfusingVoidExpression =
|
|
|
18787
19350
|
ignoreVoidReturningFunctions?: boolean;
|
|
18788
19351
|
},
|
|
18789
19352
|
];
|
|
19353
|
+
// ----- @typescript-eslint/no-deprecated -----
|
|
19354
|
+
type TypescriptEslintNoDeprecated =
|
|
19355
|
+
| []
|
|
19356
|
+
| [
|
|
19357
|
+
{
|
|
19358
|
+
allow?: (
|
|
19359
|
+
| string
|
|
19360
|
+
| {
|
|
19361
|
+
from: "file";
|
|
19362
|
+
name: string | [string, ...string[]];
|
|
19363
|
+
path?: string;
|
|
19364
|
+
}
|
|
19365
|
+
| {
|
|
19366
|
+
from: "lib";
|
|
19367
|
+
name: string | [string, ...string[]];
|
|
19368
|
+
}
|
|
19369
|
+
| {
|
|
19370
|
+
from: "package";
|
|
19371
|
+
name: string | [string, ...string[]];
|
|
19372
|
+
package: string;
|
|
19373
|
+
}
|
|
19374
|
+
)[];
|
|
19375
|
+
},
|
|
19376
|
+
];
|
|
18790
19377
|
// ----- @typescript-eslint/no-duplicate-type-constituents -----
|
|
18791
19378
|
type TypescriptEslintNoDuplicateTypeConstituents =
|
|
18792
19379
|
| []
|
|
@@ -18995,6 +19582,30 @@ type TypescriptEslintNoMisusedPromises =
|
|
|
18995
19582
|
};
|
|
18996
19583
|
},
|
|
18997
19584
|
];
|
|
19585
|
+
// ----- @typescript-eslint/no-misused-spread -----
|
|
19586
|
+
type TypescriptEslintNoMisusedSpread =
|
|
19587
|
+
| []
|
|
19588
|
+
| [
|
|
19589
|
+
{
|
|
19590
|
+
allow?: (
|
|
19591
|
+
| string
|
|
19592
|
+
| {
|
|
19593
|
+
from: "file";
|
|
19594
|
+
name: string | [string, ...string[]];
|
|
19595
|
+
path?: string;
|
|
19596
|
+
}
|
|
19597
|
+
| {
|
|
19598
|
+
from: "lib";
|
|
19599
|
+
name: string | [string, ...string[]];
|
|
19600
|
+
}
|
|
19601
|
+
| {
|
|
19602
|
+
from: "package";
|
|
19603
|
+
name: string | [string, ...string[]];
|
|
19604
|
+
package: string;
|
|
19605
|
+
}
|
|
19606
|
+
)[];
|
|
19607
|
+
},
|
|
19608
|
+
];
|
|
18998
19609
|
// ----- @typescript-eslint/no-namespace -----
|
|
18999
19610
|
type TypescriptEslintNoNamespace =
|
|
19000
19611
|
| []
|
|
@@ -19101,7 +19712,7 @@ type TypescriptEslintNoShadow =
|
|
|
19101
19712
|
|
|
19102
19713
|
builtinGlobals?: boolean;
|
|
19103
19714
|
|
|
19104
|
-
hoist?: "all" | "functions" | "never";
|
|
19715
|
+
hoist?: "all" | "functions" | "functions-and-types" | "never" | "types";
|
|
19105
19716
|
|
|
19106
19717
|
ignoreFunctionTypeParameterNameValueShadow?: boolean;
|
|
19107
19718
|
|
|
@@ -19413,6 +20024,10 @@ type TypescriptEslintPreferPromiseRejectErrors =
|
|
|
19413
20024
|
| [
|
|
19414
20025
|
{
|
|
19415
20026
|
allowEmptyReject?: boolean;
|
|
20027
|
+
|
|
20028
|
+
allowThrowingAny?: boolean;
|
|
20029
|
+
|
|
20030
|
+
allowThrowingUnknown?: boolean;
|
|
19416
20031
|
},
|
|
19417
20032
|
];
|
|
19418
20033
|
// ----- @typescript-eslint/prefer-readonly -----
|
|
@@ -19615,6 +20230,8 @@ type TypescriptEslintSwitchExhaustivenessCheck =
|
|
|
19615
20230
|
|
|
19616
20231
|
considerDefaultExhaustiveForUnions?: boolean;
|
|
19617
20232
|
|
|
20233
|
+
defaultCaseCommentPattern?: string;
|
|
20234
|
+
|
|
19618
20235
|
requireDefaultForNonUnion?: boolean;
|
|
19619
20236
|
},
|
|
19620
20237
|
];
|
|
@@ -21851,7 +22468,7 @@ declare function jsse(options?: OptionsConfig & TypedFlatConfigItem, ...userConf
|
|
|
21851
22468
|
declare function defineConfig(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: (TypedFlatConfigItem | TypedFlatConfigItem[])[]): Promise<TypedFlatConfigItem[]>;
|
|
21852
22469
|
type DefineConfig = typeof defineConfig;
|
|
21853
22470
|
|
|
21854
|
-
declare const VERSION = "0.2.
|
|
22471
|
+
declare const VERSION = "0.2.31";
|
|
21855
22472
|
|
|
21856
22473
|
declare const GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
|
|
21857
22474
|
declare const GLOB_JS_SRC_EXT = "?([cm])js?(x)";
|
|
@@ -21922,27 +22539,7 @@ declare function importPluginReact(): Promise<{
|
|
|
21922
22539
|
'forbid-elements': eslint.Rule.RuleModule;
|
|
21923
22540
|
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
21924
22541
|
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
21925
|
-
'forward-ref-uses-ref':
|
|
21926
|
-
meta: {
|
|
21927
|
-
docs: {
|
|
21928
|
-
description: string;
|
|
21929
|
-
category: string;
|
|
21930
|
-
recommended: boolean;
|
|
21931
|
-
url: string;
|
|
21932
|
-
};
|
|
21933
|
-
messages: {
|
|
21934
|
-
missingRefParameter: string;
|
|
21935
|
-
addRefParameter: string;
|
|
21936
|
-
removeForwardRef: string;
|
|
21937
|
-
};
|
|
21938
|
-
schema: undefined[];
|
|
21939
|
-
type: string;
|
|
21940
|
-
hasSuggestions: boolean;
|
|
21941
|
-
};
|
|
21942
|
-
create(context: any): {
|
|
21943
|
-
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
21944
|
-
};
|
|
21945
|
-
};
|
|
22542
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
21946
22543
|
'function-component-definition': eslint.Rule.RuleModule;
|
|
21947
22544
|
'hook-use-state': eslint.Rule.RuleModule;
|
|
21948
22545
|
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
@@ -21967,23 +22564,7 @@ declare function importPluginReact(): Promise<{
|
|
|
21967
22564
|
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
21968
22565
|
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
21969
22566
|
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
21970
|
-
'jsx-no-literals':
|
|
21971
|
-
meta: eslint.Rule.RuleMetaData;
|
|
21972
|
-
create(context: any): (false & {
|
|
21973
|
-
Literal(node: any): void;
|
|
21974
|
-
JSXAttribute(node: any): void;
|
|
21975
|
-
JSXText(node: any): void;
|
|
21976
|
-
TemplateLiteral(node: any): void;
|
|
21977
|
-
}) | ({
|
|
21978
|
-
ImportDeclaration(node: any): void;
|
|
21979
|
-
VariableDeclaration(node: any): void;
|
|
21980
|
-
} & {
|
|
21981
|
-
Literal(node: any): void;
|
|
21982
|
-
JSXAttribute(node: any): void;
|
|
21983
|
-
JSXText(node: any): void;
|
|
21984
|
-
TemplateLiteral(node: any): void;
|
|
21985
|
-
});
|
|
21986
|
-
};
|
|
22567
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
21987
22568
|
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
21988
22569
|
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
21989
22570
|
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
@@ -21994,22 +22575,7 @@ declare function importPluginReact(): Promise<{
|
|
|
21994
22575
|
'jsx-fragments': eslint.Rule.RuleModule;
|
|
21995
22576
|
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
21996
22577
|
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
21997
|
-
'jsx-props-no-spread-multi':
|
|
21998
|
-
meta: {
|
|
21999
|
-
docs: {
|
|
22000
|
-
description: string;
|
|
22001
|
-
category: string;
|
|
22002
|
-
recommended: boolean;
|
|
22003
|
-
url: string;
|
|
22004
|
-
};
|
|
22005
|
-
messages: {
|
|
22006
|
-
noMultiSpreading: string;
|
|
22007
|
-
};
|
|
22008
|
-
};
|
|
22009
|
-
create(context: any): {
|
|
22010
|
-
JSXOpeningElement(node: any): void;
|
|
22011
|
-
};
|
|
22012
|
-
};
|
|
22578
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
22013
22579
|
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22014
22580
|
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22015
22581
|
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
@@ -22078,27 +22644,7 @@ declare function importPluginReact(): Promise<{
|
|
|
22078
22644
|
'forbid-elements': eslint.Rule.RuleModule;
|
|
22079
22645
|
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
22080
22646
|
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
22081
|
-
'forward-ref-uses-ref':
|
|
22082
|
-
meta: {
|
|
22083
|
-
docs: {
|
|
22084
|
-
description: string;
|
|
22085
|
-
category: string;
|
|
22086
|
-
recommended: boolean;
|
|
22087
|
-
url: string;
|
|
22088
|
-
};
|
|
22089
|
-
messages: {
|
|
22090
|
-
missingRefParameter: string;
|
|
22091
|
-
addRefParameter: string;
|
|
22092
|
-
removeForwardRef: string;
|
|
22093
|
-
};
|
|
22094
|
-
schema: undefined[];
|
|
22095
|
-
type: string;
|
|
22096
|
-
hasSuggestions: boolean;
|
|
22097
|
-
};
|
|
22098
|
-
create(context: any): {
|
|
22099
|
-
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22100
|
-
};
|
|
22101
|
-
};
|
|
22647
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
22102
22648
|
'function-component-definition': eslint.Rule.RuleModule;
|
|
22103
22649
|
'hook-use-state': eslint.Rule.RuleModule;
|
|
22104
22650
|
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
@@ -22123,23 +22669,7 @@ declare function importPluginReact(): Promise<{
|
|
|
22123
22669
|
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22124
22670
|
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22125
22671
|
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22126
|
-
'jsx-no-literals':
|
|
22127
|
-
meta: eslint.Rule.RuleMetaData;
|
|
22128
|
-
create(context: any): (false & {
|
|
22129
|
-
Literal(node: any): void;
|
|
22130
|
-
JSXAttribute(node: any): void;
|
|
22131
|
-
JSXText(node: any): void;
|
|
22132
|
-
TemplateLiteral(node: any): void;
|
|
22133
|
-
}) | ({
|
|
22134
|
-
ImportDeclaration(node: any): void;
|
|
22135
|
-
VariableDeclaration(node: any): void;
|
|
22136
|
-
} & {
|
|
22137
|
-
Literal(node: any): void;
|
|
22138
|
-
JSXAttribute(node: any): void;
|
|
22139
|
-
JSXText(node: any): void;
|
|
22140
|
-
TemplateLiteral(node: any): void;
|
|
22141
|
-
});
|
|
22142
|
-
};
|
|
22672
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
22143
22673
|
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22144
22674
|
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22145
22675
|
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
@@ -22150,22 +22680,7 @@ declare function importPluginReact(): Promise<{
|
|
|
22150
22680
|
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22151
22681
|
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22152
22682
|
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22153
|
-
'jsx-props-no-spread-multi':
|
|
22154
|
-
meta: {
|
|
22155
|
-
docs: {
|
|
22156
|
-
description: string;
|
|
22157
|
-
category: string;
|
|
22158
|
-
recommended: boolean;
|
|
22159
|
-
url: string;
|
|
22160
|
-
};
|
|
22161
|
-
messages: {
|
|
22162
|
-
noMultiSpreading: string;
|
|
22163
|
-
};
|
|
22164
|
-
};
|
|
22165
|
-
create(context: any): {
|
|
22166
|
-
JSXOpeningElement(node: any): void;
|
|
22167
|
-
};
|
|
22168
|
-
};
|
|
22683
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
22169
22684
|
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22170
22685
|
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22171
22686
|
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
@@ -22231,28 +22746,28 @@ declare function importPluginReact(): Promise<{
|
|
|
22231
22746
|
};
|
|
22232
22747
|
};
|
|
22233
22748
|
rules: {
|
|
22234
|
-
"react/display-name":
|
|
22235
|
-
"react/jsx-key":
|
|
22236
|
-
"react/jsx-no-comment-textnodes":
|
|
22237
|
-
"react/jsx-no-duplicate-props":
|
|
22238
|
-
"react/jsx-no-target-blank":
|
|
22239
|
-
"react/jsx-no-undef":
|
|
22240
|
-
"react/jsx-uses-react":
|
|
22241
|
-
"react/jsx-uses-vars":
|
|
22242
|
-
"react/no-children-prop":
|
|
22243
|
-
"react/no-danger-with-children":
|
|
22244
|
-
"react/no-deprecated":
|
|
22245
|
-
"react/no-direct-mutation-state":
|
|
22246
|
-
"react/no-find-dom-node":
|
|
22247
|
-
"react/no-is-mounted":
|
|
22248
|
-
"react/no-render-return-value":
|
|
22249
|
-
"react/no-string-refs":
|
|
22250
|
-
"react/no-unescaped-entities":
|
|
22251
|
-
"react/no-unknown-property":
|
|
22252
|
-
"react/no-unsafe":
|
|
22253
|
-
"react/prop-types":
|
|
22254
|
-
"react/react-in-jsx-scope":
|
|
22255
|
-
"react/require-render-return":
|
|
22749
|
+
"react/display-name": 2;
|
|
22750
|
+
"react/jsx-key": 2;
|
|
22751
|
+
"react/jsx-no-comment-textnodes": 2;
|
|
22752
|
+
"react/jsx-no-duplicate-props": 2;
|
|
22753
|
+
"react/jsx-no-target-blank": 2;
|
|
22754
|
+
"react/jsx-no-undef": 2;
|
|
22755
|
+
"react/jsx-uses-react": 2;
|
|
22756
|
+
"react/jsx-uses-vars": 2;
|
|
22757
|
+
"react/no-children-prop": 2;
|
|
22758
|
+
"react/no-danger-with-children": 2;
|
|
22759
|
+
"react/no-deprecated": 2;
|
|
22760
|
+
"react/no-direct-mutation-state": 2;
|
|
22761
|
+
"react/no-find-dom-node": 2;
|
|
22762
|
+
"react/no-is-mounted": 2;
|
|
22763
|
+
"react/no-render-return-value": 2;
|
|
22764
|
+
"react/no-string-refs": 2;
|
|
22765
|
+
"react/no-unescaped-entities": 2;
|
|
22766
|
+
"react/no-unknown-property": 2;
|
|
22767
|
+
"react/no-unsafe": 0;
|
|
22768
|
+
"react/prop-types": 2;
|
|
22769
|
+
"react/react-in-jsx-scope": 2;
|
|
22770
|
+
"react/require-render-return": 2;
|
|
22256
22771
|
};
|
|
22257
22772
|
};
|
|
22258
22773
|
all: {
|
|
@@ -22273,12 +22788,13 @@ declare function importPluginReact(): Promise<{
|
|
|
22273
22788
|
jsxPragma: any;
|
|
22274
22789
|
};
|
|
22275
22790
|
rules: {
|
|
22276
|
-
"react/react-in-jsx-scope":
|
|
22277
|
-
"react/jsx-uses-react":
|
|
22791
|
+
"react/react-in-jsx-scope": 0;
|
|
22792
|
+
"react/jsx-uses-react": 0;
|
|
22278
22793
|
};
|
|
22279
22794
|
};
|
|
22795
|
+
flat: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22280
22796
|
} & {
|
|
22281
|
-
flat
|
|
22797
|
+
flat: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22282
22798
|
};
|
|
22283
22799
|
};
|
|
22284
22800
|
}>;
|
|
@@ -22286,7 +22802,27 @@ declare function importPluginReactHooks(): Promise<{
|
|
|
22286
22802
|
pluginReactHooks: any;
|
|
22287
22803
|
}>;
|
|
22288
22804
|
declare function importPluginReactRefresh(): Promise<{
|
|
22289
|
-
pluginReactRefresh:
|
|
22805
|
+
pluginReactRefresh: {
|
|
22806
|
+
rules: Record<string, any>;
|
|
22807
|
+
configs: {
|
|
22808
|
+
recommended: {
|
|
22809
|
+
plugins: {
|
|
22810
|
+
"react-refresh": {
|
|
22811
|
+
rules: Record<string, any>;
|
|
22812
|
+
};
|
|
22813
|
+
};
|
|
22814
|
+
rules: Record<string, any>;
|
|
22815
|
+
};
|
|
22816
|
+
vite: {
|
|
22817
|
+
plugins: {
|
|
22818
|
+
"react-refresh": {
|
|
22819
|
+
rules: Record<string, any>;
|
|
22820
|
+
};
|
|
22821
|
+
};
|
|
22822
|
+
rules: Record<string, any>;
|
|
22823
|
+
};
|
|
22824
|
+
};
|
|
22825
|
+
};
|
|
22290
22826
|
}>;
|
|
22291
22827
|
declare function importReactPlugins(): Promise<{
|
|
22292
22828
|
pluginReact: {
|
|
@@ -22302,27 +22838,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22302
22838
|
'forbid-elements': eslint.Rule.RuleModule;
|
|
22303
22839
|
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
22304
22840
|
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
22305
|
-
'forward-ref-uses-ref':
|
|
22306
|
-
meta: {
|
|
22307
|
-
docs: {
|
|
22308
|
-
description: string;
|
|
22309
|
-
category: string;
|
|
22310
|
-
recommended: boolean;
|
|
22311
|
-
url: string;
|
|
22312
|
-
};
|
|
22313
|
-
messages: {
|
|
22314
|
-
missingRefParameter: string;
|
|
22315
|
-
addRefParameter: string;
|
|
22316
|
-
removeForwardRef: string;
|
|
22317
|
-
};
|
|
22318
|
-
schema: undefined[];
|
|
22319
|
-
type: string;
|
|
22320
|
-
hasSuggestions: boolean;
|
|
22321
|
-
};
|
|
22322
|
-
create(context: any): {
|
|
22323
|
-
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22324
|
-
};
|
|
22325
|
-
};
|
|
22841
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
22326
22842
|
'function-component-definition': eslint.Rule.RuleModule;
|
|
22327
22843
|
'hook-use-state': eslint.Rule.RuleModule;
|
|
22328
22844
|
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
@@ -22347,23 +22863,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22347
22863
|
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22348
22864
|
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22349
22865
|
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22350
|
-
'jsx-no-literals':
|
|
22351
|
-
meta: eslint.Rule.RuleMetaData;
|
|
22352
|
-
create(context: any): (false & {
|
|
22353
|
-
Literal(node: any): void;
|
|
22354
|
-
JSXAttribute(node: any): void;
|
|
22355
|
-
JSXText(node: any): void;
|
|
22356
|
-
TemplateLiteral(node: any): void;
|
|
22357
|
-
}) | ({
|
|
22358
|
-
ImportDeclaration(node: any): void;
|
|
22359
|
-
VariableDeclaration(node: any): void;
|
|
22360
|
-
} & {
|
|
22361
|
-
Literal(node: any): void;
|
|
22362
|
-
JSXAttribute(node: any): void;
|
|
22363
|
-
JSXText(node: any): void;
|
|
22364
|
-
TemplateLiteral(node: any): void;
|
|
22365
|
-
});
|
|
22366
|
-
};
|
|
22866
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
22367
22867
|
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22368
22868
|
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22369
22869
|
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
@@ -22374,22 +22874,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22374
22874
|
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22375
22875
|
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22376
22876
|
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22377
|
-
'jsx-props-no-spread-multi':
|
|
22378
|
-
meta: {
|
|
22379
|
-
docs: {
|
|
22380
|
-
description: string;
|
|
22381
|
-
category: string;
|
|
22382
|
-
recommended: boolean;
|
|
22383
|
-
url: string;
|
|
22384
|
-
};
|
|
22385
|
-
messages: {
|
|
22386
|
-
noMultiSpreading: string;
|
|
22387
|
-
};
|
|
22388
|
-
};
|
|
22389
|
-
create(context: any): {
|
|
22390
|
-
JSXOpeningElement(node: any): void;
|
|
22391
|
-
};
|
|
22392
|
-
};
|
|
22877
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
22393
22878
|
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22394
22879
|
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22395
22880
|
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
@@ -22458,27 +22943,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22458
22943
|
'forbid-elements': eslint.Rule.RuleModule;
|
|
22459
22944
|
'forbid-foreign-prop-types': eslint.Rule.RuleModule;
|
|
22460
22945
|
'forbid-prop-types': eslint.Rule.RuleModule;
|
|
22461
|
-
'forward-ref-uses-ref':
|
|
22462
|
-
meta: {
|
|
22463
|
-
docs: {
|
|
22464
|
-
description: string;
|
|
22465
|
-
category: string;
|
|
22466
|
-
recommended: boolean;
|
|
22467
|
-
url: string;
|
|
22468
|
-
};
|
|
22469
|
-
messages: {
|
|
22470
|
-
missingRefParameter: string;
|
|
22471
|
-
addRefParameter: string;
|
|
22472
|
-
removeForwardRef: string;
|
|
22473
|
-
};
|
|
22474
|
-
schema: undefined[];
|
|
22475
|
-
type: string;
|
|
22476
|
-
hasSuggestions: boolean;
|
|
22477
|
-
};
|
|
22478
|
-
create(context: any): {
|
|
22479
|
-
"FunctionExpression, ArrowFunctionExpression"(node: any): void;
|
|
22480
|
-
};
|
|
22481
|
-
};
|
|
22946
|
+
'forward-ref-uses-ref': eslint.Rule.RuleModule;
|
|
22482
22947
|
'function-component-definition': eslint.Rule.RuleModule;
|
|
22483
22948
|
'hook-use-state': eslint.Rule.RuleModule;
|
|
22484
22949
|
'iframe-missing-sandbox': eslint.Rule.RuleModule;
|
|
@@ -22503,23 +22968,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22503
22968
|
'jsx-no-constructed-context-values': eslint.Rule.RuleModule;
|
|
22504
22969
|
'jsx-no-duplicate-props': eslint.Rule.RuleModule;
|
|
22505
22970
|
'jsx-no-leaked-render': eslint.Rule.RuleModule;
|
|
22506
|
-
'jsx-no-literals':
|
|
22507
|
-
meta: eslint.Rule.RuleMetaData;
|
|
22508
|
-
create(context: any): (false & {
|
|
22509
|
-
Literal(node: any): void;
|
|
22510
|
-
JSXAttribute(node: any): void;
|
|
22511
|
-
JSXText(node: any): void;
|
|
22512
|
-
TemplateLiteral(node: any): void;
|
|
22513
|
-
}) | ({
|
|
22514
|
-
ImportDeclaration(node: any): void;
|
|
22515
|
-
VariableDeclaration(node: any): void;
|
|
22516
|
-
} & {
|
|
22517
|
-
Literal(node: any): void;
|
|
22518
|
-
JSXAttribute(node: any): void;
|
|
22519
|
-
JSXText(node: any): void;
|
|
22520
|
-
TemplateLiteral(node: any): void;
|
|
22521
|
-
});
|
|
22522
|
-
};
|
|
22971
|
+
'jsx-no-literals': eslint.Rule.RuleModule;
|
|
22523
22972
|
'jsx-no-script-url': eslint.Rule.RuleModule;
|
|
22524
22973
|
'jsx-no-target-blank': eslint.Rule.RuleModule;
|
|
22525
22974
|
'jsx-no-useless-fragment': eslint.Rule.RuleModule;
|
|
@@ -22530,22 +22979,7 @@ declare function importReactPlugins(): Promise<{
|
|
|
22530
22979
|
'jsx-fragments': eslint.Rule.RuleModule;
|
|
22531
22980
|
'jsx-props-no-multi-spaces': eslint.Rule.RuleModule;
|
|
22532
22981
|
'jsx-props-no-spreading': eslint.Rule.RuleModule;
|
|
22533
|
-
'jsx-props-no-spread-multi':
|
|
22534
|
-
meta: {
|
|
22535
|
-
docs: {
|
|
22536
|
-
description: string;
|
|
22537
|
-
category: string;
|
|
22538
|
-
recommended: boolean;
|
|
22539
|
-
url: string;
|
|
22540
|
-
};
|
|
22541
|
-
messages: {
|
|
22542
|
-
noMultiSpreading: string;
|
|
22543
|
-
};
|
|
22544
|
-
};
|
|
22545
|
-
create(context: any): {
|
|
22546
|
-
JSXOpeningElement(node: any): void;
|
|
22547
|
-
};
|
|
22548
|
-
};
|
|
22982
|
+
'jsx-props-no-spread-multi': eslint.Rule.RuleModule;
|
|
22549
22983
|
'jsx-sort-default-props': eslint.Rule.RuleModule;
|
|
22550
22984
|
'jsx-sort-props': eslint.Rule.RuleModule;
|
|
22551
22985
|
'jsx-space-before-closing': eslint.Rule.RuleModule;
|
|
@@ -22611,28 +23045,28 @@ declare function importReactPlugins(): Promise<{
|
|
|
22611
23045
|
};
|
|
22612
23046
|
};
|
|
22613
23047
|
rules: {
|
|
22614
|
-
"react/display-name":
|
|
22615
|
-
"react/jsx-key":
|
|
22616
|
-
"react/jsx-no-comment-textnodes":
|
|
22617
|
-
"react/jsx-no-duplicate-props":
|
|
22618
|
-
"react/jsx-no-target-blank":
|
|
22619
|
-
"react/jsx-no-undef":
|
|
22620
|
-
"react/jsx-uses-react":
|
|
22621
|
-
"react/jsx-uses-vars":
|
|
22622
|
-
"react/no-children-prop":
|
|
22623
|
-
"react/no-danger-with-children":
|
|
22624
|
-
"react/no-deprecated":
|
|
22625
|
-
"react/no-direct-mutation-state":
|
|
22626
|
-
"react/no-find-dom-node":
|
|
22627
|
-
"react/no-is-mounted":
|
|
22628
|
-
"react/no-render-return-value":
|
|
22629
|
-
"react/no-string-refs":
|
|
22630
|
-
"react/no-unescaped-entities":
|
|
22631
|
-
"react/no-unknown-property":
|
|
22632
|
-
"react/no-unsafe":
|
|
22633
|
-
"react/prop-types":
|
|
22634
|
-
"react/react-in-jsx-scope":
|
|
22635
|
-
"react/require-render-return":
|
|
23048
|
+
"react/display-name": 2;
|
|
23049
|
+
"react/jsx-key": 2;
|
|
23050
|
+
"react/jsx-no-comment-textnodes": 2;
|
|
23051
|
+
"react/jsx-no-duplicate-props": 2;
|
|
23052
|
+
"react/jsx-no-target-blank": 2;
|
|
23053
|
+
"react/jsx-no-undef": 2;
|
|
23054
|
+
"react/jsx-uses-react": 2;
|
|
23055
|
+
"react/jsx-uses-vars": 2;
|
|
23056
|
+
"react/no-children-prop": 2;
|
|
23057
|
+
"react/no-danger-with-children": 2;
|
|
23058
|
+
"react/no-deprecated": 2;
|
|
23059
|
+
"react/no-direct-mutation-state": 2;
|
|
23060
|
+
"react/no-find-dom-node": 2;
|
|
23061
|
+
"react/no-is-mounted": 2;
|
|
23062
|
+
"react/no-render-return-value": 2;
|
|
23063
|
+
"react/no-string-refs": 2;
|
|
23064
|
+
"react/no-unescaped-entities": 2;
|
|
23065
|
+
"react/no-unknown-property": 2;
|
|
23066
|
+
"react/no-unsafe": 0;
|
|
23067
|
+
"react/prop-types": 2;
|
|
23068
|
+
"react/react-in-jsx-scope": 2;
|
|
23069
|
+
"react/require-render-return": 2;
|
|
22636
23070
|
};
|
|
22637
23071
|
};
|
|
22638
23072
|
all: {
|
|
@@ -22653,16 +23087,37 @@ declare function importReactPlugins(): Promise<{
|
|
|
22653
23087
|
jsxPragma: any;
|
|
22654
23088
|
};
|
|
22655
23089
|
rules: {
|
|
22656
|
-
"react/react-in-jsx-scope":
|
|
22657
|
-
"react/jsx-uses-react":
|
|
23090
|
+
"react/react-in-jsx-scope": 0;
|
|
23091
|
+
"react/jsx-uses-react": 0;
|
|
22658
23092
|
};
|
|
22659
23093
|
};
|
|
23094
|
+
flat: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22660
23095
|
} & {
|
|
22661
|
-
flat
|
|
23096
|
+
flat: Record<string, eslint_plugin_react.ReactFlatConfig>;
|
|
22662
23097
|
};
|
|
22663
23098
|
};
|
|
22664
23099
|
pluginReactHooks: any;
|
|
22665
|
-
pluginReactRefresh:
|
|
23100
|
+
pluginReactRefresh: {
|
|
23101
|
+
rules: Record<string, any>;
|
|
23102
|
+
configs: {
|
|
23103
|
+
recommended: {
|
|
23104
|
+
plugins: {
|
|
23105
|
+
"react-refresh": {
|
|
23106
|
+
rules: Record<string, any>;
|
|
23107
|
+
};
|
|
23108
|
+
};
|
|
23109
|
+
rules: Record<string, any>;
|
|
23110
|
+
};
|
|
23111
|
+
vite: {
|
|
23112
|
+
plugins: {
|
|
23113
|
+
"react-refresh": {
|
|
23114
|
+
rules: Record<string, any>;
|
|
23115
|
+
};
|
|
23116
|
+
};
|
|
23117
|
+
rules: Record<string, any>;
|
|
23118
|
+
};
|
|
23119
|
+
};
|
|
23120
|
+
};
|
|
22666
23121
|
}>;
|
|
22667
23122
|
declare function importParserJsonc(): Promise<{
|
|
22668
23123
|
parserJsonc: typeof jsonc_eslint_parser;
|
|
@@ -23604,7 +24059,7 @@ declare function importPluginMarkdown(): Promise<{
|
|
|
23604
24059
|
}>;
|
|
23605
24060
|
declare function importPluginJsdoc(): Promise<{
|
|
23606
24061
|
pluginJsdoc: eslint.ESLint.Plugin & {
|
|
23607
|
-
configs: Record
|
|
24062
|
+
configs: Record<`flat/${eslint_plugin_jsdoc.ConfigGroups}${eslint_plugin_jsdoc.ConfigVariants}${eslint_plugin_jsdoc.ErrorLevelVariants}`, eslint.Linter.Config>;
|
|
23608
24063
|
};
|
|
23609
24064
|
}>;
|
|
23610
24065
|
declare function importPluginTsdoc(): Promise<{
|