@storm-software/eslint 0.170.149 → 0.170.151

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/preset.cjs CHANGED
@@ -9,8 +9,9 @@ var findUpSimple = require('find-up-simple');
9
9
  var pathe = require('pathe');
10
10
  var tinyglobby = require('tinyglobby');
11
11
  var parserJsonc = require('jsonc-eslint-parser');
12
- var yamlParser = require('yaml-eslint-parser');
13
- var pnpmWorkspaceYaml = require('pnpm-workspace-yaml');
12
+ var base = require('eslint-plugin-pnpm');
13
+ var parserYaml = require('yaml-eslint-parser');
14
+ var base2 = require('eslint-plugin-tsdoc');
14
15
  var eslintFlatConfigUtils = require('eslint-flat-config-utils');
15
16
  var localPkg = require('local-pkg');
16
17
  var url$1 = require('url');
@@ -73,8 +74,10 @@ function _interopNamespace(e) {
73
74
  var defu__default = /*#__PURE__*/_interopDefault(defu);
74
75
  var fs__default = /*#__PURE__*/_interopDefault(fs);
75
76
  var process2__default = /*#__PURE__*/_interopDefault(process2);
76
- var parserJsonc__namespace = /*#__PURE__*/_interopNamespace(parserJsonc);
77
- var yamlParser__namespace = /*#__PURE__*/_interopNamespace(yamlParser);
77
+ var parserJsonc__default = /*#__PURE__*/_interopDefault(parserJsonc);
78
+ var base__default = /*#__PURE__*/_interopDefault(base);
79
+ var parserYaml__default = /*#__PURE__*/_interopDefault(parserYaml);
80
+ var base2__default = /*#__PURE__*/_interopDefault(base2);
78
81
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
79
82
  var path16__default = /*#__PURE__*/_interopDefault(path16);
80
83
  var cspellConfig__default = /*#__PURE__*/_interopDefault(cspellConfig);
@@ -117,8 +120,8 @@ var __commonJS = (cb, mod) => function __require2() {
117
120
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
118
121
  };
119
122
  var __export = (target, all) => {
120
- for (var name3 in all)
121
- __defProp(target, name3, { get: all[name3], enumerable: true });
123
+ for (var name2 in all)
124
+ __defProp(target, name2, { get: all[name2], enumerable: true });
122
125
  };
123
126
  var __copyProps = (to, from, except, desc) => {
124
127
  if (from && typeof from === "object" || typeof from === "function") {
@@ -321,7 +324,7 @@ var init_package = __esm({
321
324
  "../eslint-plugin-bun/package.json"() {
322
325
  package_default2 = {
323
326
  name: "@storm-software/eslint-plugin-bun",
324
- version: "0.0.2",
327
+ version: "0.0.4",
325
328
  private: false,
326
329
  description: "An ESLint Plugin that enforces Bun catalog rules in Storm Software projects.",
327
330
  keywords: [
@@ -435,7 +438,7 @@ var init_package = __esm({
435
438
  });
436
439
  function RuleCreator2(urlCreator) {
437
440
  return function createNamedRule({
438
- name: name3,
441
+ name: name2,
439
442
  meta: meta3,
440
443
  ...rule
441
444
  }) {
@@ -444,7 +447,7 @@ function RuleCreator2(urlCreator) {
444
447
  ...meta3,
445
448
  docs: {
446
449
  ...meta3.docs,
447
- url: urlCreator(name3)
450
+ url: urlCreator(name2)
448
451
  }
449
452
  },
450
453
  ...rule
@@ -488,8 +491,8 @@ function detectCatalogRoot(data) {
488
491
  }
489
492
  return isWorkspaceObject(data.workspaces) ? "workspaces" : "top";
490
493
  }
491
- function normalizeCatalogName(name3) {
492
- return name3.replace(/\^/g, "h").replace(/~/g, "t").replace(/\./g, "_").replace(/</g, "l").replace(/>/g, "g").replace(/=/g, "e").replace(/\*/g, "s").replace(/@/g, "a").replace(/\|/g, "p").replace(/&/g, "n").replace(/-/g, "m").replace(/\+/g, "u").replace(/\s/g, "_");
494
+ function normalizeCatalogName(name2) {
495
+ return name2.replace(/\^/g, "h").replace(/~/g, "t").replace(/\./g, "_").replace(/</g, "l").replace(/>/g, "g").replace(/=/g, "e").replace(/\*/g, "s").replace(/@/g, "a").replace(/\|/g, "p").replace(/&/g, "n").replace(/-/g, "m").replace(/\+/g, "u").replace(/\s/g, "_");
493
496
  }
494
497
  function sortObjectKeys(input) {
495
498
  return Object.fromEntries(
@@ -618,9 +621,9 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
618
621
  const found = [];
619
622
  const { catalog, catalogs } = getCatalogData();
620
623
  if (catalogs) {
621
- for (const name3 of Object.keys(catalogs)) {
622
- if (catalogs[name3]?.[packageName]) {
623
- found.push(name3);
624
+ for (const name2 of Object.keys(catalogs)) {
625
+ if (catalogs[name2]?.[packageName]) {
626
+ found.push(name2);
624
627
  }
625
628
  }
626
629
  }
@@ -629,7 +632,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
629
632
  }
630
633
  return found;
631
634
  };
632
- const workspace3 = {
635
+ const workspace2 = {
633
636
  filepath: current,
634
637
  setContent(newContent) {
635
638
  content = newContent;
@@ -654,7 +657,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
654
657
  const clone2 = [...queue];
655
658
  queue.length = 0;
656
659
  for (const queued of clone2) {
657
- queued(workspace3);
660
+ queued(workspace2);
658
661
  }
659
662
  if (hasChanged) {
660
663
  write();
@@ -686,7 +689,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
686
689
  return [];
687
690
  }
688
691
  };
689
- return workspace3;
692
+ return workspace2;
690
693
  }
691
694
  function getBunWorkspace(cwd2 = process2__default.default.cwd()) {
692
695
  if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
@@ -882,7 +885,7 @@ var init_json_enforce_catalog = __esm({
882
885
  context,
883
886
  fields
884
887
  )) {
885
- if (ignore2?.some((name3) => name3 === packageName)) {
888
+ if (ignore2?.some((name2) => name2 === packageName)) {
886
889
  continue;
887
890
  }
888
891
  if (specifier.startsWith("catalog:")) {
@@ -891,14 +894,14 @@ var init_json_enforce_catalog = __esm({
891
894
  if (allowedProtocols?.some((protocol) => specifier.startsWith(protocol))) {
892
895
  continue;
893
896
  }
894
- let workspace3;
897
+ let workspace2;
895
898
  try {
896
- workspace3 = getBunWorkspace();
899
+ workspace2 = getBunWorkspace();
897
900
  } catch {
898
901
  return {};
899
902
  }
900
- let targetCatalog = reuseExistingCatalog ? workspace3.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
901
- const resolvedConflicts = workspace3.hasSpecifierConflicts(
903
+ let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
904
+ const resolvedConflicts = workspace2.hasSpecifierConflicts(
902
905
  targetCatalog,
903
906
  packageName,
904
907
  specifier
@@ -918,8 +921,8 @@ var init_json_enforce_catalog = __esm({
918
921
  packageName
919
922
  },
920
923
  fix: shouldFix ? (fixer) => {
921
- workspace3.queueChange(() => {
922
- workspace3.setPackage(targetCatalog, packageName, specifier);
924
+ workspace2.queueChange(() => {
925
+ workspace2.setPackage(targetCatalog, packageName, specifier);
923
926
  });
924
927
  return fixer.replaceText(
925
928
  property.value,
@@ -976,16 +979,16 @@ var init_json_no_duplicate_catalog_item = __esm({
976
979
  if (!isRootWorkspacePackageJson(context.filename)) {
977
980
  return {};
978
981
  }
979
- let workspace3;
982
+ let workspace2;
980
983
  try {
981
- workspace3 = getBunWorkspace();
984
+ workspace2 = getBunWorkspace();
982
985
  } catch {
983
986
  return {};
984
987
  }
985
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
988
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
986
989
  return {};
987
990
  }
988
- workspace3.setContent(context.sourceCode.text);
991
+ workspace2.setContent(context.sourceCode.text);
989
992
  const root = getPackageJsonRootNode(context);
990
993
  if (!root) {
991
994
  return {};
@@ -1078,16 +1081,16 @@ var init_json_no_unused_catalog_item = __esm({
1078
1081
  if (!isRootWorkspacePackageJson(context.filename)) {
1079
1082
  return {};
1080
1083
  }
1081
- let workspace3;
1084
+ let workspace2;
1082
1085
  try {
1083
- workspace3 = getBunWorkspace();
1086
+ workspace2 = getBunWorkspace();
1084
1087
  } catch {
1085
1088
  return {};
1086
1089
  }
1087
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
1090
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
1088
1091
  return {};
1089
1092
  }
1090
- workspace3.setContent(context.sourceCode.text);
1093
+ workspace2.setContent(context.sourceCode.text);
1091
1094
  const root = getPackageJsonRootNode(context);
1092
1095
  if (!root) {
1093
1096
  return {};
@@ -1119,7 +1122,7 @@ var init_json_no_unused_catalog_item = __esm({
1119
1122
  if (entries.size === 0) {
1120
1123
  return {};
1121
1124
  }
1122
- const packages = collectWorkspacePackageJsonPaths(workspace3);
1125
+ const packages = collectWorkspacePackageJsonPaths(workspace2);
1123
1126
  for (const path23 of packages) {
1124
1127
  const pkg = JSON.parse(fs__default.default.readFileSync(path23, "utf8"));
1125
1128
  for (const field of FIELDS) {
@@ -1127,12 +1130,12 @@ var init_json_no_unused_catalog_item = __esm({
1127
1130
  if (!map) {
1128
1131
  continue;
1129
1132
  }
1130
- for (const [name3, value] of Object.entries(map)) {
1133
+ for (const [name2, value] of Object.entries(map)) {
1131
1134
  if (typeof value !== "string" || !value.startsWith("catalog:")) {
1132
1135
  continue;
1133
1136
  }
1134
1137
  const catalogName = value.slice(8) || "default";
1135
- entries.delete(`${name3}:${catalogName}`);
1138
+ entries.delete(`${name2}:${catalogName}`);
1136
1139
  }
1137
1140
  }
1138
1141
  }
@@ -1225,14 +1228,14 @@ var init_json_valid_catalog = __esm({
1225
1228
  if (!specifier.startsWith("catalog:")) {
1226
1229
  continue;
1227
1230
  }
1228
- let workspace3;
1231
+ let workspace2;
1229
1232
  try {
1230
- workspace3 = getBunWorkspace();
1233
+ workspace2 = getBunWorkspace();
1231
1234
  } catch {
1232
1235
  return {};
1233
1236
  }
1234
1237
  const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
1235
- const existingCatalogs = workspace3.getPackageCatalogs(packageName);
1238
+ const existingCatalogs = workspace2.getPackageCatalogs(packageName);
1236
1239
  if (!existingCatalogs.includes(currentCatalog)) {
1237
1240
  context.report({
1238
1241
  node: property.value,
@@ -1245,8 +1248,8 @@ var init_json_valid_catalog = __esm({
1245
1248
  let catalog = existingCatalogs[0];
1246
1249
  if (!catalog && autoInsert) {
1247
1250
  catalog = currentCatalog;
1248
- workspace3.queueChange(() => {
1249
- workspace3.setPackage(
1251
+ workspace2.queueChange(() => {
1252
+ workspace2.setPackage(
1250
1253
  catalog,
1251
1254
  packageName,
1252
1255
  autoInsertDefaultSpecifier
@@ -1266,787 +1269,105 @@ var init_json_valid_catalog = __esm({
1266
1269
  });
1267
1270
  }
1268
1271
  });
1269
-
1270
- // ../eslint-plugin-bun/src/plugin.ts
1271
- var plugin2;
1272
- var init_plugin = __esm({
1273
- "../eslint-plugin-bun/src/plugin.ts"() {
1274
- init_cjs_shims();
1275
- init_package();
1276
- init_json_enforce_catalog();
1277
- init_json_no_duplicate_catalog_item();
1278
- init_json_no_unused_catalog_item();
1279
- init_json_valid_catalog();
1280
- plugin2 = {
1281
- meta: {
1282
- name: "bun",
1283
- version: package_default2.version
1284
- },
1285
- rules: {
1286
- "json-enforce-catalog": json_enforce_catalog_default,
1287
- "json-valid-catalog": json_valid_catalog_default,
1288
- "json-no-unused-catalog-item": json_no_unused_catalog_item_default,
1289
- "json-no-duplicate-catalog-item": json_no_duplicate_catalog_item_default
1290
- }
1291
- };
1292
- }
1293
- });
1294
- var config3, recommended_default2;
1295
- var init_recommended = __esm({
1296
- "../eslint-plugin-bun/src/configs/recommended.ts"() {
1297
- init_cjs_shims();
1298
- init_globs();
1299
- init_plugin();
1300
- config3 = [
1301
- {
1302
- name: "bun/recommended/setup",
1303
- plugins: {
1304
- bun: plugin2
1305
- }
1306
- },
1307
- {
1308
- name: "bun/recommended/package-json",
1309
- ignores: GLOB_EXCLUDE,
1310
- files: ["package.json", "**/package.json"],
1311
- languageOptions: {
1312
- parser: parserJsonc__namespace.default
1313
- },
1314
- rules: {
1315
- "bun/json-enforce-catalog": [
1316
- "error",
1317
- {
1318
- autofix: true,
1319
- allowedProtocols: ["workspace", "link", "file"],
1320
- defaultCatalog: "default",
1321
- reuseExistingCatalog: true,
1322
- conflicts: "overrides",
1323
- fields: ["dependencies", "devDependencies"],
1324
- ignore: ["typescript"]
1325
- }
1326
- ],
1327
- "bun/json-valid-catalog": "error",
1328
- "bun/json-no-unused-catalog-item": "error",
1329
- "bun/json-no-duplicate-catalog-item": "error"
1330
- }
1331
- }
1332
- ];
1333
- recommended_default2 = config3;
1334
- }
1335
- });
1336
-
1337
- // ../eslint-plugin-bun/src/configs/index.ts
1338
- var configs2;
1339
- var init_configs = __esm({
1340
- "../eslint-plugin-bun/src/configs/index.ts"() {
1341
- init_cjs_shims();
1342
- init_recommended();
1343
- configs2 = {
1344
- recommended: recommended_default2
1345
- };
1346
- }
1347
- });
1348
-
1349
- // ../eslint-plugin-bun/src/index.ts
1350
- var src_exports = {};
1351
- __export(src_exports, {
1352
- configs: () => configs2,
1353
- default: () => src_default2,
1354
- rules: () => rules2
1355
- });
1356
- var eslintPlugin2, src_default2, rules2;
1357
- var init_src = __esm({
1358
- "../eslint-plugin-bun/src/index.ts"() {
1359
- init_cjs_shims();
1360
- init_configs();
1361
- init_plugin();
1362
- eslintPlugin2 = {
1363
- ...plugin2,
1364
- configs: configs2
1365
- };
1366
- src_default2 = eslintPlugin2;
1367
- rules2 = plugin2.rules;
1368
- }
1369
- });
1370
- function RuleCreator4(urlCreator) {
1371
- return function createNamedRule({
1372
- name: name3,
1373
- meta: meta3,
1374
- ...rule
1375
- }) {
1376
- return createRule5({
1377
- meta: {
1378
- ...meta3,
1379
- docs: {
1380
- ...meta3.docs,
1381
- url: urlCreator(name3)
1382
- }
1383
- },
1384
- ...rule
1385
- });
1386
- };
1387
- }
1388
- function createRule5({
1389
- create,
1390
- defaultOptions,
1391
- meta: meta3
1392
- }) {
1393
- return {
1394
- create: (context) => {
1395
- const optionsWithDefault = context.options.map((options, index) => {
1396
- return {
1397
- ...defaultOptions[index] || {},
1398
- ...options || {}
1399
- };
1400
- });
1401
- return create(context, optionsWithDefault);
1402
- },
1403
- defaultOptions,
1404
- meta: meta3
1405
- };
1406
- }
1407
- function getPackageJsonRootNode2(context) {
1408
- if (!context.filename.endsWith("package.json"))
1409
- return;
1410
- const ast = context.sourceCode.ast;
1411
- const root = ast.body[0];
1412
- if (root.expression.type === "JSONObjectExpression")
1413
- return root.expression;
1414
- }
1415
- function* iterateDependencies2(context, fields) {
1416
- const root = getPackageJsonRootNode2(context);
1417
- if (!root)
1418
- return;
1419
- for (const fieldName of fields) {
1420
- const path23 = fieldName.split(".");
1421
- let node2 = root;
1422
- for (let i = 0; i < path23.length; i++) {
1423
- const item = node2.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === path23[i]);
1424
- if (!item?.value || item.value.type !== "JSONObjectExpression") {
1425
- node2 = void 0;
1426
- break;
1427
- }
1428
- node2 = item.value;
1429
- }
1430
- if (!node2 || node2 === root)
1431
- continue;
1432
- for (const property of node2.properties) {
1433
- if (property.value.type !== "JSONLiteral" || property.key.type !== "JSONLiteral")
1434
- continue;
1435
- if (typeof property.value.value !== "string")
1436
- continue;
1437
- const packageName = String(property.key.value);
1438
- const specifier = String(property.value.value);
1439
- yield {
1440
- packageName,
1441
- specifier,
1442
- property
1443
- };
1444
- }
1445
- }
1446
- }
1447
- function readPnpmWorkspace() {
1448
- const filepath = findUpSimple.findUpSync("pnpm-workspace.yaml", { cwd: process2__default.default.cwd() });
1449
- if (!filepath)
1450
- throw new Error("pnpm-workspace.yaml not found");
1451
- const content = fs__default.default.readFileSync(filepath, "utf-8");
1452
- const workspace3 = pnpmWorkspaceYaml.parsePnpmWorkspaceYaml(content);
1453
- let queueTimer;
1454
- const queue = [];
1455
- const write = () => {
1456
- fs__default.default.writeFileSync(filepath, workspace3.toString());
1457
- };
1458
- const hasQueue = () => queueTimer != null;
1459
- const queueChange = (fn, order) => {
1460
- if (order === "pre")
1461
- queue.unshift(fn);
1462
- else
1463
- queue.push(fn);
1464
- if (queueTimer != null)
1465
- clearTimeout(queueTimer);
1466
- queueTimer = setTimeout(() => {
1467
- queueTimer = void 0;
1468
- const clone2 = [...queue];
1469
- queue.length = 0;
1470
- for (const fn2 of clone2)
1471
- fn2(workspace3);
1472
- if (workspace3.hasChanged())
1473
- write();
1474
- }, 1e3);
1475
- };
1476
- return {
1477
- filepath,
1478
- ...workspace3,
1479
- hasQueue,
1480
- queueChange
1481
- };
1482
- }
1483
- function getPnpmWorkspace() {
1484
- if (workspaceLastRead2 && workspace2 && !workspace2.hasQueue() && Date.now() - workspaceLastRead2 > WORKSPACE_CACHE_TIME2) {
1485
- workspace2 = void 0;
1486
- }
1487
- if (!workspace2) {
1488
- workspace2 = readPnpmWorkspace();
1489
- workspaceLastRead2 = Date.now();
1490
- }
1491
- return workspace2;
1492
- }
1493
- function getObjectPath2(obj, path23) {
1494
- let current = obj;
1495
- for (const key of path23) {
1496
- current = current[key];
1497
- if (!current)
1498
- return void 0;
1499
- }
1500
- return current;
1501
- }
1502
- var name2, version3, blobUrl, createEslintRule, WORKSPACE_CACHE_TIME2, workspaceLastRead2, workspace2, RULE_NAME$4, DEFAULT_FIELDS$1, IGNORED_DEPENDENCIES2, enforceCatalog, RULE_NAME$3, preferWorkspaceSettings, RULE_NAME$2, DEFAULT_FIELDS3, validCatalog, rules$2, RULE_NAME$1, noDuplicateCatalogItem, RULE_NAME6, noUnusedCatalogItem, rules$1, rules4, plugin4, configsJson, configsYaml, configs4;
1503
- var init_dist = __esm({
1504
- "../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_f126904b94a1635d882631163ea19421/node_modules/eslint-plugin-pnpm/dist/index.mjs"() {
1505
- init_cjs_shims();
1506
- name2 = "eslint-plugin-pnpm";
1507
- version3 = "0.3.0";
1508
- blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
1509
- createEslintRule = RuleCreator4(
1510
- (ruleName) => `${blobUrl}${ruleName}.test.ts`
1511
- );
1512
- WORKSPACE_CACHE_TIME2 = 1e4;
1513
- RULE_NAME$4 = "json-enforce-catalog";
1514
- DEFAULT_FIELDS$1 = [
1515
- "dependencies",
1516
- "devDependencies"
1517
- ];
1518
- IGNORED_DEPENDENCIES2 = [
1519
- "typescript"
1520
- ];
1521
- enforceCatalog = createEslintRule({
1522
- name: RULE_NAME$4,
1523
- meta: {
1524
- type: "layout",
1525
- docs: {
1526
- description: 'Enforce using "catalog:" in `package.json`'
1527
- },
1528
- fixable: "code",
1529
- schema: [
1530
- {
1531
- type: "object",
1532
- properties: {
1533
- allowedProtocols: {
1534
- type: "array",
1535
- description: "Allowed protocols in specifier to not be converted to catalog",
1536
- items: {
1537
- type: "string"
1538
- }
1539
- },
1540
- autofix: {
1541
- type: "boolean",
1542
- description: "Whether to autofix the linting error",
1543
- default: true
1544
- },
1545
- defaultCatalog: {
1546
- type: "string",
1547
- description: "Default catalog to use when moving version to catalog with autofix"
1548
- },
1549
- reuseExistingCatalog: {
1550
- type: "boolean",
1551
- description: "Whether to reuse existing catalog when moving version to catalog with autofix",
1552
- default: true
1553
- },
1554
- conflicts: {
1555
- type: "string",
1556
- description: "Strategy to handle conflicts when adding packages to catalogs",
1557
- enum: ["new-catalog", "overrides", "error"],
1558
- default: "new-catalog"
1559
- },
1560
- fields: {
1561
- type: "array",
1562
- description: "Fields to check for catalog",
1563
- items: { type: "string" },
1564
- default: DEFAULT_FIELDS$1
1565
- },
1566
- ignore: {
1567
- type: "array",
1568
- description: "A list of dependencies to ignore",
1569
- items: { type: "string" },
1570
- default: IGNORED_DEPENDENCIES2
1571
- }
1572
- },
1573
- additionalProperties: false
1574
- }
1575
- ],
1576
- messages: {
1577
- expectCatalog: 'Expect to use catalog instead of plain specifier, got "{{specifier}}" for package "{{packageName}}".'
1578
- }
1579
- },
1580
- defaultOptions: [{}],
1581
- create(context, [options]) {
1582
- const {
1583
- allowedProtocols = ["workspace", "link", "file"],
1584
- defaultCatalog = "default",
1585
- autofix = true,
1586
- reuseExistingCatalog = true,
1587
- conflicts = "new-catalog",
1588
- fields = DEFAULT_FIELDS$1,
1589
- ignore: ignore2 = IGNORED_DEPENDENCIES2
1590
- } = options || {};
1591
- for (const { packageName, specifier, property } of iterateDependencies2(context, fields)) {
1592
- if (ignore2?.some((i) => i === packageName))
1593
- continue;
1594
- if (specifier.startsWith("catalog:"))
1595
- continue;
1596
- if (allowedProtocols?.some((p) => specifier.startsWith(p)))
1597
- continue;
1598
- const workspace3 = getPnpmWorkspace();
1599
- if (!workspace3)
1600
- return {};
1601
- let targetCatalog = reuseExistingCatalog ? workspace3.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
1602
- const resolvedConflicts = workspace3.hasSpecifierConflicts(
1603
- targetCatalog,
1604
- packageName,
1605
- specifier
1606
- );
1607
- let shouldFix = autofix;
1608
- if (conflicts === "error") {
1609
- if (resolvedConflicts.conflicts) {
1610
- shouldFix = false;
1611
- }
1612
- }
1613
- if (conflicts === "new-catalog" && resolvedConflicts.conflicts) {
1614
- targetCatalog = resolvedConflicts.newCatalogName;
1615
- }
1616
- context.report({
1617
- node: property.value,
1618
- messageId: "expectCatalog",
1619
- data: {
1620
- specifier,
1621
- packageName
1622
- },
1623
- fix: shouldFix ? (fixer) => {
1624
- workspace3.queueChange(() => {
1625
- workspace3.setPackage(targetCatalog, packageName, specifier);
1626
- });
1627
- return fixer.replaceText(
1628
- property.value,
1629
- targetCatalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${targetCatalog}`)
1630
- );
1631
- } : void 0
1632
- });
1633
- }
1634
- return {};
1635
- }
1636
- });
1637
- RULE_NAME$3 = "json-prefer-workspace-settings";
1638
- preferWorkspaceSettings = createEslintRule({
1639
- name: RULE_NAME$3,
1640
- meta: {
1641
- type: "layout",
1642
- docs: {
1643
- description: "Prefer having pnpm settings in `pnpm-workspace.yaml` instead of `package.json`. This would requires pnpm v10.6+, see https://github.com/orgs/pnpm/discussions/9037."
1644
- },
1645
- fixable: "code",
1646
- schema: [
1647
- {
1648
- type: "object",
1649
- properties: {
1650
- autofix: {
1651
- type: "boolean",
1652
- description: "Whether to autofix the linting error",
1653
- default: true
1654
- }
1655
- },
1656
- additionalProperties: false
1657
- }
1658
- ],
1659
- messages: {
1660
- unexpectedPnpmSettings: "Unexpected pnpm settings in package.json, should move to pnpm-workspace.yaml"
1661
- }
1662
- },
1663
- defaultOptions: [{}],
1664
- create(context, [options = {}]) {
1665
- const {
1666
- autofix = true
1667
- } = options || {};
1668
- const root = getPackageJsonRootNode2(context);
1669
- if (!root)
1670
- return {};
1671
- const pnpmNode = root.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === "pnpm");
1672
- if (!pnpmNode)
1673
- return {};
1674
- const workspace3 = getPnpmWorkspace();
1675
- if (!workspace3)
1676
- return {};
1677
- context.report({
1678
- node: pnpmNode,
1679
- messageId: "unexpectedPnpmSettings",
1680
- fix: autofix ? (fixer) => {
1681
- const json = JSON.parse(context.sourceCode.text);
1682
- const pnpmSettings = json.pnpm;
1683
- const flatValueParis = [];
1684
- function traverse(value, paths) {
1685
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
1686
- for (const key in value) {
1687
- traverse(value[key], [...paths, key]);
1688
- }
1689
- } else {
1690
- flatValueParis.push([paths, value]);
1691
- }
1692
- }
1693
- traverse(pnpmSettings, []);
1694
- workspace3.queueChange(() => {
1695
- for (const [paths, value] of flatValueParis) {
1696
- workspace3.setPath(paths, value);
1697
- }
1698
- });
1699
- let start = pnpmNode.range[0];
1700
- let end = pnpmNode.range[1];
1701
- const before = context.sourceCode.getTokenBefore(pnpmNode);
1702
- if (before)
1703
- start = before.range[1];
1704
- const after = context.sourceCode.getTokenAfter(pnpmNode);
1705
- if (after?.type === "Punctuator" && after.value === ",")
1706
- end = after.range[1];
1707
- return fixer.removeRange([start, end]);
1708
- } : void 0
1709
- });
1710
- return {};
1711
- }
1712
- });
1713
- RULE_NAME$2 = "json-valid-catalog";
1714
- DEFAULT_FIELDS3 = [
1715
- "dependencies",
1716
- "devDependencies",
1717
- "optionalDependencies",
1718
- "peerDependencies",
1719
- "resolutions",
1720
- "overrides",
1721
- "pnpm.overrides"
1722
- ];
1723
- validCatalog = createEslintRule({
1724
- name: RULE_NAME$2,
1725
- meta: {
1726
- type: "layout",
1727
- docs: {
1728
- description: "Enforce using valid catalog in `package.json`"
1729
- },
1730
- fixable: "code",
1731
- schema: [
1732
- {
1733
- type: "object",
1734
- properties: {
1735
- autoInsert: {
1736
- type: "boolean",
1737
- description: "Whether to auto insert to catalog if missing",
1738
- default: true
1739
- },
1740
- autoInsertDefaultSpecifier: {
1741
- type: "string",
1742
- description: "Default specifier to use when auto inserting to catalog",
1743
- default: "^0.0.0"
1744
- },
1745
- autofix: {
1746
- type: "boolean",
1747
- description: "Whether to autofix the linting error",
1748
- default: true
1749
- },
1750
- enforceNoConflict: {
1751
- type: "boolean",
1752
- description: "Whether to enforce no conflicts when adding packages to catalogs (will create version-specific catalogs)",
1753
- default: true
1754
- },
1755
- fields: {
1756
- type: "array",
1757
- description: "Fields to check for catalog",
1758
- default: DEFAULT_FIELDS3
1759
- }
1760
- },
1761
- additionalProperties: false
1762
- }
1763
- ],
1764
- messages: {
1765
- invalidCatalog: 'Catalog "{{specifier}}" for package "{{packageName}}" is not defined in `pnpm-workspace.yaml`.'
1766
- }
1767
- },
1768
- defaultOptions: [{}],
1769
- create(context, [options = {}]) {
1770
- const {
1771
- autoInsert = true,
1772
- autofix = true,
1773
- autoInsertDefaultSpecifier = "^0.0.0",
1774
- fields = DEFAULT_FIELDS3
1775
- } = options || {};
1776
- for (const { packageName, specifier, property } of iterateDependencies2(context, fields)) {
1777
- if (!specifier.startsWith("catalog:"))
1778
- continue;
1779
- const workspace3 = getPnpmWorkspace();
1780
- if (!workspace3)
1781
- return {};
1782
- const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
1783
- const existingCatalogs = workspace3.getPackageCatalogs(packageName);
1784
- if (!existingCatalogs.includes(currentCatalog)) {
1785
- context.report({
1786
- node: property.value,
1787
- messageId: "invalidCatalog",
1788
- data: {
1789
- specifier,
1790
- packageName
1791
- },
1792
- fix: !autofix || !autoInsert && !existingCatalogs.length ? void 0 : (fixer) => {
1793
- let catalog = existingCatalogs[0];
1794
- if (!catalog && autoInsert) {
1795
- catalog = currentCatalog;
1796
- workspace3.queueChange(() => {
1797
- workspace3.setPackage(catalog, packageName, autoInsertDefaultSpecifier);
1798
- }, "pre");
1799
- }
1800
- return fixer.replaceText(
1801
- property.value,
1802
- catalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${catalog}`)
1803
- );
1804
- }
1805
- });
1806
- }
1807
- }
1808
- return {};
1809
- }
1810
- });
1811
- rules$2 = {
1812
- "json-enforce-catalog": enforceCatalog,
1813
- "json-valid-catalog": validCatalog,
1814
- "json-prefer-workspace-settings": preferWorkspaceSettings
1815
- };
1816
- RULE_NAME$1 = "yaml-no-duplicate-catalog-item";
1817
- noDuplicateCatalogItem = createEslintRule({
1818
- name: RULE_NAME$1,
1819
- meta: {
1820
- type: "problem",
1821
- docs: {
1822
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
1823
- },
1824
- fixable: "code",
1825
- schema: [
1826
- {
1827
- type: "object",
1828
- properties: {
1829
- allow: {
1830
- type: "array",
1831
- items: { type: "string" }
1832
- }
1833
- },
1834
- additionalProperties: false
1835
- }
1836
- ],
1837
- messages: {
1838
- duplicateCatalogItem: 'Catalog item "{{name}}" is already defined in the "{{existingCatalog}}" catalog. You may want to remove one of them.'
1839
- }
1840
- },
1841
- defaultOptions: [{}],
1842
- create(context, [options = {}]) {
1843
- if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
1844
- return {};
1845
- const workspace3 = getPnpmWorkspace();
1846
- if (!workspace3 || pathe.normalize(workspace3.filepath) !== pathe.normalize(context.filename))
1847
- return {};
1848
- if (workspace3.hasChanged() || workspace3.hasQueue())
1849
- return {};
1850
- const { allow = [] } = options;
1851
- workspace3.setContent(context.sourceCode.text);
1852
- const json = workspace3.toJSON() || {};
1853
- const exists = /* @__PURE__ */ new Map();
1854
- const catalogs = {
1855
- ...json.catalogs,
1856
- default: json.catalog
1857
- };
1858
- const doc = workspace3.getDocument();
1859
- for (const [catalog, object2] of Object.entries(catalogs)) {
1860
- if (!object2)
1861
- continue;
1862
- for (const key of Object.keys(object2)) {
1863
- if (allow.includes(key))
1864
- continue;
1865
- if (exists.has(key)) {
1866
- const existingCatalog = exists.get(key);
1867
- const node2 = doc.getIn(catalog === "default" ? ["catalog", key] : ["catalogs", catalog, key], true);
1868
- const start = context.sourceCode.getLocFromIndex(node2.range[0]);
1869
- const end = context.sourceCode.getLocFromIndex(node2.range[1]);
1870
- context.report({
1871
- loc: {
1872
- start,
1873
- end
1874
- },
1875
- messageId: "duplicateCatalogItem",
1876
- data: {
1877
- name: key,
1878
- currentCatalog: catalog,
1879
- existingCatalog
1880
- }
1881
- });
1882
- } else {
1883
- exists.set(key, catalog);
1884
- }
1885
- }
1886
- }
1887
- return {};
1888
- }
1889
- });
1890
- RULE_NAME6 = "yaml-no-unused-catalog-item";
1891
- noUnusedCatalogItem = createEslintRule({
1892
- name: RULE_NAME6,
1893
- meta: {
1894
- type: "problem",
1895
- docs: {
1896
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
1897
- },
1898
- fixable: "code",
1899
- schema: [],
1900
- messages: {
1901
- unusedCatalogItem: 'Catalog item "{{catalogItem}}" is not used in any package.json.'
1902
- }
1903
- },
1904
- defaultOptions: [],
1905
- create(context) {
1906
- if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
1907
- return {};
1908
- const workspace3 = getPnpmWorkspace();
1909
- if (!workspace3 || pathe.normalize(workspace3.filepath) !== pathe.normalize(context.filename))
1910
- return {};
1911
- if (workspace3.hasChanged() || workspace3.hasQueue())
1912
- return {};
1913
- workspace3.setContent(context.sourceCode.text);
1914
- const parsed = workspace3.toJSON() || {};
1915
- const root = pathe.resolve(pathe.dirname(context.filename));
1916
- const entries = /* @__PURE__ */ new Map();
1917
- const doc = workspace3.getDocument();
1918
- const catalogs = {
1919
- default: doc.getIn(["catalog"])
1920
- };
1921
- for (const item of doc.getIn(["catalogs"])?.items || [])
1922
- catalogs[String(item.key)] = item.value;
1923
- for (const [catalog, map] of Object.entries(catalogs)) {
1924
- if (!map)
1925
- continue;
1926
- for (const item of map.items) {
1927
- entries.set(`${String(item.key)}:${catalog}`, item);
1928
- }
1929
- }
1930
- if (entries.size === 0)
1931
- return {};
1932
- const dirs = parsed.packages ? tinyglobby.globSync(parsed.packages, {
1933
- cwd: root,
1934
- dot: false,
1935
- ignore: [
1936
- "**/node_modules/**",
1937
- "**/dist/**",
1938
- "**/build/**",
1939
- "**/dist/**",
1940
- "**/dist/**"
1941
- ],
1942
- absolute: true,
1943
- expandDirectories: false,
1944
- onlyDirectories: true
1945
- }) : [];
1946
- dirs.push(root);
1947
- const packages = dirs.map((dir) => pathe.resolve(dir, "package.json")).filter((x) => fs.existsSync(x)).sort();
1948
- const FIELDS2 = [
1949
- "dependencies",
1950
- "devDependencies",
1951
- "peerDependencies",
1952
- "optionalDependencies",
1953
- "overrides",
1954
- "resolutions",
1955
- "pnpm.overrides"
1956
- ];
1957
- for (const path23 of packages) {
1958
- const pkg = JSON.parse(fs.readFileSync(path23, "utf-8"));
1959
- for (const field of FIELDS2) {
1960
- const map = getObjectPath2(pkg, field.split("."));
1961
- if (!map)
1962
- continue;
1963
- for (const [name3, value] of Object.entries(map)) {
1964
- if (!value.startsWith("catalog:"))
1965
- continue;
1966
- const catalog = value.slice(8) || "default";
1967
- const key = `${name3}:${catalog}`;
1968
- entries.delete(key);
1969
- }
1970
- }
1971
- }
1972
- if (entries.size > 0) {
1973
- for (const [key, value] of Array.from(entries.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
1974
- const start = context.sourceCode.getLocFromIndex(value.key.range[0]);
1975
- const end = context.sourceCode.getLocFromIndex(value.value.range.at(-1));
1976
- context.report({
1977
- loc: {
1978
- start,
1979
- end
1980
- },
1981
- messageId: "unusedCatalogItem",
1982
- data: { catalogItem: key }
1983
- });
1984
- }
1985
- }
1986
- return {};
1987
- }
1988
- });
1989
- rules$1 = {
1990
- "yaml-no-unused-catalog-item": noUnusedCatalogItem,
1991
- "yaml-no-duplicate-catalog-item": noDuplicateCatalogItem
1992
- };
1993
- rules4 = {
1994
- ...rules$2,
1995
- ...rules$1
1996
- };
1997
- plugin4 = {
1272
+
1273
+ // ../eslint-plugin-bun/src/plugin.ts
1274
+ var plugin2;
1275
+ var init_plugin = __esm({
1276
+ "../eslint-plugin-bun/src/plugin.ts"() {
1277
+ init_cjs_shims();
1278
+ init_package();
1279
+ init_json_enforce_catalog();
1280
+ init_json_no_duplicate_catalog_item();
1281
+ init_json_no_unused_catalog_item();
1282
+ init_json_valid_catalog();
1283
+ plugin2 = {
1998
1284
  meta: {
1999
- name: name2,
2000
- version: version3
1285
+ name: "bun",
1286
+ version: package_default2.version
2001
1287
  },
2002
- rules: rules4
1288
+ rules: {
1289
+ "json-enforce-catalog": json_enforce_catalog_default,
1290
+ "json-valid-catalog": json_valid_catalog_default,
1291
+ "json-no-unused-catalog-item": json_no_unused_catalog_item_default,
1292
+ "json-no-duplicate-catalog-item": json_no_duplicate_catalog_item_default
1293
+ }
2003
1294
  };
2004
- configsJson = [
1295
+ }
1296
+ });
1297
+ var config3, recommended_default2;
1298
+ var init_recommended = __esm({
1299
+ "../eslint-plugin-bun/src/configs/recommended.ts"() {
1300
+ init_cjs_shims();
1301
+ init_globs();
1302
+ init_plugin();
1303
+ config3 = [
2005
1304
  {
2006
- name: "pnpm/package.json",
2007
- files: [
2008
- "package.json",
2009
- "**/package.json"
2010
- ],
2011
- languageOptions: {
2012
- parser: parserJsonc__namespace
2013
- },
1305
+ name: "bun/recommended/setup",
2014
1306
  plugins: {
2015
- pnpm: plugin4
2016
- },
2017
- rules: {
2018
- "pnpm/json-enforce-catalog": "error",
2019
- "pnpm/json-valid-catalog": "error",
2020
- "pnpm/json-prefer-workspace-settings": "error"
1307
+ bun: plugin2
2021
1308
  }
2022
- }
2023
- ];
2024
- configsYaml = [
1309
+ },
2025
1310
  {
2026
- name: "pnpm/pnpm-workspace-yaml",
2027
- files: ["pnpm-workspace.yaml"],
1311
+ name: "bun/recommended/package-json",
1312
+ ignores: GLOB_EXCLUDE,
1313
+ files: ["package.json", "**/package.json"],
2028
1314
  languageOptions: {
2029
- parser: yamlParser__namespace
2030
- },
2031
- plugins: {
2032
- pnpm: plugin4
1315
+ parser: parserJsonc__default.default
2033
1316
  },
2034
1317
  rules: {
2035
- "pnpm/yaml-no-unused-catalog-item": "error",
2036
- "pnpm/yaml-no-duplicate-catalog-item": "error"
1318
+ "bun/json-enforce-catalog": [
1319
+ "error",
1320
+ {
1321
+ autofix: true,
1322
+ allowedProtocols: ["workspace", "link", "file"],
1323
+ defaultCatalog: "default",
1324
+ reuseExistingCatalog: true,
1325
+ conflicts: "overrides",
1326
+ fields: ["dependencies", "devDependencies"],
1327
+ ignore: ["typescript"]
1328
+ }
1329
+ ],
1330
+ "bun/json-valid-catalog": "error",
1331
+ "bun/json-no-unused-catalog-item": "error",
1332
+ "bun/json-no-duplicate-catalog-item": "error"
2037
1333
  }
2038
1334
  }
2039
1335
  ];
2040
- configs4 = {
2041
- recommended: [
2042
- ...configsJson
2043
- // Yaml support is still experimental
2044
- // ...configsYaml,
2045
- ],
2046
- json: configsJson,
2047
- yaml: configsYaml
1336
+ recommended_default2 = config3;
1337
+ }
1338
+ });
1339
+
1340
+ // ../eslint-plugin-bun/src/configs/index.ts
1341
+ var configs2;
1342
+ var init_configs = __esm({
1343
+ "../eslint-plugin-bun/src/configs/index.ts"() {
1344
+ init_cjs_shims();
1345
+ init_recommended();
1346
+ configs2 = {
1347
+ recommended: recommended_default2
1348
+ };
1349
+ }
1350
+ });
1351
+
1352
+ // ../eslint-plugin-bun/src/index.ts
1353
+ var src_exports = {};
1354
+ __export(src_exports, {
1355
+ configs: () => configs2,
1356
+ default: () => src_default2,
1357
+ rules: () => rules2
1358
+ });
1359
+ var eslintPlugin2, src_default2, rules2;
1360
+ var init_src = __esm({
1361
+ "../eslint-plugin-bun/src/index.ts"() {
1362
+ init_cjs_shims();
1363
+ init_configs();
1364
+ init_plugin();
1365
+ eslintPlugin2 = {
1366
+ ...plugin2,
1367
+ configs: configs2
2048
1368
  };
2049
- plugin4.configs = configs4;
1369
+ src_default2 = eslintPlugin2;
1370
+ rules2 = plugin2.rules;
2050
1371
  }
2051
1372
  });
2052
1373
 
@@ -2056,7 +1377,7 @@ var init_package2 = __esm({
2056
1377
  "../eslint-plugin-pnpm/package.json"() {
2057
1378
  package_default3 = {
2058
1379
  name: "@storm-software/eslint-plugin-pnpm",
2059
- version: "0.0.77",
1380
+ version: "0.0.79",
2060
1381
  private: false,
2061
1382
  description: "An ESLint Plugin that enforces PNPM-related rules in Storm Software projects.",
2062
1383
  keywords: [
@@ -2161,16 +1482,13 @@ var init_package2 = __esm({
2161
1482
  };
2162
1483
  }
2163
1484
  });
2164
-
2165
- // ../eslint-plugin-pnpm/src/plugin.ts
2166
- var plugin5;
1485
+ var plugin4;
2167
1486
  var init_plugin2 = __esm({
2168
1487
  "../eslint-plugin-pnpm/src/plugin.ts"() {
2169
1488
  init_cjs_shims();
2170
- init_dist();
2171
1489
  init_package2();
2172
- plugin5 = {
2173
- ...plugin4,
1490
+ plugin4 = {
1491
+ ...base__default.default,
2174
1492
  meta: {
2175
1493
  name: "pnpm",
2176
1494
  version: package_default3.version
@@ -2188,7 +1506,7 @@ var init_recommended2 = __esm({
2188
1506
  {
2189
1507
  name: "pnpm/recommended/setup",
2190
1508
  plugins: {
2191
- pnpm: plugin5
1509
+ pnpm: plugin4
2192
1510
  }
2193
1511
  },
2194
1512
  {
@@ -2196,7 +1514,7 @@ var init_recommended2 = __esm({
2196
1514
  ignores: GLOB_EXCLUDE,
2197
1515
  files: ["package.json", "**/package.json"],
2198
1516
  languageOptions: {
2199
- parser: parserJsonc__namespace.default
1517
+ parser: parserJsonc__default.default
2200
1518
  },
2201
1519
  rules: {
2202
1520
  "pnpm/json-enforce-catalog": [
@@ -2219,7 +1537,7 @@ var init_recommended2 = __esm({
2219
1537
  ignores: GLOB_EXCLUDE,
2220
1538
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
2221
1539
  languageOptions: {
2222
- parser: yamlParser__namespace.default
1540
+ parser: parserYaml__default.default
2223
1541
  },
2224
1542
  rules: {
2225
1543
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -2232,12 +1550,12 @@ var init_recommended2 = __esm({
2232
1550
  });
2233
1551
 
2234
1552
  // ../eslint-plugin-pnpm/src/configs/index.ts
2235
- var configs5;
1553
+ var configs4;
2236
1554
  var init_configs2 = __esm({
2237
1555
  "../eslint-plugin-pnpm/src/configs/index.ts"() {
2238
1556
  init_cjs_shims();
2239
1557
  init_recommended2();
2240
- configs5 = {
1558
+ configs4 = {
2241
1559
  recommended: recommended_default5
2242
1560
  };
2243
1561
  }
@@ -2246,22 +1564,22 @@ var init_configs2 = __esm({
2246
1564
  // ../eslint-plugin-pnpm/src/index.ts
2247
1565
  var src_exports2 = {};
2248
1566
  __export(src_exports2, {
2249
- configs: () => configs5,
1567
+ configs: () => configs4,
2250
1568
  default: () => src_default3,
2251
- rules: () => rules5
1569
+ rules: () => rules4
2252
1570
  });
2253
- var eslintPlugin3, src_default3, rules5;
1571
+ var eslintPlugin3, src_default3, rules4;
2254
1572
  var init_src2 = __esm({
2255
1573
  "../eslint-plugin-pnpm/src/index.ts"() {
2256
1574
  init_cjs_shims();
2257
1575
  init_configs2();
2258
1576
  init_plugin2();
2259
1577
  eslintPlugin3 = {
2260
- ...plugin5,
2261
- configs: configs5
1578
+ ...plugin4,
1579
+ configs: configs4
2262
1580
  };
2263
1581
  src_default3 = eslintPlugin3;
2264
- rules5 = plugin5.rules;
1582
+ rules4 = plugin4.rules;
2265
1583
  }
2266
1584
  });
2267
1585
 
@@ -2833,9 +2151,9 @@ var require_stylesheet = __commonJS({
2833
2151
  },
2834
2152
  getStyleReferenceFromExpression: function(node2) {
2835
2153
  const result = [];
2836
- const name3 = astHelpers.getObjectName(node2);
2837
- if (name3) {
2838
- result.push(name3);
2154
+ const name2 = astHelpers.getObjectName(node2);
2155
+ if (name2) {
2156
+ result.push(name2);
2839
2157
  }
2840
2158
  const property = astHelpers.getPropertyName(node2);
2841
2159
  if (property) {
@@ -3231,10 +2549,10 @@ var require_split_platform_components = __commonJS({
3231
2549
  return node2.name;
3232
2550
  }
3233
2551
  }
3234
- function hasNodeWithName(nodes, name3) {
2552
+ function hasNodeWithName(nodes, name2) {
3235
2553
  return nodes.some((node2) => {
3236
2554
  const nodeName = getName(node2);
3237
- return nodeName && nodeName.includes(name3);
2555
+ return nodeName && nodeName.includes(name2);
3238
2556
  });
3239
2557
  }
3240
2558
  function reportErrors(components, filename) {
@@ -3316,8 +2634,8 @@ var require_no_raw_text = __commonJS({
3316
2634
  let curNode = parent;
3317
2635
  while (curNode) {
3318
2636
  if (curNode.type === "JSXElement") {
3319
- const name3 = elementName(curNode);
3320
- if (allowedElements.includes(name3)) {
2637
+ const name2 = elementName(curNode);
2638
+ if (allowedElements.includes(name2)) {
3321
2639
  return true;
3322
2640
  }
3323
2641
  }
@@ -3489,10 +2807,10 @@ var require_eslint_plugin_react_native = __commonJS({
3489
2807
  "no-raw-text": require_no_raw_text(),
3490
2808
  "no-single-element-style-arrays": require_no_single_element_style_arrays()
3491
2809
  };
3492
- function configureAsError(rules7) {
2810
+ function configureAsError(rules6) {
3493
2811
  const result = {};
3494
- for (const key in rules7) {
3495
- if (!rules7.hasOwnProperty(key)) {
2812
+ for (const key in rules6) {
2813
+ if (!rules6.hasOwnProperty(key)) {
3496
2814
  continue;
3497
2815
  }
3498
2816
  result["react-native/" + key] = 2;
@@ -3534,547 +2852,13 @@ var require_eslint_plugin_react_native = __commonJS({
3534
2852
  }
3535
2853
  });
3536
2854
 
3537
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js
3538
- var require_Debug = __commonJS({
3539
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
3540
- init_cjs_shims();
3541
- Object.defineProperty(exports, "__esModule", { value: true });
3542
- exports.Debug = void 0;
3543
- var Debug = class {
3544
- // To debug the plugin, temporarily uncomment the body of this function
3545
- static log(message2) {
3546
- }
3547
- };
3548
- exports.Debug = Debug;
3549
- }
3550
- });
3551
-
3552
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
3553
- var require_ConfigCache = __commonJS({
3554
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
3555
- init_cjs_shims();
3556
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
3557
- if (k2 === void 0) k2 = k;
3558
- var desc = Object.getOwnPropertyDescriptor(m, k);
3559
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3560
- desc = { enumerable: true, get: function() {
3561
- return m[k];
3562
- } };
3563
- }
3564
- Object.defineProperty(o, k2, desc);
3565
- }) : (function(o, m, k, k2) {
3566
- if (k2 === void 0) k2 = k;
3567
- o[k2] = m[k];
3568
- }));
3569
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
3570
- Object.defineProperty(o, "default", { enumerable: true, value: v });
3571
- }) : function(o, v) {
3572
- o["default"] = v;
3573
- });
3574
- var __importStar = exports && exports.__importStar || function(mod) {
3575
- if (mod && mod.__esModule) return mod;
3576
- var result = {};
3577
- if (mod != null) {
3578
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
3579
- }
3580
- __setModuleDefault(result, mod);
3581
- return result;
3582
- };
3583
- Object.defineProperty(exports, "__esModule", { value: true });
3584
- exports.ConfigCache = void 0;
3585
- var tsdoc_config_1 = __require("@microsoft/tsdoc-config");
3586
- var path23 = __importStar(__require("path"));
3587
- var Debug_1 = require_Debug();
3588
- function _nullishCoalesce(lhs, rhsFn) {
3589
- if (lhs != null) {
3590
- return lhs;
3591
- } else {
3592
- return rhsFn();
3593
- }
3594
- }
3595
- var _fs = __require("fs");
3596
- var _path = __require("path");
3597
- var MAX_PATH_SEARCH_DEPTH3 = 30;
3598
- var depth3 = 0;
3599
- var ROOT_FILES = [
3600
- "storm-workspace.json",
3601
- "storm-workspace.json",
3602
- "storm-workspace.yaml",
3603
- "storm-workspace.yml",
3604
- "storm-workspace.js",
3605
- "storm-workspace.ts",
3606
- ".storm-workspace.json",
3607
- ".storm-workspace.yaml",
3608
- ".storm-workspace.yml",
3609
- ".storm-workspace.js",
3610
- ".storm-workspace.ts",
3611
- "lerna.json",
3612
- "nx.json",
3613
- "turbo.json",
3614
- "npm-workspace.json",
3615
- "yarn-workspace.json",
3616
- "pnpm-workspace.json",
3617
- "npm-workspace.yaml",
3618
- "yarn-workspace.yaml",
3619
- "pnpm-workspace.yaml",
3620
- "npm-workspace.yml",
3621
- "yarn-workspace.yml",
3622
- "pnpm-workspace.yml",
3623
- "npm-lock.json",
3624
- "yarn-lock.json",
3625
- "pnpm-lock.json",
3626
- "npm-lock.yaml",
3627
- "yarn-lock.yaml",
3628
- "pnpm-lock.yaml",
3629
- "npm-lock.yml",
3630
- "yarn-lock.yml",
3631
- "pnpm-lock.yml",
3632
- "bun.lockb"
3633
- ];
3634
- var ROOT_DIRECTORIES = [
3635
- ".storm-workspace",
3636
- ".nx",
3637
- ".github",
3638
- ".vscode",
3639
- ".verdaccio"
3640
- ];
3641
- function findWorkspaceRoot3(startPath) {
3642
- const _startPath = _nullishCoalesce(startPath, () => process.cwd());
3643
- if (ROOT_DIRECTORIES.some(
3644
- (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
3645
- )) {
3646
- return _startPath;
3647
- }
3648
- if (ROOT_FILES.some(
3649
- (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
3650
- )) {
3651
- return _startPath;
3652
- }
3653
- if (_startPath !== "/" && depth3++ < MAX_PATH_SEARCH_DEPTH3) {
3654
- const parent = _path.join.call(void 0, _startPath, "..");
3655
- return findWorkspaceRoot3(parent);
3656
- }
3657
- return void 0;
3658
- }
3659
- var CACHE_CHECK_INTERVAL_MS = 3 * 1e3;
3660
- var CACHE_EXPIRE_MS = 20 * 1e3;
3661
- var CACHE_MAX_SIZE = 100;
3662
- var ConfigCache = class _ConfigCache {
3663
- /**
3664
- * Node.js equivalent of performance.now().
3665
- */
3666
- static _getTimeInMs() {
3667
- const [seconds, nanoseconds] = process.hrtime();
3668
- return seconds * 1e3 + nanoseconds / 1e6;
3669
- }
3670
- static getForSourceFile(sourceFilePath, tsConfigRootDir) {
3671
- const sourceFileFolder = path23.dirname(path23.resolve(sourceFilePath));
3672
- const configFilePath = tsConfigRootDir ? path23.join(tsConfigRootDir, tsdoc_config_1.TSDocConfigFile.FILENAME) : tsdoc_config_1.TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
3673
- const cacheKey = configFilePath || sourceFileFolder + "/";
3674
- Debug_1.Debug.log(`Cache key: "${cacheKey}"`);
3675
- const nowMs = _ConfigCache._getTimeInMs();
3676
- let cachedConfig = void 0;
3677
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
3678
- if (cachedConfig) {
3679
- Debug_1.Debug.log("Cache hit");
3680
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
3681
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
3682
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
3683
- Debug_1.Debug.log("Evicting because item is expired");
3684
- cachedConfig = void 0;
3685
- _ConfigCache._cachedConfigs.delete(cacheKey);
3686
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
3687
- Debug_1.Debug.log("Checking for modifications");
3688
- cachedConfig.lastCheckTimeMs = nowMs;
3689
- if (cachedConfig.configFile.checkForModifiedFiles()) {
3690
- Debug_1.Debug.log("Evicting because item was modified");
3691
- cachedConfig = void 0;
3692
- _ConfigCache._cachedConfigs.delete(cacheKey);
3693
- }
3694
- }
3695
- }
3696
- if (!cachedConfig) {
3697
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
3698
- Debug_1.Debug.log("Clearing cache");
3699
- _ConfigCache._cachedConfigs.clear();
3700
- }
3701
- const configFile = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
3702
- if (configFile.fileNotFound) {
3703
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
3704
- } else {
3705
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
3706
- }
3707
- cachedConfig = {
3708
- configFile,
3709
- lastCheckTimeMs: nowMs,
3710
- loadTimeMs: nowMs
3711
- };
3712
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
3713
- }
3714
- return cachedConfig.configFile;
3715
- }
3716
- static _checkConfigFilePath(workspaceRoot, configFilePath) {
3717
- const workspaceRootPath = workspaceRoot ? workspaceRoot : "./";
3718
- if (!configFilePath) {
3719
- return void 0;
3720
- }
3721
- if (_fs.existsSync(configFilePath)) {
3722
- return configFilePath;
3723
- } else if (_fs.existsSync(
3724
- path23.join(
3725
- workspaceRootPath,
3726
- configFilePath
3727
- )
3728
- )) {
3729
- return path23.join(
3730
- workspaceRootPath,
3731
- configFilePath
3732
- );
3733
- } else if (_fs.existsSync(
3734
- path23.join(
3735
- workspaceRootPath,
3736
- "node_modules",
3737
- configFilePath
3738
- )
3739
- )) {
3740
- return path23.join(
3741
- workspaceRootPath,
3742
- "node_modules",
3743
- configFilePath
3744
- );
3745
- } else if (_fs.existsSync(
3746
- path23.join(
3747
- workspaceRootPath,
3748
- "node_modules",
3749
- "@storm-software",
3750
- "tsdoc",
3751
- configFilePath
3752
- )
3753
- )) {
3754
- return path23.join(
3755
- workspaceRootPath,
3756
- "node_modules",
3757
- "@storm-software",
3758
- "tsdoc",
3759
- configFilePath
3760
- );
3761
- } else if (_fs.existsSync(
3762
- path23.join(
3763
- workspaceRootPath,
3764
- "node_modules",
3765
- "@storm-software",
3766
- "tsdoc",
3767
- "config",
3768
- configFilePath
3769
- )
3770
- )) {
3771
- return path23.join(
3772
- workspaceRootPath,
3773
- "node_modules",
3774
- "@storm-software",
3775
- "tsdoc",
3776
- "config",
3777
- configFilePath
3778
- );
3779
- } else if (_fs.existsSync(
3780
- path23.join(
3781
- workspaceRootPath,
3782
- "node_modules",
3783
- "@storm-software",
3784
- "tsdoc",
3785
- "dist",
3786
- configFilePath
3787
- )
3788
- )) {
3789
- return path23.join(
3790
- workspaceRootPath,
3791
- "node_modules",
3792
- "@storm-software",
3793
- "tsdoc",
3794
- "dist",
3795
- configFilePath
3796
- );
3797
- }
3798
- return void 0;
3799
- }
3800
- static getStormConfigFile(options) {
3801
- const type = options && options.type ? options.type : "recommended";
3802
- const configFile = options && options.configFile ? options.configFile : void 0;
3803
- let workspaceRoot = "";
3804
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
3805
- workspaceRoot = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
3806
- }
3807
- if (!workspaceRoot) {
3808
- workspaceRoot = findWorkspaceRoot3();
3809
- }
3810
- let currentConfigFile = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
3811
- Debug_1.Debug.log(`Config file from user options: ${currentConfigFile || "(none)"}`);
3812
- let configFilePath = _ConfigCache._checkConfigFilePath(
3813
- workspaceRoot,
3814
- currentConfigFile
3815
- );
3816
- if (!configFilePath) {
3817
- currentConfigFile = `${((process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type) || "recommended").replace(/\.jsonc?$/, "")}.json`;
3818
- Debug_1.Debug.log(`Config file from user options not found, trying: ${currentConfigFile}`);
3819
- configFilePath = _ConfigCache._checkConfigFilePath(
3820
- workspaceRoot,
3821
- currentConfigFile
3822
- );
3823
- if (!configFilePath) {
3824
- configFilePath = _ConfigCache._checkConfigFilePath(
3825
- workspaceRoot,
3826
- "recommended.json"
3827
- );
3828
- if (!configFilePath) {
3829
- configFilePath = _ConfigCache._checkConfigFilePath(
3830
- workspaceRoot,
3831
- "tsdoc.json"
3832
- );
3833
- }
3834
- }
3835
- }
3836
- const cacheKey = configFilePath || "missing-config-file";
3837
- Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
3838
- const nowMs = _ConfigCache._getTimeInMs();
3839
- let cachedConfig = void 0;
3840
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
3841
- if (cachedConfig) {
3842
- Debug_1.Debug.log("Cache hit");
3843
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
3844
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
3845
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
3846
- Debug_1.Debug.log("Evicting because item is expired");
3847
- cachedConfig = void 0;
3848
- _ConfigCache._cachedConfigs.delete(cacheKey);
3849
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
3850
- Debug_1.Debug.log("Checking for modifications");
3851
- cachedConfig.lastCheckTimeMs = nowMs;
3852
- if (cachedConfig.configFile.checkForModifiedFiles()) {
3853
- Debug_1.Debug.log("Evicting because item was modified");
3854
- cachedConfig = void 0;
3855
- _ConfigCache._cachedConfigs.delete(cacheKey);
3856
- }
3857
- }
3858
- }
3859
- if (!cachedConfig) {
3860
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
3861
- Debug_1.Debug.log("Clearing cache");
3862
- _ConfigCache._cachedConfigs.clear();
3863
- }
3864
- const configFile2 = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
3865
- if (configFile2.fileNotFound) {
3866
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
3867
- } else {
3868
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
3869
- }
3870
- cachedConfig = {
3871
- configFile: configFile2,
3872
- lastCheckTimeMs: nowMs,
3873
- loadTimeMs: nowMs
3874
- };
3875
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
3876
- }
3877
- return cachedConfig.configFile;
3878
- }
3879
- };
3880
- exports.ConfigCache = ConfigCache;
3881
- ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
3882
- ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
3883
- }
3884
- });
3885
-
3886
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js
3887
- var require_lib = __commonJS({
3888
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
3889
- init_cjs_shims();
3890
- var tsdoc_1 = __require("@microsoft/tsdoc");
3891
- var Debug_1 = require_Debug();
3892
- var ConfigCache_1 = require_ConfigCache();
3893
- var tsdocMessageIds = {};
3894
- var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration();
3895
- defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
3896
- tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
3897
- });
3898
- var plugin9 = {
3899
- rules: {
3900
- // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
3901
- // from the NPM package name, and then appending this string.
3902
- syntax: {
3903
- meta: {
3904
- messages: Object.assign({
3905
- "error-loading-storm-config": `Error loading Storm Software's shared TSDoc config file:
3906
- {{details}}
3907
-
3908
- Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
3909
- "error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
3910
- "error-applying-storm-config": "Error applying Storm Software's shared TSDoc configuration: {{details}}",
3911
- "error-applying-config": "Error applying TSDoc configuration: {{details}}"
3912
- }, tsdocMessageIds),
3913
- type: "problem",
3914
- docs: {
3915
- description: "Validates that TypeScript documentation comments conform to the TSDoc standard",
3916
- category: "Stylistic Issues",
3917
- recommended: true,
3918
- url: "https://tsdoc.org/pages/packages/eslint-plugin-tsdoc"
3919
- },
3920
- schema: [
3921
- {
3922
- type: "object",
3923
- properties: {
3924
- type: {
3925
- type: "string",
3926
- enum: ["typedoc", "api-extractor", "base", "core", "callouts", "recommended"],
3927
- description: "The TSDoc configuration type to use from '@storm-software/tsdoc'. Defaults to 'recommended' (@storm-software/tsdoc/recommended.json)."
3928
- },
3929
- configFile: {
3930
- type: "string",
3931
- description: "The TSDoc configuration file to use."
3932
- },
3933
- tsconfigRootDir: {
3934
- type: "string",
3935
- description: "The root directory to use when resolving the tsconfig file. This is only necessary if the tsconfig file is not located in the same directory as the source file being linted. If not provided, eslint will attempt to use the parser option 'tsconfigRootDir' if it is available."
3936
- }
3937
- },
3938
- additionalProperties: false
3939
- }
3940
- ]
3941
- },
3942
- defaultOptions: [
3943
- {
3944
- type: "recommended"
3945
- }
3946
- ],
3947
- create: (context) => {
3948
- const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
3949
- let tsConfigDir = void 0;
3950
- const sourceFilePath = context.filename;
3951
- Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
3952
- try {
3953
- let tsdocConfigFile = {};
3954
- try {
3955
- const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
3956
- tsConfigDir = userOptions.tsconfigRootDir;
3957
- if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
3958
- tsConfigDir = context.parserOptions.tsconfigRootDir;
3959
- }
3960
- const config7 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
3961
- Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config7, void 0, 2)}`);
3962
- tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config7);
3963
- if (!tsdocConfigFile.fileNotFound) {
3964
- if (tsdocConfigFile.hasErrors) {
3965
- context.report({
3966
- loc: { line: 1, column: 1 },
3967
- messageId: "error-loading-storm-config",
3968
- data: {
3969
- details: tsdocConfigFile.getErrorSummary()
3970
- }
3971
- });
3972
- }
3973
- try {
3974
- tsdocConfigFile.configureParser(tsdocConfiguration);
3975
- } catch (e) {
3976
- context.report({
3977
- loc: { line: 1, column: 1 },
3978
- messageId: "error-applying-storm-config",
3979
- data: {
3980
- details: e.message
3981
- }
3982
- });
3983
- }
3984
- }
3985
- } catch (e) {
3986
- context.report({
3987
- loc: { line: 1, column: 1 },
3988
- messageId: "error-loading-storm-config",
3989
- data: {
3990
- details: `Unexpected exception: ${e.message}`
3991
- }
3992
- });
3993
- }
3994
- if (!tsdocConfigFile || tsdocConfigFile.fileNotFound || tsdocConfigFile.hasErrors) {
3995
- tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath, tsConfigDir);
3996
- if (!tsdocConfigFile.fileNotFound) {
3997
- if (tsdocConfigFile.hasErrors) {
3998
- context.report({
3999
- loc: { line: 1, column: 1 },
4000
- messageId: "error-loading-config-file",
4001
- data: {
4002
- details: tsdocConfigFile.getErrorSummary()
4003
- }
4004
- });
4005
- }
4006
- try {
4007
- tsdocConfigFile.configureParser(tsdocConfiguration);
4008
- } catch (e) {
4009
- context.report({
4010
- loc: { line: 1, column: 1 },
4011
- messageId: "error-applying-config",
4012
- data: {
4013
- details: e.message
4014
- }
4015
- });
4016
- }
4017
- }
4018
- }
4019
- } catch (e) {
4020
- context.report({
4021
- loc: { line: 1, column: 1 },
4022
- messageId: "error-loading-config-file",
4023
- data: {
4024
- details: `Unexpected exception: ${e.message}`
4025
- }
4026
- });
4027
- }
4028
- const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
4029
- const sourceCode = context.sourceCode || context.getSourceCode();
4030
- const checkCommentBlocks = function(node2) {
4031
- for (const comment of sourceCode.getAllComments()) {
4032
- if (comment.type !== "Block") {
4033
- continue;
4034
- }
4035
- if (!comment.range) {
4036
- continue;
4037
- }
4038
- const textRange = tsdoc_1.TextRange.fromStringRange(sourceCode.text, comment.range[0], comment.range[1]);
4039
- if (textRange.length < 5) {
4040
- continue;
4041
- }
4042
- if (textRange.buffer[textRange.pos + 2] !== "*") {
4043
- continue;
4044
- }
4045
- const parserContext = tsdocParser.parseRange(textRange);
4046
- for (const message2 of parserContext.log.messages) {
4047
- context.report({
4048
- loc: {
4049
- start: sourceCode.getLocFromIndex(message2.textRange.pos),
4050
- end: sourceCode.getLocFromIndex(message2.textRange.end)
4051
- },
4052
- messageId: message2.messageId,
4053
- data: {
4054
- unformattedText: message2.unformattedText
4055
- }
4056
- });
4057
- }
4058
- }
4059
- };
4060
- return {
4061
- Program: checkCommentBlocks
4062
- };
4063
- }
4064
- }
4065
- }
4066
- };
4067
- module.exports = plugin9;
4068
- }
4069
- });
4070
-
4071
2855
  // ../eslint-plugin-tsdoc/package.json
4072
2856
  var package_default4;
4073
2857
  var init_package3 = __esm({
4074
2858
  "../eslint-plugin-tsdoc/package.json"() {
4075
2859
  package_default4 = {
4076
2860
  name: "@storm-software/eslint-plugin-tsdoc",
4077
- version: "0.0.77",
2861
+ version: "0.0.79",
4078
2862
  private: false,
4079
2863
  description: "An ESLint Plugin that enforces TSDoc comments in Storm Software projects.",
4080
2864
  keywords: [
@@ -4134,7 +2918,6 @@ var init_package3 = __esm({
4134
2918
  "@microsoft/tsdoc-config": "catalog:",
4135
2919
  "@storm-software/package-constants": "workspace:*",
4136
2920
  "@typescript-eslint/utils": "catalog:",
4137
- ajv: "catalog:",
4138
2921
  defu: "catalog:",
4139
2922
  "es-errors": "1.3.0",
4140
2923
  "fast-deep-equal": "3.1.3",
@@ -4184,16 +2967,13 @@ var init_package3 = __esm({
4184
2967
  };
4185
2968
  }
4186
2969
  });
4187
-
4188
- // ../eslint-plugin-tsdoc/src/plugin.ts
4189
- var import_eslint_plugin_tsdoc, plugin8;
2970
+ var plugin7;
4190
2971
  var init_plugin3 = __esm({
4191
2972
  "../eslint-plugin-tsdoc/src/plugin.ts"() {
4192
2973
  init_cjs_shims();
4193
- import_eslint_plugin_tsdoc = __toESM(require_lib());
4194
2974
  init_package3();
4195
- plugin8 = {
4196
- ...import_eslint_plugin_tsdoc.default,
2975
+ plugin7 = {
2976
+ ...base2__default.default,
4197
2977
  meta: {
4198
2978
  name: "tsdoc",
4199
2979
  version: package_default4.version
@@ -4214,7 +2994,7 @@ var init_recommended3 = __esm({
4214
2994
  ignores: GLOB_EXCLUDE,
4215
2995
  name: "tsdoc/recommended",
4216
2996
  plugins: {
4217
- tsdoc: plugin8
2997
+ tsdoc: plugin7
4218
2998
  },
4219
2999
  rules: {
4220
3000
  "tsdoc/syntax": ["error", { type: "recommended" }]
@@ -4225,12 +3005,12 @@ var init_recommended3 = __esm({
4225
3005
  });
4226
3006
 
4227
3007
  // ../eslint-plugin-tsdoc/src/configs/index.ts
4228
- var configs7;
3008
+ var configs6;
4229
3009
  var init_configs3 = __esm({
4230
3010
  "../eslint-plugin-tsdoc/src/configs/index.ts"() {
4231
3011
  init_cjs_shims();
4232
3012
  init_recommended3();
4233
- configs7 = {
3013
+ configs6 = {
4234
3014
  recommended: recommended_default6
4235
3015
  };
4236
3016
  }
@@ -4239,22 +3019,22 @@ var init_configs3 = __esm({
4239
3019
  // ../eslint-plugin-tsdoc/src/index.ts
4240
3020
  var src_exports3 = {};
4241
3021
  __export(src_exports3, {
4242
- configs: () => configs7,
3022
+ configs: () => configs6,
4243
3023
  default: () => src_default4,
4244
- rules: () => rules6
3024
+ rules: () => rules5
4245
3025
  });
4246
- var eslintPlugin4, src_default4, rules6;
3026
+ var eslintPlugin4, src_default4, rules5;
4247
3027
  var init_src3 = __esm({
4248
3028
  "../eslint-plugin-tsdoc/src/index.ts"() {
4249
3029
  init_cjs_shims();
4250
3030
  init_configs3();
4251
3031
  init_plugin3();
4252
3032
  eslintPlugin4 = {
4253
- ...plugin8,
4254
- configs: configs7
3033
+ ...plugin7,
3034
+ configs: configs6
4255
3035
  };
4256
3036
  src_default4 = eslintPlugin4;
4257
- rules6 = plugin8.rules;
3037
+ rules5 = plugin7.rules;
4258
3038
  }
4259
3039
  });
4260
3040
 
@@ -4301,8 +3081,8 @@ async function interopDefault(m) {
4301
3081
  const resolved = await m;
4302
3082
  return resolved.default || resolved;
4303
3083
  }
4304
- function isPackageInScope(name3) {
4305
- return localPkg.isPackageExists(name3, { paths: [scopeUrl] });
3084
+ function isPackageInScope(name2) {
3085
+ return localPkg.isPackageExists(name2, { paths: [scopeUrl] });
4306
3086
  }
4307
3087
  async function ensurePackages(packages) {
4308
3088
  if (process2__default.default.env.CI || process2__default.default.stdout.isTTY === false || isCwdInScope === false)
@@ -4322,9 +3102,9 @@ async function ensurePackages(packages) {
4322
3102
  (i) => i.installPackage(nonExistingPackages, { dev: true })
4323
3103
  );
4324
3104
  }
4325
- function renameRules(rules7, map) {
3105
+ function renameRules(rules6, map) {
4326
3106
  return Object.fromEntries(
4327
- Object.entries(rules7).map(([key, value]) => {
3107
+ Object.entries(rules6).map(([key, value]) => {
4328
3108
  for (const [from, to] of Object.entries(map)) {
4329
3109
  if (key.startsWith(`${from}/`))
4330
3110
  return [to + key.slice(from.length), value];
@@ -4964,7 +3744,7 @@ init_cjs_shims();
4964
3744
  init_cjs_shims();
4965
3745
  var _a;
4966
3746
  // @__NO_SIDE_EFFECTS__
4967
- function $constructor(name3, initializer2, params) {
3747
+ function $constructor(name2, initializer2, params) {
4968
3748
  function init(inst, def) {
4969
3749
  if (!inst._zod) {
4970
3750
  Object.defineProperty(inst, "_zod", {
@@ -4976,10 +3756,10 @@ function $constructor(name3, initializer2, params) {
4976
3756
  enumerable: false
4977
3757
  });
4978
3758
  }
4979
- if (inst._zod.traits.has(name3)) {
3759
+ if (inst._zod.traits.has(name2)) {
4980
3760
  return;
4981
3761
  }
4982
- inst._zod.traits.add(name3);
3762
+ inst._zod.traits.add(name2);
4983
3763
  initializer2(inst, def);
4984
3764
  const proto = _.prototype;
4985
3765
  const keys = Object.keys(proto);
@@ -4993,7 +3773,7 @@ function $constructor(name3, initializer2, params) {
4993
3773
  const Parent = params?.Parent ?? Object;
4994
3774
  class Definition extends Parent {
4995
3775
  }
4996
- Object.defineProperty(Definition, "name", { value: name3 });
3776
+ Object.defineProperty(Definition, "name", { value: name2 });
4997
3777
  function _(def) {
4998
3778
  var _a4;
4999
3779
  const inst = params?.Parent ? new Definition() : this;
@@ -5009,10 +3789,10 @@ function $constructor(name3, initializer2, params) {
5009
3789
  value: (inst) => {
5010
3790
  if (params?.Parent && inst instanceof params.Parent)
5011
3791
  return true;
5012
- return inst?._zod?.traits?.has(name3);
3792
+ return inst?._zod?.traits?.has(name2);
5013
3793
  }
5014
3794
  });
5015
- Object.defineProperty(_, "name", { value: name3 });
3795
+ Object.defineProperty(_, "name", { value: name2 });
5016
3796
  return _;
5017
3797
  }
5018
3798
  var $ZodAsyncError = class extends Error {
@@ -7002,7 +5782,7 @@ async function getPackageJsonConfig(root) {
7002
5782
  let license = STORM_DEFAULT_LICENSE;
7003
5783
  let homepage = void 0;
7004
5784
  let support = void 0;
7005
- let name3 = void 0;
5785
+ let name2 = void 0;
7006
5786
  let namespace = void 0;
7007
5787
  let repository = void 0;
7008
5788
  const workspaceRoot = findWorkspaceRoot(root);
@@ -7014,7 +5794,7 @@ async function getPackageJsonConfig(root) {
7014
5794
  if (file) {
7015
5795
  const packageJson = JSON.parse(file);
7016
5796
  if (packageJson.name) {
7017
- name3 = packageJson.name;
5797
+ name2 = packageJson.name;
7018
5798
  }
7019
5799
  if (packageJson.namespace) {
7020
5800
  namespace = packageJson.namespace;
@@ -7043,7 +5823,7 @@ async function getPackageJsonConfig(root) {
7043
5823
  }
7044
5824
  return {
7045
5825
  workspaceRoot,
7046
- name: name3,
5826
+ name: name2,
7047
5827
  namespace,
7048
5828
  repository,
7049
5829
  license,
@@ -7084,7 +5864,7 @@ function applyDefaultConfig(config7) {
7084
5864
  // ../config-tools/src/config-file/get-config-file.ts
7085
5865
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
7086
5866
  const workspacePath = filePath || findWorkspaceRoot(filePath);
7087
- const configs8 = await Promise.all([
5867
+ const configs7 = await Promise.all([
7088
5868
  c12.loadConfig({
7089
5869
  cwd: workspacePath,
7090
5870
  packageJson: true,
@@ -7115,7 +5895,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
7115
5895
  ...options
7116
5896
  })
7117
5897
  ]);
7118
- return defu__default.default(configs8[0] ?? {}, configs8[1] ?? {});
5898
+ return defu__default.default(configs7[0] ?? {}, configs7[1] ?? {});
7119
5899
  };
7120
5900
  var getConfigFile = async (filePath, additionalFileNames = []) => {
7121
5901
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
@@ -7871,7 +6651,7 @@ init_cjs_shims();
7871
6651
 
7872
6652
  // ../eslint-plugin-banner/package.json
7873
6653
  var package_default = {
7874
- version: "0.0.79"};
6654
+ version: "0.0.81"};
7875
6655
 
7876
6656
  // ../eslint-plugin-banner/src/rules/banner.ts
7877
6657
  init_cjs_shims();
@@ -7880,7 +6660,7 @@ init_cjs_shims();
7880
6660
  init_cjs_shims();
7881
6661
  function RuleCreator(urlCreator) {
7882
6662
  return function createNamedRule({
7883
- name: name3,
6663
+ name: name2,
7884
6664
  meta: meta3,
7885
6665
  ...rule
7886
6666
  }) {
@@ -7889,7 +6669,7 @@ function RuleCreator(urlCreator) {
7889
6669
  ...meta3,
7890
6670
  docs: {
7891
6671
  ...meta3.docs,
7892
- url: urlCreator(name3)
6672
+ url: urlCreator(name2)
7893
6673
  }
7894
6674
  },
7895
6675
  ...rule
@@ -7965,12 +6745,12 @@ var ACRONYMS_LIST = [
7965
6745
 
7966
6746
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
7967
6747
  function getBanner(options) {
7968
- const { name: name3 } = options;
6748
+ const { name: name2 } = options;
7969
6749
  let padding = " ";
7970
- for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
6750
+ for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
7971
6751
  padding = padding.slice(0, -1);
7972
6752
  }
7973
- let titleName = name3;
6753
+ let titleName = name2;
7974
6754
  if (titleName) {
7975
6755
  if (titleName?.startsWith("@")) {
7976
6756
  titleName = titleName.slice(1);
@@ -7986,8 +6766,8 @@ function getBanner(options) {
7986
6766
  const organization = options.organization || "storm-software";
7987
6767
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
7988
6768
  const homepage = options.homepage || "https://stormsoftware.com";
7989
- const repository = options.repository || `https://github.com/${organization}${name3 ? `/${name3}` : ""}`;
7990
- const docs = options.docs || `https://docs.stormsoftware.com${name3 ? `/projects/${name3}` : ""}`;
6769
+ const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
6770
+ const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
7991
6771
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
7992
6772
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
7993
6773
  return word.toUpperCase();
@@ -8002,7 +6782,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
8002
6782
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
8003
6783
  is maintained by ${formattedOrganization} under the ${license} license, and is
8004
6784
  free for commercial and private use. For more information, please visit
8005
- our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
6785
+ our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
8006
6786
 
8007
6787
  Website: ${homepage}
8008
6788
  Repository: ${repository}
@@ -8202,7 +6982,7 @@ var banner_default = createRule({
8202
6982
  ],
8203
6983
  create: (context) => {
8204
6984
  const {
8205
- name: name3,
6985
+ name: name2,
8206
6986
  license,
8207
6987
  organization,
8208
6988
  licensing,
@@ -8214,7 +6994,7 @@ var banner_default = createRule({
8214
6994
  lineEndings
8215
6995
  } = context.options[0];
8216
6996
  const banner2 = getBanner({
8217
- name: name3,
6997
+ name: name2,
8218
6998
  license,
8219
6999
  organization,
8220
7000
  licensing,
@@ -8757,7 +7537,7 @@ async function bun(options = {}) {
8757
7537
  "@storm-software/eslint-plugin-bun",
8758
7538
  "jsonc-eslint-parser"
8759
7539
  ]);
8760
- const [plugin9, parserJsonc3] = await Promise.all([
7540
+ const [plugin8, parserJsonc3] = await Promise.all([
8761
7541
  interopDefault(Promise.resolve().then(() => (init_src(), src_exports))),
8762
7542
  interopDefault(import('jsonc-eslint-parser'))
8763
7543
  ]);
@@ -8800,20 +7580,20 @@ async function bun(options = {}) {
8800
7580
  }
8801
7581
  });
8802
7582
  }
8803
- const configs8 = (Array.isArray(plugin9.configs?.recommended) ? plugin9.configs.recommended : [plugin9.configs?.recommended]).filter(
7583
+ const configs7 = (Array.isArray(plugin8.configs?.recommended) ? plugin8.configs.recommended : [plugin8.configs?.recommended]).filter(
8804
7584
  (config7) => config7 && typeof config7 === "object" && "name" in config7 && !config7.name?.endsWith("setup")
8805
7585
  );
8806
- const packageJsonConfig = configs8.find(
7586
+ const packageJsonConfig = configs7.find(
8807
7587
  (config7) => config7.name?.endsWith("package-json") ?? false
8808
7588
  );
8809
7589
  return [
8810
7590
  {
8811
7591
  name: "storm/bun/setup",
8812
7592
  plugins: {
8813
- bun: plugin9
7593
+ bun: plugin8
8814
7594
  }
8815
7595
  },
8816
- ...configs8.map((config7) => ({
7596
+ ...configs7.map((config7) => ({
8817
7597
  name: config7.name,
8818
7598
  ...config7
8819
7599
  })),
@@ -9037,7 +7817,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9037
7817
  options.dprintOptions ?? {}
9038
7818
  );
9039
7819
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
9040
- const configs8 = [
7820
+ const configs7 = [
9041
7821
  {
9042
7822
  name: "storm/formatter/setup",
9043
7823
  plugins: {
@@ -9046,7 +7826,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9046
7826
  }
9047
7827
  ];
9048
7828
  if (options.css) {
9049
- configs8.push(
7829
+ configs7.push(
9050
7830
  {
9051
7831
  files: [GLOB_CSS, GLOB_POSTCSS],
9052
7832
  languageOptions: {
@@ -9095,7 +7875,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9095
7875
  );
9096
7876
  }
9097
7877
  if (options.html) {
9098
- configs8.push({
7878
+ configs7.push({
9099
7879
  files: [GLOB_HTML],
9100
7880
  languageOptions: {
9101
7881
  parser: parserPlain
@@ -9112,7 +7892,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9112
7892
  });
9113
7893
  }
9114
7894
  if (options.xml) {
9115
- configs8.push({
7895
+ configs7.push({
9116
7896
  files: [GLOB_XML],
9117
7897
  languageOptions: {
9118
7898
  parser: parserPlain
@@ -9133,7 +7913,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9133
7913
  });
9134
7914
  }
9135
7915
  if (options.svg) {
9136
- configs8.push({
7916
+ configs7.push({
9137
7917
  files: [GLOB_SVG],
9138
7918
  languageOptions: {
9139
7919
  parser: parserPlain
@@ -9155,7 +7935,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9155
7935
  }
9156
7936
  if (options.markdown) {
9157
7937
  const formater = options.markdown === true ? "prettier" : options.markdown;
9158
- configs8.push({
7938
+ configs7.push({
9159
7939
  files: [GLOB_MARKDOWN],
9160
7940
  languageOptions: {
9161
7941
  parser: parserPlain
@@ -9176,7 +7956,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9176
7956
  });
9177
7957
  }
9178
7958
  if (options.astro) {
9179
- configs8.push({
7959
+ configs7.push({
9180
7960
  files: [GLOB_ASTRO],
9181
7961
  languageOptions: {
9182
7962
  parser: parserPlain
@@ -9192,7 +7972,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9192
7972
  ]
9193
7973
  }
9194
7974
  });
9195
- configs8.push({
7975
+ configs7.push({
9196
7976
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
9197
7977
  name: "storm/formatter/astro/disables",
9198
7978
  rules: {
@@ -9207,7 +7987,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9207
7987
  });
9208
7988
  }
9209
7989
  if (options.graphql) {
9210
- configs8.push({
7990
+ configs7.push({
9211
7991
  files: [GLOB_GRAPHQL],
9212
7992
  languageOptions: {
9213
7993
  parser: parserPlain
@@ -9223,7 +8003,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9223
8003
  }
9224
8004
  });
9225
8005
  }
9226
- return configs8;
8006
+ return configs7;
9227
8007
  }
9228
8008
 
9229
8009
  // src/configs/graphql.ts
@@ -9751,13 +8531,13 @@ var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commi
9751
8531
 
9752
8532
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
9753
8533
  function RuleCreator3(urlCreator) {
9754
- return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
8534
+ return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
9755
8535
  return createRule_({
9756
8536
  meta: {
9757
8537
  ...meta3,
9758
8538
  docs: {
9759
8539
  ...meta3.docs,
9760
- url: urlCreator(name3)
8540
+ url: urlCreator(name2)
9761
8541
  }
9762
8542
  },
9763
8543
  ...rule
@@ -9778,9 +8558,9 @@ var createRule3 = RuleCreator3(docsUrl);
9778
8558
 
9779
8559
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
9780
8560
  init_cjs_shims();
9781
- function declaredScope(context, node2, name3) {
8561
+ function declaredScope(context, node2, name2) {
9782
8562
  const references = context.sourceCode.getScope(node2).references;
9783
- const reference = references.find((x) => x.identifier.name === name3);
8563
+ const reference = references.find((x) => x.identifier.name === name2);
9784
8564
  return reference?.resolved?.scope.type;
9785
8565
  }
9786
8566
 
@@ -10075,49 +8855,49 @@ function getFilePackageName(filename) {
10075
8855
  }
10076
8856
 
10077
8857
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
10078
- function baseModule(name3) {
10079
- if (isScoped(name3)) {
10080
- const [scope, pkg2] = name3.split("/");
8858
+ function baseModule(name2) {
8859
+ if (isScoped(name2)) {
8860
+ const [scope, pkg2] = name2.split("/");
10081
8861
  return `${scope}/${pkg2}`;
10082
8862
  }
10083
- const [pkg] = name3.split("/");
8863
+ const [pkg] = name2.split("/");
10084
8864
  return pkg;
10085
8865
  }
10086
- function isInternalRegexMatch(name3, settings) {
8866
+ function isInternalRegexMatch(name2, settings) {
10087
8867
  const internalScope = settings?.["import-x/internal-regex"];
10088
- return internalScope && new RegExp(internalScope).test(name3);
8868
+ return internalScope && new RegExp(internalScope).test(name2);
10089
8869
  }
10090
- function isAbsolute3(name3) {
10091
- return typeof name3 === "string" && path16__default.default.isAbsolute(name3);
8870
+ function isAbsolute3(name2) {
8871
+ return typeof name2 === "string" && path16__default.default.isAbsolute(name2);
10092
8872
  }
10093
- function isBuiltIn(name3, settings, modulePath) {
10094
- if (modulePath || !name3) {
8873
+ function isBuiltIn(name2, settings, modulePath) {
8874
+ if (modulePath || !name2) {
10095
8875
  return false;
10096
8876
  }
10097
- const base2 = baseModule(name3);
8877
+ const base3 = baseModule(name2);
10098
8878
  const extras = settings && settings["import-x/core-modules"] || [];
10099
- return Module.isBuiltin(base2) || extras.includes(base2);
8879
+ return Module.isBuiltin(base3) || extras.includes(base3);
10100
8880
  }
10101
- function isExternalModule(name3, modulePath, context) {
10102
- return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
8881
+ function isExternalModule(name2, modulePath, context) {
8882
+ return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
10103
8883
  }
10104
8884
  var moduleRegExp = /^\w/;
10105
- function isModule(name3) {
10106
- return !!name3 && moduleRegExp.test(name3);
8885
+ function isModule(name2) {
8886
+ return !!name2 && moduleRegExp.test(name2);
10107
8887
  }
10108
8888
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
10109
- function isScoped(name3) {
10110
- return !!name3 && scopedRegExp.test(name3);
8889
+ function isScoped(name2) {
8890
+ return !!name2 && scopedRegExp.test(name2);
10111
8891
  }
10112
- function isRelativeToParent(name3) {
10113
- return /^\.\.$|^\.\.[/\\]/.test(name3);
8892
+ function isRelativeToParent(name2) {
8893
+ return /^\.\.$|^\.\.[/\\]/.test(name2);
10114
8894
  }
10115
8895
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
10116
- function isIndex(name3) {
10117
- return indexFiles.has(name3);
8896
+ function isIndex(name2) {
8897
+ return indexFiles.has(name2);
10118
8898
  }
10119
- function isRelativeToSibling(name3) {
10120
- return /^\.[/\\]/.test(name3);
8899
+ function isRelativeToSibling(name2) {
8900
+ return /^\.[/\\]/.test(name2);
10121
8901
  }
10122
8902
  function isExternalPath(filepath, context) {
10123
8903
  if (!filepath) {
@@ -10144,28 +8924,28 @@ function isInternalPath(filepath, context) {
10144
8924
  const packagePath = getContextPackagePath(context);
10145
8925
  return !path16__default.default.relative(packagePath, filepath).startsWith("../");
10146
8926
  }
10147
- function isExternalLookingName(name3) {
10148
- return isModule(name3) || isScoped(name3);
8927
+ function isExternalLookingName(name2) {
8928
+ return isModule(name2) || isScoped(name2);
10149
8929
  }
10150
- function typeTest(name3, context, path23) {
8930
+ function typeTest(name2, context, path23) {
10151
8931
  const { settings } = context;
10152
- if (typeof name3 === "string") {
10153
- if (isInternalRegexMatch(name3, settings)) {
8932
+ if (typeof name2 === "string") {
8933
+ if (isInternalRegexMatch(name2, settings)) {
10154
8934
  return "internal";
10155
8935
  }
10156
- if (isAbsolute3(name3)) {
8936
+ if (isAbsolute3(name2)) {
10157
8937
  return "absolute";
10158
8938
  }
10159
- if (isBuiltIn(name3, settings, path23)) {
8939
+ if (isBuiltIn(name2, settings, path23)) {
10160
8940
  return "builtin";
10161
8941
  }
10162
- if (isRelativeToParent(name3)) {
8942
+ if (isRelativeToParent(name2)) {
10163
8943
  return "parent";
10164
8944
  }
10165
- if (isIndex(name3)) {
8945
+ if (isIndex(name2)) {
10166
8946
  return "index";
10167
8947
  }
10168
- if (isRelativeToSibling(name3)) {
8948
+ if (isRelativeToSibling(name2)) {
10169
8949
  return "sibling";
10170
8950
  }
10171
8951
  }
@@ -10175,13 +8955,13 @@ function typeTest(name3, context, path23) {
10175
8955
  if (isInternalPath(path23, context)) {
10176
8956
  return "internal";
10177
8957
  }
10178
- if (typeof name3 === "string" && isExternalLookingName(name3)) {
8958
+ if (typeof name2 === "string" && isExternalLookingName(name2)) {
10179
8959
  return "external";
10180
8960
  }
10181
8961
  return "unknown";
10182
8962
  }
10183
- function importType(name3, context) {
10184
- return typeTest(name3, context, typeof name3 === "string" ? resolve3(name3, context) : null);
8963
+ function importType(name2, context) {
8964
+ return typeTest(name2, context, typeof name2 === "string" ? resolve3(name2, context) : null);
10185
8965
  }
10186
8966
 
10187
8967
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
@@ -10221,32 +9001,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
10221
9001
  const map = /* @__PURE__ */ new Map();
10222
9002
  for (const nameOrRecordOrObject of resolverArray) {
10223
9003
  if (typeof nameOrRecordOrObject === "string") {
10224
- const name3 = nameOrRecordOrObject;
10225
- map.set(name3, {
10226
- name: name3,
9004
+ const name2 = nameOrRecordOrObject;
9005
+ map.set(name2, {
9006
+ name: name2,
10227
9007
  enable: true,
10228
9008
  options: void 0,
10229
- resolver: requireResolver(name3, sourceFile)
9009
+ resolver: requireResolver(name2, sourceFile)
10230
9010
  });
10231
9011
  } else if (typeof nameOrRecordOrObject === "object") {
10232
9012
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
10233
9013
  const object2 = nameOrRecordOrObject;
10234
- const { name: name3, enable = true, options, resolver } = object2;
10235
- map.set(name3, { name: name3, enable, options, resolver });
9014
+ const { name: name2, enable = true, options, resolver } = object2;
9015
+ map.set(name2, { name: name2, enable, options, resolver });
10236
9016
  } else {
10237
9017
  const record2 = nameOrRecordOrObject;
10238
- for (const [name3, enableOrOptions] of Object.entries(record2)) {
10239
- const resolver = requireResolver(name3, sourceFile);
9018
+ for (const [name2, enableOrOptions] of Object.entries(record2)) {
9019
+ const resolver = requireResolver(name2, sourceFile);
10240
9020
  if (typeof enableOrOptions === "boolean") {
10241
- map.set(name3, {
10242
- name: name3,
9021
+ map.set(name2, {
9022
+ name: name2,
10243
9023
  enable: enableOrOptions,
10244
9024
  options: void 0,
10245
9025
  resolver
10246
9026
  });
10247
9027
  } else {
10248
- map.set(name3, {
10249
- name: name3,
9028
+ map.set(name2, {
9029
+ name: name2,
10250
9030
  enable: true,
10251
9031
  options: enableOrOptions,
10252
9032
  resolver
@@ -10270,18 +9050,18 @@ try {
10270
9050
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
10271
9051
  } catch {
10272
9052
  }
10273
- function requireResolver(name3, sourceFile) {
10274
- const resolver = tryRequire(`eslint-import-resolver-${name3}`, sourceFile) || tryRequire(name3, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name3));
9053
+ function requireResolver(name2, sourceFile) {
9054
+ const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name2));
10275
9055
  if (!resolver) {
10276
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9056
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10277
9057
  return void 0;
10278
9058
  }
10279
- const err = new Error(`unable to load resolver "${name3}".`);
9059
+ const err = new Error(`unable to load resolver "${name2}".`);
10280
9060
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10281
9061
  throw err;
10282
9062
  }
10283
9063
  if (!isLegacyResolverValid(resolver)) {
10284
- const err = new Error(`${name3} with invalid interface loaded as resolver`);
9064
+ const err = new Error(`${name2} with invalid interface loaded as resolver`);
10285
9065
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10286
9066
  throw err;
10287
9067
  }
@@ -10535,11 +9315,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
10535
9315
  };
10536
9316
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
10537
9317
  for (const sourceFile2 of sourceFiles) {
10538
- for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
9318
+ for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
10539
9319
  if (!enable) {
10540
9320
  continue;
10541
9321
  }
10542
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9322
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10543
9323
  const resolverOptions = options || {};
10544
9324
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
10545
9325
  if (resolved2?.found) {
@@ -11069,44 +9849,44 @@ var ExportMap = class _ExportMap {
11069
9849
  }
11070
9850
  return size;
11071
9851
  }
11072
- has(name3) {
11073
- if (this.namespace.has(name3)) {
9852
+ has(name2) {
9853
+ if (this.namespace.has(name2)) {
11074
9854
  return true;
11075
9855
  }
11076
- if (this.reexports.has(name3)) {
9856
+ if (this.reexports.has(name2)) {
11077
9857
  return true;
11078
9858
  }
11079
- if (name3 !== "default") {
9859
+ if (name2 !== "default") {
11080
9860
  for (const dep of this.dependencies) {
11081
9861
  const innerMap = dep();
11082
9862
  if (!innerMap) {
11083
9863
  continue;
11084
9864
  }
11085
- if (innerMap.has(name3)) {
9865
+ if (innerMap.has(name2)) {
11086
9866
  return true;
11087
9867
  }
11088
9868
  }
11089
9869
  }
11090
9870
  return false;
11091
9871
  }
11092
- hasDeep(name3) {
11093
- if (this.namespace.has(name3)) {
9872
+ hasDeep(name2) {
9873
+ if (this.namespace.has(name2)) {
11094
9874
  return { found: true, path: [this] };
11095
9875
  }
11096
- if (this.reexports.has(name3)) {
11097
- const reexports = this.reexports.get(name3);
9876
+ if (this.reexports.has(name2)) {
9877
+ const reexports = this.reexports.get(name2);
11098
9878
  const imported = reexports.getImport();
11099
9879
  if (imported == null) {
11100
9880
  return { found: true, path: [this] };
11101
9881
  }
11102
- if (imported.path === this.path && reexports.local === name3) {
9882
+ if (imported.path === this.path && reexports.local === name2) {
11103
9883
  return { found: false, path: [this] };
11104
9884
  }
11105
9885
  const deep = imported.hasDeep(reexports.local);
11106
9886
  deep.path.unshift(this);
11107
9887
  return deep;
11108
9888
  }
11109
- if (name3 !== "default") {
9889
+ if (name2 !== "default") {
11110
9890
  for (const dep of this.dependencies) {
11111
9891
  const innerMap = dep();
11112
9892
  if (innerMap == null) {
@@ -11118,7 +9898,7 @@ var ExportMap = class _ExportMap {
11118
9898
  if (innerMap.path === this.path) {
11119
9899
  continue;
11120
9900
  }
11121
- const innerValue = innerMap.hasDeep(name3);
9901
+ const innerValue = innerMap.hasDeep(name2);
11122
9902
  if (innerValue.found) {
11123
9903
  innerValue.path.unshift(this);
11124
9904
  return innerValue;
@@ -11127,22 +9907,22 @@ var ExportMap = class _ExportMap {
11127
9907
  }
11128
9908
  return { found: false, path: [this] };
11129
9909
  }
11130
- get(name3) {
11131
- if (this.namespace.has(name3)) {
11132
- return this.namespace.get(name3);
9910
+ get(name2) {
9911
+ if (this.namespace.has(name2)) {
9912
+ return this.namespace.get(name2);
11133
9913
  }
11134
- if (this.reexports.has(name3)) {
11135
- const reexports = this.reexports.get(name3);
9914
+ if (this.reexports.has(name2)) {
9915
+ const reexports = this.reexports.get(name2);
11136
9916
  const imported = reexports.getImport();
11137
9917
  if (imported == null) {
11138
9918
  return null;
11139
9919
  }
11140
- if (imported.path === this.path && reexports.local === name3) {
9920
+ if (imported.path === this.path && reexports.local === name2) {
11141
9921
  return void 0;
11142
9922
  }
11143
9923
  return imported.get(reexports.local);
11144
9924
  }
11145
- if (name3 !== "default") {
9925
+ if (name2 !== "default") {
11146
9926
  for (const dep of this.dependencies) {
11147
9927
  const innerMap = dep();
11148
9928
  if (!innerMap) {
@@ -11151,7 +9931,7 @@ var ExportMap = class _ExportMap {
11151
9931
  if (innerMap.path === this.path) {
11152
9932
  continue;
11153
9933
  }
11154
- const innerValue = innerMap.get(name3);
9934
+ const innerValue = innerMap.get(name2);
11155
9935
  if (innerValue !== void 0) {
11156
9936
  return innerValue;
11157
9937
  }
@@ -11162,9 +9942,9 @@ var ExportMap = class _ExportMap {
11162
9942
  for (const [n, v] of this.namespace.entries()) {
11163
9943
  callback.call(thisArg, v, n, this);
11164
9944
  }
11165
- for (const [name3, reexports] of this.reexports.entries()) {
9945
+ for (const [name2, reexports] of this.reexports.entries()) {
11166
9946
  const reexported = reexports.getImport();
11167
- callback.call(thisArg, reexported?.get(reexports.local), name3, this);
9947
+ callback.call(thisArg, reexported?.get(reexports.local), name2, this);
11168
9948
  }
11169
9949
  this.dependencies.forEach((dep) => {
11170
9950
  const d = dep();
@@ -11453,7 +10233,7 @@ function moduleVisitor(visitor, options) {
11453
10233
  return visitors;
11454
10234
  }
11455
10235
  function makeOptionsSchema(additionalProperties) {
11456
- const base2 = {
10236
+ const base3 = {
11457
10237
  type: "object",
11458
10238
  properties: {
11459
10239
  commonjs: { type: "boolean" },
@@ -11469,10 +10249,10 @@ function makeOptionsSchema(additionalProperties) {
11469
10249
  };
11470
10250
  if (additionalProperties) {
11471
10251
  for (const key in additionalProperties) {
11472
- base2.properties[key] = additionalProperties[key];
10252
+ base3.properties[key] = additionalProperties[key];
11473
10253
  }
11474
10254
  }
11475
- return base2;
10255
+ return base3;
11476
10256
  }
11477
10257
  makeOptionsSchema();
11478
10258
 
@@ -11954,12 +10734,12 @@ var export_default = createRule3({
11954
10734
  defaultOptions: [],
11955
10735
  create(context) {
11956
10736
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
11957
- function addNamed(name3, node2, parent, isType) {
10737
+ function addNamed(name2, node2, parent, isType) {
11958
10738
  if (!namespace.has(parent)) {
11959
10739
  namespace.set(parent, /* @__PURE__ */ new Map());
11960
10740
  }
11961
10741
  const named = namespace.get(parent);
11962
- const key = isType ? `${tsTypePrefix}${name3}` : name3;
10742
+ const key = isType ? `${tsTypePrefix}${name2}` : name2;
11963
10743
  let nodes = named.get(key);
11964
10744
  if (nodes == null) {
11965
10745
  nodes = /* @__PURE__ */ new Set();
@@ -12015,10 +10795,10 @@ var export_default = createRule3({
12015
10795
  }
12016
10796
  const parent = getParent(node2);
12017
10797
  let any2 = false;
12018
- remoteExports.$forEach((_, name3) => {
12019
- if (name3 !== "default") {
10798
+ remoteExports.$forEach((_, name2) => {
10799
+ if (name2 !== "default") {
12020
10800
  any2 = true;
12021
- addNamed(name3, node2, parent);
10801
+ addNamed(name2, node2, parent);
12022
10802
  }
12023
10803
  });
12024
10804
  if (!any2) {
@@ -12031,7 +10811,7 @@ var export_default = createRule3({
12031
10811
  },
12032
10812
  "Program:exit"() {
12033
10813
  for (const [, named] of namespace) {
12034
- for (const [name3, nodes] of named) {
10814
+ for (const [name2, nodes] of named) {
12035
10815
  if (nodes.size === 0) {
12036
10816
  continue;
12037
10817
  }
@@ -12046,7 +10826,7 @@ var export_default = createRule3({
12046
10826
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
12047
10827
  continue;
12048
10828
  }
12049
- if (name3 === "default") {
10829
+ if (name2 === "default") {
12050
10830
  context.report({
12051
10831
  node: node2,
12052
10832
  messageId: "multiDefault"
@@ -12056,7 +10836,7 @@ var export_default = createRule3({
12056
10836
  node: node2,
12057
10837
  messageId: "multiNamed",
12058
10838
  data: {
12059
- name: name3.replace(tsTypePrefix, "")
10839
+ name: name2.replace(tsTypePrefix, "")
12060
10840
  }
12061
10841
  });
12062
10842
  }
@@ -14382,8 +13162,8 @@ var named_default = createRule3({
14382
13162
  continue;
14383
13163
  }
14384
13164
  const imNode = im[key];
14385
- const name3 = imNode.name || imNode.value;
14386
- const deepLookup = imports2.hasDeep(name3);
13165
+ const name2 = imNode.name || imNode.value;
13166
+ const deepLookup = imports2.hasDeep(name2);
14387
13167
  if (!deepLookup.found) {
14388
13168
  if (deepLookup.path.length > 1) {
14389
13169
  const deepPath = deepLookup.path.map((i) => path16__default.default.relative(path16__default.default.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -14391,7 +13171,7 @@ var named_default = createRule3({
14391
13171
  node: imNode,
14392
13172
  messageId: "notFoundDeep",
14393
13173
  data: {
14394
- name: name3,
13174
+ name: name2,
14395
13175
  deepPath
14396
13176
  }
14397
13177
  });
@@ -14400,7 +13180,7 @@ var named_default = createRule3({
14400
13180
  node: imNode,
14401
13181
  messageId: "notFound",
14402
13182
  data: {
14403
- name: name3,
13183
+ name: name2,
14404
13184
  path: node2.source.value
14405
13185
  }
14406
13186
  });
@@ -15282,7 +14062,7 @@ var no_cycle_default = createRule3({
15282
14062
  }
15283
14063
  const options = context.options[0] || {};
15284
14064
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
15285
- const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve3(name3, context), context) : () => false;
14065
+ const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve3(name2, context), context) : () => false;
15286
14066
  return {
15287
14067
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
15288
14068
  if (ignoreModule(sourceNode.value)) {
@@ -16112,8 +14892,8 @@ function getDependencies(context, packageDir) {
16112
14892
  }
16113
14893
  }
16114
14894
  }
16115
- function getModuleOriginalName(name3) {
16116
- const [first, second] = name3.split("/");
14895
+ function getModuleOriginalName(name2) {
14896
+ const [first, second] = name2.split("/");
16117
14897
  return first.startsWith("@") ? `${first}/${second}` : first;
16118
14898
  }
16119
14899
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -16140,19 +14920,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
16140
14920
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
16141
14921
  }), newDeclarationStatus);
16142
14922
  }
16143
- function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
14923
+ function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
16144
14924
  if (!depsOptions.verifyTypeImports && ("importKind" in node2 && (node2.importKind === "type" || node2.importKind === "typeof") || "exportKind" in node2 && node2.exportKind === "type" || "specifiers" in node2 && Array.isArray(node2.specifiers) && node2.specifiers.length > 0 && node2.specifiers.every((specifier) => "importKind" in specifier && (specifier.importKind === "type" || specifier.importKind === "typeof")))) {
16145
14925
  return;
16146
14926
  }
16147
- const typeOfImport = importType(name3, context);
14927
+ const typeOfImport = importType(name2, context);
16148
14928
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
16149
14929
  return;
16150
14930
  }
16151
- const resolved = resolve3(name3, context);
14931
+ const resolved = resolve3(name2, context);
16152
14932
  if (!resolved) {
16153
14933
  return;
16154
14934
  }
16155
- const importPackageName = getModuleOriginalName(name3);
14935
+ const importPackageName = getModuleOriginalName(name2);
16156
14936
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
16157
14937
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
16158
14938
  return;
@@ -16487,9 +15267,9 @@ var no_mutable_exports_default = createRule3({
16487
15267
  });
16488
15268
  }
16489
15269
  }
16490
- function checkDeclarationsInScope({ variables }, name3) {
15270
+ function checkDeclarationsInScope({ variables }, name2) {
16491
15271
  for (const variable of variables) {
16492
- if (variable.name === name3) {
15272
+ if (variable.name === name2) {
16493
15273
  for (const def of variable.defs) {
16494
15274
  if (def.type === "Variable" && def.parent) {
16495
15275
  checkDeclaration(def.parent);
@@ -16841,21 +15621,21 @@ function getVariableNamesInScope(scopeManager, node2) {
16841
15621
  }
16842
15622
  function generateLocalNames(names, nameConflicts, namespaceName) {
16843
15623
  const localNames = {};
16844
- for (const name3 of names) {
15624
+ for (const name2 of names) {
16845
15625
  let localName;
16846
- if (!nameConflicts[name3].has(name3)) {
16847
- localName = name3;
16848
- } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
15626
+ if (!nameConflicts[name2].has(name2)) {
15627
+ localName = name2;
15628
+ } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
16849
15629
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
16850
- if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
16851
- localName = `${namespaceName}_${name3}_${i}`;
15630
+ if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
15631
+ localName = `${namespaceName}_${name2}_${i}`;
16852
15632
  break;
16853
15633
  }
16854
15634
  }
16855
15635
  } else {
16856
- localName = `${namespaceName}_${name3}`;
15636
+ localName = `${namespaceName}_${name2}`;
16857
15637
  }
16858
- localNames[name3] = localName;
15638
+ localNames[name2] = localName;
16859
15639
  }
16860
15640
  return localNames;
16861
15641
  }
@@ -18062,8 +16842,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18062
16842
  }
18063
16843
  }
18064
16844
  }
18065
- forEachDeclarationIdentifier(s.declaration, (name3) => {
18066
- newExportIdentifiers.add(name3);
16845
+ forEachDeclarationIdentifier(s.declaration, (name2) => {
16846
+ newExportIdentifiers.add(name2);
18067
16847
  });
18068
16848
  }
18069
16849
  }
@@ -18138,11 +16918,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18138
16918
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
18139
16919
  resolvedPath = resolve3(astNode.source.raw.replaceAll(/('|")/g, ""), context);
18140
16920
  for (const specifier of astNode.specifiers) {
18141
- const name3 = getValue(specifier.local);
18142
- if (name3 === DEFAULT) {
16921
+ const name2 = getValue(specifier.local);
16922
+ if (name2 === DEFAULT) {
18143
16923
  newDefaultImports.add(resolvedPath);
18144
16924
  } else {
18145
- newImports.set(name3, resolvedPath);
16925
+ newImports.set(name2, resolvedPath);
18146
16926
  }
18147
16927
  }
18148
16928
  }
@@ -18340,8 +17120,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18340
17120
  for (const specifier of node2.specifiers) {
18341
17121
  checkUsage(specifier, getValue(specifier.exported), false);
18342
17122
  }
18343
- forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
18344
- checkUsage(node2, name3, isTypeExport);
17123
+ forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
17124
+ checkUsage(node2, name2, isTypeExport);
18345
17125
  });
18346
17126
  }
18347
17127
  };
@@ -19359,11 +18139,11 @@ var order_default = createRule3({
19359
18139
  return {
19360
18140
  ImportDeclaration(node2) {
19361
18141
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
19362
- const name3 = node2.source.value;
18142
+ const name2 = node2.source.value;
19363
18143
  registerNode(context, {
19364
18144
  node: node2,
19365
- value: name3,
19366
- displayName: name3,
18145
+ value: name2,
18146
+ displayName: name2,
19367
18147
  type: "import"
19368
18148
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
19369
18149
  if (named.import) {
@@ -19485,11 +18265,11 @@ var order_default = createRule3({
19485
18265
  } else {
19486
18266
  const nameParts = getNamedCJSExports(context, node2.left);
19487
18267
  if (nameParts && nameParts.length > 0) {
19488
- const name3 = nameParts.join(".");
18268
+ const name2 = nameParts.join(".");
19489
18269
  getBlockExports(node2.parent.parent).push({
19490
18270
  node: node2,
19491
- value: name3,
19492
- displayName: name3,
18271
+ value: name2,
18272
+ displayName: name2,
19493
18273
  type: "export",
19494
18274
  rank: 0
19495
18275
  });
@@ -19851,7 +18631,7 @@ var getImportSource;
19851
18631
  var isAllSameSubmodule;
19852
18632
  var prefer_zod_namespace_default;
19853
18633
  var init_prefer_zod_namespace = __esm2({ "src/rules/prefer-zod-namespace.ts"() {
19854
- createRule4 = utils.ESLintUtils.RuleCreator((name3) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name3}.md`);
18634
+ createRule4 = utils.ESLintUtils.RuleCreator((name2) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name2}.md`);
19855
18635
  getImportSource = (importedName, originalSource) => {
19856
18636
  return importedName === "core" && originalSource === "zod/v4" ? `${originalSource}/${importedName}` : originalSource;
19857
18637
  };
@@ -21508,7 +20288,7 @@ async function pnpm(options = {}) {
21508
20288
  } = options;
21509
20289
  const workspaceRoot = findWorkspaceRoot2();
21510
20290
  await ensurePackages(["@storm-software/eslint-plugin-pnpm", "jsonc-eslint-parser", "yaml-eslint-parser"]);
21511
- const [plugin9, parserJsonc3, parserYaml2] = await Promise.all([
20291
+ const [plugin8, parserJsonc3, parserYaml2] = await Promise.all([
21512
20292
  interopDefault(Promise.resolve().then(() => (init_src2(), src_exports2))),
21513
20293
  interopDefault(import('jsonc-eslint-parser')),
21514
20294
  interopDefault(import('yaml-eslint-parser'))
@@ -21556,7 +20336,7 @@ async function pnpm(options = {}) {
21556
20336
  {
21557
20337
  name: "storm/pnpm/setup",
21558
20338
  plugins: {
21559
- pnpm: plugin9
20339
+ pnpm: plugin8
21560
20340
  }
21561
20341
  },
21562
20342
  {
@@ -21864,12 +20644,12 @@ async function reactNative(options = {}) {
21864
20644
  init_cjs_shims();
21865
20645
  async function regexp(options = {}) {
21866
20646
  const config7 = eslintPluginRegexp.configs["flat/recommended"];
21867
- const rules7 = {
20647
+ const rules6 = {
21868
20648
  ...config7.rules
21869
20649
  };
21870
20650
  if (options.level === "warn") {
21871
- for (const key in rules7) {
21872
- if (rules7[key] === "error") rules7[key] = "warn";
20651
+ for (const key in rules6) {
20652
+ if (rules6[key] === "error") rules6[key] = "warn";
21873
20653
  }
21874
20654
  }
21875
20655
  return [
@@ -21877,7 +20657,7 @@ async function regexp(options = {}) {
21877
20657
  ...config7,
21878
20658
  name: "storm/regexp/rules",
21879
20659
  rules: {
21880
- ...rules7,
20660
+ ...rules6,
21881
20661
  "regexp/no-unused-capturing-group": [
21882
20662
  "error",
21883
20663
  {
@@ -22200,10 +20980,10 @@ async function storybook(options = {}) {
22200
20980
  // src/configs/test.ts
22201
20981
  init_cjs_shims();
22202
20982
  init_globs();
22203
- var plugin7;
20983
+ var plugin6;
22204
20984
  async function test(options = {}) {
22205
20985
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
22206
- plugin7 = plugin7 || {
20986
+ plugin6 = plugin6 || {
22207
20987
  ...default4__default.default,
22208
20988
  rules: {
22209
20989
  ...default4__default.default.rules,
@@ -22215,7 +20995,7 @@ async function test(options = {}) {
22215
20995
  {
22216
20996
  name: "storm/test/setup",
22217
20997
  plugins: {
22218
- test: plugin7
20998
+ test: plugin6
22219
20999
  }
22220
21000
  },
22221
21001
  {
@@ -22845,7 +21625,7 @@ function getOverrides(options, key) {
22845
21625
  }
22846
21626
  function preset(options, ...userConfigs) {
22847
21627
  const {
22848
- name: name3,
21628
+ name: name2,
22849
21629
  globals = {},
22850
21630
  banner: enableBanner = true,
22851
21631
  astro: enableAstro = false,
@@ -22885,10 +21665,10 @@ function preset(options, ...userConfigs) {
22885
21665
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
22886
21666
  stylisticOptions.jsx = enableJsx;
22887
21667
  }
22888
- const configs8 = [];
21668
+ const configs7 = [];
22889
21669
  if (enableGitignore) {
22890
21670
  if (typeof enableGitignore !== "boolean") {
22891
- configs8.push(
21671
+ configs7.push(
22892
21672
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22893
21673
  r({
22894
21674
  name: "storm/gitignore",
@@ -22897,7 +21677,7 @@ function preset(options, ...userConfigs) {
22897
21677
  ])
22898
21678
  );
22899
21679
  } else {
22900
- configs8.push(
21680
+ configs7.push(
22901
21681
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22902
21682
  r({
22903
21683
  name: "storm/gitignore",
@@ -22907,7 +21687,7 @@ function preset(options, ...userConfigs) {
22907
21687
  );
22908
21688
  }
22909
21689
  }
22910
- configs8.push(
21690
+ configs7.push(
22911
21691
  ignores(options.ignores),
22912
21692
  javascript({
22913
21693
  globals,
@@ -22932,7 +21712,7 @@ function preset(options, ...userConfigs) {
22932
21712
  }
22933
21713
  }
22934
21714
  if (enableTypeScript) {
22935
- configs8.push(
21715
+ configs7.push(
22936
21716
  typescript({
22937
21717
  ...typescriptOptions,
22938
21718
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -22943,25 +21723,25 @@ function preset(options, ...userConfigs) {
22943
21723
  );
22944
21724
  }
22945
21725
  if (enableBanner) {
22946
- configs8.push(
21726
+ configs7.push(
22947
21727
  banner({
22948
21728
  ...resolveSubOptions(options, "banner"),
22949
- name: name3,
21729
+ name: name2,
22950
21730
  overrides: getOverrides(options, "banner")
22951
21731
  })
22952
21732
  );
22953
21733
  }
22954
21734
  if (!stylisticOptions) {
22955
- configs8.push(prettier());
21735
+ configs7.push(prettier());
22956
21736
  }
22957
21737
  if (enableCSpell) {
22958
- configs8.push(cspell(resolveSubOptions(options, "cspell")));
21738
+ configs7.push(cspell(resolveSubOptions(options, "cspell")));
22959
21739
  }
22960
21740
  if (enableUnicorn) {
22961
- configs8.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
21741
+ configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
22962
21742
  }
22963
21743
  if (enableJSDoc) {
22964
- configs8.push(
21744
+ configs7.push(
22965
21745
  jsdoc({
22966
21746
  ...resolveSubOptions(options, "jsdoc"),
22967
21747
  overrides: getOverrides(options, "jsdoc")
@@ -22969,7 +21749,7 @@ function preset(options, ...userConfigs) {
22969
21749
  );
22970
21750
  }
22971
21751
  if (enableTSDoc) {
22972
- configs8.push(
21752
+ configs7.push(
22973
21753
  tsdoc({
22974
21754
  ...resolveSubOptions(options, "tsdoc"),
22975
21755
  overrides: getOverrides(options, "tsdoc")
@@ -22977,17 +21757,17 @@ function preset(options, ...userConfigs) {
22977
21757
  );
22978
21758
  }
22979
21759
  if (enableJsx) {
22980
- configs8.push(jsx());
21760
+ configs7.push(jsx());
22981
21761
  }
22982
21762
  if (enableZod) {
22983
- configs8.push(
21763
+ configs7.push(
22984
21764
  zod({
22985
21765
  overrides: getOverrides(options, "zod")
22986
21766
  })
22987
21767
  );
22988
21768
  }
22989
21769
  if (stylisticOptions) {
22990
- configs8.push(
21770
+ configs7.push(
22991
21771
  stylistic({
22992
21772
  ...stylisticOptions,
22993
21773
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -22997,10 +21777,10 @@ function preset(options, ...userConfigs) {
22997
21777
  );
22998
21778
  }
22999
21779
  if (enableRegexp) {
23000
- configs8.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
21780
+ configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
23001
21781
  }
23002
21782
  if (enableTest) {
23003
- configs8.push(
21783
+ configs7.push(
23004
21784
  test({
23005
21785
  isInEditor,
23006
21786
  overrides: getOverrides(options, "test")
@@ -23008,10 +21788,10 @@ function preset(options, ...userConfigs) {
23008
21788
  );
23009
21789
  }
23010
21790
  if (enableGraphQL) {
23011
- configs8.push(graphql(resolveSubOptions(options, "graphql")));
21791
+ configs7.push(graphql(resolveSubOptions(options, "graphql")));
23012
21792
  }
23013
21793
  if (enableReact) {
23014
- configs8.push(
21794
+ configs7.push(
23015
21795
  react({
23016
21796
  ...typescriptOptions,
23017
21797
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -23021,7 +21801,7 @@ function preset(options, ...userConfigs) {
23021
21801
  );
23022
21802
  }
23023
21803
  if (enableReactNative) {
23024
- configs8.push(
21804
+ configs7.push(
23025
21805
  reactNative({
23026
21806
  ...resolveSubOptions(options, "react-native"),
23027
21807
  overrides: getOverrides(options, "react-native")
@@ -23029,13 +21809,13 @@ function preset(options, ...userConfigs) {
23029
21809
  );
23030
21810
  }
23031
21811
  if (enableNext) {
23032
- configs8.push(next(resolveSubOptions(options, "next")));
21812
+ configs7.push(next(resolveSubOptions(options, "next")));
23033
21813
  }
23034
21814
  if (enableStorybook) {
23035
- configs8.push(storybook(resolveSubOptions(options, "storybook")));
21815
+ configs7.push(storybook(resolveSubOptions(options, "storybook")));
23036
21816
  }
23037
21817
  if (enableUnoCSS) {
23038
- configs8.push(
21818
+ configs7.push(
23039
21819
  unocss({
23040
21820
  ...resolveSubOptions(options, "unocss"),
23041
21821
  overrides: getOverrides(options, "unocss")
@@ -23043,7 +21823,7 @@ function preset(options, ...userConfigs) {
23043
21823
  );
23044
21824
  }
23045
21825
  if (enableAstro) {
23046
- configs8.push(
21826
+ configs7.push(
23047
21827
  astro({
23048
21828
  overrides: getOverrides(options, "astro"),
23049
21829
  stylistic: stylisticOptions
@@ -23051,7 +21831,7 @@ function preset(options, ...userConfigs) {
23051
21831
  );
23052
21832
  }
23053
21833
  if (enablePnpm ?? packageManager !== "bun") {
23054
- configs8.push(
21834
+ configs7.push(
23055
21835
  pnpm({
23056
21836
  overrides: getOverrides(options, "pnpm"),
23057
21837
  ignore: typeof enablePnpm !== "boolean" ? enablePnpm?.ignore : void 0
@@ -23059,13 +21839,13 @@ function preset(options, ...userConfigs) {
23059
21839
  );
23060
21840
  }
23061
21841
  if (enableBun ?? packageManager === "bun") {
23062
- configs8.push(bun({
21842
+ configs7.push(bun({
23063
21843
  overrides: getOverrides(options, "bun"),
23064
21844
  ignore: typeof enableBun !== "boolean" ? enableBun?.ignore : void 0
23065
21845
  }));
23066
21846
  }
23067
21847
  if (options.jsonc ?? true) {
23068
- configs8.push(
21848
+ configs7.push(
23069
21849
  jsonc({
23070
21850
  overrides: getOverrides(options, "jsonc"),
23071
21851
  stylistic: stylisticOptions
@@ -23073,11 +21853,11 @@ function preset(options, ...userConfigs) {
23073
21853
  sortTsconfig()
23074
21854
  );
23075
21855
  if (stylisticOptions) {
23076
- configs8.push(sortPackageJson());
21856
+ configs7.push(sortPackageJson());
23077
21857
  }
23078
21858
  }
23079
21859
  if (options.yaml ?? true) {
23080
- configs8.push(
21860
+ configs7.push(
23081
21861
  yaml({
23082
21862
  overrides: getOverrides(options, "yaml"),
23083
21863
  stylistic: stylisticOptions
@@ -23085,7 +21865,7 @@ function preset(options, ...userConfigs) {
23085
21865
  );
23086
21866
  }
23087
21867
  if (options.toml ?? true) {
23088
- configs8.push(
21868
+ configs7.push(
23089
21869
  toml({
23090
21870
  overrides: getOverrides(options, "toml"),
23091
21871
  stylistic: stylisticOptions
@@ -23093,28 +21873,28 @@ function preset(options, ...userConfigs) {
23093
21873
  );
23094
21874
  }
23095
21875
  if (options.markdown === true) {
23096
- configs8.push(
21876
+ configs7.push(
23097
21877
  markdown({
23098
21878
  overrides: getOverrides(options, "markdown")
23099
21879
  })
23100
21880
  );
23101
21881
  }
23102
21882
  if (enableMdx) {
23103
- configs8.push(
21883
+ configs7.push(
23104
21884
  mdx({
23105
21885
  overrides: getOverrides(options, "mdx")
23106
21886
  })
23107
21887
  );
23108
21888
  }
23109
21889
  if (options.formatters) {
23110
- configs8.push(
21890
+ configs7.push(
23111
21891
  formatters(
23112
21892
  options.formatters,
23113
21893
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
23114
21894
  )
23115
21895
  );
23116
21896
  }
23117
- configs8.push(disables());
21897
+ configs7.push(disables());
23118
21898
  if ("files" in options) {
23119
21899
  throw new Error(
23120
21900
  '[@storm-software/eslint] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.'
@@ -23126,10 +21906,10 @@ function preset(options, ...userConfigs) {
23126
21906
  }
23127
21907
  return acc;
23128
21908
  }, {});
23129
- if (Object.keys(fusedConfig).length) configs8.push([fusedConfig]);
21909
+ if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
23130
21910
  let composer = new eslintFlatConfigUtils.FlatConfigComposer();
23131
21911
  composer = composer.append(
23132
- ...configs8,
21912
+ ...configs7,
23133
21913
  ...userConfigs
23134
21914
  );
23135
21915
  if (autoRenamePlugins) {