@ntnyq/eslint-config 3.9.2 → 3.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +48 -54
- package/dist/index.d.ts +48 -54
- package/dist/index.js +3 -1
- package/package.json +9 -9
package/dist/index.cjs
CHANGED
|
@@ -1915,7 +1915,9 @@ var specials = (options = {}) => [
|
|
|
1915
1915
|
"error",
|
|
1916
1916
|
{
|
|
1917
1917
|
type: "alphabetical",
|
|
1918
|
-
order: "asc"
|
|
1918
|
+
order: "asc",
|
|
1919
|
+
partitionByComment: true,
|
|
1920
|
+
groups: ["unknown", "method", "multiline"]
|
|
1919
1921
|
}
|
|
1920
1922
|
],
|
|
1921
1923
|
...options.overridesConfigFileRules
|
package/dist/index.d.cts
CHANGED
|
@@ -1057,7 +1057,7 @@ interface RuleOptions {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
'@typescript-eslint/no-wrapper-object-types'?: Linter.RuleEntry<[]>;
|
|
1059
1059
|
/**
|
|
1060
|
-
* Enforce non-null assertions over explicit type
|
|
1060
|
+
* Enforce non-null assertions over explicit type assertions
|
|
1061
1061
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
1062
1062
|
*/
|
|
1063
1063
|
'@typescript-eslint/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>;
|
|
@@ -1142,7 +1142,7 @@ interface RuleOptions {
|
|
|
1142
1142
|
*/
|
|
1143
1143
|
'@typescript-eslint/prefer-readonly-parameter-types'?: Linter.RuleEntry<TypescriptEslintPreferReadonlyParameterTypes>;
|
|
1144
1144
|
/**
|
|
1145
|
-
* Enforce using type parameter when calling `Array#reduce` instead of
|
|
1145
|
+
* Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
|
|
1146
1146
|
* @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
1147
1147
|
*/
|
|
1148
1148
|
'@typescript-eslint/prefer-reduce-type-parameter'?: Linter.RuleEntry<[]>;
|
|
@@ -3159,233 +3159,233 @@ interface RuleOptions {
|
|
|
3159
3159
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
3160
3160
|
/**
|
|
3161
3161
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3162
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/consistent-type-specifier-style.md
|
|
3163
3163
|
*/
|
|
3164
3164
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
3165
3165
|
/**
|
|
3166
3166
|
* Ensure a default export is present, given a default import.
|
|
3167
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/default.md
|
|
3168
3168
|
*/
|
|
3169
3169
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
3170
3170
|
/**
|
|
3171
3171
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
3172
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/dynamic-import-chunkname.md
|
|
3173
3173
|
*/
|
|
3174
3174
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
3175
3175
|
/**
|
|
3176
3176
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
3177
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/export.md
|
|
3178
3178
|
*/
|
|
3179
3179
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Ensure all exports appear after other statements.
|
|
3182
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/exports-last.md
|
|
3183
3183
|
*/
|
|
3184
3184
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
3185
3185
|
/**
|
|
3186
3186
|
* Ensure consistent use of file extension within the import path.
|
|
3187
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/extensions.md
|
|
3188
3188
|
*/
|
|
3189
3189
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
3190
3190
|
/**
|
|
3191
3191
|
* Ensure all imports appear before other statements.
|
|
3192
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/first.md
|
|
3193
3193
|
*/
|
|
3194
3194
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
3195
3195
|
/**
|
|
3196
3196
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
3197
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/group-exports.md
|
|
3198
3198
|
*/
|
|
3199
3199
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
3200
3200
|
/**
|
|
3201
3201
|
* Replaced by `import-x/first`.
|
|
3202
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/imports-first.md
|
|
3203
3203
|
* @deprecated
|
|
3204
3204
|
*/
|
|
3205
3205
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Enforce the maximum number of dependencies a module can have.
|
|
3208
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3208
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/max-dependencies.md
|
|
3209
3209
|
*/
|
|
3210
3210
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Ensure named imports correspond to a named export in the remote file.
|
|
3213
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3213
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/named.md
|
|
3214
3214
|
*/
|
|
3215
3215
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
3216
3216
|
/**
|
|
3217
3217
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
3218
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3218
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/namespace.md
|
|
3219
3219
|
*/
|
|
3220
3220
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Enforce a newline after import statements.
|
|
3223
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3223
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/newline-after-import.md
|
|
3224
3224
|
*/
|
|
3225
3225
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
3226
3226
|
/**
|
|
3227
3227
|
* Forbid import of modules using absolute paths.
|
|
3228
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3228
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-absolute-path.md
|
|
3229
3229
|
*/
|
|
3230
3230
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Forbid AMD `require` and `define` calls.
|
|
3233
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3233
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-amd.md
|
|
3234
3234
|
*/
|
|
3235
3235
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
3236
3236
|
/**
|
|
3237
3237
|
* Forbid anonymous values as default exports.
|
|
3238
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3238
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-anonymous-default-export.md
|
|
3239
3239
|
*/
|
|
3240
3240
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
3243
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3243
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-commonjs.md
|
|
3244
3244
|
*/
|
|
3245
3245
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
3246
3246
|
/**
|
|
3247
3247
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
3248
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3248
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-cycle.md
|
|
3249
3249
|
*/
|
|
3250
3250
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Forbid default exports.
|
|
3253
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3253
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-default-export.md
|
|
3254
3254
|
*/
|
|
3255
3255
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
3258
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3258
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-deprecated.md
|
|
3259
3259
|
*/
|
|
3260
3260
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
3261
3261
|
/**
|
|
3262
3262
|
* Forbid repeated import of the same module in multiple places.
|
|
3263
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3263
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-duplicates.md
|
|
3264
3264
|
*/
|
|
3265
3265
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Forbid `require()` calls with expressions.
|
|
3268
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3268
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-dynamic-require.md
|
|
3269
3269
|
*/
|
|
3270
3270
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Forbid empty named import blocks.
|
|
3273
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3273
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-empty-named-blocks.md
|
|
3274
3274
|
*/
|
|
3275
3275
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
3276
3276
|
/**
|
|
3277
3277
|
* Forbid the use of extraneous packages.
|
|
3278
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3278
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-extraneous-dependencies.md
|
|
3279
3279
|
*/
|
|
3280
3280
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Forbid import statements with CommonJS module.exports.
|
|
3283
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3283
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-import-module-exports.md
|
|
3284
3284
|
*/
|
|
3285
3285
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
3286
3286
|
/**
|
|
3287
3287
|
* Forbid importing the submodules of other modules.
|
|
3288
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3288
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-internal-modules.md
|
|
3289
3289
|
*/
|
|
3290
3290
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
3293
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3293
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-mutable-exports.md
|
|
3294
3294
|
*/
|
|
3295
3295
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
3296
3296
|
/**
|
|
3297
3297
|
* Forbid use of exported name as identifier of default export.
|
|
3298
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3298
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-as-default.md
|
|
3299
3299
|
*/
|
|
3300
3300
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
3301
3301
|
/**
|
|
3302
3302
|
* Forbid use of exported name as property of default export.
|
|
3303
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3303
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-as-default-member.md
|
|
3304
3304
|
*/
|
|
3305
3305
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
3306
3306
|
/**
|
|
3307
3307
|
* Forbid named default exports.
|
|
3308
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3308
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-default.md
|
|
3309
3309
|
*/
|
|
3310
3310
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3311
3311
|
/**
|
|
3312
3312
|
* Forbid named exports.
|
|
3313
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3313
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-export.md
|
|
3314
3314
|
*/
|
|
3315
3315
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
3316
3316
|
/**
|
|
3317
3317
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3318
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3318
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-namespace.md
|
|
3319
3319
|
*/
|
|
3320
3320
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
3321
3321
|
/**
|
|
3322
3322
|
* Forbid Node.js builtin modules.
|
|
3323
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3323
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-nodejs-modules.md
|
|
3324
3324
|
*/
|
|
3325
3325
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Forbid importing packages through relative paths.
|
|
3328
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3328
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-relative-packages.md
|
|
3329
3329
|
*/
|
|
3330
3330
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
3331
3331
|
/**
|
|
3332
3332
|
* Forbid importing modules from parent directories.
|
|
3333
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3333
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-relative-parent-imports.md
|
|
3334
3334
|
*/
|
|
3335
3335
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
3336
3336
|
/**
|
|
3337
3337
|
* Forbid importing a default export by a different name.
|
|
3338
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3338
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-rename-default.md
|
|
3339
3339
|
*/
|
|
3340
3340
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
3341
3341
|
/**
|
|
3342
3342
|
* Enforce which files can be imported in a given folder.
|
|
3343
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3343
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-restricted-paths.md
|
|
3344
3344
|
*/
|
|
3345
3345
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
3346
3346
|
/**
|
|
3347
3347
|
* Forbid a module from importing itself.
|
|
3348
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3348
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-self-import.md
|
|
3349
3349
|
*/
|
|
3350
3350
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
3351
3351
|
/**
|
|
3352
3352
|
* Forbid unassigned imports.
|
|
3353
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3353
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unassigned-import.md
|
|
3354
3354
|
*/
|
|
3355
3355
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
3356
3356
|
/**
|
|
3357
3357
|
* Ensure imports point to a file/module that can be resolved.
|
|
3358
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3358
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unresolved.md
|
|
3359
3359
|
*/
|
|
3360
3360
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
3361
3361
|
/**
|
|
3362
3362
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3363
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3363
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unused-modules.md
|
|
3364
3364
|
*/
|
|
3365
3365
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
3366
3366
|
/**
|
|
3367
3367
|
* Forbid unnecessary path segments in import and require statements.
|
|
3368
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-useless-path-segments.md
|
|
3369
3369
|
*/
|
|
3370
3370
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Forbid webpack loader syntax in imports.
|
|
3373
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
3374
3374
|
*/
|
|
3375
3375
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Enforce a convention in module import order.
|
|
3378
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/order.md
|
|
3379
3379
|
*/
|
|
3380
3380
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
3381
3381
|
/**
|
|
3382
3382
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3383
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/prefer-default-export.md
|
|
3384
3384
|
*/
|
|
3385
3385
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
3386
3386
|
/**
|
|
3387
3387
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3388
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/unambiguous.md
|
|
3389
3389
|
*/
|
|
3390
3390
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
3391
3391
|
/**
|
|
@@ -15481,12 +15481,6 @@ type VitestValidTitle = [] | [
|
|
|
15481
15481
|
ignoreTypeOfDescribeName?: boolean;
|
|
15482
15482
|
allowArguments?: boolean;
|
|
15483
15483
|
disallowedWords?: string[];
|
|
15484
|
-
mustMatch?: (string | [string] | [string, string] | {
|
|
15485
|
-
[k: string]: (string | [string] | [string, string]) | undefined;
|
|
15486
|
-
});
|
|
15487
|
-
mustNotMatch?: (string | [string] | [string, string] | {
|
|
15488
|
-
[k: string]: (string | [string] | [string, string]) | undefined;
|
|
15489
|
-
});
|
|
15490
15484
|
}
|
|
15491
15485
|
];
|
|
15492
15486
|
type VueArrayBracketNewline = [] | [
|
package/dist/index.d.ts
CHANGED
|
@@ -1057,7 +1057,7 @@ interface RuleOptions {
|
|
|
1057
1057
|
*/
|
|
1058
1058
|
'@typescript-eslint/no-wrapper-object-types'?: Linter.RuleEntry<[]>;
|
|
1059
1059
|
/**
|
|
1060
|
-
* Enforce non-null assertions over explicit type
|
|
1060
|
+
* Enforce non-null assertions over explicit type assertions
|
|
1061
1061
|
* @see https://typescript-eslint.io/rules/non-nullable-type-assertion-style
|
|
1062
1062
|
*/
|
|
1063
1063
|
'@typescript-eslint/non-nullable-type-assertion-style'?: Linter.RuleEntry<[]>;
|
|
@@ -1142,7 +1142,7 @@ interface RuleOptions {
|
|
|
1142
1142
|
*/
|
|
1143
1143
|
'@typescript-eslint/prefer-readonly-parameter-types'?: Linter.RuleEntry<TypescriptEslintPreferReadonlyParameterTypes>;
|
|
1144
1144
|
/**
|
|
1145
|
-
* Enforce using type parameter when calling `Array#reduce` instead of
|
|
1145
|
+
* Enforce using type parameter when calling `Array#reduce` instead of using a type assertion
|
|
1146
1146
|
* @see https://typescript-eslint.io/rules/prefer-reduce-type-parameter
|
|
1147
1147
|
*/
|
|
1148
1148
|
'@typescript-eslint/prefer-reduce-type-parameter'?: Linter.RuleEntry<[]>;
|
|
@@ -3159,233 +3159,233 @@ interface RuleOptions {
|
|
|
3159
3159
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>;
|
|
3160
3160
|
/**
|
|
3161
3161
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
3162
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3162
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/consistent-type-specifier-style.md
|
|
3163
3163
|
*/
|
|
3164
3164
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>;
|
|
3165
3165
|
/**
|
|
3166
3166
|
* Ensure a default export is present, given a default import.
|
|
3167
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3167
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/default.md
|
|
3168
3168
|
*/
|
|
3169
3169
|
'import-x/default'?: Linter.RuleEntry<[]>;
|
|
3170
3170
|
/**
|
|
3171
3171
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
3172
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3172
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/dynamic-import-chunkname.md
|
|
3173
3173
|
*/
|
|
3174
3174
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>;
|
|
3175
3175
|
/**
|
|
3176
3176
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
3177
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3177
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/export.md
|
|
3178
3178
|
*/
|
|
3179
3179
|
'import-x/export'?: Linter.RuleEntry<[]>;
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Ensure all exports appear after other statements.
|
|
3182
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3182
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/exports-last.md
|
|
3183
3183
|
*/
|
|
3184
3184
|
'import-x/exports-last'?: Linter.RuleEntry<[]>;
|
|
3185
3185
|
/**
|
|
3186
3186
|
* Ensure consistent use of file extension within the import path.
|
|
3187
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3187
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/extensions.md
|
|
3188
3188
|
*/
|
|
3189
3189
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>;
|
|
3190
3190
|
/**
|
|
3191
3191
|
* Ensure all imports appear before other statements.
|
|
3192
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3192
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/first.md
|
|
3193
3193
|
*/
|
|
3194
3194
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>;
|
|
3195
3195
|
/**
|
|
3196
3196
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
3197
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3197
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/group-exports.md
|
|
3198
3198
|
*/
|
|
3199
3199
|
'import-x/group-exports'?: Linter.RuleEntry<[]>;
|
|
3200
3200
|
/**
|
|
3201
3201
|
* Replaced by `import-x/first`.
|
|
3202
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3202
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/imports-first.md
|
|
3203
3203
|
* @deprecated
|
|
3204
3204
|
*/
|
|
3205
3205
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>;
|
|
3206
3206
|
/**
|
|
3207
3207
|
* Enforce the maximum number of dependencies a module can have.
|
|
3208
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3208
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/max-dependencies.md
|
|
3209
3209
|
*/
|
|
3210
3210
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>;
|
|
3211
3211
|
/**
|
|
3212
3212
|
* Ensure named imports correspond to a named export in the remote file.
|
|
3213
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3213
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/named.md
|
|
3214
3214
|
*/
|
|
3215
3215
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>;
|
|
3216
3216
|
/**
|
|
3217
3217
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
3218
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3218
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/namespace.md
|
|
3219
3219
|
*/
|
|
3220
3220
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>;
|
|
3221
3221
|
/**
|
|
3222
3222
|
* Enforce a newline after import statements.
|
|
3223
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3223
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/newline-after-import.md
|
|
3224
3224
|
*/
|
|
3225
3225
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>;
|
|
3226
3226
|
/**
|
|
3227
3227
|
* Forbid import of modules using absolute paths.
|
|
3228
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3228
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-absolute-path.md
|
|
3229
3229
|
*/
|
|
3230
3230
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>;
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Forbid AMD `require` and `define` calls.
|
|
3233
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3233
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-amd.md
|
|
3234
3234
|
*/
|
|
3235
3235
|
'import-x/no-amd'?: Linter.RuleEntry<[]>;
|
|
3236
3236
|
/**
|
|
3237
3237
|
* Forbid anonymous values as default exports.
|
|
3238
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3238
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-anonymous-default-export.md
|
|
3239
3239
|
*/
|
|
3240
3240
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>;
|
|
3241
3241
|
/**
|
|
3242
3242
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
3243
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3243
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-commonjs.md
|
|
3244
3244
|
*/
|
|
3245
3245
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>;
|
|
3246
3246
|
/**
|
|
3247
3247
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
3248
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3248
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-cycle.md
|
|
3249
3249
|
*/
|
|
3250
3250
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>;
|
|
3251
3251
|
/**
|
|
3252
3252
|
* Forbid default exports.
|
|
3253
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3253
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-default-export.md
|
|
3254
3254
|
*/
|
|
3255
3255
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>;
|
|
3256
3256
|
/**
|
|
3257
3257
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
3258
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3258
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-deprecated.md
|
|
3259
3259
|
*/
|
|
3260
3260
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>;
|
|
3261
3261
|
/**
|
|
3262
3262
|
* Forbid repeated import of the same module in multiple places.
|
|
3263
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3263
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-duplicates.md
|
|
3264
3264
|
*/
|
|
3265
3265
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>;
|
|
3266
3266
|
/**
|
|
3267
3267
|
* Forbid `require()` calls with expressions.
|
|
3268
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3268
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-dynamic-require.md
|
|
3269
3269
|
*/
|
|
3270
3270
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>;
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Forbid empty named import blocks.
|
|
3273
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3273
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-empty-named-blocks.md
|
|
3274
3274
|
*/
|
|
3275
3275
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>;
|
|
3276
3276
|
/**
|
|
3277
3277
|
* Forbid the use of extraneous packages.
|
|
3278
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3278
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-extraneous-dependencies.md
|
|
3279
3279
|
*/
|
|
3280
3280
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>;
|
|
3281
3281
|
/**
|
|
3282
3282
|
* Forbid import statements with CommonJS module.exports.
|
|
3283
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3283
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-import-module-exports.md
|
|
3284
3284
|
*/
|
|
3285
3285
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>;
|
|
3286
3286
|
/**
|
|
3287
3287
|
* Forbid importing the submodules of other modules.
|
|
3288
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3288
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-internal-modules.md
|
|
3289
3289
|
*/
|
|
3290
3290
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>;
|
|
3291
3291
|
/**
|
|
3292
3292
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
3293
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3293
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-mutable-exports.md
|
|
3294
3294
|
*/
|
|
3295
3295
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>;
|
|
3296
3296
|
/**
|
|
3297
3297
|
* Forbid use of exported name as identifier of default export.
|
|
3298
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3298
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-as-default.md
|
|
3299
3299
|
*/
|
|
3300
3300
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>;
|
|
3301
3301
|
/**
|
|
3302
3302
|
* Forbid use of exported name as property of default export.
|
|
3303
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3303
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-as-default-member.md
|
|
3304
3304
|
*/
|
|
3305
3305
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>;
|
|
3306
3306
|
/**
|
|
3307
3307
|
* Forbid named default exports.
|
|
3308
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3308
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-default.md
|
|
3309
3309
|
*/
|
|
3310
3310
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>;
|
|
3311
3311
|
/**
|
|
3312
3312
|
* Forbid named exports.
|
|
3313
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3313
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-named-export.md
|
|
3314
3314
|
*/
|
|
3315
3315
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>;
|
|
3316
3316
|
/**
|
|
3317
3317
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
3318
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3318
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-namespace.md
|
|
3319
3319
|
*/
|
|
3320
3320
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>;
|
|
3321
3321
|
/**
|
|
3322
3322
|
* Forbid Node.js builtin modules.
|
|
3323
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3323
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-nodejs-modules.md
|
|
3324
3324
|
*/
|
|
3325
3325
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>;
|
|
3326
3326
|
/**
|
|
3327
3327
|
* Forbid importing packages through relative paths.
|
|
3328
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3328
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-relative-packages.md
|
|
3329
3329
|
*/
|
|
3330
3330
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>;
|
|
3331
3331
|
/**
|
|
3332
3332
|
* Forbid importing modules from parent directories.
|
|
3333
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3333
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-relative-parent-imports.md
|
|
3334
3334
|
*/
|
|
3335
3335
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>;
|
|
3336
3336
|
/**
|
|
3337
3337
|
* Forbid importing a default export by a different name.
|
|
3338
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3338
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-rename-default.md
|
|
3339
3339
|
*/
|
|
3340
3340
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>;
|
|
3341
3341
|
/**
|
|
3342
3342
|
* Enforce which files can be imported in a given folder.
|
|
3343
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3343
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-restricted-paths.md
|
|
3344
3344
|
*/
|
|
3345
3345
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>;
|
|
3346
3346
|
/**
|
|
3347
3347
|
* Forbid a module from importing itself.
|
|
3348
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3348
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-self-import.md
|
|
3349
3349
|
*/
|
|
3350
3350
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>;
|
|
3351
3351
|
/**
|
|
3352
3352
|
* Forbid unassigned imports.
|
|
3353
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3353
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unassigned-import.md
|
|
3354
3354
|
*/
|
|
3355
3355
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>;
|
|
3356
3356
|
/**
|
|
3357
3357
|
* Ensure imports point to a file/module that can be resolved.
|
|
3358
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3358
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unresolved.md
|
|
3359
3359
|
*/
|
|
3360
3360
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>;
|
|
3361
3361
|
/**
|
|
3362
3362
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
3363
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3363
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-unused-modules.md
|
|
3364
3364
|
*/
|
|
3365
3365
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>;
|
|
3366
3366
|
/**
|
|
3367
3367
|
* Forbid unnecessary path segments in import and require statements.
|
|
3368
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-useless-path-segments.md
|
|
3369
3369
|
*/
|
|
3370
3370
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>;
|
|
3371
3371
|
/**
|
|
3372
3372
|
* Forbid webpack loader syntax in imports.
|
|
3373
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/no-webpack-loader-syntax.md
|
|
3374
3374
|
*/
|
|
3375
3375
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>;
|
|
3376
3376
|
/**
|
|
3377
3377
|
* Enforce a convention in module import order.
|
|
3378
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/order.md
|
|
3379
3379
|
*/
|
|
3380
3380
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>;
|
|
3381
3381
|
/**
|
|
3382
3382
|
* Prefer a default export if module exports a single name or multiple names.
|
|
3383
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/prefer-default-export.md
|
|
3384
3384
|
*/
|
|
3385
3385
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>;
|
|
3386
3386
|
/**
|
|
3387
3387
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
3388
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.
|
|
3388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.1/docs/rules/unambiguous.md
|
|
3389
3389
|
*/
|
|
3390
3390
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>;
|
|
3391
3391
|
/**
|
|
@@ -15481,12 +15481,6 @@ type VitestValidTitle = [] | [
|
|
|
15481
15481
|
ignoreTypeOfDescribeName?: boolean;
|
|
15482
15482
|
allowArguments?: boolean;
|
|
15483
15483
|
disallowedWords?: string[];
|
|
15484
|
-
mustMatch?: (string | [string] | [string, string] | {
|
|
15485
|
-
[k: string]: (string | [string] | [string, string]) | undefined;
|
|
15486
|
-
});
|
|
15487
|
-
mustNotMatch?: (string | [string] | [string, string] | {
|
|
15488
|
-
[k: string]: (string | [string] | [string, string]) | undefined;
|
|
15489
|
-
});
|
|
15490
15484
|
}
|
|
15491
15485
|
];
|
|
15492
15486
|
type VueArrayBracketNewline = [] | [
|
package/dist/index.js
CHANGED
|
@@ -1767,7 +1767,9 @@ var specials = (options = {}) => [
|
|
|
1767
1767
|
"error",
|
|
1768
1768
|
{
|
|
1769
1769
|
type: "alphabetical",
|
|
1770
|
-
order: "asc"
|
|
1770
|
+
order: "asc",
|
|
1771
|
+
partitionByComment: true,
|
|
1772
|
+
groups: ["unknown", "method", "multiline"]
|
|
1771
1773
|
}
|
|
1772
1774
|
],
|
|
1773
1775
|
...options.overridesConfigFileRules
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.9.
|
|
4
|
+
"version": "3.9.3",
|
|
5
5
|
"packageManager": "pnpm@9.15.0",
|
|
6
6
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
7
7
|
"keywords": [
|
|
@@ -61,16 +61,16 @@
|
|
|
61
61
|
"@eslint/markdown": "^6.2.1",
|
|
62
62
|
"@stylistic/eslint-plugin": "^2.12.1",
|
|
63
63
|
"@unocss/eslint-plugin": "^0.65.1",
|
|
64
|
-
"@vitest/eslint-plugin": "^1.1.
|
|
64
|
+
"@vitest/eslint-plugin": "^1.1.18",
|
|
65
65
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
66
66
|
"eslint-flat-config-utils": "^0.4.0",
|
|
67
67
|
"eslint-merge-processors": "^0.1.0",
|
|
68
68
|
"eslint-plugin-antfu": "^2.7.0",
|
|
69
|
-
"eslint-plugin-command": "^0.2.
|
|
69
|
+
"eslint-plugin-command": "^0.2.7",
|
|
70
70
|
"eslint-plugin-es-x": "^8.4.1",
|
|
71
71
|
"eslint-plugin-format": "^0.1.3",
|
|
72
72
|
"eslint-plugin-github-action": "^0.0.12",
|
|
73
|
-
"eslint-plugin-import-x": "^4.5.
|
|
73
|
+
"eslint-plugin-import-x": "^4.5.1",
|
|
74
74
|
"eslint-plugin-jsdoc": "^50.6.1",
|
|
75
75
|
"eslint-plugin-jsonc": "^2.18.2",
|
|
76
76
|
"eslint-plugin-n": "^17.15.0",
|
|
@@ -85,12 +85,12 @@
|
|
|
85
85
|
"eslint-plugin-vue": "^9.32.0",
|
|
86
86
|
"eslint-plugin-yml": "^1.16.0",
|
|
87
87
|
"eslint-processor-vue-blocks": "^0.1.2",
|
|
88
|
-
"globals": "^15.
|
|
88
|
+
"globals": "^15.14.0",
|
|
89
89
|
"jsonc-eslint-parser": "^2.4.0",
|
|
90
90
|
"local-pkg": "^0.5.1",
|
|
91
91
|
"prettier": "^3.4.2",
|
|
92
92
|
"toml-eslint-parser": "^0.10.0",
|
|
93
|
-
"typescript-eslint": "^8.18.
|
|
93
|
+
"typescript-eslint": "^8.18.1",
|
|
94
94
|
"vue-eslint-parser": "^9.4.3",
|
|
95
95
|
"yaml-eslint-parser": "^1.2.3"
|
|
96
96
|
},
|
|
@@ -101,14 +101,14 @@
|
|
|
101
101
|
"eslint": "^9.17.0",
|
|
102
102
|
"eslint-typegen": "^0.3.2",
|
|
103
103
|
"husky": "^9.1.7",
|
|
104
|
-
"jiti": "^2.4.
|
|
104
|
+
"jiti": "^2.4.2",
|
|
105
105
|
"nano-staged": "^0.8.0",
|
|
106
|
-
"npm-run-all2": "^7.0.
|
|
106
|
+
"npm-run-all2": "^7.0.2",
|
|
107
107
|
"rimraf": "^6.0.1",
|
|
108
108
|
"tsup": "^8.3.5",
|
|
109
109
|
"tsx": "^4.19.2",
|
|
110
110
|
"typescript": "^5.7.2",
|
|
111
|
-
"vitest": "^
|
|
111
|
+
"vitest": "^3.0.0-beta.2",
|
|
112
112
|
"zx": "^8.2.4"
|
|
113
113
|
},
|
|
114
114
|
"engines": {
|