@jsse/eslint-config 0.4.4 → 0.4.5
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 +6 -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 +0 -10
- 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 +81 -906
- package/dist/index.js +10 -20
- package/dist/{version-eB55legw.js → version-B0HyilUh.js} +1 -1
- package/package.json +10 -13
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ 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";
|
|
@@ -3236,488 +3236,56 @@ interface IgnoresRuleOptions {}
|
|
|
3236
3236
|
interface ImportsRuleOptions {
|
|
3237
3237
|
/**
|
|
3238
3238
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3239
|
-
* @see https://github.com/
|
|
3239
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
3240
3240
|
*/
|
|
3241
3241
|
"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
3242
|
/**
|
|
3268
3243
|
* Ensure all imports appear before other statements.
|
|
3269
|
-
* @see https://github.com/
|
|
3244
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
3270
3245
|
*/
|
|
3271
3246
|
"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
3247
|
/**
|
|
3299
3248
|
* Enforce a newline after import statements.
|
|
3300
|
-
* @see https://github.com/
|
|
3249
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
3301
3250
|
*/
|
|
3302
3251
|
"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
3252
|
/**
|
|
3329
3253
|
* Forbid default exports.
|
|
3330
|
-
* @see https://github.com/
|
|
3254
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
3331
3255
|
*/
|
|
3332
3256
|
"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
3257
|
/**
|
|
3339
3258
|
* Forbid repeated import of the same module in multiple places.
|
|
3340
|
-
* @see https://github.com/
|
|
3259
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
3341
3260
|
*/
|
|
3342
3261
|
"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
3262
|
/**
|
|
3369
3263
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
3370
|
-
* @see https://github.com/
|
|
3264
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
3371
3265
|
*/
|
|
3372
3266
|
"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
3267
|
/**
|
|
3384
3268
|
* Forbid named default exports.
|
|
3385
|
-
* @see https://github.com/
|
|
3269
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
3386
3270
|
*/
|
|
3387
3271
|
"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
3272
|
}
|
|
3474
3273
|
|
|
3475
3274
|
/* ======= Declarations ======= */
|
|
3476
3275
|
// ----- 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
|
-
}];
|
|
3276
|
+
type ImportConsistentTypeSpecifierStyle$1 = [] | ["top-level" | "inline" | "prefer-top-level"];
|
|
3521
3277
|
// ----- import/first -----
|
|
3522
3278
|
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
3279
|
// ----- import/newline-after-import -----
|
|
3539
3280
|
type ImportNewlineAfterImport$1 = [] | [{
|
|
3540
3281
|
count?: number;
|
|
3541
3282
|
exactCount?: boolean;
|
|
3542
3283
|
considerComments?: boolean;
|
|
3543
3284
|
}];
|
|
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
3285
|
// ----- import/no-duplicates -----
|
|
3579
3286
|
type ImportNoDuplicates$1 = [] | [{
|
|
3580
|
-
considerQueryString?: boolean;
|
|
3581
3287
|
"prefer-inline"?: boolean;
|
|
3582
3288
|
}];
|
|
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
3289
|
//#endregion
|
|
3722
3290
|
//#region src/generated/dts/javascript.d.ts
|
|
3723
3291
|
interface JavascriptRuleOptions {
|
|
@@ -4203,8 +3771,8 @@ type JsdocMatchName = [] | [{
|
|
|
4203
3771
|
context?: string;
|
|
4204
3772
|
disallowName?: string;
|
|
4205
3773
|
message?: string;
|
|
3774
|
+
replacement?: string;
|
|
4206
3775
|
tags?: string[];
|
|
4207
|
-
[k: string]: unknown | undefined;
|
|
4208
3776
|
}[];
|
|
4209
3777
|
}];
|
|
4210
3778
|
// ----- jsdoc/multiline-blocks -----
|
|
@@ -4278,7 +3846,6 @@ type JsdocRequireAsteriskPrefix = [] | ["always" | "never" | "any"] | ["always"
|
|
|
4278
3846
|
always?: string[];
|
|
4279
3847
|
any?: string[];
|
|
4280
3848
|
never?: string[];
|
|
4281
|
-
[k: string]: unknown | undefined;
|
|
4282
3849
|
};
|
|
4283
3850
|
}];
|
|
4284
3851
|
// ----- jsdoc/require-description -----
|
|
@@ -4488,7 +4055,6 @@ type JsdocSortTags = [] | [{
|
|
|
4488
4055
|
reportTagGroupSpacing?: boolean;
|
|
4489
4056
|
tagSequence?: {
|
|
4490
4057
|
tags?: string[];
|
|
4491
|
-
[k: string]: unknown | undefined;
|
|
4492
4058
|
}[];
|
|
4493
4059
|
}];
|
|
4494
4060
|
// ----- jsdoc/tag-lines -----
|
|
@@ -5036,7 +4602,7 @@ interface MarkdownRuleOptions {
|
|
|
5036
4602
|
* Disallow empty definitions
|
|
5037
4603
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-definitions.md
|
|
5038
4604
|
*/
|
|
5039
|
-
"markdown/no-empty-definitions"?: Linter.RuleEntry<
|
|
4605
|
+
"markdown/no-empty-definitions"?: Linter.RuleEntry<MarkdownNoEmptyDefinitions>;
|
|
5040
4606
|
/**
|
|
5041
4607
|
* Disallow empty images
|
|
5042
4608
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-empty-images.md
|
|
@@ -5082,6 +4648,11 @@ interface MarkdownRuleOptions {
|
|
|
5082
4648
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-reversed-media-syntax.md
|
|
5083
4649
|
*/
|
|
5084
4650
|
"markdown/no-reversed-media-syntax"?: Linter.RuleEntry<[]>;
|
|
4651
|
+
/**
|
|
4652
|
+
* Disallow unused definitions
|
|
4653
|
+
* @see https://github.com/eslint/markdown/blob/main/docs/rules/no-unused-definitions.md
|
|
4654
|
+
*/
|
|
4655
|
+
"markdown/no-unused-definitions"?: Linter.RuleEntry<MarkdownNoUnusedDefinitions>;
|
|
5085
4656
|
/**
|
|
5086
4657
|
* Require alternative text for images
|
|
5087
4658
|
* @see https://github.com/eslint/markdown/blob/main/docs/rules/require-alt-text.md
|
|
@@ -5108,6 +4679,12 @@ type MarkdownNoDuplicateDefinitions = [] | [{
|
|
|
5108
4679
|
type MarkdownNoDuplicateHeadings = [] | [{
|
|
5109
4680
|
checkSiblingsOnly?: boolean;
|
|
5110
4681
|
}];
|
|
4682
|
+
// ----- markdown/no-empty-definitions -----
|
|
4683
|
+
type MarkdownNoEmptyDefinitions = [] | [{
|
|
4684
|
+
allowDefinitions?: string[];
|
|
4685
|
+
allowFootnoteDefinitions?: string[];
|
|
4686
|
+
checkFootnoteDefinitions?: boolean;
|
|
4687
|
+
}];
|
|
5111
4688
|
// ----- markdown/no-html -----
|
|
5112
4689
|
type MarkdownNoHtml = [] | [{
|
|
5113
4690
|
allowed?: string[];
|
|
@@ -5121,6 +4698,11 @@ type MarkdownNoMissingLinkFragments = [] | [{
|
|
|
5121
4698
|
type MarkdownNoMultipleH1 = [] | [{
|
|
5122
4699
|
frontmatterTitle?: string;
|
|
5123
4700
|
}];
|
|
4701
|
+
// ----- markdown/no-unused-definitions -----
|
|
4702
|
+
type MarkdownNoUnusedDefinitions = [] | [{
|
|
4703
|
+
allowDefinitions?: string[];
|
|
4704
|
+
allowFootnoteDefinitions?: string[];
|
|
4705
|
+
}];
|
|
5124
4706
|
//#endregion
|
|
5125
4707
|
//#region src/generated/dts/n.d.ts
|
|
5126
4708
|
interface NRuleOptions {
|
|
@@ -9247,10 +8829,12 @@ type StylisticIndent = [] | ["tab" | number] | ["tab" | number, {
|
|
|
9247
8829
|
FunctionDeclaration?: {
|
|
9248
8830
|
parameters?: number | ("first" | "off");
|
|
9249
8831
|
body?: number;
|
|
8832
|
+
returnType?: number;
|
|
9250
8833
|
};
|
|
9251
8834
|
FunctionExpression?: {
|
|
9252
8835
|
parameters?: number | ("first" | "off");
|
|
9253
8836
|
body?: number;
|
|
8837
|
+
returnType?: number;
|
|
9254
8838
|
};
|
|
9255
8839
|
StaticBlock?: {
|
|
9256
8840
|
body?: number;
|
|
@@ -9291,31 +8875,52 @@ type StylisticJsxCurlyNewline = [] | [("consistent" | "never") | {
|
|
|
9291
8875
|
multiline?: "consistent" | "require" | "forbid";
|
|
9292
8876
|
}];
|
|
9293
8877
|
// ----- @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")), {
|
|
8878
|
+
type StylisticJsxCurlySpacing = [] | [{
|
|
8879
|
+
when?: "always" | "never";
|
|
9303
8880
|
allowMultiline?: boolean;
|
|
9304
8881
|
spacing?: {
|
|
9305
8882
|
objectLiterals?: "always" | "never";
|
|
9306
|
-
[k: string]: unknown | undefined;
|
|
9307
8883
|
};
|
|
9308
|
-
|
|
9309
|
-
|
|
9310
|
-
|
|
8884
|
+
attributes?: {
|
|
8885
|
+
when?: "always" | "never";
|
|
8886
|
+
allowMultiline?: boolean;
|
|
8887
|
+
spacing?: {
|
|
8888
|
+
objectLiterals?: "always" | "never";
|
|
8889
|
+
};
|
|
8890
|
+
} | boolean;
|
|
8891
|
+
children?: {
|
|
8892
|
+
when?: "always" | "never";
|
|
8893
|
+
allowMultiline?: boolean;
|
|
8894
|
+
spacing?: {
|
|
8895
|
+
objectLiterals?: "always" | "never";
|
|
8896
|
+
};
|
|
8897
|
+
} | boolean;
|
|
8898
|
+
} | ("always" | "never")] | [({
|
|
9311
8899
|
when?: "always" | "never";
|
|
9312
8900
|
allowMultiline?: boolean;
|
|
9313
8901
|
spacing?: {
|
|
9314
8902
|
objectLiterals?: "always" | "never";
|
|
9315
|
-
[k: string]: unknown | undefined;
|
|
9316
8903
|
};
|
|
9317
|
-
|
|
9318
|
-
|
|
8904
|
+
attributes?: {
|
|
8905
|
+
when?: "always" | "never";
|
|
8906
|
+
allowMultiline?: boolean;
|
|
8907
|
+
spacing?: {
|
|
8908
|
+
objectLiterals?: "always" | "never";
|
|
8909
|
+
};
|
|
8910
|
+
} | boolean;
|
|
8911
|
+
children?: {
|
|
8912
|
+
when?: "always" | "never";
|
|
8913
|
+
allowMultiline?: boolean;
|
|
8914
|
+
spacing?: {
|
|
8915
|
+
objectLiterals?: "always" | "never";
|
|
8916
|
+
};
|
|
8917
|
+
} | boolean;
|
|
8918
|
+
} | ("always" | "never")), {
|
|
8919
|
+
allowMultiline?: boolean;
|
|
8920
|
+
spacing?: {
|
|
8921
|
+
objectLiterals?: "always" | "never";
|
|
8922
|
+
};
|
|
8923
|
+
}];
|
|
9319
8924
|
// ----- @stylistic/jsx-equals-spacing -----
|
|
9320
8925
|
type StylisticJsxEqualsSpacing = [] | ["always" | "never"];
|
|
9321
8926
|
// ----- @stylistic/jsx-first-prop-new-line -----
|
|
@@ -9331,14 +8936,12 @@ type StylisticJsxIndent = [] | ["tab" | number] | ["tab" | number, {
|
|
|
9331
8936
|
type StylisticJsxIndentProps = [] | [("tab" | "first") | number | {
|
|
9332
8937
|
indentMode?: ("tab" | "first") | number;
|
|
9333
8938
|
ignoreTernaryOperator?: boolean;
|
|
9334
|
-
[k: string]: unknown | undefined;
|
|
9335
8939
|
}];
|
|
9336
8940
|
// ----- @stylistic/jsx-max-props-per-line -----
|
|
9337
8941
|
type StylisticJsxMaxPropsPerLine = [] | [{
|
|
9338
8942
|
maximum?: {
|
|
9339
8943
|
single?: number;
|
|
9340
8944
|
multi?: number;
|
|
9341
|
-
[k: string]: unknown | undefined;
|
|
9342
8945
|
};
|
|
9343
8946
|
} | {
|
|
9344
8947
|
maximum?: number;
|
|
@@ -9685,6 +9288,10 @@ type StylisticKeywordSpacing = [] | [{
|
|
|
9685
9288
|
before?: boolean;
|
|
9686
9289
|
after?: boolean;
|
|
9687
9290
|
};
|
|
9291
|
+
accessor?: {
|
|
9292
|
+
before?: boolean;
|
|
9293
|
+
after?: boolean;
|
|
9294
|
+
};
|
|
9688
9295
|
as?: {
|
|
9689
9296
|
before?: boolean;
|
|
9690
9297
|
after?: boolean;
|
|
@@ -9897,11 +9504,11 @@ interface _StylisticMemberDelimiterStyle_DelimiterConfig {
|
|
|
9897
9504
|
// ----- @stylistic/multiline-comment-style -----
|
|
9898
9505
|
type StylisticMultilineCommentStyle = [] | ["starred-block" | "bare-block"] | [] | ["separate-lines"] | ["separate-lines", {
|
|
9899
9506
|
checkJSDoc?: boolean;
|
|
9507
|
+
checkExclamation?: boolean;
|
|
9900
9508
|
}];
|
|
9901
9509
|
// ----- @stylistic/multiline-ternary -----
|
|
9902
9510
|
type StylisticMultilineTernary = [] | ["always" | "always-multiline" | "never"] | ["always" | "always-multiline" | "never", {
|
|
9903
9511
|
ignoreJSX?: boolean;
|
|
9904
|
-
[k: string]: unknown | undefined;
|
|
9905
9512
|
}];
|
|
9906
9513
|
// ----- @stylistic/new-parens -----
|
|
9907
9514
|
type StylisticNewParens = [] | ["always" | "never"];
|
|
@@ -11079,240 +10686,39 @@ interface TypescriptRuleOptions {
|
|
|
11079
10686
|
"@typescript-eslint/use-unknown-in-catch-callback-variable"?: Linter.RuleEntry<[]>;
|
|
11080
10687
|
/**
|
|
11081
10688
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
11082
|
-
* @see https://github.com/
|
|
10689
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/consistent-type-specifier-style/README.md
|
|
11083
10690
|
*/
|
|
11084
10691
|
"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
10692
|
/**
|
|
11111
10693
|
* Ensure all imports appear before other statements.
|
|
11112
|
-
* @see https://github.com/
|
|
10694
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/first/README.md
|
|
11113
10695
|
*/
|
|
11114
10696
|
"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
10697
|
/**
|
|
11142
10698
|
* Enforce a newline after import statements.
|
|
11143
|
-
* @see https://github.com/
|
|
10699
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/newline-after-import/README.md
|
|
11144
10700
|
*/
|
|
11145
10701
|
"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
10702
|
/**
|
|
11172
10703
|
* Forbid default exports.
|
|
11173
|
-
* @see https://github.com/
|
|
10704
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-default-export/README.md
|
|
11174
10705
|
*/
|
|
11175
10706
|
"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
10707
|
/**
|
|
11182
10708
|
* Forbid repeated import of the same module in multiple places.
|
|
11183
|
-
* @see https://github.com/
|
|
10709
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-duplicates/README.md
|
|
11184
10710
|
*/
|
|
11185
10711
|
"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
10712
|
/**
|
|
11212
10713
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
11213
|
-
* @see https://github.com/
|
|
10714
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-mutable-exports/README.md
|
|
11214
10715
|
*/
|
|
11215
10716
|
"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
10717
|
/**
|
|
11227
10718
|
* Forbid named default exports.
|
|
11228
|
-
* @see https://github.com/
|
|
10719
|
+
* @see https://github.com/9romise/eslint-plugin-import-lite/blob/main/src/rules/no-named-default/README.md
|
|
11229
10720
|
*/
|
|
11230
10721
|
"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
10722
|
}
|
|
11317
10723
|
|
|
11318
10724
|
/* ======= Declarations ======= */
|
|
@@ -12263,250 +11669,19 @@ type TypescriptEslintUnifiedSignatures = [] | [{
|
|
|
12263
11669
|
ignoreOverloadsWithDifferentJSDoc?: boolean;
|
|
12264
11670
|
}];
|
|
12265
11671
|
// ----- 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
|
-
}];
|
|
11672
|
+
type ImportConsistentTypeSpecifierStyle = [] | ["top-level" | "inline" | "prefer-top-level"];
|
|
12310
11673
|
// ----- import/first -----
|
|
12311
11674
|
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
11675
|
// ----- import/newline-after-import -----
|
|
12328
11676
|
type ImportNewlineAfterImport = [] | [{
|
|
12329
11677
|
count?: number;
|
|
12330
11678
|
exactCount?: boolean;
|
|
12331
11679
|
considerComments?: boolean;
|
|
12332
11680
|
}];
|
|
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
11681
|
// ----- import/no-duplicates -----
|
|
12368
11682
|
type ImportNoDuplicates = [] | [{
|
|
12369
|
-
considerQueryString?: boolean;
|
|
12370
11683
|
"prefer-inline"?: boolean;
|
|
12371
11684
|
}];
|
|
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
11685
|
//#endregion
|
|
12511
11686
|
//#region src/generated/dts/unicorn.d.ts
|
|
12512
11687
|
interface UnicornRuleOptions {
|
|
@@ -14534,7 +13709,7 @@ declare function defineConfig(options?: OptionsConfig & Config, ...userConfigs:
|
|
|
14534
13709
|
type DefineConfig = typeof defineConfig;
|
|
14535
13710
|
//#endregion
|
|
14536
13711
|
//#region src/generated/version.d.ts
|
|
14537
|
-
declare const VERSION = "0.4.
|
|
13712
|
+
declare const VERSION = "0.4.5";
|
|
14538
13713
|
declare namespace globs_d_exports {
|
|
14539
13714
|
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
13715
|
}
|
|
@@ -16193,4 +15368,4 @@ declare function changeRuleEntrySeverity(ruleConfig: Linter.RuleEntry<any>, leve
|
|
|
16193
15368
|
declare function error2warn<T extends Config>(configs: T[]): T[];
|
|
16194
15369
|
declare function warn2error<T extends Config>(configs: T[]): T[];
|
|
16195
15370
|
//#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,
|
|
15371
|
+
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 };
|