@lntvow/eslint-config 9.20.1 → 9.20.2
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 +18 -10
- package/dist/index.d.cts +49 -47
- package/dist/index.d.mts +49 -47
- package/dist/index.d.ts +49 -47
- package/dist/index.mjs +18 -11
- package/package.json +4 -3
package/dist/index.cjs
CHANGED
|
@@ -233,6 +233,7 @@ async function ignores(ignoresList = []) {
|
|
|
233
233
|
|
|
234
234
|
async function imports(options = {}) {
|
|
235
235
|
return [
|
|
236
|
+
// pluginImport.flatConfigs.typescript,
|
|
236
237
|
{
|
|
237
238
|
name: "lntvow/imports/rules",
|
|
238
239
|
plugins: {
|
|
@@ -275,10 +276,10 @@ async function imports(options = {}) {
|
|
|
275
276
|
// // 'import/dynamic-import-chunkname': 'off',
|
|
276
277
|
// // 'import/exports-last': 'off',
|
|
277
278
|
// // 'import/extensions': 'off',
|
|
278
|
-
|
|
279
|
+
"import/first": "error",
|
|
279
280
|
// // 'import/group-exports': 'off',
|
|
280
281
|
// // 'import/max-dependencies': 'off',
|
|
281
|
-
|
|
282
|
+
"import/newline-after-import": "error",
|
|
282
283
|
// // 'import/no-anonymous-default-export': 'off',
|
|
283
284
|
// // 'import/no-default-export': 'off',
|
|
284
285
|
// 'import/no-duplicates': 'error',
|
|
@@ -286,17 +287,21 @@ async function imports(options = {}) {
|
|
|
286
287
|
// // 'import/no-named-export': 'off',
|
|
287
288
|
// // 'import/no-namespace': 'off',
|
|
288
289
|
// // 'import/no-unassigned-import': 'off',
|
|
289
|
-
|
|
290
|
+
"import/order": "error"
|
|
290
291
|
// // 'import/prefer-default-export': 'off',
|
|
291
292
|
},
|
|
292
293
|
settings: {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
294
|
+
// 'import-x/resolver': {
|
|
295
|
+
// alias: {
|
|
296
|
+
// map: [['@', './src']],
|
|
297
|
+
// extensions: ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs', '.d.ts'],
|
|
298
|
+
// },
|
|
299
|
+
// node: true,
|
|
300
|
+
// typescript: true,
|
|
301
|
+
// },
|
|
302
|
+
// 'import-x/parsers': {
|
|
303
|
+
// '@typescript-eslint/parser': [],
|
|
304
|
+
// },
|
|
300
305
|
}
|
|
301
306
|
}
|
|
302
307
|
];
|
|
@@ -1149,6 +1154,8 @@ function resolveSubOptions(options, key) {
|
|
|
1149
1154
|
return utils.isBoolean(options[key]) ? {} : options[key] || {};
|
|
1150
1155
|
}
|
|
1151
1156
|
|
|
1157
|
+
const name = "111333311";
|
|
1158
|
+
|
|
1152
1159
|
exports.GLOB_ALL_SRC = GLOB_ALL_SRC;
|
|
1153
1160
|
exports.GLOB_ASTRO = GLOB_ASTRO;
|
|
1154
1161
|
exports.GLOB_CSS = GLOB_CSS;
|
|
@@ -1185,6 +1192,7 @@ exports.ignores = ignores;
|
|
|
1185
1192
|
exports.imports = imports;
|
|
1186
1193
|
exports.javascript = javascript;
|
|
1187
1194
|
exports.lntvow = lntvow;
|
|
1195
|
+
exports.name = name;
|
|
1188
1196
|
exports.notInRecommendedRules = notInRecommendedRules;
|
|
1189
1197
|
exports.prettier = prettier;
|
|
1190
1198
|
exports.regexp = regexp;
|
package/dist/index.d.cts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10373,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10373
10373
|
|
|
10374
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10375
10375
|
|
|
10376
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.d.mts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10373,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10373
10373
|
|
|
10374
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10375
10375
|
|
|
10376
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.d.ts
CHANGED
|
@@ -277,233 +277,233 @@ interface RuleOptions {
|
|
|
277
277
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
278
278
|
/**
|
|
279
279
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
280
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
280
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/consistent-type-specifier-style.md
|
|
281
281
|
*/
|
|
282
282
|
'import/consistent-type-specifier-style'?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>
|
|
283
283
|
/**
|
|
284
284
|
* Ensure a default export is present, given a default import.
|
|
285
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
285
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/default.md
|
|
286
286
|
*/
|
|
287
287
|
'import/default'?: Linter.RuleEntry<[]>
|
|
288
288
|
/**
|
|
289
289
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
290
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
290
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/dynamic-import-chunkname.md
|
|
291
291
|
*/
|
|
292
292
|
'import/dynamic-import-chunkname'?: Linter.RuleEntry<ImportDynamicImportChunkname>
|
|
293
293
|
/**
|
|
294
294
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
295
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
295
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/export.md
|
|
296
296
|
*/
|
|
297
297
|
'import/export'?: Linter.RuleEntry<[]>
|
|
298
298
|
/**
|
|
299
299
|
* Ensure all exports appear after other statements.
|
|
300
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
300
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/exports-last.md
|
|
301
301
|
*/
|
|
302
302
|
'import/exports-last'?: Linter.RuleEntry<[]>
|
|
303
303
|
/**
|
|
304
304
|
* Ensure consistent use of file extension within the import path.
|
|
305
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
305
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/extensions.md
|
|
306
306
|
*/
|
|
307
307
|
'import/extensions'?: Linter.RuleEntry<ImportExtensions>
|
|
308
308
|
/**
|
|
309
309
|
* Ensure all imports appear before other statements.
|
|
310
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
310
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/first.md
|
|
311
311
|
*/
|
|
312
312
|
'import/first'?: Linter.RuleEntry<ImportFirst>
|
|
313
313
|
/**
|
|
314
314
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
315
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
315
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/group-exports.md
|
|
316
316
|
*/
|
|
317
317
|
'import/group-exports'?: Linter.RuleEntry<[]>
|
|
318
318
|
/**
|
|
319
319
|
* Replaced by `import-x/first`.
|
|
320
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
320
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/imports-first.md
|
|
321
321
|
* @deprecated
|
|
322
322
|
*/
|
|
323
323
|
'import/imports-first'?: Linter.RuleEntry<ImportImportsFirst>
|
|
324
324
|
/**
|
|
325
325
|
* Enforce the maximum number of dependencies a module can have.
|
|
326
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
326
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/max-dependencies.md
|
|
327
327
|
*/
|
|
328
328
|
'import/max-dependencies'?: Linter.RuleEntry<ImportMaxDependencies>
|
|
329
329
|
/**
|
|
330
330
|
* Ensure named imports correspond to a named export in the remote file.
|
|
331
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
331
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/named.md
|
|
332
332
|
*/
|
|
333
333
|
'import/named'?: Linter.RuleEntry<ImportNamed>
|
|
334
334
|
/**
|
|
335
335
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
336
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
336
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/namespace.md
|
|
337
337
|
*/
|
|
338
338
|
'import/namespace'?: Linter.RuleEntry<ImportNamespace>
|
|
339
339
|
/**
|
|
340
340
|
* Enforce a newline after import statements.
|
|
341
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
341
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/newline-after-import.md
|
|
342
342
|
*/
|
|
343
343
|
'import/newline-after-import'?: Linter.RuleEntry<ImportNewlineAfterImport>
|
|
344
344
|
/**
|
|
345
345
|
* Forbid import of modules using absolute paths.
|
|
346
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
346
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-absolute-path.md
|
|
347
347
|
*/
|
|
348
348
|
'import/no-absolute-path'?: Linter.RuleEntry<ImportNoAbsolutePath>
|
|
349
349
|
/**
|
|
350
350
|
* Forbid AMD `require` and `define` calls.
|
|
351
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
351
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-amd.md
|
|
352
352
|
*/
|
|
353
353
|
'import/no-amd'?: Linter.RuleEntry<[]>
|
|
354
354
|
/**
|
|
355
355
|
* Forbid anonymous values as default exports.
|
|
356
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
356
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-anonymous-default-export.md
|
|
357
357
|
*/
|
|
358
358
|
'import/no-anonymous-default-export'?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>
|
|
359
359
|
/**
|
|
360
360
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
361
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
361
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-commonjs.md
|
|
362
362
|
*/
|
|
363
363
|
'import/no-commonjs'?: Linter.RuleEntry<ImportNoCommonjs>
|
|
364
364
|
/**
|
|
365
365
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
366
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
366
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-cycle.md
|
|
367
367
|
*/
|
|
368
368
|
'import/no-cycle'?: Linter.RuleEntry<ImportNoCycle>
|
|
369
369
|
/**
|
|
370
370
|
* Forbid default exports.
|
|
371
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
371
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-default-export.md
|
|
372
372
|
*/
|
|
373
373
|
'import/no-default-export'?: Linter.RuleEntry<[]>
|
|
374
374
|
/**
|
|
375
375
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
376
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-deprecated.md
|
|
377
377
|
*/
|
|
378
378
|
'import/no-deprecated'?: Linter.RuleEntry<[]>
|
|
379
379
|
/**
|
|
380
380
|
* Forbid repeated import of the same module in multiple places.
|
|
381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
381
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-duplicates.md
|
|
382
382
|
*/
|
|
383
383
|
'import/no-duplicates'?: Linter.RuleEntry<ImportNoDuplicates>
|
|
384
384
|
/**
|
|
385
385
|
* Forbid `require()` calls with expressions.
|
|
386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
386
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-dynamic-require.md
|
|
387
387
|
*/
|
|
388
388
|
'import/no-dynamic-require'?: Linter.RuleEntry<ImportNoDynamicRequire>
|
|
389
389
|
/**
|
|
390
390
|
* Forbid empty named import blocks.
|
|
391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
391
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-empty-named-blocks.md
|
|
392
392
|
*/
|
|
393
393
|
'import/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
394
394
|
/**
|
|
395
395
|
* Forbid the use of extraneous packages.
|
|
396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
396
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-extraneous-dependencies.md
|
|
397
397
|
*/
|
|
398
398
|
'import/no-extraneous-dependencies'?: Linter.RuleEntry<ImportNoExtraneousDependencies>
|
|
399
399
|
/**
|
|
400
400
|
* Forbid import statements with CommonJS module.exports.
|
|
401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
401
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-import-module-exports.md
|
|
402
402
|
*/
|
|
403
403
|
'import/no-import-module-exports'?: Linter.RuleEntry<ImportNoImportModuleExports>
|
|
404
404
|
/**
|
|
405
405
|
* Forbid importing the submodules of other modules.
|
|
406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
406
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-internal-modules.md
|
|
407
407
|
*/
|
|
408
408
|
'import/no-internal-modules'?: Linter.RuleEntry<ImportNoInternalModules>
|
|
409
409
|
/**
|
|
410
410
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
411
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-mutable-exports.md
|
|
412
412
|
*/
|
|
413
413
|
'import/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
414
414
|
/**
|
|
415
415
|
* Forbid use of exported name as identifier of default export.
|
|
416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
416
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default.md
|
|
417
417
|
*/
|
|
418
418
|
'import/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
419
419
|
/**
|
|
420
420
|
* Forbid use of exported name as property of default export.
|
|
421
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
421
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-as-default-member.md
|
|
422
422
|
*/
|
|
423
423
|
'import/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
424
424
|
/**
|
|
425
425
|
* Forbid named default exports.
|
|
426
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
426
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-default.md
|
|
427
427
|
*/
|
|
428
428
|
'import/no-named-default'?: Linter.RuleEntry<[]>
|
|
429
429
|
/**
|
|
430
430
|
* Forbid named exports.
|
|
431
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
431
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-named-export.md
|
|
432
432
|
*/
|
|
433
433
|
'import/no-named-export'?: Linter.RuleEntry<[]>
|
|
434
434
|
/**
|
|
435
435
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
436
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
436
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-namespace.md
|
|
437
437
|
*/
|
|
438
438
|
'import/no-namespace'?: Linter.RuleEntry<ImportNoNamespace>
|
|
439
439
|
/**
|
|
440
440
|
* Forbid Node.js builtin modules.
|
|
441
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
441
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-nodejs-modules.md
|
|
442
442
|
*/
|
|
443
443
|
'import/no-nodejs-modules'?: Linter.RuleEntry<ImportNoNodejsModules>
|
|
444
444
|
/**
|
|
445
445
|
* Forbid importing packages through relative paths.
|
|
446
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
446
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-packages.md
|
|
447
447
|
*/
|
|
448
448
|
'import/no-relative-packages'?: Linter.RuleEntry<ImportNoRelativePackages>
|
|
449
449
|
/**
|
|
450
450
|
* Forbid importing modules from parent directories.
|
|
451
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
451
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-relative-parent-imports.md
|
|
452
452
|
*/
|
|
453
453
|
'import/no-relative-parent-imports'?: Linter.RuleEntry<ImportNoRelativeParentImports>
|
|
454
454
|
/**
|
|
455
455
|
* Forbid importing a default export by a different name.
|
|
456
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
456
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-rename-default.md
|
|
457
457
|
*/
|
|
458
458
|
'import/no-rename-default'?: Linter.RuleEntry<ImportNoRenameDefault>
|
|
459
459
|
/**
|
|
460
460
|
* Enforce which files can be imported in a given folder.
|
|
461
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
461
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-restricted-paths.md
|
|
462
462
|
*/
|
|
463
463
|
'import/no-restricted-paths'?: Linter.RuleEntry<ImportNoRestrictedPaths>
|
|
464
464
|
/**
|
|
465
465
|
* Forbid a module from importing itself.
|
|
466
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
466
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-self-import.md
|
|
467
467
|
*/
|
|
468
468
|
'import/no-self-import'?: Linter.RuleEntry<[]>
|
|
469
469
|
/**
|
|
470
470
|
* Forbid unassigned imports.
|
|
471
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
471
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unassigned-import.md
|
|
472
472
|
*/
|
|
473
473
|
'import/no-unassigned-import'?: Linter.RuleEntry<ImportNoUnassignedImport>
|
|
474
474
|
/**
|
|
475
475
|
* Ensure imports point to a file/module that can be resolved.
|
|
476
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
476
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unresolved.md
|
|
477
477
|
*/
|
|
478
478
|
'import/no-unresolved'?: Linter.RuleEntry<ImportNoUnresolved>
|
|
479
479
|
/**
|
|
480
480
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
481
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
481
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-unused-modules.md
|
|
482
482
|
*/
|
|
483
483
|
'import/no-unused-modules'?: Linter.RuleEntry<ImportNoUnusedModules>
|
|
484
484
|
/**
|
|
485
485
|
* Forbid unnecessary path segments in import and require statements.
|
|
486
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
486
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-useless-path-segments.md
|
|
487
487
|
*/
|
|
488
488
|
'import/no-useless-path-segments'?: Linter.RuleEntry<ImportNoUselessPathSegments>
|
|
489
489
|
/**
|
|
490
490
|
* Forbid webpack loader syntax in imports.
|
|
491
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
491
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/no-webpack-loader-syntax.md
|
|
492
492
|
*/
|
|
493
493
|
'import/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
494
494
|
/**
|
|
495
495
|
* Enforce a convention in module import order.
|
|
496
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
496
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/order.md
|
|
497
497
|
*/
|
|
498
498
|
'import/order'?: Linter.RuleEntry<ImportOrder>
|
|
499
499
|
/**
|
|
500
500
|
* Prefer a default export if module exports a single name or multiple names.
|
|
501
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
501
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/prefer-default-export.md
|
|
502
502
|
*/
|
|
503
503
|
'import/prefer-default-export'?: Linter.RuleEntry<ImportPreferDefaultExport>
|
|
504
504
|
/**
|
|
505
505
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
506
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
506
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.6.1/docs/rules/unambiguous.md
|
|
507
507
|
*/
|
|
508
508
|
'import/unambiguous'?: Linter.RuleEntry<[]>
|
|
509
509
|
/**
|
|
@@ -10373,4 +10373,6 @@ declare const GLOB_EXCLUDE: string[];
|
|
|
10373
10373
|
|
|
10374
10374
|
declare function lntvow(options?: OptionsConfig & TypedFlatConfigItem, ...userConfigs: Awaitable<TypedFlatConfigItem>[]): FlatConfigComposer<TypedFlatConfigItem, ConfigNames>;
|
|
10375
10375
|
|
|
10376
|
-
|
|
10376
|
+
declare const name = "111333311";
|
|
10377
|
+
|
|
10378
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/dist/index.mjs
CHANGED
|
@@ -215,6 +215,7 @@ async function ignores(ignoresList = []) {
|
|
|
215
215
|
|
|
216
216
|
async function imports(options = {}) {
|
|
217
217
|
return [
|
|
218
|
+
// pluginImport.flatConfigs.typescript,
|
|
218
219
|
{
|
|
219
220
|
name: "lntvow/imports/rules",
|
|
220
221
|
plugins: {
|
|
@@ -257,10 +258,10 @@ async function imports(options = {}) {
|
|
|
257
258
|
// // 'import/dynamic-import-chunkname': 'off',
|
|
258
259
|
// // 'import/exports-last': 'off',
|
|
259
260
|
// // 'import/extensions': 'off',
|
|
260
|
-
|
|
261
|
+
"import/first": "error",
|
|
261
262
|
// // 'import/group-exports': 'off',
|
|
262
263
|
// // 'import/max-dependencies': 'off',
|
|
263
|
-
|
|
264
|
+
"import/newline-after-import": "error",
|
|
264
265
|
// // 'import/no-anonymous-default-export': 'off',
|
|
265
266
|
// // 'import/no-default-export': 'off',
|
|
266
267
|
// 'import/no-duplicates': 'error',
|
|
@@ -268,17 +269,21 @@ async function imports(options = {}) {
|
|
|
268
269
|
// // 'import/no-named-export': 'off',
|
|
269
270
|
// // 'import/no-namespace': 'off',
|
|
270
271
|
// // 'import/no-unassigned-import': 'off',
|
|
271
|
-
|
|
272
|
+
"import/order": "error"
|
|
272
273
|
// // 'import/prefer-default-export': 'off',
|
|
273
274
|
},
|
|
274
275
|
settings: {
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
276
|
+
// 'import-x/resolver': {
|
|
277
|
+
// alias: {
|
|
278
|
+
// map: [['@', './src']],
|
|
279
|
+
// extensions: ['.ts', '.tsx', '.cts', '.mts', '.js', '.jsx', '.cjs', '.mjs', '.d.ts'],
|
|
280
|
+
// },
|
|
281
|
+
// node: true,
|
|
282
|
+
// typescript: true,
|
|
283
|
+
// },
|
|
284
|
+
// 'import-x/parsers': {
|
|
285
|
+
// '@typescript-eslint/parser': [],
|
|
286
|
+
// },
|
|
282
287
|
}
|
|
283
288
|
}
|
|
284
289
|
];
|
|
@@ -1131,4 +1136,6 @@ function resolveSubOptions(options, key) {
|
|
|
1131
1136
|
return isBoolean(options[key]) ? {} : options[key] || {};
|
|
1132
1137
|
}
|
|
1133
1138
|
|
|
1134
|
-
|
|
1139
|
+
const name = "111333311";
|
|
1140
|
+
|
|
1141
|
+
export { GLOB_ALL_SRC, GLOB_ASTRO, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML, combine, custom, disables, gitignore, ignores, imports, javascript, lntvow, name, notInRecommendedRules, prettier, regexp, renameRules, stylistic, test, typescript, vue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lntvow/eslint-config",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.2",
|
|
4
4
|
"description": "eslint-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"keywords": [
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
"eslint-config-prettier": "^9.1.0",
|
|
40
40
|
"eslint-flat-config-utils": "^0.4.0",
|
|
41
41
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
42
|
-
"eslint-
|
|
42
|
+
"eslint-import-resolver-typescript": "^3.8.3",
|
|
43
|
+
"eslint-plugin-import-x": "^4.6.1",
|
|
43
44
|
"eslint-plugin-prettier": "^5.2.1",
|
|
44
45
|
"eslint-plugin-regexp": "^2.6.0",
|
|
45
46
|
"eslint-plugin-vitest": "^0.5.4",
|
|
@@ -50,7 +51,7 @@
|
|
|
50
51
|
"parse-gitignore": "^2.0.0",
|
|
51
52
|
"typescript": "^5.6.3",
|
|
52
53
|
"vue-eslint-parser": "^9.4.3",
|
|
53
|
-
"@lntvow/eslint-plugin": "^9.20.
|
|
54
|
+
"@lntvow/eslint-plugin": "^9.20.2"
|
|
54
55
|
},
|
|
55
56
|
"scripts": {
|
|
56
57
|
"dev": "unbuild --stub",
|