@jimmy.codes/eslint-config 3.25.0 → 3.26.0
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 +1 -1
- package/dist/index.d.cts +151 -92
- package/dist/index.d.mts +151 -92
- package/dist/index.mjs +1 -1
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as eslint_plugin_regexp from 'eslint-plugin-regexp';
|
|
2
2
|
import * as eslint_plugin_react from 'eslint-plugin-react';
|
|
3
3
|
import * as eslint_plugin_n from 'eslint-plugin-n';
|
|
4
|
+
import * as eslint_plugin_import_x_utils_resolve_js from 'eslint-plugin-import-x/utils/resolve.js';
|
|
4
5
|
import * as eslint_plugin_import_x_utils_module_visitor_js from 'eslint-plugin-import-x/utils/module-visitor.js';
|
|
5
6
|
import * as eslint_plugin_import_x_types_js from 'eslint-plugin-import-x/types.js';
|
|
6
7
|
import * as eslint_plugin_astro from 'eslint-plugin-astro';
|
|
@@ -1373,233 +1374,233 @@ interface RuleOptions {
|
|
|
1373
1374
|
'implicit-arrow-linebreak'?: Linter.RuleEntry<ImplicitArrowLinebreak>
|
|
1374
1375
|
/**
|
|
1375
1376
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1376
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1377
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/consistent-type-specifier-style.md
|
|
1377
1378
|
*/
|
|
1378
1379
|
'import-x/consistent-type-specifier-style'?: Linter.RuleEntry<ImportXConsistentTypeSpecifierStyle>
|
|
1379
1380
|
/**
|
|
1380
1381
|
* Ensure a default export is present, given a default import.
|
|
1381
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1382
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/default.md
|
|
1382
1383
|
*/
|
|
1383
1384
|
'import-x/default'?: Linter.RuleEntry<[]>
|
|
1384
1385
|
/**
|
|
1385
1386
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1386
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1387
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/dynamic-import-chunkname.md
|
|
1387
1388
|
*/
|
|
1388
1389
|
'import-x/dynamic-import-chunkname'?: Linter.RuleEntry<ImportXDynamicImportChunkname>
|
|
1389
1390
|
/**
|
|
1390
1391
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1391
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1392
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/export.md
|
|
1392
1393
|
*/
|
|
1393
1394
|
'import-x/export'?: Linter.RuleEntry<[]>
|
|
1394
1395
|
/**
|
|
1395
1396
|
* Ensure all exports appear after other statements.
|
|
1396
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1397
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/exports-last.md
|
|
1397
1398
|
*/
|
|
1398
1399
|
'import-x/exports-last'?: Linter.RuleEntry<[]>
|
|
1399
1400
|
/**
|
|
1400
1401
|
* Ensure consistent use of file extension within the import path.
|
|
1401
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1402
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/extensions.md
|
|
1402
1403
|
*/
|
|
1403
1404
|
'import-x/extensions'?: Linter.RuleEntry<ImportXExtensions>
|
|
1404
1405
|
/**
|
|
1405
1406
|
* Ensure all imports appear before other statements.
|
|
1406
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1407
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/first.md
|
|
1407
1408
|
*/
|
|
1408
1409
|
'import-x/first'?: Linter.RuleEntry<ImportXFirst>
|
|
1409
1410
|
/**
|
|
1410
1411
|
* Prefer named exports to be grouped together in a single export declaration.
|
|
1411
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1412
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/group-exports.md
|
|
1412
1413
|
*/
|
|
1413
1414
|
'import-x/group-exports'?: Linter.RuleEntry<[]>
|
|
1414
1415
|
/**
|
|
1415
1416
|
* Replaced by `import-x/first`.
|
|
1416
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1417
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/imports-first.md
|
|
1417
1418
|
* @deprecated
|
|
1418
1419
|
*/
|
|
1419
1420
|
'import-x/imports-first'?: Linter.RuleEntry<ImportXImportsFirst>
|
|
1420
1421
|
/**
|
|
1421
1422
|
* Enforce the maximum number of dependencies a module can have.
|
|
1422
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/max-dependencies.md
|
|
1423
1424
|
*/
|
|
1424
1425
|
'import-x/max-dependencies'?: Linter.RuleEntry<ImportXMaxDependencies>
|
|
1425
1426
|
/**
|
|
1426
1427
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1427
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/named.md
|
|
1428
1429
|
*/
|
|
1429
1430
|
'import-x/named'?: Linter.RuleEntry<ImportXNamed>
|
|
1430
1431
|
/**
|
|
1431
1432
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1432
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/namespace.md
|
|
1433
1434
|
*/
|
|
1434
1435
|
'import-x/namespace'?: Linter.RuleEntry<ImportXNamespace>
|
|
1435
1436
|
/**
|
|
1436
1437
|
* Enforce a newline after import statements.
|
|
1437
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/newline-after-import.md
|
|
1438
1439
|
*/
|
|
1439
1440
|
'import-x/newline-after-import'?: Linter.RuleEntry<ImportXNewlineAfterImport>
|
|
1440
1441
|
/**
|
|
1441
1442
|
* Forbid import of modules using absolute paths.
|
|
1442
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-absolute-path.md
|
|
1443
1444
|
*/
|
|
1444
1445
|
'import-x/no-absolute-path'?: Linter.RuleEntry<ImportXNoAbsolutePath>
|
|
1445
1446
|
/**
|
|
1446
1447
|
* Forbid AMD `require` and `define` calls.
|
|
1447
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-amd.md
|
|
1448
1449
|
*/
|
|
1449
1450
|
'import-x/no-amd'?: Linter.RuleEntry<[]>
|
|
1450
1451
|
/**
|
|
1451
1452
|
* Forbid anonymous values as default exports.
|
|
1452
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-anonymous-default-export.md
|
|
1453
1454
|
*/
|
|
1454
1455
|
'import-x/no-anonymous-default-export'?: Linter.RuleEntry<ImportXNoAnonymousDefaultExport>
|
|
1455
1456
|
/**
|
|
1456
1457
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1457
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-commonjs.md
|
|
1458
1459
|
*/
|
|
1459
1460
|
'import-x/no-commonjs'?: Linter.RuleEntry<ImportXNoCommonjs>
|
|
1460
1461
|
/**
|
|
1461
1462
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1462
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-cycle.md
|
|
1463
1464
|
*/
|
|
1464
1465
|
'import-x/no-cycle'?: Linter.RuleEntry<ImportXNoCycle>
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Forbid default exports.
|
|
1467
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-default-export.md
|
|
1468
1469
|
*/
|
|
1469
1470
|
'import-x/no-default-export'?: Linter.RuleEntry<[]>
|
|
1470
1471
|
/**
|
|
1471
1472
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1472
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-deprecated.md
|
|
1473
1474
|
*/
|
|
1474
1475
|
'import-x/no-deprecated'?: Linter.RuleEntry<[]>
|
|
1475
1476
|
/**
|
|
1476
1477
|
* Forbid repeated import of the same module in multiple places.
|
|
1477
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-duplicates.md
|
|
1478
1479
|
*/
|
|
1479
1480
|
'import-x/no-duplicates'?: Linter.RuleEntry<ImportXNoDuplicates>
|
|
1480
1481
|
/**
|
|
1481
1482
|
* Forbid `require()` calls with expressions.
|
|
1482
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-dynamic-require.md
|
|
1483
1484
|
*/
|
|
1484
1485
|
'import-x/no-dynamic-require'?: Linter.RuleEntry<ImportXNoDynamicRequire>
|
|
1485
1486
|
/**
|
|
1486
1487
|
* Forbid empty named import blocks.
|
|
1487
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-empty-named-blocks.md
|
|
1488
1489
|
*/
|
|
1489
1490
|
'import-x/no-empty-named-blocks'?: Linter.RuleEntry<[]>
|
|
1490
1491
|
/**
|
|
1491
1492
|
* Forbid the use of extraneous packages.
|
|
1492
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-extraneous-dependencies.md
|
|
1493
1494
|
*/
|
|
1494
1495
|
'import-x/no-extraneous-dependencies'?: Linter.RuleEntry<ImportXNoExtraneousDependencies>
|
|
1495
1496
|
/**
|
|
1496
1497
|
* Forbid import statements with CommonJS module.exports.
|
|
1497
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-import-module-exports.md
|
|
1498
1499
|
*/
|
|
1499
1500
|
'import-x/no-import-module-exports'?: Linter.RuleEntry<ImportXNoImportModuleExports>
|
|
1500
1501
|
/**
|
|
1501
1502
|
* Forbid importing the submodules of other modules.
|
|
1502
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-internal-modules.md
|
|
1503
1504
|
*/
|
|
1504
1505
|
'import-x/no-internal-modules'?: Linter.RuleEntry<ImportXNoInternalModules>
|
|
1505
1506
|
/**
|
|
1506
1507
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1507
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-mutable-exports.md
|
|
1508
1509
|
*/
|
|
1509
1510
|
'import-x/no-mutable-exports'?: Linter.RuleEntry<[]>
|
|
1510
1511
|
/**
|
|
1511
1512
|
* Forbid use of exported name as identifier of default export.
|
|
1512
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default.md
|
|
1513
1514
|
*/
|
|
1514
1515
|
'import-x/no-named-as-default'?: Linter.RuleEntry<[]>
|
|
1515
1516
|
/**
|
|
1516
1517
|
* Forbid use of exported name as property of default export.
|
|
1517
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-as-default-member.md
|
|
1518
1519
|
*/
|
|
1519
1520
|
'import-x/no-named-as-default-member'?: Linter.RuleEntry<[]>
|
|
1520
1521
|
/**
|
|
1521
1522
|
* Forbid named default exports.
|
|
1522
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-default.md
|
|
1523
1524
|
*/
|
|
1524
1525
|
'import-x/no-named-default'?: Linter.RuleEntry<[]>
|
|
1525
1526
|
/**
|
|
1526
1527
|
* Forbid named exports.
|
|
1527
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-named-export.md
|
|
1528
1529
|
*/
|
|
1529
1530
|
'import-x/no-named-export'?: Linter.RuleEntry<[]>
|
|
1530
1531
|
/**
|
|
1531
1532
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1532
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-namespace.md
|
|
1533
1534
|
*/
|
|
1534
1535
|
'import-x/no-namespace'?: Linter.RuleEntry<ImportXNoNamespace>
|
|
1535
1536
|
/**
|
|
1536
1537
|
* Forbid Node.js builtin modules.
|
|
1537
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-nodejs-modules.md
|
|
1538
1539
|
*/
|
|
1539
1540
|
'import-x/no-nodejs-modules'?: Linter.RuleEntry<ImportXNoNodejsModules>
|
|
1540
1541
|
/**
|
|
1541
1542
|
* Forbid importing packages through relative paths.
|
|
1542
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-packages.md
|
|
1543
1544
|
*/
|
|
1544
1545
|
'import-x/no-relative-packages'?: Linter.RuleEntry<ImportXNoRelativePackages>
|
|
1545
1546
|
/**
|
|
1546
1547
|
* Forbid importing modules from parent directories.
|
|
1547
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1548
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-relative-parent-imports.md
|
|
1548
1549
|
*/
|
|
1549
1550
|
'import-x/no-relative-parent-imports'?: Linter.RuleEntry<ImportXNoRelativeParentImports>
|
|
1550
1551
|
/**
|
|
1551
1552
|
* Forbid importing a default export by a different name.
|
|
1552
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1553
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-rename-default.md
|
|
1553
1554
|
*/
|
|
1554
1555
|
'import-x/no-rename-default'?: Linter.RuleEntry<ImportXNoRenameDefault>
|
|
1555
1556
|
/**
|
|
1556
1557
|
* Enforce which files can be imported in a given folder.
|
|
1557
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1558
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-restricted-paths.md
|
|
1558
1559
|
*/
|
|
1559
1560
|
'import-x/no-restricted-paths'?: Linter.RuleEntry<ImportXNoRestrictedPaths>
|
|
1560
1561
|
/**
|
|
1561
1562
|
* Forbid a module from importing itself.
|
|
1562
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1563
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-self-import.md
|
|
1563
1564
|
*/
|
|
1564
1565
|
'import-x/no-self-import'?: Linter.RuleEntry<[]>
|
|
1565
1566
|
/**
|
|
1566
1567
|
* Forbid unassigned imports.
|
|
1567
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1568
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unassigned-import.md
|
|
1568
1569
|
*/
|
|
1569
1570
|
'import-x/no-unassigned-import'?: Linter.RuleEntry<ImportXNoUnassignedImport>
|
|
1570
1571
|
/**
|
|
1571
1572
|
* Ensure imports point to a file/module that can be resolved.
|
|
1572
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1573
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unresolved.md
|
|
1573
1574
|
*/
|
|
1574
1575
|
'import-x/no-unresolved'?: Linter.RuleEntry<ImportXNoUnresolved>
|
|
1575
1576
|
/**
|
|
1576
1577
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1577
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1578
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-unused-modules.md
|
|
1578
1579
|
*/
|
|
1579
1580
|
'import-x/no-unused-modules'?: Linter.RuleEntry<ImportXNoUnusedModules>
|
|
1580
1581
|
/**
|
|
1581
1582
|
* Forbid unnecessary path segments in import and require statements.
|
|
1582
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1583
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-useless-path-segments.md
|
|
1583
1584
|
*/
|
|
1584
1585
|
'import-x/no-useless-path-segments'?: Linter.RuleEntry<ImportXNoUselessPathSegments>
|
|
1585
1586
|
/**
|
|
1586
1587
|
* Forbid webpack loader syntax in imports.
|
|
1587
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1588
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/no-webpack-loader-syntax.md
|
|
1588
1589
|
*/
|
|
1589
1590
|
'import-x/no-webpack-loader-syntax'?: Linter.RuleEntry<[]>
|
|
1590
1591
|
/**
|
|
1591
1592
|
* Enforce a convention in module import order.
|
|
1592
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1593
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/order.md
|
|
1593
1594
|
*/
|
|
1594
1595
|
'import-x/order'?: Linter.RuleEntry<ImportXOrder>
|
|
1595
1596
|
/**
|
|
1596
1597
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1597
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1598
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/prefer-default-export.md
|
|
1598
1599
|
*/
|
|
1599
1600
|
'import-x/prefer-default-export'?: Linter.RuleEntry<ImportXPreferDefaultExport>
|
|
1600
1601
|
/**
|
|
1601
1602
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1602
|
-
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.
|
|
1603
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v4.5.0/docs/rules/unambiguous.md
|
|
1603
1604
|
*/
|
|
1604
1605
|
'import-x/unambiguous'?: Linter.RuleEntry<[]>
|
|
1605
1606
|
/**
|
|
@@ -9263,6 +9264,10 @@ type PerfectionistSortArrayIncludes = []|[{
|
|
|
9263
9264
|
// ----- perfectionist/sort-classes -----
|
|
9264
9265
|
type PerfectionistSortClasses = []|[{
|
|
9265
9266
|
|
|
9267
|
+
ignoreCallbackDependenciesPatterns?: string[]
|
|
9268
|
+
|
|
9269
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9270
|
+
|
|
9266
9271
|
customGroups?: ({
|
|
9267
9272
|
|
|
9268
9273
|
groupName?: string
|
|
@@ -9272,12 +9277,12 @@ type PerfectionistSortClasses = []|[{
|
|
|
9272
9277
|
order?: ("desc" | "asc")
|
|
9273
9278
|
anyOf?: {
|
|
9274
9279
|
|
|
9275
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9276
|
-
|
|
9277
9280
|
elementValuePattern?: string
|
|
9278
9281
|
|
|
9279
9282
|
decoratorNamePattern?: string
|
|
9280
9283
|
|
|
9284
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9285
|
+
|
|
9281
9286
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9282
9287
|
|
|
9283
9288
|
elementNamePattern?: string
|
|
@@ -9290,21 +9295,17 @@ type PerfectionistSortClasses = []|[{
|
|
|
9290
9295
|
|
|
9291
9296
|
order?: ("desc" | "asc")
|
|
9292
9297
|
|
|
9293
|
-
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9294
|
-
|
|
9295
9298
|
elementValuePattern?: string
|
|
9296
9299
|
|
|
9297
9300
|
decoratorNamePattern?: string
|
|
9298
9301
|
|
|
9302
|
+
modifiers?: ("async" | "protected" | "private" | "public" | "static" | "abstract" | "override" | "readonly" | "decorated" | "declare" | "optional")[]
|
|
9303
|
+
|
|
9299
9304
|
selector?: ("accessor-property" | "index-signature" | "constructor" | "static-block" | "get-method" | "set-method" | "function-property" | "property" | "method")
|
|
9300
9305
|
|
|
9301
9306
|
elementNamePattern?: string
|
|
9302
9307
|
})[]
|
|
9303
9308
|
|
|
9304
|
-
ignoreCallbackDependenciesPatterns?: string[]
|
|
9305
|
-
|
|
9306
|
-
partitionByComment?: (string[] | boolean | string)
|
|
9307
|
-
|
|
9308
9309
|
partitionByNewLine?: boolean
|
|
9309
9310
|
|
|
9310
9311
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
@@ -9467,8 +9468,39 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
9467
9468
|
ignorePattern?: string[]
|
|
9468
9469
|
|
|
9469
9470
|
partitionByComment?: (string[] | boolean | string)
|
|
9471
|
+
customGroups?: ({
|
|
9472
|
+
[k: string]: (string | string[]) | undefined
|
|
9473
|
+
} | ({
|
|
9474
|
+
|
|
9475
|
+
groupName?: string
|
|
9476
|
+
|
|
9477
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9478
|
+
|
|
9479
|
+
order?: ("desc" | "asc")
|
|
9480
|
+
anyOf?: {
|
|
9481
|
+
|
|
9482
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
9483
|
+
|
|
9484
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9485
|
+
|
|
9486
|
+
elementNamePattern?: string
|
|
9487
|
+
}[]
|
|
9488
|
+
} | {
|
|
9489
|
+
|
|
9490
|
+
groupName?: string
|
|
9491
|
+
|
|
9492
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9493
|
+
|
|
9494
|
+
order?: ("desc" | "asc")
|
|
9495
|
+
|
|
9496
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
9497
|
+
|
|
9498
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9499
|
+
|
|
9500
|
+
elementNamePattern?: string
|
|
9501
|
+
})[])
|
|
9470
9502
|
|
|
9471
|
-
groupKind?: ("mixed" | "
|
|
9503
|
+
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9472
9504
|
|
|
9473
9505
|
partitionByNewLine?: boolean
|
|
9474
9506
|
|
|
@@ -9476,10 +9508,6 @@ type PerfectionistSortInterfaces = []|[{
|
|
|
9476
9508
|
|
|
9477
9509
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9478
9510
|
|
|
9479
|
-
customGroups?: {
|
|
9480
|
-
[k: string]: (string | string[]) | undefined
|
|
9481
|
-
}
|
|
9482
|
-
|
|
9483
9511
|
ignoreCase?: boolean
|
|
9484
9512
|
|
|
9485
9513
|
locales?: (string | string[])
|
|
@@ -9552,6 +9580,8 @@ type PerfectionistSortMaps = []|[{
|
|
|
9552
9580
|
// ----- perfectionist/sort-modules -----
|
|
9553
9581
|
type PerfectionistSortModules = []|[{
|
|
9554
9582
|
|
|
9583
|
+
partitionByComment?: (string[] | boolean | string)
|
|
9584
|
+
|
|
9555
9585
|
customGroups?: ({
|
|
9556
9586
|
|
|
9557
9587
|
groupName?: string
|
|
@@ -9561,12 +9591,10 @@ type PerfectionistSortModules = []|[{
|
|
|
9561
9591
|
order?: ("desc" | "asc")
|
|
9562
9592
|
anyOf?: {
|
|
9563
9593
|
|
|
9564
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9565
|
-
|
|
9566
|
-
elementValuePattern?: string
|
|
9567
|
-
|
|
9568
9594
|
decoratorNamePattern?: string
|
|
9569
9595
|
|
|
9596
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9597
|
+
|
|
9570
9598
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
9571
9599
|
|
|
9572
9600
|
elementNamePattern?: string
|
|
@@ -9579,19 +9607,15 @@ type PerfectionistSortModules = []|[{
|
|
|
9579
9607
|
|
|
9580
9608
|
order?: ("desc" | "asc")
|
|
9581
9609
|
|
|
9582
|
-
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9583
|
-
|
|
9584
|
-
elementValuePattern?: string
|
|
9585
|
-
|
|
9586
9610
|
decoratorNamePattern?: string
|
|
9587
9611
|
|
|
9612
|
+
modifiers?: ("async" | "declare" | "decorated" | "default" | "export")[]
|
|
9613
|
+
|
|
9588
9614
|
selector?: ("enum" | "function" | "interface" | "type" | "class")
|
|
9589
9615
|
|
|
9590
9616
|
elementNamePattern?: string
|
|
9591
9617
|
})[]
|
|
9592
9618
|
|
|
9593
|
-
partitionByComment?: (string[] | boolean | string)
|
|
9594
|
-
|
|
9595
9619
|
partitionByNewLine?: boolean
|
|
9596
9620
|
|
|
9597
9621
|
specialCharacters?: ("remove" | "trim" | "keep")
|
|
@@ -9651,7 +9675,40 @@ type PerfectionistSortNamedImports = []|[{
|
|
|
9651
9675
|
// ----- perfectionist/sort-object-types -----
|
|
9652
9676
|
type PerfectionistSortObjectTypes = []|[{
|
|
9653
9677
|
|
|
9678
|
+
ignorePattern?: string[]
|
|
9679
|
+
|
|
9654
9680
|
partitionByComment?: (string[] | boolean | string)
|
|
9681
|
+
customGroups?: ({
|
|
9682
|
+
[k: string]: (string | string[]) | undefined
|
|
9683
|
+
} | ({
|
|
9684
|
+
|
|
9685
|
+
groupName?: string
|
|
9686
|
+
|
|
9687
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9688
|
+
|
|
9689
|
+
order?: ("desc" | "asc")
|
|
9690
|
+
anyOf?: {
|
|
9691
|
+
|
|
9692
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
9693
|
+
|
|
9694
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9695
|
+
|
|
9696
|
+
elementNamePattern?: string
|
|
9697
|
+
}[]
|
|
9698
|
+
} | {
|
|
9699
|
+
|
|
9700
|
+
groupName?: string
|
|
9701
|
+
|
|
9702
|
+
type?: ("alphabetical" | "line-length" | "natural" | "unsorted")
|
|
9703
|
+
|
|
9704
|
+
order?: ("desc" | "asc")
|
|
9705
|
+
|
|
9706
|
+
modifiers?: ("optional" | "required" | "multiline")[]
|
|
9707
|
+
|
|
9708
|
+
selector?: ("index-signature" | "member" | "method" | "multiline" | "property")
|
|
9709
|
+
|
|
9710
|
+
elementNamePattern?: string
|
|
9711
|
+
})[])
|
|
9655
9712
|
|
|
9656
9713
|
groupKind?: ("mixed" | "required-first" | "optional-first")
|
|
9657
9714
|
|
|
@@ -9661,10 +9718,6 @@ type PerfectionistSortObjectTypes = []|[{
|
|
|
9661
9718
|
|
|
9662
9719
|
newlinesBetween?: ("ignore" | "always" | "never")
|
|
9663
9720
|
|
|
9664
|
-
customGroups?: {
|
|
9665
|
-
[k: string]: (string | string[]) | undefined
|
|
9666
|
-
}
|
|
9667
|
-
|
|
9668
9721
|
ignoreCase?: boolean
|
|
9669
9722
|
|
|
9670
9723
|
locales?: (string | string[])
|
|
@@ -11211,19 +11264,24 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11211
11264
|
'import-x/named': "off";
|
|
11212
11265
|
};
|
|
11213
11266
|
settings: {
|
|
11214
|
-
"import-x/
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
'import-x/external-module-folders': string[];
|
|
11219
|
-
'import-x/parsers': {
|
|
11220
|
-
"@typescript-eslint/parser": (".ts" | ".tsx" | ".cts" | ".mts")[];
|
|
11267
|
+
"import-x/extensions": readonly [".ts", ".tsx", ".cts", ".mts", ".js", ".jsx", ".cjs", ".mjs"];
|
|
11268
|
+
"import-x/external-module-folders": string[];
|
|
11269
|
+
"import-x/parsers": {
|
|
11270
|
+
'@typescript-eslint/parser': (".ts" | ".tsx" | ".cts" | ".mts")[];
|
|
11221
11271
|
};
|
|
11272
|
+
"import-x/resolver-next": {
|
|
11273
|
+
interfaceVersion: number;
|
|
11274
|
+
name: string;
|
|
11275
|
+
resolve(source: string, file: string): {
|
|
11276
|
+
found: boolean;
|
|
11277
|
+
path?: string | null | undefined;
|
|
11278
|
+
};
|
|
11279
|
+
}[];
|
|
11222
11280
|
};
|
|
11223
11281
|
} | {
|
|
11224
|
-
name:
|
|
11225
|
-
plugins: {
|
|
11226
|
-
"import-x": {
|
|
11282
|
+
readonly name: "jimmy.codes/imports";
|
|
11283
|
+
readonly plugins: {
|
|
11284
|
+
readonly "import-x": {
|
|
11227
11285
|
configs: {
|
|
11228
11286
|
recommended: {
|
|
11229
11287
|
plugins: ["import-x"];
|
|
@@ -11367,7 +11425,7 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11367
11425
|
category?: string;
|
|
11368
11426
|
recommended?: true;
|
|
11369
11427
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11370
|
-
namespace: _typescript_eslint_utils_ts_eslint.RuleModule<"noNamesFound" | "computedReference" | "namespaceMember" | "topLevelNames" | "notFoundInNamespace", [{
|
|
11428
|
+
namespace: _typescript_eslint_utils_ts_eslint.RuleModule<"noNamesFound" | "computedReference" | "namespaceMember" | "topLevelNames" | "notFoundInNamespace" | "notFoundInNamespaceDeep", [{
|
|
11371
11429
|
allowComputed?: boolean;
|
|
11372
11430
|
}], {
|
|
11373
11431
|
category?: string;
|
|
@@ -11437,10 +11495,10 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11437
11495
|
category?: string;
|
|
11438
11496
|
recommended?: true;
|
|
11439
11497
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11440
|
-
"no-cycle": _typescript_eslint_utils_ts_eslint.RuleModule<"cycle", [(({
|
|
11498
|
+
"no-cycle": _typescript_eslint_utils_ts_eslint.RuleModule<"cycle" | "cycleSource", [(({
|
|
11441
11499
|
allowUnsafeDynamicCyclicDependency?: boolean;
|
|
11442
11500
|
ignoreExternal?: boolean;
|
|
11443
|
-
maxDepth?: number;
|
|
11501
|
+
maxDepth?: number | "\u221E";
|
|
11444
11502
|
} & eslint_plugin_import_x_utils_module_visitor_js.ModuleOptions) | undefined)?], {
|
|
11445
11503
|
category?: string;
|
|
11446
11504
|
recommended?: true;
|
|
@@ -11479,7 +11537,7 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11479
11537
|
"no-unused-modules": _typescript_eslint_utils_ts_eslint.RuleModule<"notFound" | "unused", {
|
|
11480
11538
|
src?: string[];
|
|
11481
11539
|
ignoreExports?: string[];
|
|
11482
|
-
missingExports?:
|
|
11540
|
+
missingExports?: true;
|
|
11483
11541
|
unusedExports?: boolean;
|
|
11484
11542
|
ignoreUnusedTypeExports?: boolean;
|
|
11485
11543
|
}[], {
|
|
@@ -11505,7 +11563,7 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11505
11563
|
category?: string;
|
|
11506
11564
|
recommended?: true;
|
|
11507
11565
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11508
|
-
first: _typescript_eslint_utils_ts_eslint.RuleModule<"absolute" | "order", [("absolute-first" | undefined)?], {
|
|
11566
|
+
first: _typescript_eslint_utils_ts_eslint.RuleModule<"absolute" | "order", [(("absolute-first" | "disable-absolute-first") | undefined)?], {
|
|
11509
11567
|
category?: string;
|
|
11510
11568
|
recommended?: true;
|
|
11511
11569
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
@@ -11621,21 +11679,22 @@ declare const eslintConfig: ({ astro, autoDetect, configs, ignores, jest, nextjs
|
|
|
11621
11679
|
category?: string;
|
|
11622
11680
|
recommended?: true;
|
|
11623
11681
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11624
|
-
"no-deprecated": _typescript_eslint_utils_ts_eslint.RuleModule<"deprecated", [], {
|
|
11682
|
+
"no-deprecated": _typescript_eslint_utils_ts_eslint.RuleModule<"deprecated" | "deprecatedDesc", [], {
|
|
11625
11683
|
category?: string;
|
|
11626
11684
|
recommended?: true;
|
|
11627
11685
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11628
|
-
"imports-first": _typescript_eslint_utils_ts_eslint.RuleModule<"absolute" | "order", [("absolute-first" | undefined)?], {
|
|
11686
|
+
"imports-first": _typescript_eslint_utils_ts_eslint.RuleModule<"absolute" | "order", [(("absolute-first" | "disable-absolute-first") | undefined)?], {
|
|
11629
11687
|
category?: string;
|
|
11630
11688
|
recommended?: true;
|
|
11631
11689
|
}, _typescript_eslint_utils_ts_eslint.RuleListener>;
|
|
11632
11690
|
};
|
|
11691
|
+
importXResolverCompat: typeof eslint_plugin_import_x_utils_resolve_js.importXResolverCompat;
|
|
11633
11692
|
};
|
|
11634
|
-
n: eslint.ESLint.Plugin & {
|
|
11693
|
+
readonly n: eslint.ESLint.Plugin & {
|
|
11635
11694
|
configs: eslint_plugin_n.Configs;
|
|
11636
11695
|
};
|
|
11637
11696
|
};
|
|
11638
|
-
rules: {
|
|
11697
|
+
readonly rules: {
|
|
11639
11698
|
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"];
|
|
11640
11699
|
"import-x/extensions": ["error", "never", {
|
|
11641
11700
|
checkTypedImports: boolean;
|