@jsse/eslint-config 0.4.4 → 0.4.6
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.js +1 -1
- package/dist/esm/configs/imports.js +3 -4
- package/dist/esm/configs/stylistic.js +9 -7
- package/dist/esm/configs/ts/typescript.js +3 -2
- package/dist/esm/const.js +0 -1
- package/dist/esm/fixable.d.ts +1 -1
- package/dist/esm/generated/fixable-rules-map.js +3 -12
- package/dist/esm/generated/version.d.ts +1 -1
- package/dist/esm/generated/version.js +1 -1
- package/dist/esm/plugins-all.d.ts +1 -1
- package/dist/esm/plugins-all.js +4 -3
- package/dist/esm/plugins.d.ts +1 -1
- package/dist/esm/plugins.js +1 -1
- package/dist/index.d.ts +307 -1101
- package/dist/index.js +100 -40
- package/dist/{version-eB55legw.js → version-B7_cTDO2.js} +1 -1
- package/package.json +18 -21
package/dist/index.d.ts
CHANGED
|
@@ -4,26 +4,26 @@ import * as parserTs from "@typescript-eslint/parser";
|
|
|
4
4
|
import { ParserOptions } from "@typescript-eslint/parser";
|
|
5
5
|
import pluginAntfu from "eslint-plugin-antfu";
|
|
6
6
|
import pluginDeMorgan from "eslint-plugin-de-morgan";
|
|
7
|
-
import
|
|
7
|
+
import pluginImportLite from "eslint-plugin-import-lite";
|
|
8
8
|
import pluginN from "eslint-plugin-n";
|
|
9
9
|
import pluginPerfectionist from "eslint-plugin-perfectionist";
|
|
10
10
|
import pluginPnpm from "eslint-plugin-pnpm";
|
|
11
11
|
import pluginUnicorn from "eslint-plugin-unicorn";
|
|
12
12
|
import pluginUnusedImports from "eslint-plugin-unused-imports";
|
|
13
|
-
import * as
|
|
14
|
-
import * as
|
|
13
|
+
import * as _eslint_markdown0 from "@eslint/markdown";
|
|
14
|
+
import * as _stylistic_eslint_plugin0 from "@stylistic/eslint-plugin";
|
|
15
15
|
import { FlatGitignoreOptions } from "eslint-config-flat-gitignore";
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
18
|
-
import * as
|
|
19
|
-
import * as
|
|
20
|
-
import * as
|
|
16
|
+
import * as eslint_plugin_jsdoc0 from "eslint-plugin-jsdoc";
|
|
17
|
+
import * as eslint_plugin_react0 from "eslint-plugin-react";
|
|
18
|
+
import * as eslint_plugin_react_hooks0 from "eslint-plugin-react-hooks";
|
|
19
|
+
import * as jsonc_eslint_parser0 from "jsonc-eslint-parser";
|
|
20
|
+
import * as yaml_eslint_parser0 from "yaml-eslint-parser";
|
|
21
21
|
import * as eslint0 from "eslint";
|
|
22
22
|
import { Linter, Rule } from "eslint";
|
|
23
|
-
import * as
|
|
24
|
-
import * as
|
|
25
|
-
import * as
|
|
26
|
-
import * as
|
|
23
|
+
import * as eslint_plugin_jsonc_meta0 from "eslint-plugin-jsonc/meta";
|
|
24
|
+
import * as eslint_plugin_jsonc_types0 from "eslint-plugin-jsonc/types";
|
|
25
|
+
import * as eslint_plugin_yml_lib_meta_js0 from "eslint-plugin-yml/lib/meta.js";
|
|
26
|
+
import * as eslint_plugin_yml_lib_types_js0 from "eslint-plugin-yml/lib/types.js";
|
|
27
27
|
|
|
28
28
|
//#region src/generated/dts/builtins.d.ts
|
|
29
29
|
interface BuiltinsRuleOptions {
|
|
@@ -526,7 +526,7 @@ interface BuiltinsRuleOptions {
|
|
|
526
526
|
*/
|
|
527
527
|
"no-console"?: Linter.RuleEntry<NoConsole>;
|
|
528
528
|
/**
|
|
529
|
-
* Disallow reassigning `const` variables
|
|
529
|
+
* Disallow reassigning `const`, `using`, and `await using` variables
|
|
530
530
|
* @see https://eslint.org/docs/latest/rules/no-const-assign
|
|
531
531
|
*/
|
|
532
532
|
"no-const-assign"?: Linter.RuleEntry<[]>;
|
|
@@ -1583,6 +1583,7 @@ type AccessorPairs = [] | [{
|
|
|
1583
1583
|
getWithoutSet?: boolean;
|
|
1584
1584
|
setWithoutGet?: boolean;
|
|
1585
1585
|
enforceForClassMembers?: boolean;
|
|
1586
|
+
enforceForTSTypes?: boolean;
|
|
1586
1587
|
}];
|
|
1587
1588
|
// ----- array-bracket-newline -----
|
|
1588
1589
|
type ArrayBracketNewline = [] | [("always" | "never" | "consistent") | {
|
|
@@ -1772,7 +1773,9 @@ type GetterReturn = [] | [{
|
|
|
1772
1773
|
allowImplicit?: boolean;
|
|
1773
1774
|
}];
|
|
1774
1775
|
// ----- grouped-accessor-pairs -----
|
|
1775
|
-
type GroupedAccessorPairs = [] | ["anyOrder" | "getBeforeSet" | "setBeforeGet"]
|
|
1776
|
+
type GroupedAccessorPairs = [] | ["anyOrder" | "getBeforeSet" | "setBeforeGet"] | ["anyOrder" | "getBeforeSet" | "setBeforeGet", {
|
|
1777
|
+
enforceForTSTypes?: boolean;
|
|
1778
|
+
}];
|
|
1776
1779
|
// ----- handle-callback-err -----
|
|
1777
1780
|
type HandleCallbackErr = [] | [string];
|
|
1778
1781
|
// ----- id-blacklist -----
|
|
@@ -2724,6 +2727,7 @@ type NoUnusedVars = [] | [("all" | "local") | {
|
|
|
2724
2727
|
caughtErrorsIgnorePattern?: string;
|
|
2725
2728
|
destructuredArrayIgnorePattern?: string;
|
|
2726
2729
|
ignoreClassWithStaticInitBlock?: boolean;
|
|
2730
|
+
ignoreUsingDeclarations?: boolean;
|
|
2727
2731
|
reportUsedIgnorePattern?: boolean;
|
|
2728
2732
|
}];
|
|
2729
2733
|
// ----- no-use-before-define -----
|
|
@@ -3236,488 +3240,56 @@ interface IgnoresRuleOptions {}
|
|
|
3236
3240
|
interface ImportsRuleOptions {
|
|
3237
3241
|
/**
|
|
3238
3242
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3239
|
-
* @see https://github.com/
|
|
3243
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
3240
3244
|
*/
|
|
3241
3245
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle$1>;
|
|
3242
|
-
/**
|
|
3243
|
-
* Ensure a default export is present, given a default import.
|
|
3244
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
3245
|
-
*/
|
|
3246
|
-
"import/default"?: Linter.RuleEntry<[]>;
|
|
3247
|
-
/**
|
|
3248
|
-
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
3249
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
3250
|
-
*/
|
|
3251
|
-
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname$1>;
|
|
3252
|
-
/**
|
|
3253
|
-
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
3254
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
3255
|
-
*/
|
|
3256
|
-
"import/export"?: Linter.RuleEntry<[]>;
|
|
3257
|
-
/**
|
|
3258
|
-
* Ensure all exports appear after other statements.
|
|
3259
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
3260
|
-
*/
|
|
3261
|
-
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
3262
|
-
/**
|
|
3263
|
-
* Ensure consistent use of file extension within the import path.
|
|
3264
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
3265
|
-
*/
|
|
3266
|
-
"import/extensions"?: Linter.RuleEntry<ImportExtensions$1>;
|
|
3267
3246
|
/**
|
|
3268
3247
|
* Ensure all imports appear before other statements.
|
|
3269
|
-
* @see https://github.com/
|
|
3248
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
3270
3249
|
*/
|
|
3271
3250
|
"import/first"?: Linter.RuleEntry<ImportFirst$1>;
|
|
3272
|
-
/**
|
|
3273
|
-
* Prefer named exports to be grouped together in a single export declaration.
|
|
3274
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
3275
|
-
*/
|
|
3276
|
-
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
3277
|
-
/**
|
|
3278
|
-
* Replaced by `import-x/first`.
|
|
3279
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
3280
|
-
* @deprecated
|
|
3281
|
-
*/
|
|
3282
|
-
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst$1>;
|
|
3283
|
-
/**
|
|
3284
|
-
* Enforce the maximum number of dependencies a module can have.
|
|
3285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
3286
|
-
*/
|
|
3287
|
-
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies$1>;
|
|
3288
|
-
/**
|
|
3289
|
-
* Ensure named imports correspond to a named export in the remote file.
|
|
3290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
3291
|
-
*/
|
|
3292
|
-
"import/named"?: Linter.RuleEntry<ImportNamed$1>;
|
|
3293
|
-
/**
|
|
3294
|
-
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
3295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
3296
|
-
*/
|
|
3297
|
-
"import/namespace"?: Linter.RuleEntry<ImportNamespace$1>;
|
|
3298
3251
|
/**
|
|
3299
3252
|
* Enforce a newline after import statements.
|
|
3300
|
-
* @see https://github.com/
|
|
3253
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
3301
3254
|
*/
|
|
3302
3255
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport$1>;
|
|
3303
|
-
/**
|
|
3304
|
-
* Forbid import of modules using absolute paths.
|
|
3305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
3306
|
-
*/
|
|
3307
|
-
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath$1>;
|
|
3308
|
-
/**
|
|
3309
|
-
* Forbid AMD `require` and `define` calls.
|
|
3310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
3311
|
-
*/
|
|
3312
|
-
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
3313
|
-
/**
|
|
3314
|
-
* Forbid anonymous values as default exports.
|
|
3315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
3316
|
-
*/
|
|
3317
|
-
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport$1>;
|
|
3318
|
-
/**
|
|
3319
|
-
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
3320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
3321
|
-
*/
|
|
3322
|
-
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs$1>;
|
|
3323
|
-
/**
|
|
3324
|
-
* Forbid a module from importing a module with a dependency path back to itself.
|
|
3325
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
3326
|
-
*/
|
|
3327
|
-
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle$1>;
|
|
3328
3256
|
/**
|
|
3329
3257
|
* Forbid default exports.
|
|
3330
|
-
* @see https://github.com/
|
|
3258
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
3331
3259
|
*/
|
|
3332
3260
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
3333
|
-
/**
|
|
3334
|
-
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
3335
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
3336
|
-
*/
|
|
3337
|
-
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
3338
3261
|
/**
|
|
3339
3262
|
* Forbid repeated import of the same module in multiple places.
|
|
3340
|
-
* @see https://github.com/
|
|
3263
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
3341
3264
|
*/
|
|
3342
3265
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates$1>;
|
|
3343
|
-
/**
|
|
3344
|
-
* Forbid `require()` calls with expressions.
|
|
3345
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
3346
|
-
*/
|
|
3347
|
-
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire$1>;
|
|
3348
|
-
/**
|
|
3349
|
-
* Forbid empty named import blocks.
|
|
3350
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
3351
|
-
*/
|
|
3352
|
-
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
3353
|
-
/**
|
|
3354
|
-
* Forbid the use of extraneous packages.
|
|
3355
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
3356
|
-
*/
|
|
3357
|
-
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies$1>;
|
|
3358
|
-
/**
|
|
3359
|
-
* Forbid import statements with CommonJS module.exports.
|
|
3360
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
3361
|
-
*/
|
|
3362
|
-
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports$1>;
|
|
3363
|
-
/**
|
|
3364
|
-
* Forbid importing the submodules of other modules.
|
|
3365
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
3366
|
-
*/
|
|
3367
|
-
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules$1>;
|
|
3368
3266
|
/**
|
|
3369
3267
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
3370
|
-
* @see https://github.com/
|
|
3268
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
3371
3269
|
*/
|
|
3372
3270
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
3373
|
-
/**
|
|
3374
|
-
* Forbid use of exported name as identifier of default export.
|
|
3375
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
3376
|
-
*/
|
|
3377
|
-
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
3378
|
-
/**
|
|
3379
|
-
* Forbid use of exported name as property of default export.
|
|
3380
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
3381
|
-
*/
|
|
3382
|
-
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
3383
3271
|
/**
|
|
3384
3272
|
* Forbid named default exports.
|
|
3385
|
-
* @see https://github.com/
|
|
3273
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
3386
3274
|
*/
|
|
3387
3275
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
3388
|
-
/**
|
|
3389
|
-
* Forbid named exports.
|
|
3390
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
3391
|
-
*/
|
|
3392
|
-
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
3393
|
-
/**
|
|
3394
|
-
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3395
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
3396
|
-
*/
|
|
3397
|
-
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace$1>;
|
|
3398
|
-
/**
|
|
3399
|
-
* Forbid Node.js builtin modules.
|
|
3400
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
3401
|
-
*/
|
|
3402
|
-
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules$1>;
|
|
3403
|
-
/**
|
|
3404
|
-
* Forbid importing packages through relative paths.
|
|
3405
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
3406
|
-
*/
|
|
3407
|
-
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages$1>;
|
|
3408
|
-
/**
|
|
3409
|
-
* Forbid importing modules from parent directories.
|
|
3410
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
3411
|
-
*/
|
|
3412
|
-
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports$1>;
|
|
3413
|
-
/**
|
|
3414
|
-
* Forbid importing a default export by a different name.
|
|
3415
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
3416
|
-
*/
|
|
3417
|
-
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault$1>;
|
|
3418
|
-
/**
|
|
3419
|
-
* Enforce which files can be imported in a given folder.
|
|
3420
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
3421
|
-
*/
|
|
3422
|
-
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths$1>;
|
|
3423
|
-
/**
|
|
3424
|
-
* Forbid a module from importing itself.
|
|
3425
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
3426
|
-
*/
|
|
3427
|
-
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
3428
|
-
/**
|
|
3429
|
-
* Forbid unassigned imports.
|
|
3430
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
3431
|
-
*/
|
|
3432
|
-
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport$1>;
|
|
3433
|
-
/**
|
|
3434
|
-
* Ensure imports point to a file/module that can be resolved.
|
|
3435
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
3436
|
-
*/
|
|
3437
|
-
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved$1>;
|
|
3438
|
-
/**
|
|
3439
|
-
* Forbid modules without exports, or exports without matching import in another module.
|
|
3440
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
3441
|
-
*/
|
|
3442
|
-
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules$1>;
|
|
3443
|
-
/**
|
|
3444
|
-
* Forbid unnecessary path segments in import and require statements.
|
|
3445
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
3446
|
-
*/
|
|
3447
|
-
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments$1>;
|
|
3448
|
-
/**
|
|
3449
|
-
* Forbid webpack loader syntax in imports.
|
|
3450
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
3451
|
-
*/
|
|
3452
|
-
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
3453
|
-
/**
|
|
3454
|
-
* Enforce a convention in module import order.
|
|
3455
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
3456
|
-
*/
|
|
3457
|
-
"import/order"?: Linter.RuleEntry<ImportOrder$1>;
|
|
3458
|
-
/**
|
|
3459
|
-
* Prefer a default export if module exports a single name or multiple names.
|
|
3460
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
3461
|
-
*/
|
|
3462
|
-
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport$1>;
|
|
3463
|
-
/**
|
|
3464
|
-
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
3465
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
3466
|
-
*/
|
|
3467
|
-
"import/prefer-namespace-import"?: Linter.RuleEntry<ImportPreferNamespaceImport$1>;
|
|
3468
|
-
/**
|
|
3469
|
-
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3470
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
3471
|
-
*/
|
|
3472
|
-
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
3473
3276
|
}
|
|
3474
3277
|
|
|
3475
3278
|
/* ======= Declarations ======= */
|
|
3476
3279
|
// ----- import/consistent-type-specifier-style -----
|
|
3477
|
-
type ImportConsistentTypeSpecifierStyle$1 = [] | ["
|
|
3478
|
-
// ----- import/dynamic-import-chunkname -----
|
|
3479
|
-
type ImportDynamicImportChunkname$1 = [] | [{
|
|
3480
|
-
importFunctions?: string[];
|
|
3481
|
-
allowEmpty?: boolean;
|
|
3482
|
-
webpackChunknameFormat?: string;
|
|
3483
|
-
[k: string]: unknown | undefined;
|
|
3484
|
-
}];
|
|
3485
|
-
// ----- import/extensions -----
|
|
3486
|
-
type ImportExtensions$1 = [] | ["always" | "ignorePackages" | "never"] | [] | ["always" | "ignorePackages" | "never"] | ["always" | "ignorePackages" | "never", {
|
|
3487
|
-
pattern?: {
|
|
3488
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
3489
|
-
};
|
|
3490
|
-
ignorePackages?: boolean;
|
|
3491
|
-
checkTypeImports?: boolean;
|
|
3492
|
-
pathGroupOverrides?: {
|
|
3493
|
-
pattern: string;
|
|
3494
|
-
patternOptions?: {
|
|
3495
|
-
[k: string]: unknown | undefined;
|
|
3496
|
-
};
|
|
3497
|
-
action: "enforce" | "ignore";
|
|
3498
|
-
}[];
|
|
3499
|
-
fix?: boolean;
|
|
3500
|
-
[k: string]: unknown | undefined;
|
|
3501
|
-
}] | [] | [{
|
|
3502
|
-
pattern?: {
|
|
3503
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
3504
|
-
};
|
|
3505
|
-
ignorePackages?: boolean;
|
|
3506
|
-
checkTypeImports?: boolean;
|
|
3507
|
-
pathGroupOverrides?: {
|
|
3508
|
-
pattern: string;
|
|
3509
|
-
patternOptions?: {
|
|
3510
|
-
[k: string]: unknown | undefined;
|
|
3511
|
-
};
|
|
3512
|
-
action: "enforce" | "ignore";
|
|
3513
|
-
}[];
|
|
3514
|
-
fix?: boolean;
|
|
3515
|
-
[k: string]: unknown | undefined;
|
|
3516
|
-
}] | [] | ["always" | "ignorePackages" | "never"] | ["always" | "ignorePackages" | "never", {
|
|
3517
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
3518
|
-
}] | [] | [{
|
|
3519
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
3520
|
-
}];
|
|
3280
|
+
type ImportConsistentTypeSpecifierStyle$1 = [] | ["top-level" | "inline" | "prefer-top-level"];
|
|
3521
3281
|
// ----- import/first -----
|
|
3522
3282
|
type ImportFirst$1 = [] | ["absolute-first" | "disable-absolute-first"];
|
|
3523
|
-
// ----- import/imports-first -----
|
|
3524
|
-
type ImportImportsFirst$1 = [] | ["absolute-first" | "disable-absolute-first"];
|
|
3525
|
-
// ----- import/max-dependencies -----
|
|
3526
|
-
type ImportMaxDependencies$1 = [] | [{
|
|
3527
|
-
max?: number;
|
|
3528
|
-
ignoreTypeImports?: boolean;
|
|
3529
|
-
}];
|
|
3530
|
-
// ----- import/named -----
|
|
3531
|
-
type ImportNamed$1 = [] | [{
|
|
3532
|
-
commonjs?: boolean;
|
|
3533
|
-
}];
|
|
3534
|
-
// ----- import/namespace -----
|
|
3535
|
-
type ImportNamespace$1 = [] | [{
|
|
3536
|
-
allowComputed?: boolean;
|
|
3537
|
-
}];
|
|
3538
3283
|
// ----- import/newline-after-import -----
|
|
3539
3284
|
type ImportNewlineAfterImport$1 = [] | [{
|
|
3540
3285
|
count?: number;
|
|
3541
3286
|
exactCount?: boolean;
|
|
3542
3287
|
considerComments?: boolean;
|
|
3543
3288
|
}];
|
|
3544
|
-
// ----- import/no-absolute-path -----
|
|
3545
|
-
type ImportNoAbsolutePath$1 = [] | [{
|
|
3546
|
-
commonjs?: boolean;
|
|
3547
|
-
amd?: boolean;
|
|
3548
|
-
esmodule?: boolean;
|
|
3549
|
-
ignore?: [string, ...string[]];
|
|
3550
|
-
}];
|
|
3551
|
-
// ----- import/no-anonymous-default-export -----
|
|
3552
|
-
type ImportNoAnonymousDefaultExport$1 = [] | [{
|
|
3553
|
-
allowArray?: boolean;
|
|
3554
|
-
allowArrowFunction?: boolean;
|
|
3555
|
-
allowCallExpression?: boolean;
|
|
3556
|
-
allowAnonymousClass?: boolean;
|
|
3557
|
-
allowAnonymousFunction?: boolean;
|
|
3558
|
-
allowLiteral?: boolean;
|
|
3559
|
-
allowObject?: boolean;
|
|
3560
|
-
allowNew?: boolean;
|
|
3561
|
-
}];
|
|
3562
|
-
// ----- import/no-commonjs -----
|
|
3563
|
-
type ImportNoCommonjs$1 = [] | ["allow-primitive-modules"] | [] | [{
|
|
3564
|
-
allowPrimitiveModules?: boolean;
|
|
3565
|
-
allowRequire?: boolean;
|
|
3566
|
-
allowConditionalRequire?: boolean;
|
|
3567
|
-
}];
|
|
3568
|
-
// ----- import/no-cycle -----
|
|
3569
|
-
type ImportNoCycle$1 = [] | [{
|
|
3570
|
-
commonjs?: boolean;
|
|
3571
|
-
amd?: boolean;
|
|
3572
|
-
esmodule?: boolean;
|
|
3573
|
-
ignore?: [string, ...string[]];
|
|
3574
|
-
maxDepth?: number | "∞";
|
|
3575
|
-
ignoreExternal?: boolean;
|
|
3576
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
3577
|
-
}];
|
|
3578
3289
|
// ----- import/no-duplicates -----
|
|
3579
3290
|
type ImportNoDuplicates$1 = [] | [{
|
|
3580
|
-
considerQueryString?: boolean;
|
|
3581
3291
|
"prefer-inline"?: boolean;
|
|
3582
3292
|
}];
|
|
3583
|
-
// ----- import/no-dynamic-require -----
|
|
3584
|
-
type ImportNoDynamicRequire$1 = [] | [{
|
|
3585
|
-
esmodule?: boolean;
|
|
3586
|
-
}];
|
|
3587
|
-
// ----- import/no-extraneous-dependencies -----
|
|
3588
|
-
type ImportNoExtraneousDependencies$1 = [] | [{
|
|
3589
|
-
devDependencies?: boolean | unknown[];
|
|
3590
|
-
optionalDependencies?: boolean | unknown[];
|
|
3591
|
-
peerDependencies?: boolean | unknown[];
|
|
3592
|
-
bundledDependencies?: boolean | unknown[];
|
|
3593
|
-
packageDir?: string | unknown[];
|
|
3594
|
-
includeInternal?: boolean;
|
|
3595
|
-
includeTypes?: boolean;
|
|
3596
|
-
whitelist?: unknown[];
|
|
3597
|
-
}];
|
|
3598
|
-
// ----- import/no-import-module-exports -----
|
|
3599
|
-
type ImportNoImportModuleExports$1 = [] | [{
|
|
3600
|
-
exceptions?: unknown[];
|
|
3601
|
-
}];
|
|
3602
|
-
// ----- import/no-internal-modules -----
|
|
3603
|
-
type ImportNoInternalModules$1 = [] | [{
|
|
3604
|
-
allow?: string[];
|
|
3605
|
-
} | {
|
|
3606
|
-
forbid?: string[];
|
|
3607
|
-
}];
|
|
3608
|
-
// ----- import/no-namespace -----
|
|
3609
|
-
type ImportNoNamespace$1 = [] | [{
|
|
3610
|
-
ignore?: string[];
|
|
3611
|
-
[k: string]: unknown | undefined;
|
|
3612
|
-
}];
|
|
3613
|
-
// ----- import/no-nodejs-modules -----
|
|
3614
|
-
type ImportNoNodejsModules$1 = [] | [{
|
|
3615
|
-
allow?: string[];
|
|
3616
|
-
}];
|
|
3617
|
-
// ----- import/no-relative-packages -----
|
|
3618
|
-
type ImportNoRelativePackages$1 = [] | [{
|
|
3619
|
-
commonjs?: boolean;
|
|
3620
|
-
amd?: boolean;
|
|
3621
|
-
esmodule?: boolean;
|
|
3622
|
-
ignore?: [string, ...string[]];
|
|
3623
|
-
}];
|
|
3624
|
-
// ----- import/no-relative-parent-imports -----
|
|
3625
|
-
type ImportNoRelativeParentImports$1 = [] | [{
|
|
3626
|
-
commonjs?: boolean;
|
|
3627
|
-
amd?: boolean;
|
|
3628
|
-
esmodule?: boolean;
|
|
3629
|
-
ignore?: [string, ...string[]];
|
|
3630
|
-
}];
|
|
3631
|
-
// ----- import/no-rename-default -----
|
|
3632
|
-
type ImportNoRenameDefault$1 = [] | [{
|
|
3633
|
-
commonjs?: boolean;
|
|
3634
|
-
preventRenamingBindings?: boolean;
|
|
3635
|
-
}];
|
|
3636
|
-
// ----- import/no-restricted-paths -----
|
|
3637
|
-
type ImportNoRestrictedPaths$1 = [] | [{
|
|
3638
|
-
zones?: [{
|
|
3639
|
-
target?: string | [string, ...string[]];
|
|
3640
|
-
from?: string | [string, ...string[]];
|
|
3641
|
-
except?: string[];
|
|
3642
|
-
message?: string;
|
|
3643
|
-
}, ...{
|
|
3644
|
-
target?: string | [string, ...string[]];
|
|
3645
|
-
from?: string | [string, ...string[]];
|
|
3646
|
-
except?: string[];
|
|
3647
|
-
message?: string;
|
|
3648
|
-
}[]];
|
|
3649
|
-
basePath?: string;
|
|
3650
|
-
}];
|
|
3651
|
-
// ----- import/no-unassigned-import -----
|
|
3652
|
-
type ImportNoUnassignedImport$1 = [] | [{
|
|
3653
|
-
devDependencies?: boolean | unknown[];
|
|
3654
|
-
optionalDependencies?: boolean | unknown[];
|
|
3655
|
-
peerDependencies?: boolean | unknown[];
|
|
3656
|
-
allow?: string[];
|
|
3657
|
-
}];
|
|
3658
|
-
// ----- import/no-unresolved -----
|
|
3659
|
-
type ImportNoUnresolved$1 = [] | [{
|
|
3660
|
-
commonjs?: boolean;
|
|
3661
|
-
amd?: boolean;
|
|
3662
|
-
esmodule?: boolean;
|
|
3663
|
-
ignore?: [string, ...string[]];
|
|
3664
|
-
caseSensitive?: boolean;
|
|
3665
|
-
caseSensitiveStrict?: boolean;
|
|
3666
|
-
}];
|
|
3667
|
-
// ----- import/no-unused-modules -----
|
|
3668
|
-
type ImportNoUnusedModules$1 = [] | [{
|
|
3669
|
-
unusedExports: true;
|
|
3670
|
-
src?: [unknown, ...unknown[]];
|
|
3671
|
-
[k: string]: unknown | undefined;
|
|
3672
|
-
} | {
|
|
3673
|
-
missingExports: true;
|
|
3674
|
-
[k: string]: unknown | undefined;
|
|
3675
|
-
}];
|
|
3676
|
-
// ----- import/no-useless-path-segments -----
|
|
3677
|
-
type ImportNoUselessPathSegments$1 = [] | [{
|
|
3678
|
-
commonjs?: boolean;
|
|
3679
|
-
noUselessIndex?: boolean;
|
|
3680
|
-
}];
|
|
3681
|
-
// ----- import/order -----
|
|
3682
|
-
type ImportOrder$1 = [] | [{
|
|
3683
|
-
groups?: unknown[];
|
|
3684
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
3685
|
-
distinctGroup?: boolean;
|
|
3686
|
-
pathGroups?: {
|
|
3687
|
-
pattern: string;
|
|
3688
|
-
patternOptions?: {
|
|
3689
|
-
[k: string]: unknown | undefined;
|
|
3690
|
-
};
|
|
3691
|
-
group: "builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type";
|
|
3692
|
-
position?: "after" | "before";
|
|
3693
|
-
}[];
|
|
3694
|
-
"newlines-between"?: "ignore" | "always" | "always-and-inside-groups" | "never";
|
|
3695
|
-
"newlines-between-types"?: "ignore" | "always" | "always-and-inside-groups" | "never";
|
|
3696
|
-
consolidateIslands?: "inside-groups" | "never";
|
|
3697
|
-
sortTypesGroup?: boolean;
|
|
3698
|
-
named?: boolean | {
|
|
3699
|
-
enabled?: boolean;
|
|
3700
|
-
import?: boolean;
|
|
3701
|
-
export?: boolean;
|
|
3702
|
-
require?: boolean;
|
|
3703
|
-
cjsExports?: boolean;
|
|
3704
|
-
types?: "mixed" | "types-first" | "types-last";
|
|
3705
|
-
};
|
|
3706
|
-
alphabetize?: {
|
|
3707
|
-
caseInsensitive?: boolean;
|
|
3708
|
-
order?: "ignore" | "asc" | "desc";
|
|
3709
|
-
orderImportKind?: "ignore" | "asc" | "desc";
|
|
3710
|
-
};
|
|
3711
|
-
warnOnUnassignedImports?: boolean;
|
|
3712
|
-
}];
|
|
3713
|
-
// ----- import/prefer-default-export -----
|
|
3714
|
-
type ImportPreferDefaultExport$1 = [] | [{
|
|
3715
|
-
target?: "single" | "any";
|
|
3716
|
-
}];
|
|
3717
|
-
// ----- import/prefer-namespace-import -----
|
|
3718
|
-
type ImportPreferNamespaceImport$1 = [] | [{
|
|
3719
|
-
patterns?: string[];
|
|
3720
|
-
}];
|
|
3721
3293
|
//#endregion
|
|
3722
3294
|
//#region src/generated/dts/javascript.d.ts
|
|
3723
3295
|
interface JavascriptRuleOptions {
|
|
@@ -4203,8 +3775,8 @@ type JsdocMatchName = [] | [{
|
|
|
4203
3775
|
context?: string;
|
|
4204
3776
|
disallowName?: string;
|
|
4205
3777
|
message?: string;
|
|
3778
|
+
replacement?: string;
|
|
4206
3779
|
tags?: string[];
|
|
4207
|
-
[k: string]: unknown | undefined;
|
|
4208
3780
|
}[];
|
|
4209
3781
|
}];
|
|
4210
3782
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -4278,7 +3850,6 @@ type JsdocRequireAsteriskPrefix = [] | ["always" | "never" | "any"] | ["always"
|
|
|
4278
3850
|
always?: string[];
|
|
4279
3851
|
any?: string[];
|
|
4280
3852
|
never?: string[];
|
|
4281
|
-
[k: string]: unknown | undefined;
|
|
4282
3853
|
};
|
|
4283
3854
|
}];
|
|
4284
3855
|
// ----- jsdoc/require-description -----
|
|
@@ -4488,7 +4059,6 @@ type JsdocSortTags = [] | [{
|
|
|
4488
4059
|
reportTagGroupSpacing?: boolean;
|
|
4489
4060
|
tagSequence?: {
|
|
4490
4061
|
tags?: string[];
|
|
4491
|
-
[k: string]: unknown | undefined;
|
|
4492
4062
|
}[];
|
|
4493
4063
|
}];
|
|
4494
4064
|
// ----- jsdoc/tag-lines -----
|
|
@@ -5036,7 +4606,7 @@ interface MarkdownRuleOptions {
|
|
|
5036
4606
|
* Disallow empty definitions
|
|
5037
4607
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
5038
4608
|
*/
|
|
5039
|
-
"markdown/no-empty-definitions"?: Linter.RuleEntry<
|
|
4609
|
+
"markdown/no-empty-definitions"?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
5040
4610
|
/**
|
|
5041
4611
|
* Disallow empty images
|
|
5042
4612
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -5082,6 +4652,11 @@ interface MarkdownRuleOptions {
|
|
|
5082
4652
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
5083
4653
|
*/
|
|
5084
4654
|
"markdown/no-reversed-media-syntax"?: Linter.RuleEntry<[]>;
|
|
4655
|
+
/**
|
|
4656
|
+
* Disallow unused definitions
|
|
4657
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
4658
|
+
*/
|
|
4659
|
+
"markdown/no-unused-definitions"?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
5085
4660
|
/**
|
|
5086
4661
|
* Require alternative text for images
|
|
5087
4662
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -5091,7 +4666,7 @@ interface MarkdownRuleOptions {
|
|
|
5091
4666
|
* Disallow data rows in a GitHub Flavored Markdown table from having more cells than the header row
|
|
5092
4667
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/table-column-count.md
|
|
5093
4668
|
*/
|
|
5094
|
-
"markdown/table-column-count"?: Linter.RuleEntry<
|
|
4669
|
+
"markdown/table-column-count"?: Linter.RuleEntry<MarkdownTableColumnCount>;
|
|
5095
4670
|
}
|
|
5096
4671
|
|
|
5097
4672
|
/* ======= Declarations ======= */
|
|
@@ -5108,6 +4683,12 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
5108
4683
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
5109
4684
|
checkSiblingsOnly?: boolean;
|
|
5110
4685
|
}];
|
|
4686
|
+
// ----- markdown/no-empty-definitions -----
|
|
4687
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
4688
|
+
allowDefinitions?: string[];
|
|
4689
|
+
allowFootnoteDefinitions?: string[];
|
|
4690
|
+
checkFootnoteDefinitions?: boolean;
|
|
4691
|
+
}];
|
|
5111
4692
|
// ----- markdown/no-html -----
|
|
5112
4693
|
type MarkdownNoHtml = [] | [{
|
|
5113
4694
|
allowed?: string[];
|
|
@@ -5121,6 +4702,15 @@ type MarkdownNoMissingLinkFragments = [] | [{
|
|
|
5121
4702
|
type MarkdownNoMultipleH1 = [] | [{
|
|
5122
4703
|
frontmatterTitle?: string;
|
|
5123
4704
|
}];
|
|
4705
|
+
// ----- markdown/no-unused-definitions -----
|
|
4706
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
4707
|
+
allowDefinitions?: string[];
|
|
4708
|
+
allowFootnoteDefinitions?: string[];
|
|
4709
|
+
}];
|
|
4710
|
+
// ----- markdown/table-column-count -----
|
|
4711
|
+
type MarkdownTableColumnCount = [] | [{
|
|
4712
|
+
checkMissingCells?: boolean;
|
|
4713
|
+
}];
|
|
5124
4714
|
//#endregion
|
|
5125
4715
|
//#region src/generated/dts/n.d.ts
|
|
5126
4716
|
interface NRuleOptions {
|
|
@@ -9247,10 +8837,12 @@ type StylisticIndent = [] | ["tab" | number] | ["tab" | number, {
|
|
|
9247
8837
|
FunctionDeclaration?: {
|
|
9248
8838
|
parameters?: number | ("first" | "off");
|
|
9249
8839
|
body?: number;
|
|
8840
|
+
returnType?: number;
|
|
9250
8841
|
};
|
|
9251
8842
|
FunctionExpression?: {
|
|
9252
8843
|
parameters?: number | ("first" | "off");
|
|
9253
8844
|
body?: number;
|
|
8845
|
+
returnType?: number;
|
|
9254
8846
|
};
|
|
9255
8847
|
StaticBlock?: {
|
|
9256
8848
|
body?: number;
|
|
@@ -9291,31 +8883,52 @@ type StylisticJsxCurlyNewline = [] | [("consistent" | "never") | {
|
|
|
9291
8883
|
multiline?: "consistent" | "require" | "forbid";
|
|
9292
8884
|
}];
|
|
9293
8885
|
// ----- @stylistic/jsx-curly-spacing -----
|
|
9294
|
-
type StylisticJsxCurlySpacing = [] | [
|
|
9295
|
-
|
|
9296
|
-
children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
|
|
9297
|
-
[k: string]: unknown | undefined;
|
|
9298
|
-
}) | ("always" | "never")] | [((_StylisticJsxCurlySpacing_BasicConfig & {
|
|
9299
|
-
attributes?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
|
|
9300
|
-
children?: _StylisticJsxCurlySpacingBasicConfigOrBoolean;
|
|
9301
|
-
[k: string]: unknown | undefined;
|
|
9302
|
-
}) | ("always" | "never")), {
|
|
8886
|
+
type StylisticJsxCurlySpacing = [] | [{
|
|
8887
|
+
when?: "always" | "never";
|
|
9303
8888
|
allowMultiline?: boolean;
|
|
9304
8889
|
spacing?: {
|
|
9305
8890
|
objectLiterals?: "always" | "never";
|
|
9306
|
-
[k: string]: unknown | undefined;
|
|
9307
8891
|
};
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
8892
|
+
attributes?: {
|
|
8893
|
+
when?: "always" | "never";
|
|
8894
|
+
allowMultiline?: boolean;
|
|
8895
|
+
spacing?: {
|
|
8896
|
+
objectLiterals?: "always" | "never";
|
|
8897
|
+
};
|
|
8898
|
+
} | boolean;
|
|
8899
|
+
children?: {
|
|
8900
|
+
when?: "always" | "never";
|
|
8901
|
+
allowMultiline?: boolean;
|
|
8902
|
+
spacing?: {
|
|
8903
|
+
objectLiterals?: "always" | "never";
|
|
8904
|
+
};
|
|
8905
|
+
} | boolean;
|
|
8906
|
+
} | ("always" | "never")] | [({
|
|
9311
8907
|
when?: "always" | "never";
|
|
9312
8908
|
allowMultiline?: boolean;
|
|
9313
8909
|
spacing?: {
|
|
9314
8910
|
objectLiterals?: "always" | "never";
|
|
9315
|
-
[k: string]: unknown | undefined;
|
|
9316
8911
|
};
|
|
9317
|
-
|
|
9318
|
-
|
|
8912
|
+
attributes?: {
|
|
8913
|
+
when?: "always" | "never";
|
|
8914
|
+
allowMultiline?: boolean;
|
|
8915
|
+
spacing?: {
|
|
8916
|
+
objectLiterals?: "always" | "never";
|
|
8917
|
+
};
|
|
8918
|
+
} | boolean;
|
|
8919
|
+
children?: {
|
|
8920
|
+
when?: "always" | "never";
|
|
8921
|
+
allowMultiline?: boolean;
|
|
8922
|
+
spacing?: {
|
|
8923
|
+
objectLiterals?: "always" | "never";
|
|
8924
|
+
};
|
|
8925
|
+
} | boolean;
|
|
8926
|
+
} | ("always" | "never")), {
|
|
8927
|
+
allowMultiline?: boolean;
|
|
8928
|
+
spacing?: {
|
|
8929
|
+
objectLiterals?: "always" | "never";
|
|
8930
|
+
};
|
|
8931
|
+
}];
|
|
9319
8932
|
// ----- @stylistic/jsx-equals-spacing -----
|
|
9320
8933
|
type StylisticJsxEqualsSpacing = [] | ["always" | "never"];
|
|
9321
8934
|
// ----- @stylistic/jsx-first-prop-new-line -----
|
|
@@ -9331,14 +8944,12 @@ type StylisticJsxIndent = [] | ["tab" | number] | ["tab" | number, {
|
|
|
9331
8944
|
type StylisticJsxIndentProps = [] | [("tab" | "first") | number | {
|
|
9332
8945
|
indentMode?: ("tab" | "first") | number;
|
|
9333
8946
|
ignoreTernaryOperator?: boolean;
|
|
9334
|
-
[k: string]: unknown | undefined;
|
|
9335
8947
|
}];
|
|
9336
8948
|
// ----- @stylistic/jsx-max-props-per-line -----
|
|
9337
8949
|
type StylisticJsxMaxPropsPerLine = [] | [{
|
|
9338
8950
|
maximum?: {
|
|
9339
8951
|
single?: number;
|
|
9340
8952
|
multi?: number;
|
|
9341
|
-
[k: string]: unknown | undefined;
|
|
9342
8953
|
};
|
|
9343
8954
|
} | {
|
|
9344
8955
|
maximum?: number;
|
|
@@ -9685,6 +9296,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
9685
9296
|
before?: boolean;
|
|
9686
9297
|
after?: boolean;
|
|
9687
9298
|
};
|
|
9299
|
+
accessor?: {
|
|
9300
|
+
before?: boolean;
|
|
9301
|
+
after?: boolean;
|
|
9302
|
+
};
|
|
9688
9303
|
as?: {
|
|
9689
9304
|
before?: boolean;
|
|
9690
9305
|
after?: boolean;
|
|
@@ -9897,11 +9512,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
|
|
|
9897
9512
|
// ----- @stylistic/multiline-comment-style -----
|
|
9898
9513
|
type StylisticMultilineCommentStyle = [] | ["starred-block" | "bare-block"] | [] | ["separate-lines"] | ["separate-lines", {
|
|
9899
9514
|
checkJSDoc?: boolean;
|
|
9515
|
+
checkExclamation?: boolean;
|
|
9900
9516
|
}];
|
|
9901
9517
|
// ----- @stylistic/multiline-ternary -----
|
|
9902
9518
|
type StylisticMultilineTernary = [] | ["always" | "always-multiline" | "never"] | ["always" | "always-multiline" | "never", {
|
|
9903
9519
|
ignoreJSX?: boolean;
|
|
9904
|
-
[k: string]: unknown | undefined;
|
|
9905
9520
|
}];
|
|
9906
9521
|
// ----- @stylistic/new-parens -----
|
|
9907
9522
|
type StylisticNewParens = [] | ["always" | "never"];
|
|
@@ -10046,11 +9661,12 @@ type StylisticPaddedBlocks = [] | [("always" | "never" | "start" | "end") | {
|
|
|
10046
9661
|
}];
|
|
10047
9662
|
// ----- @stylistic/padding-line-between-statements -----
|
|
10048
9663
|
type _StylisticPaddingLineBetweenStatementsPaddingType = "any" | "never" | "always";
|
|
10049
|
-
type
|
|
9664
|
+
type _StylisticPaddingLineBetweenStatementsStatementOption = _StylisticPaddingLineBetweenStatementsStatementType | [_StylisticPaddingLineBetweenStatementsStatementType, ..._StylisticPaddingLineBetweenStatementsStatementType[]];
|
|
9665
|
+
type _StylisticPaddingLineBetweenStatementsStatementType = "*" | "exports" | "require" | "directive" | "iife" | "block" | "empty" | "function" | "ts-method" | "break" | "case" | "class" | "continue" | "debugger" | "default" | "do" | "for" | "if" | "import" | "return" | "switch" | "throw" | "try" | "while" | "with" | "cjs-export" | "cjs-import" | "enum" | "interface" | "type" | "function-overload" | "block-like" | "singleline-block-like" | "multiline-block-like" | "expression" | "singleline-expression" | "multiline-expression" | "export" | "singleline-export" | "multiline-export" | "var" | "singleline-var" | "multiline-var" | "let" | "singleline-let" | "multiline-let" | "const" | "singleline-const" | "multiline-const" | "using" | "singleline-using" | "multiline-using";
|
|
10050
9666
|
type StylisticPaddingLineBetweenStatements = {
|
|
10051
9667
|
blankLine: _StylisticPaddingLineBetweenStatementsPaddingType;
|
|
10052
|
-
prev:
|
|
10053
|
-
next:
|
|
9668
|
+
prev: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
9669
|
+
next: _StylisticPaddingLineBetweenStatementsStatementOption;
|
|
10054
9670
|
}[];
|
|
10055
9671
|
// ----- @stylistic/quote-props -----
|
|
10056
9672
|
type StylisticQuoteProps = [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | [] | ["always" | "as-needed" | "consistent" | "consistent-as-needed"] | ["always" | "as-needed" | "consistent" | "consistent-as-needed", {
|
|
@@ -11079,240 +10695,39 @@ interface TypescriptRuleOptions {
|
|
|
11079
10695
|
"@typescript-eslint/use-unknown-in-catch-callback-variable"?: Linter.RuleEntry<[]>;
|
|
11080
10696
|
/**
|
|
11081
10697
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
11082
|
-
* @see https://github.com/
|
|
10698
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
11083
10699
|
*/
|
|
11084
10700
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
11085
|
-
/**
|
|
11086
|
-
* Ensure a default export is present, given a default import.
|
|
11087
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/default.md
|
|
11088
|
-
*/
|
|
11089
|
-
"import/default"?: Linter.RuleEntry<[]>;
|
|
11090
|
-
/**
|
|
11091
|
-
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
11092
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/dynamic-import-chunkname.md
|
|
11093
|
-
*/
|
|
11094
|
-
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
11095
|
-
/**
|
|
11096
|
-
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
11097
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/export.md
|
|
11098
|
-
*/
|
|
11099
|
-
"import/export"?: Linter.RuleEntry<[]>;
|
|
11100
|
-
/**
|
|
11101
|
-
* Ensure all exports appear after other statements.
|
|
11102
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/exports-last.md
|
|
11103
|
-
*/
|
|
11104
|
-
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
11105
|
-
/**
|
|
11106
|
-
* Ensure consistent use of file extension within the import path.
|
|
11107
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/extensions.md
|
|
11108
|
-
*/
|
|
11109
|
-
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
11110
10701
|
/**
|
|
11111
10702
|
* Ensure all imports appear before other statements.
|
|
11112
|
-
* @see https://github.com/
|
|
10703
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
11113
10704
|
*/
|
|
11114
10705
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
11115
|
-
/**
|
|
11116
|
-
* Prefer named exports to be grouped together in a single export declaration.
|
|
11117
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/group-exports.md
|
|
11118
|
-
*/
|
|
11119
|
-
"import/group-exports"?: Linter.RuleEntry<[]>;
|
|
11120
|
-
/**
|
|
11121
|
-
* Replaced by `import-x/first`.
|
|
11122
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/imports-first.md
|
|
11123
|
-
* @deprecated
|
|
11124
|
-
*/
|
|
11125
|
-
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
11126
|
-
/**
|
|
11127
|
-
* Enforce the maximum number of dependencies a module can have.
|
|
11128
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/max-dependencies.md
|
|
11129
|
-
*/
|
|
11130
|
-
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
11131
|
-
/**
|
|
11132
|
-
* Ensure named imports correspond to a named export in the remote file.
|
|
11133
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/named.md
|
|
11134
|
-
*/
|
|
11135
|
-
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
11136
|
-
/**
|
|
11137
|
-
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
11138
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/namespace.md
|
|
11139
|
-
*/
|
|
11140
|
-
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
11141
10706
|
/**
|
|
11142
10707
|
* Enforce a newline after import statements.
|
|
11143
|
-
* @see https://github.com/
|
|
10708
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
11144
10709
|
*/
|
|
11145
10710
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
11146
|
-
/**
|
|
11147
|
-
* Forbid import of modules using absolute paths.
|
|
11148
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-absolute-path.md
|
|
11149
|
-
*/
|
|
11150
|
-
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
11151
|
-
/**
|
|
11152
|
-
* Forbid AMD `require` and `define` calls.
|
|
11153
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-amd.md
|
|
11154
|
-
*/
|
|
11155
|
-
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
11156
|
-
/**
|
|
11157
|
-
* Forbid anonymous values as default exports.
|
|
11158
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-anonymous-default-export.md
|
|
11159
|
-
*/
|
|
11160
|
-
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
11161
|
-
/**
|
|
11162
|
-
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
11163
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-commonjs.md
|
|
11164
|
-
*/
|
|
11165
|
-
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
11166
|
-
/**
|
|
11167
|
-
* Forbid a module from importing a module with a dependency path back to itself.
|
|
11168
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-cycle.md
|
|
11169
|
-
*/
|
|
11170
|
-
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
11171
10711
|
/**
|
|
11172
10712
|
* Forbid default exports.
|
|
11173
|
-
* @see https://github.com/
|
|
10713
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
11174
10714
|
*/
|
|
11175
10715
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
11176
|
-
/**
|
|
11177
|
-
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
11178
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-deprecated.md
|
|
11179
|
-
*/
|
|
11180
|
-
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
11181
10716
|
/**
|
|
11182
10717
|
* Forbid repeated import of the same module in multiple places.
|
|
11183
|
-
* @see https://github.com/
|
|
10718
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
11184
10719
|
*/
|
|
11185
10720
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
11186
|
-
/**
|
|
11187
|
-
* Forbid `require()` calls with expressions.
|
|
11188
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-dynamic-require.md
|
|
11189
|
-
*/
|
|
11190
|
-
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
11191
|
-
/**
|
|
11192
|
-
* Forbid empty named import blocks.
|
|
11193
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-empty-named-blocks.md
|
|
11194
|
-
*/
|
|
11195
|
-
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
11196
|
-
/**
|
|
11197
|
-
* Forbid the use of extraneous packages.
|
|
11198
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-extraneous-dependencies.md
|
|
11199
|
-
*/
|
|
11200
|
-
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
11201
|
-
/**
|
|
11202
|
-
* Forbid import statements with CommonJS module.exports.
|
|
11203
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-import-module-exports.md
|
|
11204
|
-
*/
|
|
11205
|
-
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
11206
|
-
/**
|
|
11207
|
-
* Forbid importing the submodules of other modules.
|
|
11208
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-internal-modules.md
|
|
11209
|
-
*/
|
|
11210
|
-
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
11211
10721
|
/**
|
|
11212
10722
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
11213
|
-
* @see https://github.com/
|
|
10723
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
11214
10724
|
*/
|
|
11215
10725
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
11216
|
-
/**
|
|
11217
|
-
* Forbid use of exported name as identifier of default export.
|
|
11218
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default.md
|
|
11219
|
-
*/
|
|
11220
|
-
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
11221
|
-
/**
|
|
11222
|
-
* Forbid use of exported name as property of default export.
|
|
11223
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-as-default-member.md
|
|
11224
|
-
*/
|
|
11225
|
-
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
11226
10726
|
/**
|
|
11227
10727
|
* Forbid named default exports.
|
|
11228
|
-
* @see https://github.com/
|
|
10728
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
11229
10729
|
*/
|
|
11230
10730
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
11231
|
-
/**
|
|
11232
|
-
* Forbid named exports.
|
|
11233
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-named-export.md
|
|
11234
|
-
*/
|
|
11235
|
-
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
11236
|
-
/**
|
|
11237
|
-
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
11238
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-namespace.md
|
|
11239
|
-
*/
|
|
11240
|
-
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
11241
|
-
/**
|
|
11242
|
-
* Forbid Node.js builtin modules.
|
|
11243
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-nodejs-modules.md
|
|
11244
|
-
*/
|
|
11245
|
-
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
11246
|
-
/**
|
|
11247
|
-
* Forbid importing packages through relative paths.
|
|
11248
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-packages.md
|
|
11249
|
-
*/
|
|
11250
|
-
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
11251
|
-
/**
|
|
11252
|
-
* Forbid importing modules from parent directories.
|
|
11253
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-relative-parent-imports.md
|
|
11254
|
-
*/
|
|
11255
|
-
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
11256
|
-
/**
|
|
11257
|
-
* Forbid importing a default export by a different name.
|
|
11258
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-rename-default.md
|
|
11259
|
-
*/
|
|
11260
|
-
"import/no-rename-default"?: Linter.RuleEntry<ImportNoRenameDefault>;
|
|
11261
|
-
/**
|
|
11262
|
-
* Enforce which files can be imported in a given folder.
|
|
11263
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-restricted-paths.md
|
|
11264
|
-
*/
|
|
11265
|
-
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
11266
|
-
/**
|
|
11267
|
-
* Forbid a module from importing itself.
|
|
11268
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-self-import.md
|
|
11269
|
-
*/
|
|
11270
|
-
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
11271
|
-
/**
|
|
11272
|
-
* Forbid unassigned imports.
|
|
11273
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unassigned-import.md
|
|
11274
|
-
*/
|
|
11275
|
-
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
11276
|
-
/**
|
|
11277
|
-
* Ensure imports point to a file/module that can be resolved.
|
|
11278
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unresolved.md
|
|
11279
|
-
*/
|
|
11280
|
-
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
11281
|
-
/**
|
|
11282
|
-
* Forbid modules without exports, or exports without matching import in another module.
|
|
11283
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-unused-modules.md
|
|
11284
|
-
*/
|
|
11285
|
-
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
11286
|
-
/**
|
|
11287
|
-
* Forbid unnecessary path segments in import and require statements.
|
|
11288
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-useless-path-segments.md
|
|
11289
|
-
*/
|
|
11290
|
-
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
11291
|
-
/**
|
|
11292
|
-
* Forbid webpack loader syntax in imports.
|
|
11293
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/no-webpack-loader-syntax.md
|
|
11294
|
-
*/
|
|
11295
|
-
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
11296
|
-
/**
|
|
11297
|
-
* Enforce a convention in module import order.
|
|
11298
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/order.md
|
|
11299
|
-
*/
|
|
11300
|
-
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
11301
|
-
/**
|
|
11302
|
-
* Prefer a default export if module exports a single name or multiple names.
|
|
11303
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-default-export.md
|
|
11304
|
-
*/
|
|
11305
|
-
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
11306
|
-
/**
|
|
11307
|
-
* Enforce using namespace imports for specific modules, like `react`/`react-dom`, etc.
|
|
11308
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/prefer-namespace-import.md
|
|
11309
|
-
*/
|
|
11310
|
-
"import/prefer-namespace-import"?: Linter.RuleEntry<ImportPreferNamespaceImport>;
|
|
11311
|
-
/**
|
|
11312
|
-
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
11313
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.16.1/docs/rules/unambiguous.md
|
|
11314
|
-
*/
|
|
11315
|
-
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
11316
10731
|
}
|
|
11317
10732
|
|
|
11318
10733
|
/* ======= Declarations ======= */
|
|
@@ -12099,7 +11514,6 @@ type TypescriptEslintPreferDestructuring = [] | [{
|
|
|
12099
11514
|
}), {
|
|
12100
11515
|
enforceForDeclarationWithTypeAnnotation?: boolean;
|
|
12101
11516
|
enforceForRenamedProperties?: boolean;
|
|
12102
|
-
[k: string]: unknown | undefined;
|
|
12103
11517
|
}];
|
|
12104
11518
|
// ----- @typescript-eslint/prefer-literal-enum-member -----
|
|
12105
11519
|
type TypescriptEslintPreferLiteralEnumMember = [] | [{
|
|
@@ -12117,7 +11531,6 @@ type TypescriptEslintPreferNullishCoalescing = [] | [{
|
|
|
12117
11531
|
boolean?: boolean;
|
|
12118
11532
|
number?: boolean;
|
|
12119
11533
|
string?: boolean;
|
|
12120
|
-
[k: string]: unknown | undefined;
|
|
12121
11534
|
} | true;
|
|
12122
11535
|
ignoreTernaryTests?: boolean;
|
|
12123
11536
|
}];
|
|
@@ -12263,919 +11676,708 @@ type TypescriptEslintUnifiedSignatures = [] | [{
|
|
|
12263
11676
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
12264
11677
|
}];
|
|
12265
11678
|
// ----- import/consistent-type-specifier-style -----
|
|
12266
|
-
type ImportConsistentTypeSpecifierStyle = [] | ["
|
|
12267
|
-
// ----- import/dynamic-import-chunkname -----
|
|
12268
|
-
type ImportDynamicImportChunkname = [] | [{
|
|
12269
|
-
importFunctions?: string[];
|
|
12270
|
-
allowEmpty?: boolean;
|
|
12271
|
-
webpackChunknameFormat?: string;
|
|
12272
|
-
[k: string]: unknown | undefined;
|
|
12273
|
-
}];
|
|
12274
|
-
// ----- import/extensions -----
|
|
12275
|
-
type ImportExtensions = [] | ["always" | "ignorePackages" | "never"] | [] | ["always" | "ignorePackages" | "never"] | ["always" | "ignorePackages" | "never", {
|
|
12276
|
-
pattern?: {
|
|
12277
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
12278
|
-
};
|
|
12279
|
-
ignorePackages?: boolean;
|
|
12280
|
-
checkTypeImports?: boolean;
|
|
12281
|
-
pathGroupOverrides?: {
|
|
12282
|
-
pattern: string;
|
|
12283
|
-
patternOptions?: {
|
|
12284
|
-
[k: string]: unknown | undefined;
|
|
12285
|
-
};
|
|
12286
|
-
action: "enforce" | "ignore";
|
|
12287
|
-
}[];
|
|
12288
|
-
fix?: boolean;
|
|
12289
|
-
[k: string]: unknown | undefined;
|
|
12290
|
-
}] | [] | [{
|
|
12291
|
-
pattern?: {
|
|
12292
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
12293
|
-
};
|
|
12294
|
-
ignorePackages?: boolean;
|
|
12295
|
-
checkTypeImports?: boolean;
|
|
12296
|
-
pathGroupOverrides?: {
|
|
12297
|
-
pattern: string;
|
|
12298
|
-
patternOptions?: {
|
|
12299
|
-
[k: string]: unknown | undefined;
|
|
12300
|
-
};
|
|
12301
|
-
action: "enforce" | "ignore";
|
|
12302
|
-
}[];
|
|
12303
|
-
fix?: boolean;
|
|
12304
|
-
[k: string]: unknown | undefined;
|
|
12305
|
-
}] | [] | ["always" | "ignorePackages" | "never"] | ["always" | "ignorePackages" | "never", {
|
|
12306
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
12307
|
-
}] | [] | [{
|
|
12308
|
-
[k: string]: "always" | "ignorePackages" | "never";
|
|
12309
|
-
}];
|
|
11679
|
+
type ImportConsistentTypeSpecifierStyle = [] | ["top-level" | "inline" | "prefer-top-level"];
|
|
12310
11680
|
// ----- import/first -----
|
|
12311
11681
|
type ImportFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
12312
|
-
// ----- import/imports-first -----
|
|
12313
|
-
type ImportImportsFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
12314
|
-
// ----- import/max-dependencies -----
|
|
12315
|
-
type ImportMaxDependencies = [] | [{
|
|
12316
|
-
max?: number;
|
|
12317
|
-
ignoreTypeImports?: boolean;
|
|
12318
|
-
}];
|
|
12319
|
-
// ----- import/named -----
|
|
12320
|
-
type ImportNamed = [] | [{
|
|
12321
|
-
commonjs?: boolean;
|
|
12322
|
-
}];
|
|
12323
|
-
// ----- import/namespace -----
|
|
12324
|
-
type ImportNamespace = [] | [{
|
|
12325
|
-
allowComputed?: boolean;
|
|
12326
|
-
}];
|
|
12327
11682
|
// ----- import/newline-after-import -----
|
|
12328
11683
|
type ImportNewlineAfterImport = [] | [{
|
|
12329
11684
|
count?: number;
|
|
12330
11685
|
exactCount?: boolean;
|
|
12331
11686
|
considerComments?: boolean;
|
|
12332
11687
|
}];
|
|
12333
|
-
// ----- import/no-absolute-path -----
|
|
12334
|
-
type ImportNoAbsolutePath = [] | [{
|
|
12335
|
-
commonjs?: boolean;
|
|
12336
|
-
amd?: boolean;
|
|
12337
|
-
esmodule?: boolean;
|
|
12338
|
-
ignore?: [string, ...string[]];
|
|
12339
|
-
}];
|
|
12340
|
-
// ----- import/no-anonymous-default-export -----
|
|
12341
|
-
type ImportNoAnonymousDefaultExport = [] | [{
|
|
12342
|
-
allowArray?: boolean;
|
|
12343
|
-
allowArrowFunction?: boolean;
|
|
12344
|
-
allowCallExpression?: boolean;
|
|
12345
|
-
allowAnonymousClass?: boolean;
|
|
12346
|
-
allowAnonymousFunction?: boolean;
|
|
12347
|
-
allowLiteral?: boolean;
|
|
12348
|
-
allowObject?: boolean;
|
|
12349
|
-
allowNew?: boolean;
|
|
12350
|
-
}];
|
|
12351
|
-
// ----- import/no-commonjs -----
|
|
12352
|
-
type ImportNoCommonjs = [] | ["allow-primitive-modules"] | [] | [{
|
|
12353
|
-
allowPrimitiveModules?: boolean;
|
|
12354
|
-
allowRequire?: boolean;
|
|
12355
|
-
allowConditionalRequire?: boolean;
|
|
12356
|
-
}];
|
|
12357
|
-
// ----- import/no-cycle -----
|
|
12358
|
-
type ImportNoCycle = [] | [{
|
|
12359
|
-
commonjs?: boolean;
|
|
12360
|
-
amd?: boolean;
|
|
12361
|
-
esmodule?: boolean;
|
|
12362
|
-
ignore?: [string, ...string[]];
|
|
12363
|
-
maxDepth?: number | "∞";
|
|
12364
|
-
ignoreExternal?: boolean;
|
|
12365
|
-
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
12366
|
-
}];
|
|
12367
11688
|
// ----- import/no-duplicates -----
|
|
12368
11689
|
type ImportNoDuplicates = [] | [{
|
|
12369
|
-
considerQueryString?: boolean;
|
|
12370
11690
|
"prefer-inline"?: boolean;
|
|
12371
11691
|
}];
|
|
12372
|
-
// ----- import/no-dynamic-require -----
|
|
12373
|
-
type ImportNoDynamicRequire = [] | [{
|
|
12374
|
-
esmodule?: boolean;
|
|
12375
|
-
}];
|
|
12376
|
-
// ----- import/no-extraneous-dependencies -----
|
|
12377
|
-
type ImportNoExtraneousDependencies = [] | [{
|
|
12378
|
-
devDependencies?: boolean | unknown[];
|
|
12379
|
-
optionalDependencies?: boolean | unknown[];
|
|
12380
|
-
peerDependencies?: boolean | unknown[];
|
|
12381
|
-
bundledDependencies?: boolean | unknown[];
|
|
12382
|
-
packageDir?: string | unknown[];
|
|
12383
|
-
includeInternal?: boolean;
|
|
12384
|
-
includeTypes?: boolean;
|
|
12385
|
-
whitelist?: unknown[];
|
|
12386
|
-
}];
|
|
12387
|
-
// ----- import/no-import-module-exports -----
|
|
12388
|
-
type ImportNoImportModuleExports = [] | [{
|
|
12389
|
-
exceptions?: unknown[];
|
|
12390
|
-
}];
|
|
12391
|
-
// ----- import/no-internal-modules -----
|
|
12392
|
-
type ImportNoInternalModules = [] | [{
|
|
12393
|
-
allow?: string[];
|
|
12394
|
-
} | {
|
|
12395
|
-
forbid?: string[];
|
|
12396
|
-
}];
|
|
12397
|
-
// ----- import/no-namespace -----
|
|
12398
|
-
type ImportNoNamespace = [] | [{
|
|
12399
|
-
ignore?: string[];
|
|
12400
|
-
[k: string]: unknown | undefined;
|
|
12401
|
-
}];
|
|
12402
|
-
// ----- import/no-nodejs-modules -----
|
|
12403
|
-
type ImportNoNodejsModules = [] | [{
|
|
12404
|
-
allow?: string[];
|
|
12405
|
-
}];
|
|
12406
|
-
// ----- import/no-relative-packages -----
|
|
12407
|
-
type ImportNoRelativePackages = [] | [{
|
|
12408
|
-
commonjs?: boolean;
|
|
12409
|
-
amd?: boolean;
|
|
12410
|
-
esmodule?: boolean;
|
|
12411
|
-
ignore?: [string, ...string[]];
|
|
12412
|
-
}];
|
|
12413
|
-
// ----- import/no-relative-parent-imports -----
|
|
12414
|
-
type ImportNoRelativeParentImports = [] | [{
|
|
12415
|
-
commonjs?: boolean;
|
|
12416
|
-
amd?: boolean;
|
|
12417
|
-
esmodule?: boolean;
|
|
12418
|
-
ignore?: [string, ...string[]];
|
|
12419
|
-
}];
|
|
12420
|
-
// ----- import/no-rename-default -----
|
|
12421
|
-
type ImportNoRenameDefault = [] | [{
|
|
12422
|
-
commonjs?: boolean;
|
|
12423
|
-
preventRenamingBindings?: boolean;
|
|
12424
|
-
}];
|
|
12425
|
-
// ----- import/no-restricted-paths -----
|
|
12426
|
-
type ImportNoRestrictedPaths = [] | [{
|
|
12427
|
-
zones?: [{
|
|
12428
|
-
target?: string | [string, ...string[]];
|
|
12429
|
-
from?: string | [string, ...string[]];
|
|
12430
|
-
except?: string[];
|
|
12431
|
-
message?: string;
|
|
12432
|
-
}, ...{
|
|
12433
|
-
target?: string | [string, ...string[]];
|
|
12434
|
-
from?: string | [string, ...string[]];
|
|
12435
|
-
except?: string[];
|
|
12436
|
-
message?: string;
|
|
12437
|
-
}[]];
|
|
12438
|
-
basePath?: string;
|
|
12439
|
-
}];
|
|
12440
|
-
// ----- import/no-unassigned-import -----
|
|
12441
|
-
type ImportNoUnassignedImport = [] | [{
|
|
12442
|
-
devDependencies?: boolean | unknown[];
|
|
12443
|
-
optionalDependencies?: boolean | unknown[];
|
|
12444
|
-
peerDependencies?: boolean | unknown[];
|
|
12445
|
-
allow?: string[];
|
|
12446
|
-
}];
|
|
12447
|
-
// ----- import/no-unresolved -----
|
|
12448
|
-
type ImportNoUnresolved = [] | [{
|
|
12449
|
-
commonjs?: boolean;
|
|
12450
|
-
amd?: boolean;
|
|
12451
|
-
esmodule?: boolean;
|
|
12452
|
-
ignore?: [string, ...string[]];
|
|
12453
|
-
caseSensitive?: boolean;
|
|
12454
|
-
caseSensitiveStrict?: boolean;
|
|
12455
|
-
}];
|
|
12456
|
-
// ----- import/no-unused-modules -----
|
|
12457
|
-
type ImportNoUnusedModules = [] | [{
|
|
12458
|
-
unusedExports: true;
|
|
12459
|
-
src?: [unknown, ...unknown[]];
|
|
12460
|
-
[k: string]: unknown | undefined;
|
|
12461
|
-
} | {
|
|
12462
|
-
missingExports: true;
|
|
12463
|
-
[k: string]: unknown | undefined;
|
|
12464
|
-
}];
|
|
12465
|
-
// ----- import/no-useless-path-segments -----
|
|
12466
|
-
type ImportNoUselessPathSegments = [] | [{
|
|
12467
|
-
commonjs?: boolean;
|
|
12468
|
-
noUselessIndex?: boolean;
|
|
12469
|
-
}];
|
|
12470
|
-
// ----- import/order -----
|
|
12471
|
-
type ImportOrder = [] | [{
|
|
12472
|
-
groups?: unknown[];
|
|
12473
|
-
pathGroupsExcludedImportTypes?: unknown[];
|
|
12474
|
-
distinctGroup?: boolean;
|
|
12475
|
-
pathGroups?: {
|
|
12476
|
-
pattern: string;
|
|
12477
|
-
patternOptions?: {
|
|
12478
|
-
[k: string]: unknown | undefined;
|
|
12479
|
-
};
|
|
12480
|
-
group: "builtin" | "external" | "internal" | "unknown" | "parent" | "sibling" | "index" | "object" | "type";
|
|
12481
|
-
position?: "after" | "before";
|
|
12482
|
-
}[];
|
|
12483
|
-
"newlines-between"?: "ignore" | "always" | "always-and-inside-groups" | "never";
|
|
12484
|
-
"newlines-between-types"?: "ignore" | "always" | "always-and-inside-groups" | "never";
|
|
12485
|
-
consolidateIslands?: "inside-groups" | "never";
|
|
12486
|
-
sortTypesGroup?: boolean;
|
|
12487
|
-
named?: boolean | {
|
|
12488
|
-
enabled?: boolean;
|
|
12489
|
-
import?: boolean;
|
|
12490
|
-
export?: boolean;
|
|
12491
|
-
require?: boolean;
|
|
12492
|
-
cjsExports?: boolean;
|
|
12493
|
-
types?: "mixed" | "types-first" | "types-last";
|
|
12494
|
-
};
|
|
12495
|
-
alphabetize?: {
|
|
12496
|
-
caseInsensitive?: boolean;
|
|
12497
|
-
order?: "ignore" | "asc" | "desc";
|
|
12498
|
-
orderImportKind?: "ignore" | "asc" | "desc";
|
|
12499
|
-
};
|
|
12500
|
-
warnOnUnassignedImports?: boolean;
|
|
12501
|
-
}];
|
|
12502
|
-
// ----- import/prefer-default-export -----
|
|
12503
|
-
type ImportPreferDefaultExport = [] | [{
|
|
12504
|
-
target?: "single" | "any";
|
|
12505
|
-
}];
|
|
12506
|
-
// ----- import/prefer-namespace-import -----
|
|
12507
|
-
type ImportPreferNamespaceImport = [] | [{
|
|
12508
|
-
patterns?: string[];
|
|
12509
|
-
}];
|
|
12510
11692
|
//#endregion
|
|
12511
11693
|
//#region src/generated/dts/unicorn.d.ts
|
|
12512
11694
|
interface UnicornRuleOptions {
|
|
12513
11695
|
/**
|
|
12514
11696
|
* Improve regexes by making them shorter, consistent, and safer.
|
|
12515
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11697
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/better-regex.md
|
|
12516
11698
|
*/
|
|
12517
11699
|
"unicorn/better-regex"?: Linter.RuleEntry<UnicornBetterRegex>;
|
|
12518
11700
|
/**
|
|
12519
11701
|
* Enforce a specific parameter name in catch clauses.
|
|
12520
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11702
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/catch-error-name.md
|
|
12521
11703
|
*/
|
|
12522
11704
|
"unicorn/catch-error-name"?: Linter.RuleEntry<UnicornCatchErrorName>;
|
|
12523
11705
|
/**
|
|
12524
11706
|
* Enforce consistent assertion style with `node:assert`.
|
|
12525
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11707
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-assert.md
|
|
12526
11708
|
*/
|
|
12527
11709
|
"unicorn/consistent-assert"?: Linter.RuleEntry<[]>;
|
|
12528
11710
|
/**
|
|
12529
11711
|
* Prefer passing `Date` directly to the constructor when cloning.
|
|
12530
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11712
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-date-clone.md
|
|
12531
11713
|
*/
|
|
12532
11714
|
"unicorn/consistent-date-clone"?: Linter.RuleEntry<[]>;
|
|
12533
11715
|
/**
|
|
12534
11716
|
* Use destructured variables over properties.
|
|
12535
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11717
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-destructuring.md
|
|
12536
11718
|
*/
|
|
12537
11719
|
"unicorn/consistent-destructuring"?: Linter.RuleEntry<[]>;
|
|
12538
11720
|
/**
|
|
12539
11721
|
* Prefer consistent types when spreading a ternary in an array literal.
|
|
12540
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11722
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-empty-array-spread.md
|
|
12541
11723
|
*/
|
|
12542
11724
|
"unicorn/consistent-empty-array-spread"?: Linter.RuleEntry<[]>;
|
|
12543
11725
|
/**
|
|
12544
11726
|
* Enforce consistent style for element existence checks with `indexOf()`, `lastIndexOf()`, `findIndex()`, and `findLastIndex()`.
|
|
12545
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11727
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-existence-index-check.md
|
|
12546
11728
|
*/
|
|
12547
11729
|
"unicorn/consistent-existence-index-check"?: Linter.RuleEntry<[]>;
|
|
12548
11730
|
/**
|
|
12549
11731
|
* Move function definitions to the highest possible scope.
|
|
12550
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11732
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/consistent-function-scoping.md
|
|
12551
11733
|
*/
|
|
12552
11734
|
"unicorn/consistent-function-scoping"?: Linter.RuleEntry<UnicornConsistentFunctionScoping>;
|
|
12553
11735
|
/**
|
|
12554
11736
|
* Enforce correct `Error` subclassing.
|
|
12555
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11737
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/custom-error-definition.md
|
|
12556
11738
|
*/
|
|
12557
11739
|
"unicorn/custom-error-definition"?: Linter.RuleEntry<[]>;
|
|
12558
11740
|
/**
|
|
12559
11741
|
* Enforce no spaces between braces.
|
|
12560
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11742
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/empty-brace-spaces.md
|
|
12561
11743
|
*/
|
|
12562
11744
|
"unicorn/empty-brace-spaces"?: Linter.RuleEntry<[]>;
|
|
12563
11745
|
/**
|
|
12564
11746
|
* Enforce passing a `message` value when creating a built-in error.
|
|
12565
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11747
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/error-message.md
|
|
12566
11748
|
*/
|
|
12567
11749
|
"unicorn/error-message"?: Linter.RuleEntry<[]>;
|
|
12568
11750
|
/**
|
|
12569
11751
|
* Require escape sequences to use uppercase or lowercase values.
|
|
12570
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11752
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/escape-case.md
|
|
12571
11753
|
*/
|
|
12572
11754
|
"unicorn/escape-case"?: Linter.RuleEntry<UnicornEscapeCase>;
|
|
12573
11755
|
/**
|
|
12574
11756
|
* Add expiration conditions to TODO comments.
|
|
12575
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11757
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/expiring-todo-comments.md
|
|
12576
11758
|
*/
|
|
12577
11759
|
"unicorn/expiring-todo-comments"?: Linter.RuleEntry<UnicornExpiringTodoComments>;
|
|
12578
11760
|
/**
|
|
12579
11761
|
* Enforce explicitly comparing the `length` or `size` property of a value.
|
|
12580
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11762
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/explicit-length-check.md
|
|
12581
11763
|
*/
|
|
12582
11764
|
"unicorn/explicit-length-check"?: Linter.RuleEntry<UnicornExplicitLengthCheck>;
|
|
12583
11765
|
/**
|
|
12584
11766
|
* Enforce a case style for filenames.
|
|
12585
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11767
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/filename-case.md
|
|
12586
11768
|
*/
|
|
12587
11769
|
"unicorn/filename-case"?: Linter.RuleEntry<UnicornFilenameCase>;
|
|
12588
11770
|
/**
|
|
12589
11771
|
* Enforce specific import styles per module.
|
|
12590
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11772
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/import-style.md
|
|
12591
11773
|
*/
|
|
12592
11774
|
"unicorn/import-style"?: Linter.RuleEntry<UnicornImportStyle>;
|
|
12593
11775
|
/**
|
|
12594
11776
|
* Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.
|
|
12595
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11777
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/new-for-builtins.md
|
|
12596
11778
|
*/
|
|
12597
11779
|
"unicorn/new-for-builtins"?: Linter.RuleEntry<[]>;
|
|
12598
11780
|
/**
|
|
12599
11781
|
* Enforce specifying rules to disable in `eslint-disable` comments.
|
|
12600
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11782
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-abusive-eslint-disable.md
|
|
12601
11783
|
*/
|
|
12602
11784
|
"unicorn/no-abusive-eslint-disable"?: Linter.RuleEntry<[]>;
|
|
12603
11785
|
/**
|
|
12604
11786
|
* Disallow recursive access to `this` within getters and setters.
|
|
12605
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11787
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-accessor-recursion.md
|
|
12606
11788
|
*/
|
|
12607
11789
|
"unicorn/no-accessor-recursion"?: Linter.RuleEntry<[]>;
|
|
12608
11790
|
/**
|
|
12609
11791
|
* Disallow anonymous functions and classes as the default export.
|
|
12610
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11792
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-anonymous-default-export.md
|
|
12611
11793
|
*/
|
|
12612
11794
|
"unicorn/no-anonymous-default-export"?: Linter.RuleEntry<[]>;
|
|
12613
11795
|
/**
|
|
12614
11796
|
* Prevent passing a function reference directly to iterator methods.
|
|
12615
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11797
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-callback-reference.md
|
|
12616
11798
|
*/
|
|
12617
11799
|
"unicorn/no-array-callback-reference"?: Linter.RuleEntry<[]>;
|
|
12618
11800
|
/**
|
|
12619
11801
|
* Prefer `for…of` over the `forEach` method.
|
|
12620
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11802
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-for-each.md
|
|
12621
11803
|
*/
|
|
12622
11804
|
"unicorn/no-array-for-each"?: Linter.RuleEntry<[]>;
|
|
12623
11805
|
/**
|
|
12624
11806
|
* Disallow using the `this` argument in array methods.
|
|
12625
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11807
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-method-this-argument.md
|
|
12626
11808
|
*/
|
|
12627
11809
|
"unicorn/no-array-method-this-argument"?: Linter.RuleEntry<[]>;
|
|
12628
11810
|
/**
|
|
12629
11811
|
* Replaced by `unicorn/prefer-single-call` which covers more cases.
|
|
12630
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11812
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-array-push-push
|
|
12631
11813
|
* @deprecated
|
|
12632
11814
|
*/
|
|
12633
11815
|
"unicorn/no-array-push-push"?: Linter.RuleEntry<[]>;
|
|
12634
11816
|
/**
|
|
12635
11817
|
* Disallow `Array#reduce()` and `Array#reduceRight()`.
|
|
12636
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11818
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reduce.md
|
|
12637
11819
|
*/
|
|
12638
11820
|
"unicorn/no-array-reduce"?: Linter.RuleEntry<UnicornNoArrayReduce>;
|
|
11821
|
+
/**
|
|
11822
|
+
* Prefer `Array#toReversed()` over `Array#reverse()`.
|
|
11823
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-array-reverse.md
|
|
11824
|
+
*/
|
|
11825
|
+
"unicorn/no-array-reverse"?: Linter.RuleEntry<UnicornNoArrayReverse>;
|
|
12639
11826
|
/**
|
|
12640
11827
|
* Disallow member access from await expression.
|
|
12641
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11828
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-expression-member.md
|
|
12642
11829
|
*/
|
|
12643
11830
|
"unicorn/no-await-expression-member"?: Linter.RuleEntry<[]>;
|
|
12644
11831
|
/**
|
|
12645
11832
|
* Disallow using `await` in `Promise` method parameters.
|
|
12646
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11833
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-await-in-promise-methods.md
|
|
12647
11834
|
*/
|
|
12648
11835
|
"unicorn/no-await-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12649
11836
|
/**
|
|
12650
11837
|
* Do not use leading/trailing space between `console.log` parameters.
|
|
12651
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11838
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-console-spaces.md
|
|
12652
11839
|
*/
|
|
12653
11840
|
"unicorn/no-console-spaces"?: Linter.RuleEntry<[]>;
|
|
12654
11841
|
/**
|
|
12655
11842
|
* Do not use `document.cookie` directly.
|
|
12656
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11843
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-document-cookie.md
|
|
12657
11844
|
*/
|
|
12658
11845
|
"unicorn/no-document-cookie"?: Linter.RuleEntry<[]>;
|
|
12659
11846
|
/**
|
|
12660
11847
|
* Disallow empty files.
|
|
12661
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11848
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-empty-file.md
|
|
12662
11849
|
*/
|
|
12663
11850
|
"unicorn/no-empty-file"?: Linter.RuleEntry<[]>;
|
|
12664
11851
|
/**
|
|
12665
11852
|
* Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
12666
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11853
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-for-loop.md
|
|
12667
11854
|
*/
|
|
12668
11855
|
"unicorn/no-for-loop"?: Linter.RuleEntry<[]>;
|
|
12669
11856
|
/**
|
|
12670
11857
|
* Enforce the use of Unicode escapes instead of hexadecimal escapes.
|
|
12671
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11858
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-hex-escape.md
|
|
12672
11859
|
*/
|
|
12673
11860
|
"unicorn/no-hex-escape"?: Linter.RuleEntry<[]>;
|
|
12674
11861
|
/**
|
|
12675
11862
|
* Replaced by `unicorn/no-instanceof-builtins` which covers more cases.
|
|
12676
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11863
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-instanceof-array
|
|
12677
11864
|
* @deprecated
|
|
12678
11865
|
*/
|
|
12679
11866
|
"unicorn/no-instanceof-array"?: Linter.RuleEntry<[]>;
|
|
12680
11867
|
/**
|
|
12681
11868
|
* Disallow `instanceof` with built-in objects
|
|
12682
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11869
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-instanceof-builtins.md
|
|
12683
11870
|
*/
|
|
12684
11871
|
"unicorn/no-instanceof-builtins"?: Linter.RuleEntry<UnicornNoInstanceofBuiltins>;
|
|
12685
11872
|
/**
|
|
12686
11873
|
* Disallow invalid options in `fetch()` and `new Request()`.
|
|
12687
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11874
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-fetch-options.md
|
|
12688
11875
|
*/
|
|
12689
11876
|
"unicorn/no-invalid-fetch-options"?: Linter.RuleEntry<[]>;
|
|
12690
11877
|
/**
|
|
12691
11878
|
* Prevent calling `EventTarget#removeEventListener()` with the result of an expression.
|
|
12692
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11879
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-invalid-remove-event-listener.md
|
|
12693
11880
|
*/
|
|
12694
11881
|
"unicorn/no-invalid-remove-event-listener"?: Linter.RuleEntry<[]>;
|
|
12695
11882
|
/**
|
|
12696
11883
|
* Disallow identifiers starting with `new` or `class`.
|
|
12697
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11884
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-keyword-prefix.md
|
|
12698
11885
|
*/
|
|
12699
11886
|
"unicorn/no-keyword-prefix"?: Linter.RuleEntry<UnicornNoKeywordPrefix>;
|
|
12700
11887
|
/**
|
|
12701
11888
|
* Replaced by `unicorn/no-unnecessary-slice-end` which covers more cases.
|
|
12702
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11889
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/deprecated-rules.md#no-length-as-slice-end
|
|
12703
11890
|
* @deprecated
|
|
12704
11891
|
*/
|
|
12705
11892
|
"unicorn/no-length-as-slice-end"?: Linter.RuleEntry<[]>;
|
|
12706
11893
|
/**
|
|
12707
11894
|
* Disallow `if` statements as the only statement in `if` blocks without `else`.
|
|
12708
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11895
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-lonely-if.md
|
|
12709
11896
|
*/
|
|
12710
11897
|
"unicorn/no-lonely-if"?: Linter.RuleEntry<[]>;
|
|
12711
11898
|
/**
|
|
12712
11899
|
* Disallow a magic number as the `depth` argument in `Array#flat(…).`
|
|
12713
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11900
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-magic-array-flat-depth.md
|
|
12714
11901
|
*/
|
|
12715
11902
|
"unicorn/no-magic-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12716
11903
|
/**
|
|
12717
11904
|
* Disallow named usage of default import and export.
|
|
12718
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11905
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-named-default.md
|
|
12719
11906
|
*/
|
|
12720
11907
|
"unicorn/no-named-default"?: Linter.RuleEntry<[]>;
|
|
12721
11908
|
/**
|
|
12722
11909
|
* Disallow negated conditions.
|
|
12723
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11910
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negated-condition.md
|
|
12724
11911
|
*/
|
|
12725
11912
|
"unicorn/no-negated-condition"?: Linter.RuleEntry<[]>;
|
|
12726
11913
|
/**
|
|
12727
11914
|
* Disallow negated expression in equality check.
|
|
12728
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11915
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-negation-in-equality-check.md
|
|
12729
11916
|
*/
|
|
12730
11917
|
"unicorn/no-negation-in-equality-check"?: Linter.RuleEntry<[]>;
|
|
12731
11918
|
/**
|
|
12732
11919
|
* Disallow nested ternary expressions.
|
|
12733
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11920
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-nested-ternary.md
|
|
12734
11921
|
*/
|
|
12735
11922
|
"unicorn/no-nested-ternary"?: Linter.RuleEntry<[]>;
|
|
12736
11923
|
/**
|
|
12737
11924
|
* Disallow `new Array()`.
|
|
12738
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11925
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-array.md
|
|
12739
11926
|
*/
|
|
12740
11927
|
"unicorn/no-new-array"?: Linter.RuleEntry<[]>;
|
|
12741
11928
|
/**
|
|
12742
11929
|
* Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.
|
|
12743
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11930
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-new-buffer.md
|
|
12744
11931
|
*/
|
|
12745
11932
|
"unicorn/no-new-buffer"?: Linter.RuleEntry<[]>;
|
|
12746
11933
|
/**
|
|
12747
11934
|
* Disallow the use of the `null` literal.
|
|
12748
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11935
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-null.md
|
|
12749
11936
|
*/
|
|
12750
11937
|
"unicorn/no-null"?: Linter.RuleEntry<UnicornNoNull>;
|
|
12751
11938
|
/**
|
|
12752
11939
|
* Disallow the use of objects as default parameters.
|
|
12753
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11940
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-object-as-default-parameter.md
|
|
12754
11941
|
*/
|
|
12755
11942
|
"unicorn/no-object-as-default-parameter"?: Linter.RuleEntry<[]>;
|
|
12756
11943
|
/**
|
|
12757
11944
|
* Disallow `process.exit()`.
|
|
12758
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11945
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-process-exit.md
|
|
12759
11946
|
*/
|
|
12760
11947
|
"unicorn/no-process-exit"?: Linter.RuleEntry<[]>;
|
|
12761
11948
|
/**
|
|
12762
11949
|
* Disallow passing single-element arrays to `Promise` methods.
|
|
12763
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11950
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-single-promise-in-promise-methods.md
|
|
12764
11951
|
*/
|
|
12765
11952
|
"unicorn/no-single-promise-in-promise-methods"?: Linter.RuleEntry<[]>;
|
|
12766
11953
|
/**
|
|
12767
11954
|
* Disallow classes that only have static members.
|
|
12768
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11955
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-static-only-class.md
|
|
12769
11956
|
*/
|
|
12770
11957
|
"unicorn/no-static-only-class"?: Linter.RuleEntry<[]>;
|
|
12771
11958
|
/**
|
|
12772
11959
|
* Disallow `then` property.
|
|
12773
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11960
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-thenable.md
|
|
12774
11961
|
*/
|
|
12775
11962
|
"unicorn/no-thenable"?: Linter.RuleEntry<[]>;
|
|
12776
11963
|
/**
|
|
12777
11964
|
* Disallow assigning `this` to a variable.
|
|
12778
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11965
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-this-assignment.md
|
|
12779
11966
|
*/
|
|
12780
11967
|
"unicorn/no-this-assignment"?: Linter.RuleEntry<[]>;
|
|
12781
11968
|
/**
|
|
12782
11969
|
* Disallow comparing `undefined` using `typeof`.
|
|
12783
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11970
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-typeof-undefined.md
|
|
12784
11971
|
*/
|
|
12785
11972
|
"unicorn/no-typeof-undefined"?: Linter.RuleEntry<UnicornNoTypeofUndefined>;
|
|
12786
11973
|
/**
|
|
12787
11974
|
* Disallow using `1` as the `depth` argument of `Array#flat()`.
|
|
12788
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11975
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-flat-depth.md
|
|
12789
11976
|
*/
|
|
12790
11977
|
"unicorn/no-unnecessary-array-flat-depth"?: Linter.RuleEntry<[]>;
|
|
12791
11978
|
/**
|
|
12792
11979
|
* Disallow using `.length` or `Infinity` as the `deleteCount` or `skipCount` argument of `Array#{splice,toSpliced}()`.
|
|
12793
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11980
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-array-splice-count.md
|
|
12794
11981
|
*/
|
|
12795
11982
|
"unicorn/no-unnecessary-array-splice-count"?: Linter.RuleEntry<[]>;
|
|
12796
11983
|
/**
|
|
12797
11984
|
* Disallow awaiting non-promise values.
|
|
12798
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11985
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-await.md
|
|
12799
11986
|
*/
|
|
12800
11987
|
"unicorn/no-unnecessary-await"?: Linter.RuleEntry<[]>;
|
|
12801
11988
|
/**
|
|
12802
11989
|
* Enforce the use of built-in methods instead of unnecessary polyfills.
|
|
12803
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11990
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-polyfills.md
|
|
12804
11991
|
*/
|
|
12805
11992
|
"unicorn/no-unnecessary-polyfills"?: Linter.RuleEntry<UnicornNoUnnecessaryPolyfills>;
|
|
12806
11993
|
/**
|
|
12807
11994
|
* Disallow using `.length` or `Infinity` as the `end` argument of `{Array,String,TypedArray}#slice()`.
|
|
12808
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
11995
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unnecessary-slice-end.md
|
|
12809
11996
|
*/
|
|
12810
11997
|
"unicorn/no-unnecessary-slice-end"?: Linter.RuleEntry<[]>;
|
|
12811
11998
|
/**
|
|
12812
11999
|
* Disallow unreadable array destructuring.
|
|
12813
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12000
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-array-destructuring.md
|
|
12814
12001
|
*/
|
|
12815
12002
|
"unicorn/no-unreadable-array-destructuring"?: Linter.RuleEntry<[]>;
|
|
12816
12003
|
/**
|
|
12817
12004
|
* Disallow unreadable IIFEs.
|
|
12818
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12005
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unreadable-iife.md
|
|
12819
12006
|
*/
|
|
12820
12007
|
"unicorn/no-unreadable-iife"?: Linter.RuleEntry<[]>;
|
|
12821
12008
|
/**
|
|
12822
12009
|
* Disallow unused object properties.
|
|
12823
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12010
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-unused-properties.md
|
|
12824
12011
|
*/
|
|
12825
12012
|
"unicorn/no-unused-properties"?: Linter.RuleEntry<[]>;
|
|
12013
|
+
/**
|
|
12014
|
+
* Disallow unnecessary `Error.captureStackTrace(…)`.
|
|
12015
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-error-capture-stack-trace.md
|
|
12016
|
+
*/
|
|
12017
|
+
"unicorn/no-useless-error-capture-stack-trace"?: Linter.RuleEntry<[]>;
|
|
12826
12018
|
/**
|
|
12827
12019
|
* Disallow useless fallback when spreading in object literals.
|
|
12828
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12020
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-fallback-in-spread.md
|
|
12829
12021
|
*/
|
|
12830
12022
|
"unicorn/no-useless-fallback-in-spread"?: Linter.RuleEntry<[]>;
|
|
12831
12023
|
/**
|
|
12832
12024
|
* Disallow useless array length check.
|
|
12833
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12025
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-length-check.md
|
|
12834
12026
|
*/
|
|
12835
12027
|
"unicorn/no-useless-length-check"?: Linter.RuleEntry<[]>;
|
|
12836
12028
|
/**
|
|
12837
12029
|
* Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks
|
|
12838
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12030
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-promise-resolve-reject.md
|
|
12839
12031
|
*/
|
|
12840
12032
|
"unicorn/no-useless-promise-resolve-reject"?: Linter.RuleEntry<[]>;
|
|
12841
12033
|
/**
|
|
12842
12034
|
* Disallow unnecessary spread.
|
|
12843
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12035
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-spread.md
|
|
12844
12036
|
*/
|
|
12845
12037
|
"unicorn/no-useless-spread"?: Linter.RuleEntry<[]>;
|
|
12846
12038
|
/**
|
|
12847
12039
|
* Disallow useless case in switch statements.
|
|
12848
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12040
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-switch-case.md
|
|
12849
12041
|
*/
|
|
12850
12042
|
"unicorn/no-useless-switch-case"?: Linter.RuleEntry<[]>;
|
|
12851
12043
|
/**
|
|
12852
12044
|
* Disallow useless `undefined`.
|
|
12853
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12045
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-useless-undefined.md
|
|
12854
12046
|
*/
|
|
12855
12047
|
"unicorn/no-useless-undefined"?: Linter.RuleEntry<UnicornNoUselessUndefined>;
|
|
12856
12048
|
/**
|
|
12857
12049
|
* Disallow number literals with zero fractions or dangling dots.
|
|
12858
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12050
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/no-zero-fractions.md
|
|
12859
12051
|
*/
|
|
12860
12052
|
"unicorn/no-zero-fractions"?: Linter.RuleEntry<[]>;
|
|
12861
12053
|
/**
|
|
12862
12054
|
* Enforce proper case for numeric literals.
|
|
12863
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12055
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/number-literal-case.md
|
|
12864
12056
|
*/
|
|
12865
12057
|
"unicorn/number-literal-case"?: Linter.RuleEntry<UnicornNumberLiteralCase>;
|
|
12866
12058
|
/**
|
|
12867
12059
|
* Enforce the style of numeric separators by correctly grouping digits.
|
|
12868
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12060
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/numeric-separators-style.md
|
|
12869
12061
|
*/
|
|
12870
12062
|
"unicorn/numeric-separators-style"?: Linter.RuleEntry<UnicornNumericSeparatorsStyle>;
|
|
12871
12063
|
/**
|
|
12872
12064
|
* Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
12873
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12065
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-add-event-listener.md
|
|
12874
12066
|
*/
|
|
12875
12067
|
"unicorn/prefer-add-event-listener"?: Linter.RuleEntry<UnicornPreferAddEventListener>;
|
|
12876
12068
|
/**
|
|
12877
12069
|
* Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.
|
|
12878
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12070
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-find.md
|
|
12879
12071
|
*/
|
|
12880
12072
|
"unicorn/prefer-array-find"?: Linter.RuleEntry<UnicornPreferArrayFind>;
|
|
12881
12073
|
/**
|
|
12882
12074
|
* Prefer `Array#flat()` over legacy techniques to flatten arrays.
|
|
12883
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12075
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat.md
|
|
12884
12076
|
*/
|
|
12885
12077
|
"unicorn/prefer-array-flat"?: Linter.RuleEntry<UnicornPreferArrayFlat>;
|
|
12886
12078
|
/**
|
|
12887
12079
|
* Prefer `.flatMap(…)` over `.map(…).flat()`.
|
|
12888
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12080
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-flat-map.md
|
|
12889
12081
|
*/
|
|
12890
12082
|
"unicorn/prefer-array-flat-map"?: Linter.RuleEntry<[]>;
|
|
12891
12083
|
/**
|
|
12892
12084
|
* Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.
|
|
12893
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12085
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-index-of.md
|
|
12894
12086
|
*/
|
|
12895
12087
|
"unicorn/prefer-array-index-of"?: Linter.RuleEntry<[]>;
|
|
12896
12088
|
/**
|
|
12897
12089
|
* Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.
|
|
12898
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12090
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-array-some.md
|
|
12899
12091
|
*/
|
|
12900
12092
|
"unicorn/prefer-array-some"?: Linter.RuleEntry<[]>;
|
|
12901
12093
|
/**
|
|
12902
12094
|
* Prefer `.at()` method for index access and `String#charAt()`.
|
|
12903
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12095
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-at.md
|
|
12904
12096
|
*/
|
|
12905
12097
|
"unicorn/prefer-at"?: Linter.RuleEntry<UnicornPreferAt>;
|
|
12906
12098
|
/**
|
|
12907
12099
|
* Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.
|
|
12908
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12100
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-blob-reading-methods.md
|
|
12909
12101
|
*/
|
|
12910
12102
|
"unicorn/prefer-blob-reading-methods"?: Linter.RuleEntry<[]>;
|
|
12103
|
+
/**
|
|
12104
|
+
* Prefer class field declarations over `this` assignments in constructors.
|
|
12105
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-class-fields.md
|
|
12106
|
+
*/
|
|
12107
|
+
"unicorn/prefer-class-fields"?: Linter.RuleEntry<[]>;
|
|
12911
12108
|
/**
|
|
12912
12109
|
* Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.
|
|
12913
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12110
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-code-point.md
|
|
12914
12111
|
*/
|
|
12915
12112
|
"unicorn/prefer-code-point"?: Linter.RuleEntry<[]>;
|
|
12916
12113
|
/**
|
|
12917
12114
|
* Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.
|
|
12918
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12115
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-date-now.md
|
|
12919
12116
|
*/
|
|
12920
12117
|
"unicorn/prefer-date-now"?: Linter.RuleEntry<[]>;
|
|
12921
12118
|
/**
|
|
12922
12119
|
* Prefer default parameters over reassignment.
|
|
12923
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12120
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-default-parameters.md
|
|
12924
12121
|
*/
|
|
12925
12122
|
"unicorn/prefer-default-parameters"?: Linter.RuleEntry<[]>;
|
|
12926
12123
|
/**
|
|
12927
12124
|
* Prefer `Node#append()` over `Node#appendChild()`.
|
|
12928
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12125
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-append.md
|
|
12929
12126
|
*/
|
|
12930
12127
|
"unicorn/prefer-dom-node-append"?: Linter.RuleEntry<[]>;
|
|
12931
12128
|
/**
|
|
12932
12129
|
* Prefer using `.dataset` on DOM elements over calling attribute methods.
|
|
12933
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12130
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-dataset.md
|
|
12934
12131
|
*/
|
|
12935
12132
|
"unicorn/prefer-dom-node-dataset"?: Linter.RuleEntry<[]>;
|
|
12936
12133
|
/**
|
|
12937
12134
|
* Prefer `childNode.remove()` over `parentNode.removeChild(childNode)`.
|
|
12938
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12135
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-remove.md
|
|
12939
12136
|
*/
|
|
12940
12137
|
"unicorn/prefer-dom-node-remove"?: Linter.RuleEntry<[]>;
|
|
12941
12138
|
/**
|
|
12942
12139
|
* Prefer `.textContent` over `.innerText`.
|
|
12943
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12140
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-dom-node-text-content.md
|
|
12944
12141
|
*/
|
|
12945
12142
|
"unicorn/prefer-dom-node-text-content"?: Linter.RuleEntry<[]>;
|
|
12946
12143
|
/**
|
|
12947
12144
|
* Prefer `EventTarget` over `EventEmitter`.
|
|
12948
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12145
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-event-target.md
|
|
12949
12146
|
*/
|
|
12950
12147
|
"unicorn/prefer-event-target"?: Linter.RuleEntry<[]>;
|
|
12951
12148
|
/**
|
|
12952
12149
|
* Prefer `export…from` when re-exporting.
|
|
12953
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12150
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-export-from.md
|
|
12954
12151
|
*/
|
|
12955
12152
|
"unicorn/prefer-export-from"?: Linter.RuleEntry<UnicornPreferExportFrom>;
|
|
12956
12153
|
/**
|
|
12957
12154
|
* Prefer `globalThis` over `window`, `self`, and `global`.
|
|
12958
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12155
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-global-this.md
|
|
12959
12156
|
*/
|
|
12960
12157
|
"unicorn/prefer-global-this"?: Linter.RuleEntry<[]>;
|
|
12961
12158
|
/**
|
|
12962
12159
|
* Prefer `import.meta.{dirname,filename}` over legacy techniques for getting file paths.
|
|
12963
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12160
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-import-meta-properties.md
|
|
12964
12161
|
*/
|
|
12965
12162
|
"unicorn/prefer-import-meta-properties"?: Linter.RuleEntry<[]>;
|
|
12966
12163
|
/**
|
|
12967
12164
|
* Prefer `.includes()` over `.indexOf()`, `.lastIndexOf()`, and `Array#some()` when checking for existence or non-existence.
|
|
12968
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12165
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-includes.md
|
|
12969
12166
|
*/
|
|
12970
12167
|
"unicorn/prefer-includes"?: Linter.RuleEntry<[]>;
|
|
12971
12168
|
/**
|
|
12972
12169
|
* Prefer reading a JSON file as a buffer.
|
|
12973
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12170
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-json-parse-buffer.md
|
|
12974
12171
|
*/
|
|
12975
12172
|
"unicorn/prefer-json-parse-buffer"?: Linter.RuleEntry<[]>;
|
|
12976
12173
|
/**
|
|
12977
12174
|
* Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.
|
|
12978
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12175
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-keyboard-event-key.md
|
|
12979
12176
|
*/
|
|
12980
12177
|
"unicorn/prefer-keyboard-event-key"?: Linter.RuleEntry<[]>;
|
|
12981
12178
|
/**
|
|
12982
12179
|
* Prefer using a logical operator over a ternary.
|
|
12983
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12180
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-logical-operator-over-ternary.md
|
|
12984
12181
|
*/
|
|
12985
12182
|
"unicorn/prefer-logical-operator-over-ternary"?: Linter.RuleEntry<[]>;
|
|
12986
12183
|
/**
|
|
12987
12184
|
* Prefer `Math.min()` and `Math.max()` over ternaries for simple comparisons.
|
|
12988
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12185
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-min-max.md
|
|
12989
12186
|
*/
|
|
12990
12187
|
"unicorn/prefer-math-min-max"?: Linter.RuleEntry<[]>;
|
|
12991
12188
|
/**
|
|
12992
12189
|
* Enforce the use of `Math.trunc` instead of bitwise operators.
|
|
12993
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12190
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-math-trunc.md
|
|
12994
12191
|
*/
|
|
12995
12192
|
"unicorn/prefer-math-trunc"?: Linter.RuleEntry<[]>;
|
|
12996
12193
|
/**
|
|
12997
12194
|
* Prefer `.before()` over `.insertBefore()`, `.replaceWith()` over `.replaceChild()`, prefer one of `.before()`, `.after()`, `.append()` or `.prepend()` over `insertAdjacentText()` and `insertAdjacentElement()`.
|
|
12998
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12195
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-dom-apis.md
|
|
12999
12196
|
*/
|
|
13000
12197
|
"unicorn/prefer-modern-dom-apis"?: Linter.RuleEntry<[]>;
|
|
13001
12198
|
/**
|
|
13002
12199
|
* Prefer modern `Math` APIs over legacy patterns.
|
|
13003
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12200
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-modern-math-apis.md
|
|
13004
12201
|
*/
|
|
13005
12202
|
"unicorn/prefer-modern-math-apis"?: Linter.RuleEntry<[]>;
|
|
13006
12203
|
/**
|
|
13007
12204
|
* Prefer JavaScript modules (ESM) over CommonJS.
|
|
13008
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12205
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-module.md
|
|
13009
12206
|
*/
|
|
13010
12207
|
"unicorn/prefer-module"?: Linter.RuleEntry<[]>;
|
|
13011
12208
|
/**
|
|
13012
12209
|
* Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.
|
|
13013
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12210
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-native-coercion-functions.md
|
|
13014
12211
|
*/
|
|
13015
12212
|
"unicorn/prefer-native-coercion-functions"?: Linter.RuleEntry<[]>;
|
|
13016
12213
|
/**
|
|
13017
12214
|
* Prefer negative index over `.length - index` when possible.
|
|
13018
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12215
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-negative-index.md
|
|
13019
12216
|
*/
|
|
13020
12217
|
"unicorn/prefer-negative-index"?: Linter.RuleEntry<[]>;
|
|
13021
12218
|
/**
|
|
13022
12219
|
* Prefer using the `node:` protocol when importing Node.js builtin modules.
|
|
13023
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12220
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-node-protocol.md
|
|
13024
12221
|
*/
|
|
13025
12222
|
"unicorn/prefer-node-protocol"?: Linter.RuleEntry<[]>;
|
|
13026
12223
|
/**
|
|
13027
12224
|
* Prefer `Number` static properties over global ones.
|
|
13028
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12225
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-number-properties.md
|
|
13029
12226
|
*/
|
|
13030
12227
|
"unicorn/prefer-number-properties"?: Linter.RuleEntry<UnicornPreferNumberProperties>;
|
|
13031
12228
|
/**
|
|
13032
12229
|
* Prefer using `Object.fromEntries(…)` to transform a list of key-value pairs into an object.
|
|
13033
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12230
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-object-from-entries.md
|
|
13034
12231
|
*/
|
|
13035
12232
|
"unicorn/prefer-object-from-entries"?: Linter.RuleEntry<UnicornPreferObjectFromEntries>;
|
|
13036
12233
|
/**
|
|
13037
12234
|
* Prefer omitting the `catch` binding parameter.
|
|
13038
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12235
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-optional-catch-binding.md
|
|
13039
12236
|
*/
|
|
13040
12237
|
"unicorn/prefer-optional-catch-binding"?: Linter.RuleEntry<[]>;
|
|
13041
12238
|
/**
|
|
13042
12239
|
* Prefer borrowing methods from the prototype instead of the instance.
|
|
13043
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12240
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-prototype-methods.md
|
|
13044
12241
|
*/
|
|
13045
12242
|
"unicorn/prefer-prototype-methods"?: Linter.RuleEntry<[]>;
|
|
13046
12243
|
/**
|
|
13047
12244
|
* Prefer `.querySelector()` over `.getElementById()`, `.querySelectorAll()` over `.getElementsByClassName()` and `.getElementsByTagName()` and `.getElementsByName()`.
|
|
13048
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12245
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-query-selector.md
|
|
13049
12246
|
*/
|
|
13050
12247
|
"unicorn/prefer-query-selector"?: Linter.RuleEntry<[]>;
|
|
13051
12248
|
/**
|
|
13052
12249
|
* Prefer `Reflect.apply()` over `Function#apply()`.
|
|
13053
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12250
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-reflect-apply.md
|
|
13054
12251
|
*/
|
|
13055
12252
|
"unicorn/prefer-reflect-apply"?: Linter.RuleEntry<[]>;
|
|
13056
12253
|
/**
|
|
13057
12254
|
* Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.
|
|
13058
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12255
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-regexp-test.md
|
|
13059
12256
|
*/
|
|
13060
12257
|
"unicorn/prefer-regexp-test"?: Linter.RuleEntry<[]>;
|
|
13061
12258
|
/**
|
|
13062
12259
|
* Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.
|
|
13063
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12260
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-has.md
|
|
13064
12261
|
*/
|
|
13065
12262
|
"unicorn/prefer-set-has"?: Linter.RuleEntry<[]>;
|
|
13066
12263
|
/**
|
|
13067
12264
|
* Prefer using `Set#size` instead of `Array#length`.
|
|
13068
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12265
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-set-size.md
|
|
13069
12266
|
*/
|
|
13070
12267
|
"unicorn/prefer-set-size"?: Linter.RuleEntry<[]>;
|
|
13071
12268
|
/**
|
|
13072
12269
|
* Enforce combining multiple `Array#push()`, `Element#classList.{add,remove}()`, and `importScripts()` into one call.
|
|
13073
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12270
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-single-call.md
|
|
13074
12271
|
*/
|
|
13075
12272
|
"unicorn/prefer-single-call"?: Linter.RuleEntry<UnicornPreferSingleCall>;
|
|
13076
12273
|
/**
|
|
13077
12274
|
* Prefer the spread operator over `Array.from(…)`, `Array#concat(…)`, `Array#{slice,toSpliced}()` and `String#split('')`.
|
|
13078
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12275
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-spread.md
|
|
13079
12276
|
*/
|
|
13080
12277
|
"unicorn/prefer-spread"?: Linter.RuleEntry<[]>;
|
|
13081
12278
|
/**
|
|
13082
12279
|
* Prefer using the `String.raw` tag to avoid escaping `\`.
|
|
13083
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12280
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-raw.md
|
|
13084
12281
|
*/
|
|
13085
12282
|
"unicorn/prefer-string-raw"?: Linter.RuleEntry<[]>;
|
|
13086
12283
|
/**
|
|
13087
12284
|
* Prefer `String#replaceAll()` over regex searches with the global flag.
|
|
13088
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12285
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-replace-all.md
|
|
13089
12286
|
*/
|
|
13090
12287
|
"unicorn/prefer-string-replace-all"?: Linter.RuleEntry<[]>;
|
|
13091
12288
|
/**
|
|
13092
12289
|
* Prefer `String#slice()` over `String#substr()` and `String#substring()`.
|
|
13093
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12290
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-slice.md
|
|
13094
12291
|
*/
|
|
13095
12292
|
"unicorn/prefer-string-slice"?: Linter.RuleEntry<[]>;
|
|
13096
12293
|
/**
|
|
13097
12294
|
* Prefer `String#startsWith()` & `String#endsWith()` over `RegExp#test()`.
|
|
13098
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12295
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-starts-ends-with.md
|
|
13099
12296
|
*/
|
|
13100
12297
|
"unicorn/prefer-string-starts-ends-with"?: Linter.RuleEntry<[]>;
|
|
13101
12298
|
/**
|
|
13102
12299
|
* Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.
|
|
13103
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12300
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-string-trim-start-end.md
|
|
13104
12301
|
*/
|
|
13105
12302
|
"unicorn/prefer-string-trim-start-end"?: Linter.RuleEntry<[]>;
|
|
13106
12303
|
/**
|
|
13107
12304
|
* Prefer using `structuredClone` to create a deep clone.
|
|
13108
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12305
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-structured-clone.md
|
|
13109
12306
|
*/
|
|
13110
12307
|
"unicorn/prefer-structured-clone"?: Linter.RuleEntry<UnicornPreferStructuredClone>;
|
|
13111
12308
|
/**
|
|
13112
12309
|
* Prefer `switch` over multiple `else-if`.
|
|
13113
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12310
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-switch.md
|
|
13114
12311
|
*/
|
|
13115
12312
|
"unicorn/prefer-switch"?: Linter.RuleEntry<UnicornPreferSwitch>;
|
|
13116
12313
|
/**
|
|
13117
12314
|
* Prefer ternary expressions over simple `if-else` statements.
|
|
13118
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12315
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-ternary.md
|
|
13119
12316
|
*/
|
|
13120
12317
|
"unicorn/prefer-ternary"?: Linter.RuleEntry<UnicornPreferTernary>;
|
|
13121
12318
|
/**
|
|
13122
12319
|
* Prefer top-level await over top-level promises and async function calls.
|
|
13123
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12320
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-top-level-await.md
|
|
13124
12321
|
*/
|
|
13125
12322
|
"unicorn/prefer-top-level-await"?: Linter.RuleEntry<[]>;
|
|
13126
12323
|
/**
|
|
13127
12324
|
* Enforce throwing `TypeError` in type checking conditions.
|
|
13128
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12325
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prefer-type-error.md
|
|
13129
12326
|
*/
|
|
13130
12327
|
"unicorn/prefer-type-error"?: Linter.RuleEntry<[]>;
|
|
13131
12328
|
/**
|
|
13132
12329
|
* Prevent abbreviations.
|
|
13133
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12330
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/prevent-abbreviations.md
|
|
13134
12331
|
*/
|
|
13135
12332
|
"unicorn/prevent-abbreviations"?: Linter.RuleEntry<UnicornPreventAbbreviations>;
|
|
13136
12333
|
/**
|
|
13137
12334
|
* Enforce consistent relative URL style.
|
|
13138
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12335
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/relative-url-style.md
|
|
13139
12336
|
*/
|
|
13140
12337
|
"unicorn/relative-url-style"?: Linter.RuleEntry<UnicornRelativeUrlStyle>;
|
|
13141
12338
|
/**
|
|
13142
12339
|
* Enforce using the separator argument with `Array#join()`.
|
|
13143
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12340
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-array-join-separator.md
|
|
13144
12341
|
*/
|
|
13145
12342
|
"unicorn/require-array-join-separator"?: Linter.RuleEntry<[]>;
|
|
12343
|
+
/**
|
|
12344
|
+
* Require non-empty specifier list in import and export statements.
|
|
12345
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-module-specifiers.md
|
|
12346
|
+
*/
|
|
12347
|
+
"unicorn/require-module-specifiers"?: Linter.RuleEntry<[]>;
|
|
13146
12348
|
/**
|
|
13147
12349
|
* Enforce using the digits argument with `Number#toFixed()`.
|
|
13148
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12350
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-number-to-fixed-digits-argument.md
|
|
13149
12351
|
*/
|
|
13150
12352
|
"unicorn/require-number-to-fixed-digits-argument"?: Linter.RuleEntry<[]>;
|
|
13151
12353
|
/**
|
|
13152
12354
|
* Enforce using the `targetOrigin` argument with `window.postMessage()`.
|
|
13153
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12355
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/require-post-message-target-origin.md
|
|
13154
12356
|
*/
|
|
13155
12357
|
"unicorn/require-post-message-target-origin"?: Linter.RuleEntry<[]>;
|
|
13156
12358
|
/**
|
|
13157
12359
|
* Enforce better string content.
|
|
13158
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12360
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/string-content.md
|
|
13159
12361
|
*/
|
|
13160
12362
|
"unicorn/string-content"?: Linter.RuleEntry<UnicornStringContent>;
|
|
13161
12363
|
/**
|
|
13162
12364
|
* Enforce consistent brace style for `case` clauses.
|
|
13163
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12365
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/switch-case-braces.md
|
|
13164
12366
|
*/
|
|
13165
12367
|
"unicorn/switch-case-braces"?: Linter.RuleEntry<UnicornSwitchCaseBraces>;
|
|
13166
12368
|
/**
|
|
13167
12369
|
* Fix whitespace-insensitive template indentation.
|
|
13168
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12370
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/template-indent.md
|
|
13169
12371
|
*/
|
|
13170
12372
|
"unicorn/template-indent"?: Linter.RuleEntry<UnicornTemplateIndent>;
|
|
13171
12373
|
/**
|
|
13172
12374
|
* Enforce consistent case for text encoding identifiers.
|
|
13173
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12375
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/text-encoding-identifier-case.md
|
|
13174
12376
|
*/
|
|
13175
12377
|
"unicorn/text-encoding-identifier-case"?: Linter.RuleEntry<[]>;
|
|
13176
12378
|
/**
|
|
13177
12379
|
* Require `new` when creating an error.
|
|
13178
|
-
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/
|
|
12380
|
+
* @see https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v60.0.0/docs/rules/throw-new-error.md
|
|
13179
12381
|
*/
|
|
13180
12382
|
"unicorn/throw-new-error"?: Linter.RuleEntry<[]>;
|
|
13181
12383
|
}
|
|
@@ -13243,6 +12445,10 @@ interface _UnicornImportStyle_BooleanObject {
|
|
|
13243
12445
|
type UnicornNoArrayReduce = [] | [{
|
|
13244
12446
|
allowSimpleOperations?: boolean;
|
|
13245
12447
|
}];
|
|
12448
|
+
// ----- unicorn/no-array-reverse -----
|
|
12449
|
+
type UnicornNoArrayReverse = [] | [{
|
|
12450
|
+
allowExpressionStatement?: boolean;
|
|
12451
|
+
}];
|
|
13246
12452
|
// ----- unicorn/no-instanceof-builtins -----
|
|
13247
12453
|
type UnicornNoInstanceofBuiltins = [] | [{
|
|
13248
12454
|
useErrorIsError?: boolean;
|
|
@@ -14534,7 +13740,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14534
13740
|
type DefineConfig = typeof defineConfig;
|
|
14535
13741
|
//#endregion
|
|
14536
13742
|
//#region src/generated/version.d.ts
|
|
14537
|
-
declare const VERSION = "0.4.
|
|
13743
|
+
declare const VERSION = "0.4.6";
|
|
14538
13744
|
declare namespace globs_d_exports {
|
|
14539
13745
|
export { GLOB_ALL_SRC, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_JS_SRC_EXT, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSCONFIG, GLOB_TSX, GLOB_YAML };
|
|
14540
13746
|
}
|
|
@@ -14842,14 +14048,14 @@ declare function importPluginReact(): Promise<{
|
|
|
14842
14048
|
"react/jsx-uses-react": 0;
|
|
14843
14049
|
};
|
|
14844
14050
|
};
|
|
14845
|
-
flat: Record<string,
|
|
14051
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14846
14052
|
} & {
|
|
14847
|
-
flat: Record<string,
|
|
14053
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
14848
14054
|
};
|
|
14849
14055
|
};
|
|
14850
14056
|
}>;
|
|
14851
14057
|
declare function importPluginReactHooks(): Promise<{
|
|
14852
|
-
pluginReactHooks: typeof
|
|
14058
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
14853
14059
|
}>;
|
|
14854
14060
|
declare function importPluginReactRefresh(): Promise<{
|
|
14855
14061
|
pluginReactRefresh: {
|
|
@@ -15141,12 +14347,12 @@ declare function importReactPlugins(): Promise<{
|
|
|
15141
14347
|
"react/jsx-uses-react": 0;
|
|
15142
14348
|
};
|
|
15143
14349
|
};
|
|
15144
|
-
flat: Record<string,
|
|
14350
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15145
14351
|
} & {
|
|
15146
|
-
flat: Record<string,
|
|
14352
|
+
flat: Record<string, eslint_plugin_react0.ReactFlatConfig>;
|
|
15147
14353
|
};
|
|
15148
14354
|
};
|
|
15149
|
-
pluginReactHooks: typeof
|
|
14355
|
+
pluginReactHooks: typeof eslint_plugin_react_hooks0;
|
|
15150
14356
|
pluginReactRefresh: {
|
|
15151
14357
|
rules: Record<string, any>;
|
|
15152
14358
|
configs: {
|
|
@@ -15170,11 +14376,11 @@ declare function importReactPlugins(): Promise<{
|
|
|
15170
14376
|
};
|
|
15171
14377
|
}>;
|
|
15172
14378
|
declare function importParserJsonc(): Promise<{
|
|
15173
|
-
parserJsonc: typeof
|
|
14379
|
+
parserJsonc: typeof jsonc_eslint_parser0;
|
|
15174
14380
|
}>;
|
|
15175
14381
|
declare function importPluginJsonc(): Promise<{
|
|
15176
14382
|
pluginJsonc: {
|
|
15177
|
-
meta: typeof
|
|
14383
|
+
meta: typeof eslint_plugin_jsonc_meta0;
|
|
15178
14384
|
configs: {
|
|
15179
14385
|
base: {
|
|
15180
14386
|
plugins: string[];
|
|
@@ -15318,7 +14524,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15318
14524
|
} | {
|
|
15319
14525
|
files: string[];
|
|
15320
14526
|
languageOptions: {
|
|
15321
|
-
parser: typeof
|
|
14527
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15322
14528
|
};
|
|
15323
14529
|
rules: {
|
|
15324
14530
|
strict: "off";
|
|
@@ -15337,7 +14543,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15337
14543
|
} | {
|
|
15338
14544
|
files: string[];
|
|
15339
14545
|
languageOptions: {
|
|
15340
|
-
parser: typeof
|
|
14546
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15341
14547
|
};
|
|
15342
14548
|
rules: {
|
|
15343
14549
|
strict: "off";
|
|
@@ -15388,7 +14594,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15388
14594
|
} | {
|
|
15389
14595
|
files: string[];
|
|
15390
14596
|
languageOptions: {
|
|
15391
|
-
parser: typeof
|
|
14597
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15392
14598
|
};
|
|
15393
14599
|
rules: {
|
|
15394
14600
|
strict: "off";
|
|
@@ -15437,7 +14643,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15437
14643
|
} | {
|
|
15438
14644
|
files: string[];
|
|
15439
14645
|
languageOptions: {
|
|
15440
|
-
parser: typeof
|
|
14646
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15441
14647
|
};
|
|
15442
14648
|
rules: {
|
|
15443
14649
|
strict: "off";
|
|
@@ -15477,7 +14683,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15477
14683
|
} | {
|
|
15478
14684
|
files: string[];
|
|
15479
14685
|
languageOptions: {
|
|
15480
|
-
parser: typeof
|
|
14686
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15481
14687
|
};
|
|
15482
14688
|
rules: {
|
|
15483
14689
|
strict: "off";
|
|
@@ -15513,7 +14719,7 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15513
14719
|
} | {
|
|
15514
14720
|
files: string[];
|
|
15515
14721
|
languageOptions: {
|
|
15516
|
-
parser: typeof
|
|
14722
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15517
14723
|
};
|
|
15518
14724
|
rules: {
|
|
15519
14725
|
strict: "off";
|
|
@@ -15528,18 +14734,18 @@ declare function importPluginJsonc(): Promise<{
|
|
|
15528
14734
|
})[];
|
|
15529
14735
|
};
|
|
15530
14736
|
rules: {
|
|
15531
|
-
[key: string]:
|
|
14737
|
+
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
15532
14738
|
};
|
|
15533
|
-
parseForESLint: typeof
|
|
15534
|
-
parseJSON: typeof
|
|
15535
|
-
traverseNodes: typeof
|
|
15536
|
-
getStaticJSONValue: typeof
|
|
14739
|
+
parseForESLint: typeof jsonc_eslint_parser0.parseForESLint;
|
|
14740
|
+
parseJSON: typeof jsonc_eslint_parser0.parseJSON;
|
|
14741
|
+
traverseNodes: typeof jsonc_eslint_parser0.traverseNodes;
|
|
14742
|
+
getStaticJSONValue: typeof jsonc_eslint_parser0.getStaticJSONValue;
|
|
15537
14743
|
};
|
|
15538
14744
|
}>;
|
|
15539
14745
|
declare function importJsoncLibs(): Promise<{
|
|
15540
|
-
parserJsonc: typeof
|
|
14746
|
+
parserJsonc: typeof jsonc_eslint_parser0;
|
|
15541
14747
|
pluginJsonc: {
|
|
15542
|
-
meta: typeof
|
|
14748
|
+
meta: typeof eslint_plugin_jsonc_meta0;
|
|
15543
14749
|
configs: {
|
|
15544
14750
|
base: {
|
|
15545
14751
|
plugins: string[];
|
|
@@ -15683,7 +14889,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15683
14889
|
} | {
|
|
15684
14890
|
files: string[];
|
|
15685
14891
|
languageOptions: {
|
|
15686
|
-
parser: typeof
|
|
14892
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15687
14893
|
};
|
|
15688
14894
|
rules: {
|
|
15689
14895
|
strict: "off";
|
|
@@ -15702,7 +14908,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15702
14908
|
} | {
|
|
15703
14909
|
files: string[];
|
|
15704
14910
|
languageOptions: {
|
|
15705
|
-
parser: typeof
|
|
14911
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15706
14912
|
};
|
|
15707
14913
|
rules: {
|
|
15708
14914
|
strict: "off";
|
|
@@ -15753,7 +14959,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15753
14959
|
} | {
|
|
15754
14960
|
files: string[];
|
|
15755
14961
|
languageOptions: {
|
|
15756
|
-
parser: typeof
|
|
14962
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15757
14963
|
};
|
|
15758
14964
|
rules: {
|
|
15759
14965
|
strict: "off";
|
|
@@ -15802,7 +15008,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15802
15008
|
} | {
|
|
15803
15009
|
files: string[];
|
|
15804
15010
|
languageOptions: {
|
|
15805
|
-
parser: typeof
|
|
15011
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15806
15012
|
};
|
|
15807
15013
|
rules: {
|
|
15808
15014
|
strict: "off";
|
|
@@ -15842,7 +15048,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15842
15048
|
} | {
|
|
15843
15049
|
files: string[];
|
|
15844
15050
|
languageOptions: {
|
|
15845
|
-
parser: typeof
|
|
15051
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15846
15052
|
};
|
|
15847
15053
|
rules: {
|
|
15848
15054
|
strict: "off";
|
|
@@ -15878,7 +15084,7 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15878
15084
|
} | {
|
|
15879
15085
|
files: string[];
|
|
15880
15086
|
languageOptions: {
|
|
15881
|
-
parser: typeof
|
|
15087
|
+
parser: typeof jsonc_eslint_parser0;
|
|
15882
15088
|
};
|
|
15883
15089
|
rules: {
|
|
15884
15090
|
strict: "off";
|
|
@@ -15893,18 +15099,18 @@ declare function importJsoncLibs(): Promise<{
|
|
|
15893
15099
|
})[];
|
|
15894
15100
|
};
|
|
15895
15101
|
rules: {
|
|
15896
|
-
[key: string]:
|
|
15102
|
+
[key: string]: eslint_plugin_jsonc_types0.RuleModule<unknown[]>;
|
|
15897
15103
|
};
|
|
15898
|
-
parseForESLint: typeof
|
|
15899
|
-
parseJSON: typeof
|
|
15900
|
-
traverseNodes: typeof
|
|
15901
|
-
getStaticJSONValue: typeof
|
|
15104
|
+
parseForESLint: typeof jsonc_eslint_parser0.parseForESLint;
|
|
15105
|
+
parseJSON: typeof jsonc_eslint_parser0.parseJSON;
|
|
15106
|
+
traverseNodes: typeof jsonc_eslint_parser0.traverseNodes;
|
|
15107
|
+
getStaticJSONValue: typeof jsonc_eslint_parser0.getStaticJSONValue;
|
|
15902
15108
|
};
|
|
15903
15109
|
}>;
|
|
15904
15110
|
declare function importYmlLibs(): Promise<{
|
|
15905
|
-
parserYaml: typeof
|
|
15111
|
+
parserYaml: typeof yaml_eslint_parser0;
|
|
15906
15112
|
pluginYaml: {
|
|
15907
|
-
meta: typeof
|
|
15113
|
+
meta: typeof eslint_plugin_yml_lib_meta_js0;
|
|
15908
15114
|
configs: {
|
|
15909
15115
|
base: {
|
|
15910
15116
|
plugins: string[];
|
|
@@ -15982,7 +15188,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
15982
15188
|
} | {
|
|
15983
15189
|
files: string[];
|
|
15984
15190
|
languageOptions: {
|
|
15985
|
-
parser: typeof
|
|
15191
|
+
parser: typeof yaml_eslint_parser0;
|
|
15986
15192
|
};
|
|
15987
15193
|
rules: {
|
|
15988
15194
|
"no-irregular-whitespace": "off";
|
|
@@ -16001,7 +15207,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
16001
15207
|
} | {
|
|
16002
15208
|
files: string[];
|
|
16003
15209
|
languageOptions: {
|
|
16004
|
-
parser: typeof
|
|
15210
|
+
parser: typeof yaml_eslint_parser0;
|
|
16005
15211
|
};
|
|
16006
15212
|
rules: {
|
|
16007
15213
|
"no-irregular-whitespace": "off";
|
|
@@ -16030,7 +15236,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
16030
15236
|
} | {
|
|
16031
15237
|
files: string[];
|
|
16032
15238
|
languageOptions: {
|
|
16033
|
-
parser: typeof
|
|
15239
|
+
parser: typeof yaml_eslint_parser0;
|
|
16034
15240
|
};
|
|
16035
15241
|
rules: {
|
|
16036
15242
|
"no-irregular-whitespace": "off";
|
|
@@ -16072,7 +15278,7 @@ declare function importYmlLibs(): Promise<{
|
|
|
16072
15278
|
} | {
|
|
16073
15279
|
files: string[];
|
|
16074
15280
|
languageOptions: {
|
|
16075
|
-
parser: typeof
|
|
15281
|
+
parser: typeof yaml_eslint_parser0;
|
|
16076
15282
|
};
|
|
16077
15283
|
rules: {
|
|
16078
15284
|
"no-irregular-whitespace": "off";
|
|
@@ -16098,16 +15304,16 @@ declare function importYmlLibs(): Promise<{
|
|
|
16098
15304
|
})[];
|
|
16099
15305
|
};
|
|
16100
15306
|
rules: {
|
|
16101
|
-
[key: string]:
|
|
15307
|
+
[key: string]: eslint_plugin_yml_lib_types_js0.RuleModule;
|
|
16102
15308
|
};
|
|
16103
15309
|
};
|
|
16104
15310
|
}>;
|
|
16105
15311
|
declare function importPluginMarkdown(): Promise<{
|
|
16106
|
-
pluginMarkdown: typeof
|
|
15312
|
+
pluginMarkdown: typeof _eslint_markdown0.default;
|
|
16107
15313
|
}>;
|
|
16108
15314
|
declare function importPluginJsdoc(): Promise<{
|
|
16109
15315
|
pluginJsdoc: eslint0.ESLint.Plugin & {
|
|
16110
|
-
configs: Record<`flat/${
|
|
15316
|
+
configs: Record<`flat/${eslint_plugin_jsdoc0.ConfigGroups}${eslint_plugin_jsdoc0.ConfigVariants}${eslint_plugin_jsdoc0.ErrorLevelVariants}`, eslint0.Linter.Config>;
|
|
16111
15317
|
};
|
|
16112
15318
|
}>;
|
|
16113
15319
|
declare function importPluginTsdoc(): Promise<{
|
|
@@ -16119,8 +15325,8 @@ declare function importPluginTsdoc(): Promise<{
|
|
|
16119
15325
|
}>;
|
|
16120
15326
|
declare function importPluginStylistic(): Promise<{
|
|
16121
15327
|
pluginStylistic: {
|
|
16122
|
-
rules:
|
|
16123
|
-
configs: eslint0.ESLint.Plugin["configs"] &
|
|
15328
|
+
rules: _stylistic_eslint_plugin0.Rules;
|
|
15329
|
+
configs: eslint0.ESLint.Plugin["configs"] & _stylistic_eslint_plugin0.Configs;
|
|
16124
15330
|
};
|
|
16125
15331
|
}>;
|
|
16126
15332
|
//#endregion
|
|
@@ -16193,4 +15399,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
16193
15399
|
declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
16194
15400
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
16195
15401
|
//#endregion
|
|
16196
|
-
export { Awaitable, Config, EslintConfigFn, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs_d_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importPluginUnicorn, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments,
|
|
15402
|
+
export { Awaitable, Config, EslintConfigFn, LanguageOptions, OptionsCommon, OptionsComponentExts, OptionsConfig, OptionsFiles, OptionsHasTypeScript, OptionsIsInEditor, OptionsOverrides, OptionsPrefix, OptionsReact, OptionsStylistic, OptionsTypeScriptParserOptions, OptionsTypeScriptWithTypes, OptionsTypescript, RenamePefix, RuleName, SLOW_RULES, StylisticConfig, TailwindEslintSettings, TailwindOptions, TypedFlatConfigItemWithId, UnPromise, VERSION, changeRuleEntrySeverity, combine, combineAsync, jsse as default, defineConfig, error2warn, globs_d_exports as globs, importJsoncLibs, importParserJsonc, importPluginJsdoc, importPluginJsonc, importPluginMarkdown, importPluginReact, importPluginReactHooks, importPluginReactRefresh, importPluginStylistic, importPluginTsdoc, importPluginUnicorn, importReactPlugins, importYmlLibs, interopDefault, isCI, isInEditor, jsse, jsseReact, parserPlain, parserTs, pluginAntfu, pluginDeMorgan, pluginEslintComments, pluginImportLite, pluginN, pluginPerfectionist, pluginPnpm, pluginTs, pluginUnicorn, pluginUnusedImports, renameRules, turnOffRules, uniqueStrings, warn2error };
|