@jsse/eslint-config 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.cjs +1 -3
- package/dist/index.d.cts +56 -50
- package/dist/index.d.ts +56 -50
- package/dist/index.js +1 -3
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
package/dist/cli.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -9734,7 +9734,7 @@ var import_eslint_plugin2 = __toESM(require("@typescript-eslint/eslint-plugin"),
|
|
|
9734
9734
|
var parserTs = __toESM(require("@typescript-eslint/parser"), 1);
|
|
9735
9735
|
var import_eslint_plugin_antfu = __toESM(require("eslint-plugin-antfu"), 1);
|
|
9736
9736
|
var import_eslint_plugin_eslint_comments = __toESM(require("eslint-plugin-eslint-comments"), 1);
|
|
9737
|
-
var pluginImport = __toESM(require("eslint-plugin-
|
|
9737
|
+
var pluginImport = __toESM(require("eslint-plugin-import-x"), 1);
|
|
9738
9738
|
var import_eslint_plugin_jsdoc = __toESM(require("eslint-plugin-jsdoc"), 1);
|
|
9739
9739
|
var pluginJsonc = __toESM(require("eslint-plugin-jsonc"), 1);
|
|
9740
9740
|
var import_eslint_plugin_markdown = __toESM(require("eslint-plugin-markdown"), 1);
|
|
@@ -10388,7 +10388,6 @@ var imports = async (options) => {
|
|
|
10388
10388
|
{
|
|
10389
10389
|
name: "jsse:imports",
|
|
10390
10390
|
plugins: {
|
|
10391
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10392
10391
|
import: pluginImport
|
|
10393
10392
|
},
|
|
10394
10393
|
rules: {
|
|
@@ -11589,7 +11588,6 @@ var typescript = async (options) => {
|
|
|
11589
11588
|
// Install the plugins without globs, so they can be configured separately.
|
|
11590
11589
|
name: "jsse:typescript:setup",
|
|
11591
11590
|
plugins: {
|
|
11592
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11593
11591
|
import: pluginImport,
|
|
11594
11592
|
[tsPrefixTo]: import_eslint_plugin2.default
|
|
11595
11593
|
}
|
package/dist/index.d.cts
CHANGED
|
@@ -7,8 +7,8 @@ export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
|
7
7
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
8
8
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
9
9
|
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
10
|
-
import * as
|
|
11
|
-
export {
|
|
10
|
+
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
11
|
+
export { eslintPluginImportX as pluginImport };
|
|
12
12
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
13
13
|
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
14
14
|
export { eslintPluginJsonc as pluginJsonc };
|
|
@@ -1319,227 +1319,228 @@ interface RuleOptions {
|
|
|
1319
1319
|
"eslint-comments/require-description"?: Linter.RuleEntry<EslintCommentsRequireDescription>;
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1322
|
-
* @see https://github.com/
|
|
1322
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/consistent-type-specifier-style.md
|
|
1323
1323
|
*/
|
|
1324
1324
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Ensure a default export is present, given a default import.
|
|
1327
|
-
* @see https://github.com/
|
|
1327
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/default.md
|
|
1328
1328
|
*/
|
|
1329
1329
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1332
|
-
* @see https://github.com/
|
|
1332
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/dynamic-import-chunkname.md
|
|
1333
1333
|
*/
|
|
1334
1334
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1337
|
-
* @see https://github.com/
|
|
1337
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/export.md
|
|
1338
1338
|
*/
|
|
1339
1339
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Ensure all exports appear after other statements.
|
|
1342
|
-
* @see https://github.com/
|
|
1342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/exports-last.md
|
|
1343
1343
|
*/
|
|
1344
1344
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Ensure consistent use of file extension within the import path.
|
|
1347
|
-
* @see https://github.com/
|
|
1347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/extensions.md
|
|
1348
1348
|
*/
|
|
1349
1349
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Ensure all imports appear before other statements.
|
|
1352
|
-
* @see https://github.com/
|
|
1352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/first.md
|
|
1353
1353
|
*/
|
|
1354
1354
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
1355
1355
|
/**
|
|
1356
|
-
* Prefer named exports to be grouped together in a single export declaration
|
|
1357
|
-
* @see https://github.com/
|
|
1356
|
+
* Prefer named exports to be grouped together in a single export declaration.
|
|
1357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/group-exports.md
|
|
1358
1358
|
*/
|
|
1359
|
-
"import/group-exports"?: Linter.RuleEntry<
|
|
1359
|
+
"import/group-exports"?: Linter.RuleEntry<ImportGroupExports>;
|
|
1360
1360
|
/**
|
|
1361
|
-
* Replaced by `import/first`.
|
|
1362
|
-
* @see https://github.com/
|
|
1361
|
+
* Replaced by `import-x/first`.
|
|
1362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
|
|
1363
1363
|
* @deprecated
|
|
1364
1364
|
*/
|
|
1365
1365
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Enforce the maximum number of dependencies a module can have.
|
|
1368
|
-
* @see https://github.com/
|
|
1368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/max-dependencies.md
|
|
1369
1369
|
*/
|
|
1370
1370
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1373
|
-
* @see https://github.com/
|
|
1373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/named.md
|
|
1374
1374
|
*/
|
|
1375
1375
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1378
|
-
* @see https://github.com/
|
|
1378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/namespace.md
|
|
1379
1379
|
*/
|
|
1380
1380
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Enforce a newline after import statements.
|
|
1383
|
-
* @see https://github.com/
|
|
1383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/newline-after-import.md
|
|
1384
1384
|
*/
|
|
1385
1385
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Forbid import of modules using absolute paths.
|
|
1388
|
-
* @see https://github.com/
|
|
1388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-absolute-path.md
|
|
1389
1389
|
*/
|
|
1390
1390
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Forbid AMD `require` and `define` calls.
|
|
1393
|
-
* @see https://github.com/
|
|
1393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-amd.md
|
|
1394
1394
|
*/
|
|
1395
1395
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Forbid anonymous values as default exports.
|
|
1398
|
-
* @see https://github.com/
|
|
1398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-anonymous-default-export.md
|
|
1399
1399
|
*/
|
|
1400
1400
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1403
|
-
* @see https://github.com/
|
|
1403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-commonjs.md
|
|
1404
1404
|
*/
|
|
1405
1405
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1408
|
-
* @see https://github.com/
|
|
1408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-cycle.md
|
|
1409
1409
|
*/
|
|
1410
1410
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Forbid default exports.
|
|
1413
|
-
* @see https://github.com/
|
|
1413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-default-export.md
|
|
1414
1414
|
*/
|
|
1415
1415
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1418
|
-
* @see https://github.com/
|
|
1418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-deprecated.md
|
|
1419
1419
|
*/
|
|
1420
1420
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Forbid repeated import of the same module in multiple places.
|
|
1423
|
-
* @see https://github.com/
|
|
1423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-duplicates.md
|
|
1424
1424
|
*/
|
|
1425
1425
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Forbid `require()` calls with expressions.
|
|
1428
|
-
* @see https://github.com/
|
|
1428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-dynamic-require.md
|
|
1429
1429
|
*/
|
|
1430
1430
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Forbid empty named import blocks.
|
|
1433
|
-
* @see https://github.com/
|
|
1433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-empty-named-blocks.md
|
|
1434
1434
|
*/
|
|
1435
1435
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Forbid the use of extraneous packages.
|
|
1438
|
-
* @see https://github.com/
|
|
1438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-extraneous-dependencies.md
|
|
1439
1439
|
*/
|
|
1440
1440
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Forbid import statements with CommonJS module.exports.
|
|
1443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-import-module-exports.md
|
|
1443
1444
|
*/
|
|
1444
1445
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
1445
1446
|
/**
|
|
1446
1447
|
* Forbid importing the submodules of other modules.
|
|
1447
|
-
* @see https://github.com/
|
|
1448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-internal-modules.md
|
|
1448
1449
|
*/
|
|
1449
1450
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
1450
1451
|
/**
|
|
1451
1452
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1452
|
-
* @see https://github.com/
|
|
1453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-mutable-exports.md
|
|
1453
1454
|
*/
|
|
1454
1455
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
1455
1456
|
/**
|
|
1456
1457
|
* Forbid use of exported name as identifier of default export.
|
|
1457
|
-
* @see https://github.com/
|
|
1458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-as-default.md
|
|
1458
1459
|
*/
|
|
1459
1460
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
1460
1461
|
/**
|
|
1461
1462
|
* Forbid use of exported name as property of default export.
|
|
1462
|
-
* @see https://github.com/
|
|
1463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-as-default-member.md
|
|
1463
1464
|
*/
|
|
1464
1465
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Forbid named default exports.
|
|
1467
|
-
* @see https://github.com/
|
|
1468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-default.md
|
|
1468
1469
|
*/
|
|
1469
1470
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
1470
1471
|
/**
|
|
1471
1472
|
* Forbid named exports.
|
|
1472
|
-
* @see https://github.com/
|
|
1473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-export.md
|
|
1473
1474
|
*/
|
|
1474
1475
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
1475
1476
|
/**
|
|
1476
1477
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1477
|
-
* @see https://github.com/
|
|
1478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-namespace.md
|
|
1478
1479
|
*/
|
|
1479
1480
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
1480
1481
|
/**
|
|
1481
1482
|
* Forbid Node.js builtin modules.
|
|
1482
|
-
* @see https://github.com/
|
|
1483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-nodejs-modules.md
|
|
1483
1484
|
*/
|
|
1484
1485
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
1485
1486
|
/**
|
|
1486
1487
|
* Forbid importing packages through relative paths.
|
|
1487
|
-
* @see https://github.com/
|
|
1488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-relative-packages.md
|
|
1488
1489
|
*/
|
|
1489
1490
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
1490
1491
|
/**
|
|
1491
1492
|
* Forbid importing modules from parent directories.
|
|
1492
|
-
* @see https://github.com/
|
|
1493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-relative-parent-imports.md
|
|
1493
1494
|
*/
|
|
1494
1495
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
1495
1496
|
/**
|
|
1496
1497
|
* Enforce which files can be imported in a given folder.
|
|
1497
|
-
* @see https://github.com/
|
|
1498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-restricted-paths.md
|
|
1498
1499
|
*/
|
|
1499
1500
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
1500
1501
|
/**
|
|
1501
1502
|
* Forbid a module from importing itself.
|
|
1502
|
-
* @see https://github.com/
|
|
1503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-self-import.md
|
|
1503
1504
|
*/
|
|
1504
1505
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
1505
1506
|
/**
|
|
1506
|
-
* Forbid unassigned imports
|
|
1507
|
-
* @see https://github.com/
|
|
1507
|
+
* Forbid unassigned imports.
|
|
1508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unassigned-import.md
|
|
1508
1509
|
*/
|
|
1509
1510
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
1510
1511
|
/**
|
|
1511
1512
|
* Ensure imports point to a file/module that can be resolved.
|
|
1512
|
-
* @see https://github.com/
|
|
1513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unresolved.md
|
|
1513
1514
|
*/
|
|
1514
1515
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
1515
1516
|
/**
|
|
1516
1517
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1517
|
-
* @see https://github.com/
|
|
1518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unused-modules.md
|
|
1518
1519
|
*/
|
|
1519
1520
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
1520
1521
|
/**
|
|
1521
1522
|
* Forbid unnecessary path segments in import and require statements.
|
|
1522
|
-
* @see https://github.com/
|
|
1523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-useless-path-segments.md
|
|
1523
1524
|
*/
|
|
1524
1525
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
1525
1526
|
/**
|
|
1526
1527
|
* Forbid webpack loader syntax in imports.
|
|
1527
|
-
* @see https://github.com/
|
|
1528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-webpack-loader-syntax.md
|
|
1528
1529
|
*/
|
|
1529
1530
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
1530
1531
|
/**
|
|
1531
1532
|
* Enforce a convention in module import order.
|
|
1532
|
-
* @see https://github.com/
|
|
1533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/order.md
|
|
1533
1534
|
*/
|
|
1534
1535
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
1535
1536
|
/**
|
|
1536
1537
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1537
|
-
* @see https://github.com/
|
|
1538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/prefer-default-export.md
|
|
1538
1539
|
*/
|
|
1539
1540
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
1540
1541
|
/**
|
|
1541
1542
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1542
|
-
* @see https://github.com/
|
|
1543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/unambiguous.md
|
|
1543
1544
|
*/
|
|
1544
1545
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
1545
1546
|
/**
|
|
@@ -9765,6 +9766,7 @@ type ImportDynamicImportChunkname =
|
|
|
9765
9766
|
| [
|
|
9766
9767
|
{
|
|
9767
9768
|
importFunctions?: string[];
|
|
9769
|
+
allowEmpty?: boolean;
|
|
9768
9770
|
webpackChunknameFormat?: string;
|
|
9769
9771
|
[k: string]: unknown | undefined;
|
|
9770
9772
|
},
|
|
@@ -9811,6 +9813,10 @@ type ImportExtensions =
|
|
|
9811
9813
|
];
|
|
9812
9814
|
// ----- import/first -----
|
|
9813
9815
|
type ImportFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
9816
|
+
// ----- import/group-exports -----
|
|
9817
|
+
interface ImportGroupExports {
|
|
9818
|
+
[k: string]: unknown | undefined;
|
|
9819
|
+
}
|
|
9814
9820
|
// ----- import/imports-first -----
|
|
9815
9821
|
type ImportImportsFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
9816
9822
|
// ----- import/max-dependencies -----
|
package/dist/index.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ export { default as pluginStylistic } from '@stylistic/eslint-plugin';
|
|
|
7
7
|
export { default as pluginTs } from '@typescript-eslint/eslint-plugin';
|
|
8
8
|
export { default as pluginAntfu } from 'eslint-plugin-antfu';
|
|
9
9
|
export { default as pluginEslintComments } from 'eslint-plugin-eslint-comments';
|
|
10
|
-
import * as
|
|
11
|
-
export {
|
|
10
|
+
import * as eslintPluginImportX from 'eslint-plugin-import-x';
|
|
11
|
+
export { eslintPluginImportX as pluginImport };
|
|
12
12
|
export { default as pluginJsdoc } from 'eslint-plugin-jsdoc';
|
|
13
13
|
import * as eslintPluginJsonc from 'eslint-plugin-jsonc';
|
|
14
14
|
export { eslintPluginJsonc as pluginJsonc };
|
|
@@ -1319,227 +1319,228 @@ interface RuleOptions {
|
|
|
1319
1319
|
"eslint-comments/require-description"?: Linter.RuleEntry<EslintCommentsRequireDescription>;
|
|
1320
1320
|
/**
|
|
1321
1321
|
* Enforce or ban the use of inline type-only markers for named imports.
|
|
1322
|
-
* @see https://github.com/
|
|
1322
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/consistent-type-specifier-style.md
|
|
1323
1323
|
*/
|
|
1324
1324
|
"import/consistent-type-specifier-style"?: Linter.RuleEntry<ImportConsistentTypeSpecifierStyle>;
|
|
1325
1325
|
/**
|
|
1326
1326
|
* Ensure a default export is present, given a default import.
|
|
1327
|
-
* @see https://github.com/
|
|
1327
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/default.md
|
|
1328
1328
|
*/
|
|
1329
1329
|
"import/default"?: Linter.RuleEntry<[]>;
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Enforce a leading comment with the webpackChunkName for dynamic imports.
|
|
1332
|
-
* @see https://github.com/
|
|
1332
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/dynamic-import-chunkname.md
|
|
1333
1333
|
*/
|
|
1334
1334
|
"import/dynamic-import-chunkname"?: Linter.RuleEntry<ImportDynamicImportChunkname>;
|
|
1335
1335
|
/**
|
|
1336
1336
|
* Forbid any invalid exports, i.e. re-export of the same name.
|
|
1337
|
-
* @see https://github.com/
|
|
1337
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/export.md
|
|
1338
1338
|
*/
|
|
1339
1339
|
"import/export"?: Linter.RuleEntry<[]>;
|
|
1340
1340
|
/**
|
|
1341
1341
|
* Ensure all exports appear after other statements.
|
|
1342
|
-
* @see https://github.com/
|
|
1342
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/exports-last.md
|
|
1343
1343
|
*/
|
|
1344
1344
|
"import/exports-last"?: Linter.RuleEntry<[]>;
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Ensure consistent use of file extension within the import path.
|
|
1347
|
-
* @see https://github.com/
|
|
1347
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/extensions.md
|
|
1348
1348
|
*/
|
|
1349
1349
|
"import/extensions"?: Linter.RuleEntry<ImportExtensions>;
|
|
1350
1350
|
/**
|
|
1351
1351
|
* Ensure all imports appear before other statements.
|
|
1352
|
-
* @see https://github.com/
|
|
1352
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/first.md
|
|
1353
1353
|
*/
|
|
1354
1354
|
"import/first"?: Linter.RuleEntry<ImportFirst>;
|
|
1355
1355
|
/**
|
|
1356
|
-
* Prefer named exports to be grouped together in a single export declaration
|
|
1357
|
-
* @see https://github.com/
|
|
1356
|
+
* Prefer named exports to be grouped together in a single export declaration.
|
|
1357
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/group-exports.md
|
|
1358
1358
|
*/
|
|
1359
|
-
"import/group-exports"?: Linter.RuleEntry<
|
|
1359
|
+
"import/group-exports"?: Linter.RuleEntry<ImportGroupExports>;
|
|
1360
1360
|
/**
|
|
1361
|
-
* Replaced by `import/first`.
|
|
1362
|
-
* @see https://github.com/
|
|
1361
|
+
* Replaced by `import-x/first`.
|
|
1362
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/7b25c1cb95ee18acc1531002fd343e1e6031f9ed/docs/rules/imports-first.md
|
|
1363
1363
|
* @deprecated
|
|
1364
1364
|
*/
|
|
1365
1365
|
"import/imports-first"?: Linter.RuleEntry<ImportImportsFirst>;
|
|
1366
1366
|
/**
|
|
1367
1367
|
* Enforce the maximum number of dependencies a module can have.
|
|
1368
|
-
* @see https://github.com/
|
|
1368
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/max-dependencies.md
|
|
1369
1369
|
*/
|
|
1370
1370
|
"import/max-dependencies"?: Linter.RuleEntry<ImportMaxDependencies>;
|
|
1371
1371
|
/**
|
|
1372
1372
|
* Ensure named imports correspond to a named export in the remote file.
|
|
1373
|
-
* @see https://github.com/
|
|
1373
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/named.md
|
|
1374
1374
|
*/
|
|
1375
1375
|
"import/named"?: Linter.RuleEntry<ImportNamed>;
|
|
1376
1376
|
/**
|
|
1377
1377
|
* Ensure imported namespaces contain dereferenced properties as they are dereferenced.
|
|
1378
|
-
* @see https://github.com/
|
|
1378
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/namespace.md
|
|
1379
1379
|
*/
|
|
1380
1380
|
"import/namespace"?: Linter.RuleEntry<ImportNamespace>;
|
|
1381
1381
|
/**
|
|
1382
1382
|
* Enforce a newline after import statements.
|
|
1383
|
-
* @see https://github.com/
|
|
1383
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/newline-after-import.md
|
|
1384
1384
|
*/
|
|
1385
1385
|
"import/newline-after-import"?: Linter.RuleEntry<ImportNewlineAfterImport>;
|
|
1386
1386
|
/**
|
|
1387
1387
|
* Forbid import of modules using absolute paths.
|
|
1388
|
-
* @see https://github.com/
|
|
1388
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-absolute-path.md
|
|
1389
1389
|
*/
|
|
1390
1390
|
"import/no-absolute-path"?: Linter.RuleEntry<ImportNoAbsolutePath>;
|
|
1391
1391
|
/**
|
|
1392
1392
|
* Forbid AMD `require` and `define` calls.
|
|
1393
|
-
* @see https://github.com/
|
|
1393
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-amd.md
|
|
1394
1394
|
*/
|
|
1395
1395
|
"import/no-amd"?: Linter.RuleEntry<[]>;
|
|
1396
1396
|
/**
|
|
1397
1397
|
* Forbid anonymous values as default exports.
|
|
1398
|
-
* @see https://github.com/
|
|
1398
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-anonymous-default-export.md
|
|
1399
1399
|
*/
|
|
1400
1400
|
"import/no-anonymous-default-export"?: Linter.RuleEntry<ImportNoAnonymousDefaultExport>;
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Forbid CommonJS `require` calls and `module.exports` or `exports.*`.
|
|
1403
|
-
* @see https://github.com/
|
|
1403
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-commonjs.md
|
|
1404
1404
|
*/
|
|
1405
1405
|
"import/no-commonjs"?: Linter.RuleEntry<ImportNoCommonjs>;
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Forbid a module from importing a module with a dependency path back to itself.
|
|
1408
|
-
* @see https://github.com/
|
|
1408
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-cycle.md
|
|
1409
1409
|
*/
|
|
1410
1410
|
"import/no-cycle"?: Linter.RuleEntry<ImportNoCycle>;
|
|
1411
1411
|
/**
|
|
1412
1412
|
* Forbid default exports.
|
|
1413
|
-
* @see https://github.com/
|
|
1413
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-default-export.md
|
|
1414
1414
|
*/
|
|
1415
1415
|
"import/no-default-export"?: Linter.RuleEntry<[]>;
|
|
1416
1416
|
/**
|
|
1417
1417
|
* Forbid imported names marked with `@deprecated` documentation tag.
|
|
1418
|
-
* @see https://github.com/
|
|
1418
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-deprecated.md
|
|
1419
1419
|
*/
|
|
1420
1420
|
"import/no-deprecated"?: Linter.RuleEntry<[]>;
|
|
1421
1421
|
/**
|
|
1422
1422
|
* Forbid repeated import of the same module in multiple places.
|
|
1423
|
-
* @see https://github.com/
|
|
1423
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-duplicates.md
|
|
1424
1424
|
*/
|
|
1425
1425
|
"import/no-duplicates"?: Linter.RuleEntry<ImportNoDuplicates>;
|
|
1426
1426
|
/**
|
|
1427
1427
|
* Forbid `require()` calls with expressions.
|
|
1428
|
-
* @see https://github.com/
|
|
1428
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-dynamic-require.md
|
|
1429
1429
|
*/
|
|
1430
1430
|
"import/no-dynamic-require"?: Linter.RuleEntry<ImportNoDynamicRequire>;
|
|
1431
1431
|
/**
|
|
1432
1432
|
* Forbid empty named import blocks.
|
|
1433
|
-
* @see https://github.com/
|
|
1433
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-empty-named-blocks.md
|
|
1434
1434
|
*/
|
|
1435
1435
|
"import/no-empty-named-blocks"?: Linter.RuleEntry<[]>;
|
|
1436
1436
|
/**
|
|
1437
1437
|
* Forbid the use of extraneous packages.
|
|
1438
|
-
* @see https://github.com/
|
|
1438
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-extraneous-dependencies.md
|
|
1439
1439
|
*/
|
|
1440
1440
|
"import/no-extraneous-dependencies"?: Linter.RuleEntry<ImportNoExtraneousDependencies>;
|
|
1441
1441
|
/**
|
|
1442
1442
|
* Forbid import statements with CommonJS module.exports.
|
|
1443
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-import-module-exports.md
|
|
1443
1444
|
*/
|
|
1444
1445
|
"import/no-import-module-exports"?: Linter.RuleEntry<ImportNoImportModuleExports>;
|
|
1445
1446
|
/**
|
|
1446
1447
|
* Forbid importing the submodules of other modules.
|
|
1447
|
-
* @see https://github.com/
|
|
1448
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-internal-modules.md
|
|
1448
1449
|
*/
|
|
1449
1450
|
"import/no-internal-modules"?: Linter.RuleEntry<ImportNoInternalModules>;
|
|
1450
1451
|
/**
|
|
1451
1452
|
* Forbid the use of mutable exports with `var` or `let`.
|
|
1452
|
-
* @see https://github.com/
|
|
1453
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-mutable-exports.md
|
|
1453
1454
|
*/
|
|
1454
1455
|
"import/no-mutable-exports"?: Linter.RuleEntry<[]>;
|
|
1455
1456
|
/**
|
|
1456
1457
|
* Forbid use of exported name as identifier of default export.
|
|
1457
|
-
* @see https://github.com/
|
|
1458
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-as-default.md
|
|
1458
1459
|
*/
|
|
1459
1460
|
"import/no-named-as-default"?: Linter.RuleEntry<[]>;
|
|
1460
1461
|
/**
|
|
1461
1462
|
* Forbid use of exported name as property of default export.
|
|
1462
|
-
* @see https://github.com/
|
|
1463
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-as-default-member.md
|
|
1463
1464
|
*/
|
|
1464
1465
|
"import/no-named-as-default-member"?: Linter.RuleEntry<[]>;
|
|
1465
1466
|
/**
|
|
1466
1467
|
* Forbid named default exports.
|
|
1467
|
-
* @see https://github.com/
|
|
1468
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-default.md
|
|
1468
1469
|
*/
|
|
1469
1470
|
"import/no-named-default"?: Linter.RuleEntry<[]>;
|
|
1470
1471
|
/**
|
|
1471
1472
|
* Forbid named exports.
|
|
1472
|
-
* @see https://github.com/
|
|
1473
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-named-export.md
|
|
1473
1474
|
*/
|
|
1474
1475
|
"import/no-named-export"?: Linter.RuleEntry<[]>;
|
|
1475
1476
|
/**
|
|
1476
1477
|
* Forbid namespace (a.k.a. "wildcard" `*`) imports.
|
|
1477
|
-
* @see https://github.com/
|
|
1478
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-namespace.md
|
|
1478
1479
|
*/
|
|
1479
1480
|
"import/no-namespace"?: Linter.RuleEntry<ImportNoNamespace>;
|
|
1480
1481
|
/**
|
|
1481
1482
|
* Forbid Node.js builtin modules.
|
|
1482
|
-
* @see https://github.com/
|
|
1483
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-nodejs-modules.md
|
|
1483
1484
|
*/
|
|
1484
1485
|
"import/no-nodejs-modules"?: Linter.RuleEntry<ImportNoNodejsModules>;
|
|
1485
1486
|
/**
|
|
1486
1487
|
* Forbid importing packages through relative paths.
|
|
1487
|
-
* @see https://github.com/
|
|
1488
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-relative-packages.md
|
|
1488
1489
|
*/
|
|
1489
1490
|
"import/no-relative-packages"?: Linter.RuleEntry<ImportNoRelativePackages>;
|
|
1490
1491
|
/**
|
|
1491
1492
|
* Forbid importing modules from parent directories.
|
|
1492
|
-
* @see https://github.com/
|
|
1493
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-relative-parent-imports.md
|
|
1493
1494
|
*/
|
|
1494
1495
|
"import/no-relative-parent-imports"?: Linter.RuleEntry<ImportNoRelativeParentImports>;
|
|
1495
1496
|
/**
|
|
1496
1497
|
* Enforce which files can be imported in a given folder.
|
|
1497
|
-
* @see https://github.com/
|
|
1498
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-restricted-paths.md
|
|
1498
1499
|
*/
|
|
1499
1500
|
"import/no-restricted-paths"?: Linter.RuleEntry<ImportNoRestrictedPaths>;
|
|
1500
1501
|
/**
|
|
1501
1502
|
* Forbid a module from importing itself.
|
|
1502
|
-
* @see https://github.com/
|
|
1503
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-self-import.md
|
|
1503
1504
|
*/
|
|
1504
1505
|
"import/no-self-import"?: Linter.RuleEntry<[]>;
|
|
1505
1506
|
/**
|
|
1506
|
-
* Forbid unassigned imports
|
|
1507
|
-
* @see https://github.com/
|
|
1507
|
+
* Forbid unassigned imports.
|
|
1508
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unassigned-import.md
|
|
1508
1509
|
*/
|
|
1509
1510
|
"import/no-unassigned-import"?: Linter.RuleEntry<ImportNoUnassignedImport>;
|
|
1510
1511
|
/**
|
|
1511
1512
|
* Ensure imports point to a file/module that can be resolved.
|
|
1512
|
-
* @see https://github.com/
|
|
1513
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unresolved.md
|
|
1513
1514
|
*/
|
|
1514
1515
|
"import/no-unresolved"?: Linter.RuleEntry<ImportNoUnresolved>;
|
|
1515
1516
|
/**
|
|
1516
1517
|
* Forbid modules without exports, or exports without matching import in another module.
|
|
1517
|
-
* @see https://github.com/
|
|
1518
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-unused-modules.md
|
|
1518
1519
|
*/
|
|
1519
1520
|
"import/no-unused-modules"?: Linter.RuleEntry<ImportNoUnusedModules>;
|
|
1520
1521
|
/**
|
|
1521
1522
|
* Forbid unnecessary path segments in import and require statements.
|
|
1522
|
-
* @see https://github.com/
|
|
1523
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-useless-path-segments.md
|
|
1523
1524
|
*/
|
|
1524
1525
|
"import/no-useless-path-segments"?: Linter.RuleEntry<ImportNoUselessPathSegments>;
|
|
1525
1526
|
/**
|
|
1526
1527
|
* Forbid webpack loader syntax in imports.
|
|
1527
|
-
* @see https://github.com/
|
|
1528
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/no-webpack-loader-syntax.md
|
|
1528
1529
|
*/
|
|
1529
1530
|
"import/no-webpack-loader-syntax"?: Linter.RuleEntry<[]>;
|
|
1530
1531
|
/**
|
|
1531
1532
|
* Enforce a convention in module import order.
|
|
1532
|
-
* @see https://github.com/
|
|
1533
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/order.md
|
|
1533
1534
|
*/
|
|
1534
1535
|
"import/order"?: Linter.RuleEntry<ImportOrder>;
|
|
1535
1536
|
/**
|
|
1536
1537
|
* Prefer a default export if module exports a single name or multiple names.
|
|
1537
|
-
* @see https://github.com/
|
|
1538
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/prefer-default-export.md
|
|
1538
1539
|
*/
|
|
1539
1540
|
"import/prefer-default-export"?: Linter.RuleEntry<ImportPreferDefaultExport>;
|
|
1540
1541
|
/**
|
|
1541
1542
|
* Forbid potentially ambiguous parse goal (`script` vs. `module`).
|
|
1542
|
-
* @see https://github.com/
|
|
1543
|
+
* @see https://github.com/un-ts/eslint-plugin-import-x/blob/v0.4.4/docs/rules/unambiguous.md
|
|
1543
1544
|
*/
|
|
1544
1545
|
"import/unambiguous"?: Linter.RuleEntry<[]>;
|
|
1545
1546
|
/**
|
|
@@ -9765,6 +9766,7 @@ type ImportDynamicImportChunkname =
|
|
|
9765
9766
|
| [
|
|
9766
9767
|
{
|
|
9767
9768
|
importFunctions?: string[];
|
|
9769
|
+
allowEmpty?: boolean;
|
|
9768
9770
|
webpackChunknameFormat?: string;
|
|
9769
9771
|
[k: string]: unknown | undefined;
|
|
9770
9772
|
},
|
|
@@ -9811,6 +9813,10 @@ type ImportExtensions =
|
|
|
9811
9813
|
];
|
|
9812
9814
|
// ----- import/first -----
|
|
9813
9815
|
type ImportFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
9816
|
+
// ----- import/group-exports -----
|
|
9817
|
+
interface ImportGroupExports {
|
|
9818
|
+
[k: string]: unknown | undefined;
|
|
9819
|
+
}
|
|
9814
9820
|
// ----- import/imports-first -----
|
|
9815
9821
|
type ImportImportsFirst = [] | ["absolute-first" | "disable-absolute-first"];
|
|
9816
9822
|
// ----- import/max-dependencies -----
|
package/dist/index.js
CHANGED
|
@@ -9669,7 +9669,7 @@ import { default as default3 } from "@typescript-eslint/eslint-plugin";
|
|
|
9669
9669
|
import * as parserTs from "@typescript-eslint/parser";
|
|
9670
9670
|
import { default as default4 } from "eslint-plugin-antfu";
|
|
9671
9671
|
import { default as default5 } from "eslint-plugin-eslint-comments";
|
|
9672
|
-
import * as pluginImport from "eslint-plugin-
|
|
9672
|
+
import * as pluginImport from "eslint-plugin-import-x";
|
|
9673
9673
|
import { default as default6 } from "eslint-plugin-jsdoc";
|
|
9674
9674
|
import * as pluginJsonc from "eslint-plugin-jsonc";
|
|
9675
9675
|
import { default as default7 } from "eslint-plugin-markdown";
|
|
@@ -10322,7 +10322,6 @@ var imports = async (options) => {
|
|
|
10322
10322
|
{
|
|
10323
10323
|
name: "jsse:imports",
|
|
10324
10324
|
plugins: {
|
|
10325
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
10326
10325
|
import: pluginImport
|
|
10327
10326
|
},
|
|
10328
10327
|
rules: {
|
|
@@ -11523,7 +11522,6 @@ var typescript = async (options) => {
|
|
|
11523
11522
|
// Install the plugins without globs, so they can be configured separately.
|
|
11524
11523
|
name: "jsse:typescript:setup",
|
|
11525
11524
|
plugins: {
|
|
11526
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
|
11527
11525
|
import: pluginImport,
|
|
11528
11526
|
[tsPrefixTo]: default3
|
|
11529
11527
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.6",
|
|
5
5
|
"packageManager": "pnpm@8.15.4",
|
|
6
6
|
"description": "jsse eslint config",
|
|
7
7
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"eslint-define-config": "^2.1.0",
|
|
49
49
|
"eslint-plugin-antfu": "^2.1.2",
|
|
50
50
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
51
|
-
"eslint-plugin-
|
|
51
|
+
"eslint-plugin-import-x": "^0.4.4",
|
|
52
52
|
"eslint-plugin-jsdoc": "^48.2.1",
|
|
53
53
|
"eslint-plugin-jsonc": "^2.14.1",
|
|
54
54
|
"eslint-plugin-markdown": "^4.0.1",
|