@storm-software/eslint 0.170.150 → 0.170.152

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.3",
327
+ version: "0.0.5",
325
328
  private: false,
326
329
  description: "An ESLint Plugin that enforces Bun catalog rules in Storm Software projects.",
327
330
  keywords: ["eslint", "eslint-plugin", "storm-software", "bun", "catalog"],
@@ -427,7 +430,7 @@ var init_package = __esm({
427
430
  });
428
431
  function RuleCreator2(urlCreator) {
429
432
  return function createNamedRule({
430
- name: name3,
433
+ name: name2,
431
434
  meta: meta3,
432
435
  ...rule
433
436
  }) {
@@ -436,7 +439,7 @@ function RuleCreator2(urlCreator) {
436
439
  ...meta3,
437
440
  docs: {
438
441
  ...meta3.docs,
439
- url: urlCreator(name3)
442
+ url: urlCreator(name2)
440
443
  }
441
444
  },
442
445
  ...rule
@@ -480,8 +483,8 @@ function detectCatalogRoot(data) {
480
483
  }
481
484
  return isWorkspaceObject(data.workspaces) ? "workspaces" : "top";
482
485
  }
483
- function normalizeCatalogName(name3) {
484
- 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, "_");
486
+ function normalizeCatalogName(name2) {
487
+ 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, "_");
485
488
  }
486
489
  function sortObjectKeys(input) {
487
490
  return Object.fromEntries(
@@ -610,9 +613,9 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
610
613
  const found = [];
611
614
  const { catalog, catalogs } = getCatalogData();
612
615
  if (catalogs) {
613
- for (const name3 of Object.keys(catalogs)) {
614
- if (catalogs[name3]?.[packageName]) {
615
- found.push(name3);
616
+ for (const name2 of Object.keys(catalogs)) {
617
+ if (catalogs[name2]?.[packageName]) {
618
+ found.push(name2);
616
619
  }
617
620
  }
618
621
  }
@@ -621,7 +624,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
621
624
  }
622
625
  return found;
623
626
  };
624
- const workspace3 = {
627
+ const workspace2 = {
625
628
  filepath: current,
626
629
  setContent(newContent) {
627
630
  content = newContent;
@@ -646,7 +649,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
646
649
  const clone2 = [...queue];
647
650
  queue.length = 0;
648
651
  for (const queued of clone2) {
649
- queued(workspace3);
652
+ queued(workspace2);
650
653
  }
651
654
  if (hasChanged) {
652
655
  write();
@@ -678,7 +681,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
678
681
  return [];
679
682
  }
680
683
  };
681
- return workspace3;
684
+ return workspace2;
682
685
  }
683
686
  function getBunWorkspace(cwd2 = process2__default.default.cwd()) {
684
687
  if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
@@ -874,7 +877,7 @@ var init_json_enforce_catalog = __esm({
874
877
  context,
875
878
  fields
876
879
  )) {
877
- if (ignore2?.some((name3) => name3 === packageName)) {
880
+ if (ignore2?.some((name2) => name2 === packageName)) {
878
881
  continue;
879
882
  }
880
883
  if (specifier.startsWith("catalog:")) {
@@ -883,14 +886,14 @@ var init_json_enforce_catalog = __esm({
883
886
  if (allowedProtocols?.some((protocol) => specifier.startsWith(protocol))) {
884
887
  continue;
885
888
  }
886
- let workspace3;
889
+ let workspace2;
887
890
  try {
888
- workspace3 = getBunWorkspace();
891
+ workspace2 = getBunWorkspace();
889
892
  } catch {
890
893
  return {};
891
894
  }
892
- let targetCatalog = reuseExistingCatalog ? workspace3.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
893
- const resolvedConflicts = workspace3.hasSpecifierConflicts(
895
+ let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
896
+ const resolvedConflicts = workspace2.hasSpecifierConflicts(
894
897
  targetCatalog,
895
898
  packageName,
896
899
  specifier
@@ -910,8 +913,8 @@ var init_json_enforce_catalog = __esm({
910
913
  packageName
911
914
  },
912
915
  fix: shouldFix ? (fixer) => {
913
- workspace3.queueChange(() => {
914
- workspace3.setPackage(targetCatalog, packageName, specifier);
916
+ workspace2.queueChange(() => {
917
+ workspace2.setPackage(targetCatalog, packageName, specifier);
915
918
  });
916
919
  return fixer.replaceText(
917
920
  property.value,
@@ -968,16 +971,16 @@ var init_json_no_duplicate_catalog_item = __esm({
968
971
  if (!isRootWorkspacePackageJson(context.filename)) {
969
972
  return {};
970
973
  }
971
- let workspace3;
974
+ let workspace2;
972
975
  try {
973
- workspace3 = getBunWorkspace();
976
+ workspace2 = getBunWorkspace();
974
977
  } catch {
975
978
  return {};
976
979
  }
977
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
980
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
978
981
  return {};
979
982
  }
980
- workspace3.setContent(context.sourceCode.text);
983
+ workspace2.setContent(context.sourceCode.text);
981
984
  const root = getPackageJsonRootNode(context);
982
985
  if (!root) {
983
986
  return {};
@@ -1070,16 +1073,16 @@ var init_json_no_unused_catalog_item = __esm({
1070
1073
  if (!isRootWorkspacePackageJson(context.filename)) {
1071
1074
  return {};
1072
1075
  }
1073
- let workspace3;
1076
+ let workspace2;
1074
1077
  try {
1075
- workspace3 = getBunWorkspace();
1078
+ workspace2 = getBunWorkspace();
1076
1079
  } catch {
1077
1080
  return {};
1078
1081
  }
1079
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
1082
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
1080
1083
  return {};
1081
1084
  }
1082
- workspace3.setContent(context.sourceCode.text);
1085
+ workspace2.setContent(context.sourceCode.text);
1083
1086
  const root = getPackageJsonRootNode(context);
1084
1087
  if (!root) {
1085
1088
  return {};
@@ -1111,7 +1114,7 @@ var init_json_no_unused_catalog_item = __esm({
1111
1114
  if (entries.size === 0) {
1112
1115
  return {};
1113
1116
  }
1114
- const packages = collectWorkspacePackageJsonPaths(workspace3);
1117
+ const packages = collectWorkspacePackageJsonPaths(workspace2);
1115
1118
  for (const path23 of packages) {
1116
1119
  const pkg = JSON.parse(fs__default.default.readFileSync(path23, "utf8"));
1117
1120
  for (const field of FIELDS) {
@@ -1119,12 +1122,12 @@ var init_json_no_unused_catalog_item = __esm({
1119
1122
  if (!map) {
1120
1123
  continue;
1121
1124
  }
1122
- for (const [name3, value] of Object.entries(map)) {
1125
+ for (const [name2, value] of Object.entries(map)) {
1123
1126
  if (typeof value !== "string" || !value.startsWith("catalog:")) {
1124
1127
  continue;
1125
1128
  }
1126
1129
  const catalogName = value.slice(8) || "default";
1127
- entries.delete(`${name3}:${catalogName}`);
1130
+ entries.delete(`${name2}:${catalogName}`);
1128
1131
  }
1129
1132
  }
1130
1133
  }
@@ -1217,14 +1220,14 @@ var init_json_valid_catalog = __esm({
1217
1220
  if (!specifier.startsWith("catalog:")) {
1218
1221
  continue;
1219
1222
  }
1220
- let workspace3;
1223
+ let workspace2;
1221
1224
  try {
1222
- workspace3 = getBunWorkspace();
1225
+ workspace2 = getBunWorkspace();
1223
1226
  } catch {
1224
1227
  return {};
1225
1228
  }
1226
1229
  const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
1227
- const existingCatalogs = workspace3.getPackageCatalogs(packageName);
1230
+ const existingCatalogs = workspace2.getPackageCatalogs(packageName);
1228
1231
  if (!existingCatalogs.includes(currentCatalog)) {
1229
1232
  context.report({
1230
1233
  node: property.value,
@@ -1237,8 +1240,8 @@ var init_json_valid_catalog = __esm({
1237
1240
  let catalog = existingCatalogs[0];
1238
1241
  if (!catalog && autoInsert) {
1239
1242
  catalog = currentCatalog;
1240
- workspace3.queueChange(() => {
1241
- workspace3.setPackage(
1243
+ workspace2.queueChange(() => {
1244
+ workspace2.setPackage(
1242
1245
  catalog,
1243
1246
  packageName,
1244
1247
  autoInsertDefaultSpecifier
@@ -1258,787 +1261,105 @@ var init_json_valid_catalog = __esm({
1258
1261
  });
1259
1262
  }
1260
1263
  });
1261
-
1262
- // ../eslint-plugin-bun/src/plugin.ts
1263
- var plugin2;
1264
- var init_plugin = __esm({
1265
- "../eslint-plugin-bun/src/plugin.ts"() {
1266
- init_cjs_shims();
1267
- init_package();
1268
- init_json_enforce_catalog();
1269
- init_json_no_duplicate_catalog_item();
1270
- init_json_no_unused_catalog_item();
1271
- init_json_valid_catalog();
1272
- plugin2 = {
1273
- meta: {
1274
- name: "bun",
1275
- version: package_default2.version
1276
- },
1277
- rules: {
1278
- "json-enforce-catalog": json_enforce_catalog_default,
1279
- "json-valid-catalog": json_valid_catalog_default,
1280
- "json-no-unused-catalog-item": json_no_unused_catalog_item_default,
1281
- "json-no-duplicate-catalog-item": json_no_duplicate_catalog_item_default
1282
- }
1283
- };
1284
- }
1285
- });
1286
- var config3, recommended_default2;
1287
- var init_recommended = __esm({
1288
- "../eslint-plugin-bun/src/configs/recommended.ts"() {
1289
- init_cjs_shims();
1290
- init_globs();
1291
- init_plugin();
1292
- config3 = [
1293
- {
1294
- name: "bun/recommended/setup",
1295
- plugins: {
1296
- bun: plugin2
1297
- }
1298
- },
1299
- {
1300
- name: "bun/recommended/package-json",
1301
- ignores: GLOB_EXCLUDE,
1302
- files: ["package.json", "**/package.json"],
1303
- languageOptions: {
1304
- parser: parserJsonc__namespace.default
1305
- },
1306
- rules: {
1307
- "bun/json-enforce-catalog": [
1308
- "error",
1309
- {
1310
- autofix: true,
1311
- allowedProtocols: ["workspace", "link", "file"],
1312
- defaultCatalog: "default",
1313
- reuseExistingCatalog: true,
1314
- conflicts: "overrides",
1315
- fields: ["dependencies", "devDependencies"],
1316
- ignore: ["typescript"]
1317
- }
1318
- ],
1319
- "bun/json-valid-catalog": "error",
1320
- "bun/json-no-unused-catalog-item": "error",
1321
- "bun/json-no-duplicate-catalog-item": "error"
1322
- }
1323
- }
1324
- ];
1325
- recommended_default2 = config3;
1326
- }
1327
- });
1328
-
1329
- // ../eslint-plugin-bun/src/configs/index.ts
1330
- var configs2;
1331
- var init_configs = __esm({
1332
- "../eslint-plugin-bun/src/configs/index.ts"() {
1333
- init_cjs_shims();
1334
- init_recommended();
1335
- configs2 = {
1336
- recommended: recommended_default2
1337
- };
1338
- }
1339
- });
1340
-
1341
- // ../eslint-plugin-bun/src/index.ts
1342
- var src_exports = {};
1343
- __export(src_exports, {
1344
- configs: () => configs2,
1345
- default: () => src_default2,
1346
- rules: () => rules2
1347
- });
1348
- var eslintPlugin2, src_default2, rules2;
1349
- var init_src = __esm({
1350
- "../eslint-plugin-bun/src/index.ts"() {
1351
- init_cjs_shims();
1352
- init_configs();
1353
- init_plugin();
1354
- eslintPlugin2 = {
1355
- ...plugin2,
1356
- configs: configs2
1357
- };
1358
- src_default2 = eslintPlugin2;
1359
- rules2 = plugin2.rules;
1360
- }
1361
- });
1362
- function RuleCreator4(urlCreator) {
1363
- return function createNamedRule({
1364
- name: name3,
1365
- meta: meta3,
1366
- ...rule
1367
- }) {
1368
- return createRule5({
1369
- meta: {
1370
- ...meta3,
1371
- docs: {
1372
- ...meta3.docs,
1373
- url: urlCreator(name3)
1374
- }
1375
- },
1376
- ...rule
1377
- });
1378
- };
1379
- }
1380
- function createRule5({
1381
- create,
1382
- defaultOptions,
1383
- meta: meta3
1384
- }) {
1385
- return {
1386
- create: (context) => {
1387
- const optionsWithDefault = context.options.map((options, index) => {
1388
- return {
1389
- ...defaultOptions[index] || {},
1390
- ...options || {}
1391
- };
1392
- });
1393
- return create(context, optionsWithDefault);
1394
- },
1395
- defaultOptions,
1396
- meta: meta3
1397
- };
1398
- }
1399
- function getPackageJsonRootNode2(context) {
1400
- if (!context.filename.endsWith("package.json"))
1401
- return;
1402
- const ast = context.sourceCode.ast;
1403
- const root = ast.body[0];
1404
- if (root.expression.type === "JSONObjectExpression")
1405
- return root.expression;
1406
- }
1407
- function* iterateDependencies2(context, fields) {
1408
- const root = getPackageJsonRootNode2(context);
1409
- if (!root)
1410
- return;
1411
- for (const fieldName of fields) {
1412
- const path23 = fieldName.split(".");
1413
- let node2 = root;
1414
- for (let i = 0; i < path23.length; i++) {
1415
- const item = node2.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === path23[i]);
1416
- if (!item?.value || item.value.type !== "JSONObjectExpression") {
1417
- node2 = void 0;
1418
- break;
1419
- }
1420
- node2 = item.value;
1421
- }
1422
- if (!node2 || node2 === root)
1423
- continue;
1424
- for (const property of node2.properties) {
1425
- if (property.value.type !== "JSONLiteral" || property.key.type !== "JSONLiteral")
1426
- continue;
1427
- if (typeof property.value.value !== "string")
1428
- continue;
1429
- const packageName = String(property.key.value);
1430
- const specifier = String(property.value.value);
1431
- yield {
1432
- packageName,
1433
- specifier,
1434
- property
1435
- };
1436
- }
1437
- }
1438
- }
1439
- function readPnpmWorkspace() {
1440
- const filepath = findUpSimple.findUpSync("pnpm-workspace.yaml", { cwd: process2__default.default.cwd() });
1441
- if (!filepath)
1442
- throw new Error("pnpm-workspace.yaml not found");
1443
- const content = fs__default.default.readFileSync(filepath, "utf-8");
1444
- const workspace3 = pnpmWorkspaceYaml.parsePnpmWorkspaceYaml(content);
1445
- let queueTimer;
1446
- const queue = [];
1447
- const write = () => {
1448
- fs__default.default.writeFileSync(filepath, workspace3.toString());
1449
- };
1450
- const hasQueue = () => queueTimer != null;
1451
- const queueChange = (fn, order) => {
1452
- if (order === "pre")
1453
- queue.unshift(fn);
1454
- else
1455
- queue.push(fn);
1456
- if (queueTimer != null)
1457
- clearTimeout(queueTimer);
1458
- queueTimer = setTimeout(() => {
1459
- queueTimer = void 0;
1460
- const clone2 = [...queue];
1461
- queue.length = 0;
1462
- for (const fn2 of clone2)
1463
- fn2(workspace3);
1464
- if (workspace3.hasChanged())
1465
- write();
1466
- }, 1e3);
1467
- };
1468
- return {
1469
- filepath,
1470
- ...workspace3,
1471
- hasQueue,
1472
- queueChange
1473
- };
1474
- }
1475
- function getPnpmWorkspace() {
1476
- if (workspaceLastRead2 && workspace2 && !workspace2.hasQueue() && Date.now() - workspaceLastRead2 > WORKSPACE_CACHE_TIME2) {
1477
- workspace2 = void 0;
1478
- }
1479
- if (!workspace2) {
1480
- workspace2 = readPnpmWorkspace();
1481
- workspaceLastRead2 = Date.now();
1482
- }
1483
- return workspace2;
1484
- }
1485
- function getObjectPath2(obj, path23) {
1486
- let current = obj;
1487
- for (const key of path23) {
1488
- current = current[key];
1489
- if (!current)
1490
- return void 0;
1491
- }
1492
- return current;
1493
- }
1494
- 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;
1495
- var init_dist = __esm({
1496
- "../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_f126904b94a1635d882631163ea19421/node_modules/eslint-plugin-pnpm/dist/index.mjs"() {
1497
- init_cjs_shims();
1498
- name2 = "eslint-plugin-pnpm";
1499
- version3 = "0.3.0";
1500
- blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
1501
- createEslintRule = RuleCreator4(
1502
- (ruleName) => `${blobUrl}${ruleName}.test.ts`
1503
- );
1504
- WORKSPACE_CACHE_TIME2 = 1e4;
1505
- RULE_NAME$4 = "json-enforce-catalog";
1506
- DEFAULT_FIELDS$1 = [
1507
- "dependencies",
1508
- "devDependencies"
1509
- ];
1510
- IGNORED_DEPENDENCIES2 = [
1511
- "typescript"
1512
- ];
1513
- enforceCatalog = createEslintRule({
1514
- name: RULE_NAME$4,
1515
- meta: {
1516
- type: "layout",
1517
- docs: {
1518
- description: 'Enforce using "catalog:" in `package.json`'
1519
- },
1520
- fixable: "code",
1521
- schema: [
1522
- {
1523
- type: "object",
1524
- properties: {
1525
- allowedProtocols: {
1526
- type: "array",
1527
- description: "Allowed protocols in specifier to not be converted to catalog",
1528
- items: {
1529
- type: "string"
1530
- }
1531
- },
1532
- autofix: {
1533
- type: "boolean",
1534
- description: "Whether to autofix the linting error",
1535
- default: true
1536
- },
1537
- defaultCatalog: {
1538
- type: "string",
1539
- description: "Default catalog to use when moving version to catalog with autofix"
1540
- },
1541
- reuseExistingCatalog: {
1542
- type: "boolean",
1543
- description: "Whether to reuse existing catalog when moving version to catalog with autofix",
1544
- default: true
1545
- },
1546
- conflicts: {
1547
- type: "string",
1548
- description: "Strategy to handle conflicts when adding packages to catalogs",
1549
- enum: ["new-catalog", "overrides", "error"],
1550
- default: "new-catalog"
1551
- },
1552
- fields: {
1553
- type: "array",
1554
- description: "Fields to check for catalog",
1555
- items: { type: "string" },
1556
- default: DEFAULT_FIELDS$1
1557
- },
1558
- ignore: {
1559
- type: "array",
1560
- description: "A list of dependencies to ignore",
1561
- items: { type: "string" },
1562
- default: IGNORED_DEPENDENCIES2
1563
- }
1564
- },
1565
- additionalProperties: false
1566
- }
1567
- ],
1568
- messages: {
1569
- expectCatalog: 'Expect to use catalog instead of plain specifier, got "{{specifier}}" for package "{{packageName}}".'
1570
- }
1571
- },
1572
- defaultOptions: [{}],
1573
- create(context, [options]) {
1574
- const {
1575
- allowedProtocols = ["workspace", "link", "file"],
1576
- defaultCatalog = "default",
1577
- autofix = true,
1578
- reuseExistingCatalog = true,
1579
- conflicts = "new-catalog",
1580
- fields = DEFAULT_FIELDS$1,
1581
- ignore: ignore2 = IGNORED_DEPENDENCIES2
1582
- } = options || {};
1583
- for (const { packageName, specifier, property } of iterateDependencies2(context, fields)) {
1584
- if (ignore2?.some((i) => i === packageName))
1585
- continue;
1586
- if (specifier.startsWith("catalog:"))
1587
- continue;
1588
- if (allowedProtocols?.some((p) => specifier.startsWith(p)))
1589
- continue;
1590
- const workspace3 = getPnpmWorkspace();
1591
- if (!workspace3)
1592
- return {};
1593
- let targetCatalog = reuseExistingCatalog ? workspace3.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
1594
- const resolvedConflicts = workspace3.hasSpecifierConflicts(
1595
- targetCatalog,
1596
- packageName,
1597
- specifier
1598
- );
1599
- let shouldFix = autofix;
1600
- if (conflicts === "error") {
1601
- if (resolvedConflicts.conflicts) {
1602
- shouldFix = false;
1603
- }
1604
- }
1605
- if (conflicts === "new-catalog" && resolvedConflicts.conflicts) {
1606
- targetCatalog = resolvedConflicts.newCatalogName;
1607
- }
1608
- context.report({
1609
- node: property.value,
1610
- messageId: "expectCatalog",
1611
- data: {
1612
- specifier,
1613
- packageName
1614
- },
1615
- fix: shouldFix ? (fixer) => {
1616
- workspace3.queueChange(() => {
1617
- workspace3.setPackage(targetCatalog, packageName, specifier);
1618
- });
1619
- return fixer.replaceText(
1620
- property.value,
1621
- targetCatalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${targetCatalog}`)
1622
- );
1623
- } : void 0
1624
- });
1625
- }
1626
- return {};
1627
- }
1628
- });
1629
- RULE_NAME$3 = "json-prefer-workspace-settings";
1630
- preferWorkspaceSettings = createEslintRule({
1631
- name: RULE_NAME$3,
1632
- meta: {
1633
- type: "layout",
1634
- docs: {
1635
- 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."
1636
- },
1637
- fixable: "code",
1638
- schema: [
1639
- {
1640
- type: "object",
1641
- properties: {
1642
- autofix: {
1643
- type: "boolean",
1644
- description: "Whether to autofix the linting error",
1645
- default: true
1646
- }
1647
- },
1648
- additionalProperties: false
1649
- }
1650
- ],
1651
- messages: {
1652
- unexpectedPnpmSettings: "Unexpected pnpm settings in package.json, should move to pnpm-workspace.yaml"
1653
- }
1654
- },
1655
- defaultOptions: [{}],
1656
- create(context, [options = {}]) {
1657
- const {
1658
- autofix = true
1659
- } = options || {};
1660
- const root = getPackageJsonRootNode2(context);
1661
- if (!root)
1662
- return {};
1663
- const pnpmNode = root.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === "pnpm");
1664
- if (!pnpmNode)
1665
- return {};
1666
- const workspace3 = getPnpmWorkspace();
1667
- if (!workspace3)
1668
- return {};
1669
- context.report({
1670
- node: pnpmNode,
1671
- messageId: "unexpectedPnpmSettings",
1672
- fix: autofix ? (fixer) => {
1673
- const json = JSON.parse(context.sourceCode.text);
1674
- const pnpmSettings = json.pnpm;
1675
- const flatValueParis = [];
1676
- function traverse(value, paths) {
1677
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
1678
- for (const key in value) {
1679
- traverse(value[key], [...paths, key]);
1680
- }
1681
- } else {
1682
- flatValueParis.push([paths, value]);
1683
- }
1684
- }
1685
- traverse(pnpmSettings, []);
1686
- workspace3.queueChange(() => {
1687
- for (const [paths, value] of flatValueParis) {
1688
- workspace3.setPath(paths, value);
1689
- }
1690
- });
1691
- let start = pnpmNode.range[0];
1692
- let end = pnpmNode.range[1];
1693
- const before = context.sourceCode.getTokenBefore(pnpmNode);
1694
- if (before)
1695
- start = before.range[1];
1696
- const after = context.sourceCode.getTokenAfter(pnpmNode);
1697
- if (after?.type === "Punctuator" && after.value === ",")
1698
- end = after.range[1];
1699
- return fixer.removeRange([start, end]);
1700
- } : void 0
1701
- });
1702
- return {};
1703
- }
1704
- });
1705
- RULE_NAME$2 = "json-valid-catalog";
1706
- DEFAULT_FIELDS3 = [
1707
- "dependencies",
1708
- "devDependencies",
1709
- "optionalDependencies",
1710
- "peerDependencies",
1711
- "resolutions",
1712
- "overrides",
1713
- "pnpm.overrides"
1714
- ];
1715
- validCatalog = createEslintRule({
1716
- name: RULE_NAME$2,
1717
- meta: {
1718
- type: "layout",
1719
- docs: {
1720
- description: "Enforce using valid catalog in `package.json`"
1721
- },
1722
- fixable: "code",
1723
- schema: [
1724
- {
1725
- type: "object",
1726
- properties: {
1727
- autoInsert: {
1728
- type: "boolean",
1729
- description: "Whether to auto insert to catalog if missing",
1730
- default: true
1731
- },
1732
- autoInsertDefaultSpecifier: {
1733
- type: "string",
1734
- description: "Default specifier to use when auto inserting to catalog",
1735
- default: "^0.0.0"
1736
- },
1737
- autofix: {
1738
- type: "boolean",
1739
- description: "Whether to autofix the linting error",
1740
- default: true
1741
- },
1742
- enforceNoConflict: {
1743
- type: "boolean",
1744
- description: "Whether to enforce no conflicts when adding packages to catalogs (will create version-specific catalogs)",
1745
- default: true
1746
- },
1747
- fields: {
1748
- type: "array",
1749
- description: "Fields to check for catalog",
1750
- default: DEFAULT_FIELDS3
1751
- }
1752
- },
1753
- additionalProperties: false
1754
- }
1755
- ],
1756
- messages: {
1757
- invalidCatalog: 'Catalog "{{specifier}}" for package "{{packageName}}" is not defined in `pnpm-workspace.yaml`.'
1758
- }
1759
- },
1760
- defaultOptions: [{}],
1761
- create(context, [options = {}]) {
1762
- const {
1763
- autoInsert = true,
1764
- autofix = true,
1765
- autoInsertDefaultSpecifier = "^0.0.0",
1766
- fields = DEFAULT_FIELDS3
1767
- } = options || {};
1768
- for (const { packageName, specifier, property } of iterateDependencies2(context, fields)) {
1769
- if (!specifier.startsWith("catalog:"))
1770
- continue;
1771
- const workspace3 = getPnpmWorkspace();
1772
- if (!workspace3)
1773
- return {};
1774
- const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
1775
- const existingCatalogs = workspace3.getPackageCatalogs(packageName);
1776
- if (!existingCatalogs.includes(currentCatalog)) {
1777
- context.report({
1778
- node: property.value,
1779
- messageId: "invalidCatalog",
1780
- data: {
1781
- specifier,
1782
- packageName
1783
- },
1784
- fix: !autofix || !autoInsert && !existingCatalogs.length ? void 0 : (fixer) => {
1785
- let catalog = existingCatalogs[0];
1786
- if (!catalog && autoInsert) {
1787
- catalog = currentCatalog;
1788
- workspace3.queueChange(() => {
1789
- workspace3.setPackage(catalog, packageName, autoInsertDefaultSpecifier);
1790
- }, "pre");
1791
- }
1792
- return fixer.replaceText(
1793
- property.value,
1794
- catalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${catalog}`)
1795
- );
1796
- }
1797
- });
1798
- }
1799
- }
1800
- return {};
1801
- }
1802
- });
1803
- rules$2 = {
1804
- "json-enforce-catalog": enforceCatalog,
1805
- "json-valid-catalog": validCatalog,
1806
- "json-prefer-workspace-settings": preferWorkspaceSettings
1807
- };
1808
- RULE_NAME$1 = "yaml-no-duplicate-catalog-item";
1809
- noDuplicateCatalogItem = createEslintRule({
1810
- name: RULE_NAME$1,
1811
- meta: {
1812
- type: "problem",
1813
- docs: {
1814
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
1815
- },
1816
- fixable: "code",
1817
- schema: [
1818
- {
1819
- type: "object",
1820
- properties: {
1821
- allow: {
1822
- type: "array",
1823
- items: { type: "string" }
1824
- }
1825
- },
1826
- additionalProperties: false
1827
- }
1828
- ],
1829
- messages: {
1830
- duplicateCatalogItem: 'Catalog item "{{name}}" is already defined in the "{{existingCatalog}}" catalog. You may want to remove one of them.'
1831
- }
1832
- },
1833
- defaultOptions: [{}],
1834
- create(context, [options = {}]) {
1835
- if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
1836
- return {};
1837
- const workspace3 = getPnpmWorkspace();
1838
- if (!workspace3 || pathe.normalize(workspace3.filepath) !== pathe.normalize(context.filename))
1839
- return {};
1840
- if (workspace3.hasChanged() || workspace3.hasQueue())
1841
- return {};
1842
- const { allow = [] } = options;
1843
- workspace3.setContent(context.sourceCode.text);
1844
- const json = workspace3.toJSON() || {};
1845
- const exists = /* @__PURE__ */ new Map();
1846
- const catalogs = {
1847
- ...json.catalogs,
1848
- default: json.catalog
1849
- };
1850
- const doc = workspace3.getDocument();
1851
- for (const [catalog, object2] of Object.entries(catalogs)) {
1852
- if (!object2)
1853
- continue;
1854
- for (const key of Object.keys(object2)) {
1855
- if (allow.includes(key))
1856
- continue;
1857
- if (exists.has(key)) {
1858
- const existingCatalog = exists.get(key);
1859
- const node2 = doc.getIn(catalog === "default" ? ["catalog", key] : ["catalogs", catalog, key], true);
1860
- const start = context.sourceCode.getLocFromIndex(node2.range[0]);
1861
- const end = context.sourceCode.getLocFromIndex(node2.range[1]);
1862
- context.report({
1863
- loc: {
1864
- start,
1865
- end
1866
- },
1867
- messageId: "duplicateCatalogItem",
1868
- data: {
1869
- name: key,
1870
- currentCatalog: catalog,
1871
- existingCatalog
1872
- }
1873
- });
1874
- } else {
1875
- exists.set(key, catalog);
1876
- }
1877
- }
1878
- }
1879
- return {};
1880
- }
1881
- });
1882
- RULE_NAME6 = "yaml-no-unused-catalog-item";
1883
- noUnusedCatalogItem = createEslintRule({
1884
- name: RULE_NAME6,
1885
- meta: {
1886
- type: "problem",
1887
- docs: {
1888
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
1889
- },
1890
- fixable: "code",
1891
- schema: [],
1892
- messages: {
1893
- unusedCatalogItem: 'Catalog item "{{catalogItem}}" is not used in any package.json.'
1894
- }
1895
- },
1896
- defaultOptions: [],
1897
- create(context) {
1898
- if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
1899
- return {};
1900
- const workspace3 = getPnpmWorkspace();
1901
- if (!workspace3 || pathe.normalize(workspace3.filepath) !== pathe.normalize(context.filename))
1902
- return {};
1903
- if (workspace3.hasChanged() || workspace3.hasQueue())
1904
- return {};
1905
- workspace3.setContent(context.sourceCode.text);
1906
- const parsed = workspace3.toJSON() || {};
1907
- const root = pathe.resolve(pathe.dirname(context.filename));
1908
- const entries = /* @__PURE__ */ new Map();
1909
- const doc = workspace3.getDocument();
1910
- const catalogs = {
1911
- default: doc.getIn(["catalog"])
1912
- };
1913
- for (const item of doc.getIn(["catalogs"])?.items || [])
1914
- catalogs[String(item.key)] = item.value;
1915
- for (const [catalog, map] of Object.entries(catalogs)) {
1916
- if (!map)
1917
- continue;
1918
- for (const item of map.items) {
1919
- entries.set(`${String(item.key)}:${catalog}`, item);
1920
- }
1921
- }
1922
- if (entries.size === 0)
1923
- return {};
1924
- const dirs = parsed.packages ? tinyglobby.globSync(parsed.packages, {
1925
- cwd: root,
1926
- dot: false,
1927
- ignore: [
1928
- "**/node_modules/**",
1929
- "**/dist/**",
1930
- "**/build/**",
1931
- "**/dist/**",
1932
- "**/dist/**"
1933
- ],
1934
- absolute: true,
1935
- expandDirectories: false,
1936
- onlyDirectories: true
1937
- }) : [];
1938
- dirs.push(root);
1939
- const packages = dirs.map((dir) => pathe.resolve(dir, "package.json")).filter((x) => fs.existsSync(x)).sort();
1940
- const FIELDS2 = [
1941
- "dependencies",
1942
- "devDependencies",
1943
- "peerDependencies",
1944
- "optionalDependencies",
1945
- "overrides",
1946
- "resolutions",
1947
- "pnpm.overrides"
1948
- ];
1949
- for (const path23 of packages) {
1950
- const pkg = JSON.parse(fs.readFileSync(path23, "utf-8"));
1951
- for (const field of FIELDS2) {
1952
- const map = getObjectPath2(pkg, field.split("."));
1953
- if (!map)
1954
- continue;
1955
- for (const [name3, value] of Object.entries(map)) {
1956
- if (!value.startsWith("catalog:"))
1957
- continue;
1958
- const catalog = value.slice(8) || "default";
1959
- const key = `${name3}:${catalog}`;
1960
- entries.delete(key);
1961
- }
1962
- }
1963
- }
1964
- if (entries.size > 0) {
1965
- for (const [key, value] of Array.from(entries.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
1966
- const start = context.sourceCode.getLocFromIndex(value.key.range[0]);
1967
- const end = context.sourceCode.getLocFromIndex(value.value.range.at(-1));
1968
- context.report({
1969
- loc: {
1970
- start,
1971
- end
1972
- },
1973
- messageId: "unusedCatalogItem",
1974
- data: { catalogItem: key }
1975
- });
1976
- }
1977
- }
1978
- return {};
1979
- }
1980
- });
1981
- rules$1 = {
1982
- "yaml-no-unused-catalog-item": noUnusedCatalogItem,
1983
- "yaml-no-duplicate-catalog-item": noDuplicateCatalogItem
1984
- };
1985
- rules4 = {
1986
- ...rules$2,
1987
- ...rules$1
1988
- };
1989
- plugin4 = {
1264
+
1265
+ // ../eslint-plugin-bun/src/plugin.ts
1266
+ var plugin2;
1267
+ var init_plugin = __esm({
1268
+ "../eslint-plugin-bun/src/plugin.ts"() {
1269
+ init_cjs_shims();
1270
+ init_package();
1271
+ init_json_enforce_catalog();
1272
+ init_json_no_duplicate_catalog_item();
1273
+ init_json_no_unused_catalog_item();
1274
+ init_json_valid_catalog();
1275
+ plugin2 = {
1990
1276
  meta: {
1991
- name: name2,
1992
- version: version3
1277
+ name: "bun",
1278
+ version: package_default2.version
1993
1279
  },
1994
- rules: rules4
1280
+ rules: {
1281
+ "json-enforce-catalog": json_enforce_catalog_default,
1282
+ "json-valid-catalog": json_valid_catalog_default,
1283
+ "json-no-unused-catalog-item": json_no_unused_catalog_item_default,
1284
+ "json-no-duplicate-catalog-item": json_no_duplicate_catalog_item_default
1285
+ }
1995
1286
  };
1996
- configsJson = [
1287
+ }
1288
+ });
1289
+ var config3, recommended_default2;
1290
+ var init_recommended = __esm({
1291
+ "../eslint-plugin-bun/src/configs/recommended.ts"() {
1292
+ init_cjs_shims();
1293
+ init_globs();
1294
+ init_plugin();
1295
+ config3 = [
1997
1296
  {
1998
- name: "pnpm/package.json",
1999
- files: [
2000
- "package.json",
2001
- "**/package.json"
2002
- ],
2003
- languageOptions: {
2004
- parser: parserJsonc__namespace
2005
- },
1297
+ name: "bun/recommended/setup",
2006
1298
  plugins: {
2007
- pnpm: plugin4
2008
- },
2009
- rules: {
2010
- "pnpm/json-enforce-catalog": "error",
2011
- "pnpm/json-valid-catalog": "error",
2012
- "pnpm/json-prefer-workspace-settings": "error"
1299
+ bun: plugin2
2013
1300
  }
2014
- }
2015
- ];
2016
- configsYaml = [
1301
+ },
2017
1302
  {
2018
- name: "pnpm/pnpm-workspace-yaml",
2019
- files: ["pnpm-workspace.yaml"],
1303
+ name: "bun/recommended/package-json",
1304
+ ignores: GLOB_EXCLUDE,
1305
+ files: ["package.json", "**/package.json"],
2020
1306
  languageOptions: {
2021
- parser: yamlParser__namespace
2022
- },
2023
- plugins: {
2024
- pnpm: plugin4
1307
+ parser: parserJsonc__default.default
2025
1308
  },
2026
1309
  rules: {
2027
- "pnpm/yaml-no-unused-catalog-item": "error",
2028
- "pnpm/yaml-no-duplicate-catalog-item": "error"
1310
+ "bun/json-enforce-catalog": [
1311
+ "error",
1312
+ {
1313
+ autofix: true,
1314
+ allowedProtocols: ["workspace", "link", "file"],
1315
+ defaultCatalog: "default",
1316
+ reuseExistingCatalog: true,
1317
+ conflicts: "overrides",
1318
+ fields: ["dependencies", "devDependencies"],
1319
+ ignore: ["typescript"]
1320
+ }
1321
+ ],
1322
+ "bun/json-valid-catalog": "error",
1323
+ "bun/json-no-unused-catalog-item": "error",
1324
+ "bun/json-no-duplicate-catalog-item": "error"
2029
1325
  }
2030
1326
  }
2031
1327
  ];
2032
- configs4 = {
2033
- recommended: [
2034
- ...configsJson
2035
- // Yaml support is still experimental
2036
- // ...configsYaml,
2037
- ],
2038
- json: configsJson,
2039
- yaml: configsYaml
1328
+ recommended_default2 = config3;
1329
+ }
1330
+ });
1331
+
1332
+ // ../eslint-plugin-bun/src/configs/index.ts
1333
+ var configs2;
1334
+ var init_configs = __esm({
1335
+ "../eslint-plugin-bun/src/configs/index.ts"() {
1336
+ init_cjs_shims();
1337
+ init_recommended();
1338
+ configs2 = {
1339
+ recommended: recommended_default2
1340
+ };
1341
+ }
1342
+ });
1343
+
1344
+ // ../eslint-plugin-bun/src/index.ts
1345
+ var src_exports = {};
1346
+ __export(src_exports, {
1347
+ configs: () => configs2,
1348
+ default: () => src_default2,
1349
+ rules: () => rules2
1350
+ });
1351
+ var eslintPlugin2, src_default2, rules2;
1352
+ var init_src = __esm({
1353
+ "../eslint-plugin-bun/src/index.ts"() {
1354
+ init_cjs_shims();
1355
+ init_configs();
1356
+ init_plugin();
1357
+ eslintPlugin2 = {
1358
+ ...plugin2,
1359
+ configs: configs2
2040
1360
  };
2041
- plugin4.configs = configs4;
1361
+ src_default2 = eslintPlugin2;
1362
+ rules2 = plugin2.rules;
2042
1363
  }
2043
1364
  });
2044
1365
 
@@ -2048,7 +1369,7 @@ var init_package2 = __esm({
2048
1369
  "../eslint-plugin-pnpm/package.json"() {
2049
1370
  package_default3 = {
2050
1371
  name: "@storm-software/eslint-plugin-pnpm",
2051
- version: "0.0.78",
1372
+ version: "0.0.80",
2052
1373
  private: false,
2053
1374
  description: "An ESLint Plugin that enforces PNPM-related rules in Storm Software projects.",
2054
1375
  keywords: ["eslint", "eslint-plugin", "storm-software"],
@@ -2147,16 +1468,13 @@ var init_package2 = __esm({
2147
1468
  };
2148
1469
  }
2149
1470
  });
2150
-
2151
- // ../eslint-plugin-pnpm/src/plugin.ts
2152
- var plugin5;
1471
+ var plugin4;
2153
1472
  var init_plugin2 = __esm({
2154
1473
  "../eslint-plugin-pnpm/src/plugin.ts"() {
2155
1474
  init_cjs_shims();
2156
- init_dist();
2157
1475
  init_package2();
2158
- plugin5 = {
2159
- ...plugin4,
1476
+ plugin4 = {
1477
+ ...base__default.default,
2160
1478
  meta: {
2161
1479
  name: "pnpm",
2162
1480
  version: package_default3.version
@@ -2174,7 +1492,7 @@ var init_recommended2 = __esm({
2174
1492
  {
2175
1493
  name: "pnpm/recommended/setup",
2176
1494
  plugins: {
2177
- pnpm: plugin5
1495
+ pnpm: plugin4
2178
1496
  }
2179
1497
  },
2180
1498
  {
@@ -2182,7 +1500,7 @@ var init_recommended2 = __esm({
2182
1500
  ignores: GLOB_EXCLUDE,
2183
1501
  files: ["package.json", "**/package.json"],
2184
1502
  languageOptions: {
2185
- parser: parserJsonc__namespace.default
1503
+ parser: parserJsonc__default.default
2186
1504
  },
2187
1505
  rules: {
2188
1506
  "pnpm/json-enforce-catalog": [
@@ -2205,7 +1523,7 @@ var init_recommended2 = __esm({
2205
1523
  ignores: GLOB_EXCLUDE,
2206
1524
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
2207
1525
  languageOptions: {
2208
- parser: yamlParser__namespace.default
1526
+ parser: parserYaml__default.default
2209
1527
  },
2210
1528
  rules: {
2211
1529
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -2218,12 +1536,12 @@ var init_recommended2 = __esm({
2218
1536
  });
2219
1537
 
2220
1538
  // ../eslint-plugin-pnpm/src/configs/index.ts
2221
- var configs5;
1539
+ var configs4;
2222
1540
  var init_configs2 = __esm({
2223
1541
  "../eslint-plugin-pnpm/src/configs/index.ts"() {
2224
1542
  init_cjs_shims();
2225
1543
  init_recommended2();
2226
- configs5 = {
1544
+ configs4 = {
2227
1545
  recommended: recommended_default5
2228
1546
  };
2229
1547
  }
@@ -2232,22 +1550,22 @@ var init_configs2 = __esm({
2232
1550
  // ../eslint-plugin-pnpm/src/index.ts
2233
1551
  var src_exports2 = {};
2234
1552
  __export(src_exports2, {
2235
- configs: () => configs5,
1553
+ configs: () => configs4,
2236
1554
  default: () => src_default3,
2237
- rules: () => rules5
1555
+ rules: () => rules4
2238
1556
  });
2239
- var eslintPlugin3, src_default3, rules5;
1557
+ var eslintPlugin3, src_default3, rules4;
2240
1558
  var init_src2 = __esm({
2241
1559
  "../eslint-plugin-pnpm/src/index.ts"() {
2242
1560
  init_cjs_shims();
2243
1561
  init_configs2();
2244
1562
  init_plugin2();
2245
1563
  eslintPlugin3 = {
2246
- ...plugin5,
2247
- configs: configs5
1564
+ ...plugin4,
1565
+ configs: configs4
2248
1566
  };
2249
1567
  src_default3 = eslintPlugin3;
2250
- rules5 = plugin5.rules;
1568
+ rules4 = plugin4.rules;
2251
1569
  }
2252
1570
  });
2253
1571
 
@@ -2819,9 +2137,9 @@ var require_stylesheet = __commonJS({
2819
2137
  },
2820
2138
  getStyleReferenceFromExpression: function(node2) {
2821
2139
  const result = [];
2822
- const name3 = astHelpers.getObjectName(node2);
2823
- if (name3) {
2824
- result.push(name3);
2140
+ const name2 = astHelpers.getObjectName(node2);
2141
+ if (name2) {
2142
+ result.push(name2);
2825
2143
  }
2826
2144
  const property = astHelpers.getPropertyName(node2);
2827
2145
  if (property) {
@@ -3217,10 +2535,10 @@ var require_split_platform_components = __commonJS({
3217
2535
  return node2.name;
3218
2536
  }
3219
2537
  }
3220
- function hasNodeWithName(nodes, name3) {
2538
+ function hasNodeWithName(nodes, name2) {
3221
2539
  return nodes.some((node2) => {
3222
2540
  const nodeName = getName(node2);
3223
- return nodeName && nodeName.includes(name3);
2541
+ return nodeName && nodeName.includes(name2);
3224
2542
  });
3225
2543
  }
3226
2544
  function reportErrors(components, filename) {
@@ -3302,8 +2620,8 @@ var require_no_raw_text = __commonJS({
3302
2620
  let curNode = parent;
3303
2621
  while (curNode) {
3304
2622
  if (curNode.type === "JSXElement") {
3305
- const name3 = elementName(curNode);
3306
- if (allowedElements.includes(name3)) {
2623
+ const name2 = elementName(curNode);
2624
+ if (allowedElements.includes(name2)) {
3307
2625
  return true;
3308
2626
  }
3309
2627
  }
@@ -3475,10 +2793,10 @@ var require_eslint_plugin_react_native = __commonJS({
3475
2793
  "no-raw-text": require_no_raw_text(),
3476
2794
  "no-single-element-style-arrays": require_no_single_element_style_arrays()
3477
2795
  };
3478
- function configureAsError(rules7) {
2796
+ function configureAsError(rules6) {
3479
2797
  const result = {};
3480
- for (const key in rules7) {
3481
- if (!rules7.hasOwnProperty(key)) {
2798
+ for (const key in rules6) {
2799
+ if (!rules6.hasOwnProperty(key)) {
3482
2800
  continue;
3483
2801
  }
3484
2802
  result["react-native/" + key] = 2;
@@ -3520,547 +2838,13 @@ var require_eslint_plugin_react_native = __commonJS({
3520
2838
  }
3521
2839
  });
3522
2840
 
3523
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js
3524
- var require_Debug = __commonJS({
3525
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
3526
- init_cjs_shims();
3527
- Object.defineProperty(exports, "__esModule", { value: true });
3528
- exports.Debug = void 0;
3529
- var Debug = class {
3530
- // To debug the plugin, temporarily uncomment the body of this function
3531
- static log(message2) {
3532
- }
3533
- };
3534
- exports.Debug = Debug;
3535
- }
3536
- });
3537
-
3538
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
3539
- var require_ConfigCache = __commonJS({
3540
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
3541
- init_cjs_shims();
3542
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
3543
- if (k2 === void 0) k2 = k;
3544
- var desc = Object.getOwnPropertyDescriptor(m, k);
3545
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
3546
- desc = { enumerable: true, get: function() {
3547
- return m[k];
3548
- } };
3549
- }
3550
- Object.defineProperty(o, k2, desc);
3551
- }) : (function(o, m, k, k2) {
3552
- if (k2 === void 0) k2 = k;
3553
- o[k2] = m[k];
3554
- }));
3555
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
3556
- Object.defineProperty(o, "default", { enumerable: true, value: v });
3557
- }) : function(o, v) {
3558
- o["default"] = v;
3559
- });
3560
- var __importStar = exports && exports.__importStar || function(mod) {
3561
- if (mod && mod.__esModule) return mod;
3562
- var result = {};
3563
- if (mod != null) {
3564
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
3565
- }
3566
- __setModuleDefault(result, mod);
3567
- return result;
3568
- };
3569
- Object.defineProperty(exports, "__esModule", { value: true });
3570
- exports.ConfigCache = void 0;
3571
- var tsdoc_config_1 = __require("@microsoft/tsdoc-config");
3572
- var path23 = __importStar(__require("path"));
3573
- var Debug_1 = require_Debug();
3574
- function _nullishCoalesce(lhs, rhsFn) {
3575
- if (lhs != null) {
3576
- return lhs;
3577
- } else {
3578
- return rhsFn();
3579
- }
3580
- }
3581
- var _fs = __require("fs");
3582
- var _path = __require("path");
3583
- var MAX_PATH_SEARCH_DEPTH3 = 30;
3584
- var depth3 = 0;
3585
- var ROOT_FILES = [
3586
- "storm-workspace.json",
3587
- "storm-workspace.json",
3588
- "storm-workspace.yaml",
3589
- "storm-workspace.yml",
3590
- "storm-workspace.js",
3591
- "storm-workspace.ts",
3592
- ".storm-workspace.json",
3593
- ".storm-workspace.yaml",
3594
- ".storm-workspace.yml",
3595
- ".storm-workspace.js",
3596
- ".storm-workspace.ts",
3597
- "lerna.json",
3598
- "nx.json",
3599
- "turbo.json",
3600
- "npm-workspace.json",
3601
- "yarn-workspace.json",
3602
- "pnpm-workspace.json",
3603
- "npm-workspace.yaml",
3604
- "yarn-workspace.yaml",
3605
- "pnpm-workspace.yaml",
3606
- "npm-workspace.yml",
3607
- "yarn-workspace.yml",
3608
- "pnpm-workspace.yml",
3609
- "npm-lock.json",
3610
- "yarn-lock.json",
3611
- "pnpm-lock.json",
3612
- "npm-lock.yaml",
3613
- "yarn-lock.yaml",
3614
- "pnpm-lock.yaml",
3615
- "npm-lock.yml",
3616
- "yarn-lock.yml",
3617
- "pnpm-lock.yml",
3618
- "bun.lockb"
3619
- ];
3620
- var ROOT_DIRECTORIES = [
3621
- ".storm-workspace",
3622
- ".nx",
3623
- ".github",
3624
- ".vscode",
3625
- ".verdaccio"
3626
- ];
3627
- function findWorkspaceRoot3(startPath) {
3628
- const _startPath = _nullishCoalesce(startPath, () => process.cwd());
3629
- if (ROOT_DIRECTORIES.some(
3630
- (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
3631
- )) {
3632
- return _startPath;
3633
- }
3634
- if (ROOT_FILES.some(
3635
- (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
3636
- )) {
3637
- return _startPath;
3638
- }
3639
- if (_startPath !== "/" && depth3++ < MAX_PATH_SEARCH_DEPTH3) {
3640
- const parent = _path.join.call(void 0, _startPath, "..");
3641
- return findWorkspaceRoot3(parent);
3642
- }
3643
- return void 0;
3644
- }
3645
- var CACHE_CHECK_INTERVAL_MS = 3 * 1e3;
3646
- var CACHE_EXPIRE_MS = 20 * 1e3;
3647
- var CACHE_MAX_SIZE = 100;
3648
- var ConfigCache = class _ConfigCache {
3649
- /**
3650
- * Node.js equivalent of performance.now().
3651
- */
3652
- static _getTimeInMs() {
3653
- const [seconds, nanoseconds] = process.hrtime();
3654
- return seconds * 1e3 + nanoseconds / 1e6;
3655
- }
3656
- static getForSourceFile(sourceFilePath, tsConfigRootDir) {
3657
- const sourceFileFolder = path23.dirname(path23.resolve(sourceFilePath));
3658
- const configFilePath = tsConfigRootDir ? path23.join(tsConfigRootDir, tsdoc_config_1.TSDocConfigFile.FILENAME) : tsdoc_config_1.TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
3659
- const cacheKey = configFilePath || sourceFileFolder + "/";
3660
- Debug_1.Debug.log(`Cache key: "${cacheKey}"`);
3661
- const nowMs = _ConfigCache._getTimeInMs();
3662
- let cachedConfig = void 0;
3663
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
3664
- if (cachedConfig) {
3665
- Debug_1.Debug.log("Cache hit");
3666
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
3667
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
3668
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
3669
- Debug_1.Debug.log("Evicting because item is expired");
3670
- cachedConfig = void 0;
3671
- _ConfigCache._cachedConfigs.delete(cacheKey);
3672
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
3673
- Debug_1.Debug.log("Checking for modifications");
3674
- cachedConfig.lastCheckTimeMs = nowMs;
3675
- if (cachedConfig.configFile.checkForModifiedFiles()) {
3676
- Debug_1.Debug.log("Evicting because item was modified");
3677
- cachedConfig = void 0;
3678
- _ConfigCache._cachedConfigs.delete(cacheKey);
3679
- }
3680
- }
3681
- }
3682
- if (!cachedConfig) {
3683
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
3684
- Debug_1.Debug.log("Clearing cache");
3685
- _ConfigCache._cachedConfigs.clear();
3686
- }
3687
- const configFile = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
3688
- if (configFile.fileNotFound) {
3689
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
3690
- } else {
3691
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
3692
- }
3693
- cachedConfig = {
3694
- configFile,
3695
- lastCheckTimeMs: nowMs,
3696
- loadTimeMs: nowMs
3697
- };
3698
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
3699
- }
3700
- return cachedConfig.configFile;
3701
- }
3702
- static _checkConfigFilePath(workspaceRoot, configFilePath) {
3703
- const workspaceRootPath = workspaceRoot ? workspaceRoot : "./";
3704
- if (!configFilePath) {
3705
- return void 0;
3706
- }
3707
- if (_fs.existsSync(configFilePath)) {
3708
- return configFilePath;
3709
- } else if (_fs.existsSync(
3710
- path23.join(
3711
- workspaceRootPath,
3712
- configFilePath
3713
- )
3714
- )) {
3715
- return path23.join(
3716
- workspaceRootPath,
3717
- configFilePath
3718
- );
3719
- } else if (_fs.existsSync(
3720
- path23.join(
3721
- workspaceRootPath,
3722
- "node_modules",
3723
- configFilePath
3724
- )
3725
- )) {
3726
- return path23.join(
3727
- workspaceRootPath,
3728
- "node_modules",
3729
- configFilePath
3730
- );
3731
- } else if (_fs.existsSync(
3732
- path23.join(
3733
- workspaceRootPath,
3734
- "node_modules",
3735
- "@storm-software",
3736
- "tsdoc",
3737
- configFilePath
3738
- )
3739
- )) {
3740
- return path23.join(
3741
- workspaceRootPath,
3742
- "node_modules",
3743
- "@storm-software",
3744
- "tsdoc",
3745
- configFilePath
3746
- );
3747
- } else if (_fs.existsSync(
3748
- path23.join(
3749
- workspaceRootPath,
3750
- "node_modules",
3751
- "@storm-software",
3752
- "tsdoc",
3753
- "config",
3754
- configFilePath
3755
- )
3756
- )) {
3757
- return path23.join(
3758
- workspaceRootPath,
3759
- "node_modules",
3760
- "@storm-software",
3761
- "tsdoc",
3762
- "config",
3763
- configFilePath
3764
- );
3765
- } else if (_fs.existsSync(
3766
- path23.join(
3767
- workspaceRootPath,
3768
- "node_modules",
3769
- "@storm-software",
3770
- "tsdoc",
3771
- "dist",
3772
- configFilePath
3773
- )
3774
- )) {
3775
- return path23.join(
3776
- workspaceRootPath,
3777
- "node_modules",
3778
- "@storm-software",
3779
- "tsdoc",
3780
- "dist",
3781
- configFilePath
3782
- );
3783
- }
3784
- return void 0;
3785
- }
3786
- static getStormConfigFile(options) {
3787
- const type = options && options.type ? options.type : "recommended";
3788
- const configFile = options && options.configFile ? options.configFile : void 0;
3789
- let workspaceRoot = "";
3790
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
3791
- workspaceRoot = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
3792
- }
3793
- if (!workspaceRoot) {
3794
- workspaceRoot = findWorkspaceRoot3();
3795
- }
3796
- let currentConfigFile = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
3797
- Debug_1.Debug.log(`Config file from user options: ${currentConfigFile || "(none)"}`);
3798
- let configFilePath = _ConfigCache._checkConfigFilePath(
3799
- workspaceRoot,
3800
- currentConfigFile
3801
- );
3802
- if (!configFilePath) {
3803
- currentConfigFile = `${((process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type) || "recommended").replace(/\.jsonc?$/, "")}.json`;
3804
- Debug_1.Debug.log(`Config file from user options not found, trying: ${currentConfigFile}`);
3805
- configFilePath = _ConfigCache._checkConfigFilePath(
3806
- workspaceRoot,
3807
- currentConfigFile
3808
- );
3809
- if (!configFilePath) {
3810
- configFilePath = _ConfigCache._checkConfigFilePath(
3811
- workspaceRoot,
3812
- "recommended.json"
3813
- );
3814
- if (!configFilePath) {
3815
- configFilePath = _ConfigCache._checkConfigFilePath(
3816
- workspaceRoot,
3817
- "tsdoc.json"
3818
- );
3819
- }
3820
- }
3821
- }
3822
- const cacheKey = configFilePath || "missing-config-file";
3823
- Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
3824
- const nowMs = _ConfigCache._getTimeInMs();
3825
- let cachedConfig = void 0;
3826
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
3827
- if (cachedConfig) {
3828
- Debug_1.Debug.log("Cache hit");
3829
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
3830
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
3831
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
3832
- Debug_1.Debug.log("Evicting because item is expired");
3833
- cachedConfig = void 0;
3834
- _ConfigCache._cachedConfigs.delete(cacheKey);
3835
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
3836
- Debug_1.Debug.log("Checking for modifications");
3837
- cachedConfig.lastCheckTimeMs = nowMs;
3838
- if (cachedConfig.configFile.checkForModifiedFiles()) {
3839
- Debug_1.Debug.log("Evicting because item was modified");
3840
- cachedConfig = void 0;
3841
- _ConfigCache._cachedConfigs.delete(cacheKey);
3842
- }
3843
- }
3844
- }
3845
- if (!cachedConfig) {
3846
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
3847
- Debug_1.Debug.log("Clearing cache");
3848
- _ConfigCache._cachedConfigs.clear();
3849
- }
3850
- const configFile2 = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
3851
- if (configFile2.fileNotFound) {
3852
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
3853
- } else {
3854
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
3855
- }
3856
- cachedConfig = {
3857
- configFile: configFile2,
3858
- lastCheckTimeMs: nowMs,
3859
- loadTimeMs: nowMs
3860
- };
3861
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
3862
- }
3863
- return cachedConfig.configFile;
3864
- }
3865
- };
3866
- exports.ConfigCache = ConfigCache;
3867
- ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
3868
- ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
3869
- }
3870
- });
3871
-
3872
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js
3873
- var require_lib = __commonJS({
3874
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
3875
- init_cjs_shims();
3876
- var tsdoc_1 = __require("@microsoft/tsdoc");
3877
- var Debug_1 = require_Debug();
3878
- var ConfigCache_1 = require_ConfigCache();
3879
- var tsdocMessageIds = {};
3880
- var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration();
3881
- defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
3882
- tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
3883
- });
3884
- var plugin9 = {
3885
- rules: {
3886
- // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
3887
- // from the NPM package name, and then appending this string.
3888
- syntax: {
3889
- meta: {
3890
- messages: Object.assign({
3891
- "error-loading-storm-config": `Error loading Storm Software's shared TSDoc config file:
3892
- {{details}}
3893
-
3894
- Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
3895
- "error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
3896
- "error-applying-storm-config": "Error applying Storm Software's shared TSDoc configuration: {{details}}",
3897
- "error-applying-config": "Error applying TSDoc configuration: {{details}}"
3898
- }, tsdocMessageIds),
3899
- type: "problem",
3900
- docs: {
3901
- description: "Validates that TypeScript documentation comments conform to the TSDoc standard",
3902
- category: "Stylistic Issues",
3903
- recommended: true,
3904
- url: "https://tsdoc.org/pages/packages/eslint-plugin-tsdoc"
3905
- },
3906
- schema: [
3907
- {
3908
- type: "object",
3909
- properties: {
3910
- type: {
3911
- type: "string",
3912
- enum: ["typedoc", "api-extractor", "base", "core", "callouts", "recommended"],
3913
- description: "The TSDoc configuration type to use from '@storm-software/tsdoc'. Defaults to 'recommended' (@storm-software/tsdoc/recommended.json)."
3914
- },
3915
- configFile: {
3916
- type: "string",
3917
- description: "The TSDoc configuration file to use."
3918
- },
3919
- tsconfigRootDir: {
3920
- type: "string",
3921
- 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."
3922
- }
3923
- },
3924
- additionalProperties: false
3925
- }
3926
- ]
3927
- },
3928
- defaultOptions: [
3929
- {
3930
- type: "recommended"
3931
- }
3932
- ],
3933
- create: (context) => {
3934
- const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
3935
- let tsConfigDir = void 0;
3936
- const sourceFilePath = context.filename;
3937
- Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
3938
- try {
3939
- let tsdocConfigFile = {};
3940
- try {
3941
- const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
3942
- tsConfigDir = userOptions.tsconfigRootDir;
3943
- if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
3944
- tsConfigDir = context.parserOptions.tsconfigRootDir;
3945
- }
3946
- const config7 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
3947
- Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config7, void 0, 2)}`);
3948
- tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config7);
3949
- if (!tsdocConfigFile.fileNotFound) {
3950
- if (tsdocConfigFile.hasErrors) {
3951
- context.report({
3952
- loc: { line: 1, column: 1 },
3953
- messageId: "error-loading-storm-config",
3954
- data: {
3955
- details: tsdocConfigFile.getErrorSummary()
3956
- }
3957
- });
3958
- }
3959
- try {
3960
- tsdocConfigFile.configureParser(tsdocConfiguration);
3961
- } catch (e) {
3962
- context.report({
3963
- loc: { line: 1, column: 1 },
3964
- messageId: "error-applying-storm-config",
3965
- data: {
3966
- details: e.message
3967
- }
3968
- });
3969
- }
3970
- }
3971
- } catch (e) {
3972
- context.report({
3973
- loc: { line: 1, column: 1 },
3974
- messageId: "error-loading-storm-config",
3975
- data: {
3976
- details: `Unexpected exception: ${e.message}`
3977
- }
3978
- });
3979
- }
3980
- if (!tsdocConfigFile || tsdocConfigFile.fileNotFound || tsdocConfigFile.hasErrors) {
3981
- tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath, tsConfigDir);
3982
- if (!tsdocConfigFile.fileNotFound) {
3983
- if (tsdocConfigFile.hasErrors) {
3984
- context.report({
3985
- loc: { line: 1, column: 1 },
3986
- messageId: "error-loading-config-file",
3987
- data: {
3988
- details: tsdocConfigFile.getErrorSummary()
3989
- }
3990
- });
3991
- }
3992
- try {
3993
- tsdocConfigFile.configureParser(tsdocConfiguration);
3994
- } catch (e) {
3995
- context.report({
3996
- loc: { line: 1, column: 1 },
3997
- messageId: "error-applying-config",
3998
- data: {
3999
- details: e.message
4000
- }
4001
- });
4002
- }
4003
- }
4004
- }
4005
- } catch (e) {
4006
- context.report({
4007
- loc: { line: 1, column: 1 },
4008
- messageId: "error-loading-config-file",
4009
- data: {
4010
- details: `Unexpected exception: ${e.message}`
4011
- }
4012
- });
4013
- }
4014
- const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
4015
- const sourceCode = context.sourceCode || context.getSourceCode();
4016
- const checkCommentBlocks = function(node2) {
4017
- for (const comment of sourceCode.getAllComments()) {
4018
- if (comment.type !== "Block") {
4019
- continue;
4020
- }
4021
- if (!comment.range) {
4022
- continue;
4023
- }
4024
- const textRange = tsdoc_1.TextRange.fromStringRange(sourceCode.text, comment.range[0], comment.range[1]);
4025
- if (textRange.length < 5) {
4026
- continue;
4027
- }
4028
- if (textRange.buffer[textRange.pos + 2] !== "*") {
4029
- continue;
4030
- }
4031
- const parserContext = tsdocParser.parseRange(textRange);
4032
- for (const message2 of parserContext.log.messages) {
4033
- context.report({
4034
- loc: {
4035
- start: sourceCode.getLocFromIndex(message2.textRange.pos),
4036
- end: sourceCode.getLocFromIndex(message2.textRange.end)
4037
- },
4038
- messageId: message2.messageId,
4039
- data: {
4040
- unformattedText: message2.unformattedText
4041
- }
4042
- });
4043
- }
4044
- }
4045
- };
4046
- return {
4047
- Program: checkCommentBlocks
4048
- };
4049
- }
4050
- }
4051
- }
4052
- };
4053
- module.exports = plugin9;
4054
- }
4055
- });
4056
-
4057
2841
  // ../eslint-plugin-tsdoc/package.json
4058
2842
  var package_default4;
4059
2843
  var init_package3 = __esm({
4060
2844
  "../eslint-plugin-tsdoc/package.json"() {
4061
2845
  package_default4 = {
4062
2846
  name: "@storm-software/eslint-plugin-tsdoc",
4063
- version: "0.0.78",
2847
+ version: "0.0.80",
4064
2848
  private: false,
4065
2849
  description: "An ESLint Plugin that enforces TSDoc comments in Storm Software projects.",
4066
2850
  keywords: ["eslint", "eslint-plugin", "storm-software"],
@@ -4114,7 +2898,6 @@ var init_package3 = __esm({
4114
2898
  "@microsoft/tsdoc-config": "catalog:",
4115
2899
  "@storm-software/package-constants": "workspace:*",
4116
2900
  "@typescript-eslint/utils": "catalog:",
4117
- ajv: "catalog:",
4118
2901
  defu: "catalog:",
4119
2902
  "es-errors": "1.3.0",
4120
2903
  "fast-deep-equal": "3.1.3",
@@ -4164,16 +2947,13 @@ var init_package3 = __esm({
4164
2947
  };
4165
2948
  }
4166
2949
  });
4167
-
4168
- // ../eslint-plugin-tsdoc/src/plugin.ts
4169
- var import_eslint_plugin_tsdoc, plugin8;
2950
+ var plugin7;
4170
2951
  var init_plugin3 = __esm({
4171
2952
  "../eslint-plugin-tsdoc/src/plugin.ts"() {
4172
2953
  init_cjs_shims();
4173
- import_eslint_plugin_tsdoc = __toESM(require_lib());
4174
2954
  init_package3();
4175
- plugin8 = {
4176
- ...import_eslint_plugin_tsdoc.default,
2955
+ plugin7 = {
2956
+ ...base2__default.default,
4177
2957
  meta: {
4178
2958
  name: "tsdoc",
4179
2959
  version: package_default4.version
@@ -4194,7 +2974,7 @@ var init_recommended3 = __esm({
4194
2974
  ignores: GLOB_EXCLUDE,
4195
2975
  name: "tsdoc/recommended",
4196
2976
  plugins: {
4197
- tsdoc: plugin8
2977
+ tsdoc: plugin7
4198
2978
  },
4199
2979
  rules: {
4200
2980
  "tsdoc/syntax": ["error", { type: "recommended" }]
@@ -4205,12 +2985,12 @@ var init_recommended3 = __esm({
4205
2985
  });
4206
2986
 
4207
2987
  // ../eslint-plugin-tsdoc/src/configs/index.ts
4208
- var configs7;
2988
+ var configs6;
4209
2989
  var init_configs3 = __esm({
4210
2990
  "../eslint-plugin-tsdoc/src/configs/index.ts"() {
4211
2991
  init_cjs_shims();
4212
2992
  init_recommended3();
4213
- configs7 = {
2993
+ configs6 = {
4214
2994
  recommended: recommended_default6
4215
2995
  };
4216
2996
  }
@@ -4219,22 +2999,22 @@ var init_configs3 = __esm({
4219
2999
  // ../eslint-plugin-tsdoc/src/index.ts
4220
3000
  var src_exports3 = {};
4221
3001
  __export(src_exports3, {
4222
- configs: () => configs7,
3002
+ configs: () => configs6,
4223
3003
  default: () => src_default4,
4224
- rules: () => rules6
3004
+ rules: () => rules5
4225
3005
  });
4226
- var eslintPlugin4, src_default4, rules6;
3006
+ var eslintPlugin4, src_default4, rules5;
4227
3007
  var init_src3 = __esm({
4228
3008
  "../eslint-plugin-tsdoc/src/index.ts"() {
4229
3009
  init_cjs_shims();
4230
3010
  init_configs3();
4231
3011
  init_plugin3();
4232
3012
  eslintPlugin4 = {
4233
- ...plugin8,
4234
- configs: configs7
3013
+ ...plugin7,
3014
+ configs: configs6
4235
3015
  };
4236
3016
  src_default4 = eslintPlugin4;
4237
- rules6 = plugin8.rules;
3017
+ rules5 = plugin7.rules;
4238
3018
  }
4239
3019
  });
4240
3020
 
@@ -4281,8 +3061,8 @@ async function interopDefault(m) {
4281
3061
  const resolved = await m;
4282
3062
  return resolved.default || resolved;
4283
3063
  }
4284
- function isPackageInScope(name3) {
4285
- return localPkg.isPackageExists(name3, { paths: [scopeUrl] });
3064
+ function isPackageInScope(name2) {
3065
+ return localPkg.isPackageExists(name2, { paths: [scopeUrl] });
4286
3066
  }
4287
3067
  async function ensurePackages(packages) {
4288
3068
  if (process2__default.default.env.CI || process2__default.default.stdout.isTTY === false || isCwdInScope === false)
@@ -4302,9 +3082,9 @@ async function ensurePackages(packages) {
4302
3082
  (i) => i.installPackage(nonExistingPackages, { dev: true })
4303
3083
  );
4304
3084
  }
4305
- function renameRules(rules7, map) {
3085
+ function renameRules(rules6, map) {
4306
3086
  return Object.fromEntries(
4307
- Object.entries(rules7).map(([key, value]) => {
3087
+ Object.entries(rules6).map(([key, value]) => {
4308
3088
  for (const [from, to] of Object.entries(map)) {
4309
3089
  if (key.startsWith(`${from}/`))
4310
3090
  return [to + key.slice(from.length), value];
@@ -4944,7 +3724,7 @@ init_cjs_shims();
4944
3724
  init_cjs_shims();
4945
3725
  var _a;
4946
3726
  // @__NO_SIDE_EFFECTS__
4947
- function $constructor(name3, initializer2, params) {
3727
+ function $constructor(name2, initializer2, params) {
4948
3728
  function init(inst, def) {
4949
3729
  if (!inst._zod) {
4950
3730
  Object.defineProperty(inst, "_zod", {
@@ -4956,10 +3736,10 @@ function $constructor(name3, initializer2, params) {
4956
3736
  enumerable: false
4957
3737
  });
4958
3738
  }
4959
- if (inst._zod.traits.has(name3)) {
3739
+ if (inst._zod.traits.has(name2)) {
4960
3740
  return;
4961
3741
  }
4962
- inst._zod.traits.add(name3);
3742
+ inst._zod.traits.add(name2);
4963
3743
  initializer2(inst, def);
4964
3744
  const proto = _.prototype;
4965
3745
  const keys = Object.keys(proto);
@@ -4973,7 +3753,7 @@ function $constructor(name3, initializer2, params) {
4973
3753
  const Parent = params?.Parent ?? Object;
4974
3754
  class Definition extends Parent {
4975
3755
  }
4976
- Object.defineProperty(Definition, "name", { value: name3 });
3756
+ Object.defineProperty(Definition, "name", { value: name2 });
4977
3757
  function _(def) {
4978
3758
  var _a4;
4979
3759
  const inst = params?.Parent ? new Definition() : this;
@@ -4989,10 +3769,10 @@ function $constructor(name3, initializer2, params) {
4989
3769
  value: (inst) => {
4990
3770
  if (params?.Parent && inst instanceof params.Parent)
4991
3771
  return true;
4992
- return inst?._zod?.traits?.has(name3);
3772
+ return inst?._zod?.traits?.has(name2);
4993
3773
  }
4994
3774
  });
4995
- Object.defineProperty(_, "name", { value: name3 });
3775
+ Object.defineProperty(_, "name", { value: name2 });
4996
3776
  return _;
4997
3777
  }
4998
3778
  var $ZodAsyncError = class extends Error {
@@ -6982,7 +5762,7 @@ async function getPackageJsonConfig(root) {
6982
5762
  let license = STORM_DEFAULT_LICENSE;
6983
5763
  let homepage = void 0;
6984
5764
  let support = void 0;
6985
- let name3 = void 0;
5765
+ let name2 = void 0;
6986
5766
  let namespace = void 0;
6987
5767
  let repository = void 0;
6988
5768
  const workspaceRoot = findWorkspaceRoot(root);
@@ -6994,7 +5774,7 @@ async function getPackageJsonConfig(root) {
6994
5774
  if (file) {
6995
5775
  const packageJson = JSON.parse(file);
6996
5776
  if (packageJson.name) {
6997
- name3 = packageJson.name;
5777
+ name2 = packageJson.name;
6998
5778
  }
6999
5779
  if (packageJson.namespace) {
7000
5780
  namespace = packageJson.namespace;
@@ -7023,7 +5803,7 @@ async function getPackageJsonConfig(root) {
7023
5803
  }
7024
5804
  return {
7025
5805
  workspaceRoot,
7026
- name: name3,
5806
+ name: name2,
7027
5807
  namespace,
7028
5808
  repository,
7029
5809
  license,
@@ -7064,7 +5844,7 @@ function applyDefaultConfig(config7) {
7064
5844
  // ../config-tools/src/config-file/get-config-file.ts
7065
5845
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
7066
5846
  const workspacePath = filePath || findWorkspaceRoot(filePath);
7067
- const configs8 = await Promise.all([
5847
+ const configs7 = await Promise.all([
7068
5848
  c12.loadConfig({
7069
5849
  cwd: workspacePath,
7070
5850
  packageJson: true,
@@ -7095,7 +5875,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
7095
5875
  ...options
7096
5876
  })
7097
5877
  ]);
7098
- return defu__default.default(configs8[0] ?? {}, configs8[1] ?? {});
5878
+ return defu__default.default(configs7[0] ?? {}, configs7[1] ?? {});
7099
5879
  };
7100
5880
  var getConfigFile = async (filePath, additionalFileNames = []) => {
7101
5881
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
@@ -7851,7 +6631,7 @@ init_cjs_shims();
7851
6631
 
7852
6632
  // ../eslint-plugin-banner/package.json
7853
6633
  var package_default = {
7854
- version: "0.0.80"};
6634
+ version: "0.0.82"};
7855
6635
 
7856
6636
  // ../eslint-plugin-banner/src/rules/banner.ts
7857
6637
  init_cjs_shims();
@@ -7860,7 +6640,7 @@ init_cjs_shims();
7860
6640
  init_cjs_shims();
7861
6641
  function RuleCreator(urlCreator) {
7862
6642
  return function createNamedRule({
7863
- name: name3,
6643
+ name: name2,
7864
6644
  meta: meta3,
7865
6645
  ...rule
7866
6646
  }) {
@@ -7869,7 +6649,7 @@ function RuleCreator(urlCreator) {
7869
6649
  ...meta3,
7870
6650
  docs: {
7871
6651
  ...meta3.docs,
7872
- url: urlCreator(name3)
6652
+ url: urlCreator(name2)
7873
6653
  }
7874
6654
  },
7875
6655
  ...rule
@@ -7945,12 +6725,12 @@ var ACRONYMS_LIST = [
7945
6725
 
7946
6726
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
7947
6727
  function getBanner(options) {
7948
- const { name: name3 } = options;
6728
+ const { name: name2 } = options;
7949
6729
  let padding = " ";
7950
- for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
6730
+ for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
7951
6731
  padding = padding.slice(0, -1);
7952
6732
  }
7953
- let titleName = name3;
6733
+ let titleName = name2;
7954
6734
  if (titleName) {
7955
6735
  if (titleName?.startsWith("@")) {
7956
6736
  titleName = titleName.slice(1);
@@ -7966,8 +6746,8 @@ function getBanner(options) {
7966
6746
  const organization = options.organization || "storm-software";
7967
6747
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
7968
6748
  const homepage = options.homepage || "https://stormsoftware.com";
7969
- const repository = options.repository || `https://github.com/${organization}${name3 ? `/${name3}` : ""}`;
7970
- const docs = options.docs || `https://docs.stormsoftware.com${name3 ? `/projects/${name3}` : ""}`;
6749
+ const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
6750
+ const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
7971
6751
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
7972
6752
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
7973
6753
  return word.toUpperCase();
@@ -7982,7 +6762,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
7982
6762
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
7983
6763
  is maintained by ${formattedOrganization} under the ${license} license, and is
7984
6764
  free for commercial and private use. For more information, please visit
7985
- our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
6765
+ our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
7986
6766
 
7987
6767
  Website: ${homepage}
7988
6768
  Repository: ${repository}
@@ -8182,7 +6962,7 @@ var banner_default = createRule({
8182
6962
  ],
8183
6963
  create: (context) => {
8184
6964
  const {
8185
- name: name3,
6965
+ name: name2,
8186
6966
  license,
8187
6967
  organization,
8188
6968
  licensing,
@@ -8194,7 +6974,7 @@ var banner_default = createRule({
8194
6974
  lineEndings
8195
6975
  } = context.options[0];
8196
6976
  const banner2 = getBanner({
8197
- name: name3,
6977
+ name: name2,
8198
6978
  license,
8199
6979
  organization,
8200
6980
  licensing,
@@ -8737,7 +7517,7 @@ async function bun(options = {}) {
8737
7517
  "@storm-software/eslint-plugin-bun",
8738
7518
  "jsonc-eslint-parser"
8739
7519
  ]);
8740
- const [plugin9, parserJsonc3] = await Promise.all([
7520
+ const [plugin8, parserJsonc3] = await Promise.all([
8741
7521
  interopDefault(Promise.resolve().then(() => (init_src(), src_exports))),
8742
7522
  interopDefault(import('jsonc-eslint-parser'))
8743
7523
  ]);
@@ -8780,20 +7560,20 @@ async function bun(options = {}) {
8780
7560
  }
8781
7561
  });
8782
7562
  }
8783
- const configs8 = (Array.isArray(plugin9.configs?.recommended) ? plugin9.configs.recommended : [plugin9.configs?.recommended]).filter(
7563
+ const configs7 = (Array.isArray(plugin8.configs?.recommended) ? plugin8.configs.recommended : [plugin8.configs?.recommended]).filter(
8784
7564
  (config7) => config7 && typeof config7 === "object" && "name" in config7 && !config7.name?.endsWith("setup")
8785
7565
  );
8786
- const packageJsonConfig = configs8.find(
7566
+ const packageJsonConfig = configs7.find(
8787
7567
  (config7) => config7.name?.endsWith("package-json") ?? false
8788
7568
  );
8789
7569
  return [
8790
7570
  {
8791
7571
  name: "storm/bun/setup",
8792
7572
  plugins: {
8793
- bun: plugin9
7573
+ bun: plugin8
8794
7574
  }
8795
7575
  },
8796
- ...configs8.map((config7) => ({
7576
+ ...configs7.map((config7) => ({
8797
7577
  name: config7.name,
8798
7578
  ...config7
8799
7579
  })),
@@ -9017,7 +7797,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9017
7797
  options.dprintOptions ?? {}
9018
7798
  );
9019
7799
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
9020
- const configs8 = [
7800
+ const configs7 = [
9021
7801
  {
9022
7802
  name: "storm/formatter/setup",
9023
7803
  plugins: {
@@ -9026,7 +7806,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9026
7806
  }
9027
7807
  ];
9028
7808
  if (options.css) {
9029
- configs8.push(
7809
+ configs7.push(
9030
7810
  {
9031
7811
  files: [GLOB_CSS, GLOB_POSTCSS],
9032
7812
  languageOptions: {
@@ -9075,7 +7855,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9075
7855
  );
9076
7856
  }
9077
7857
  if (options.html) {
9078
- configs8.push({
7858
+ configs7.push({
9079
7859
  files: [GLOB_HTML],
9080
7860
  languageOptions: {
9081
7861
  parser: parserPlain
@@ -9092,7 +7872,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9092
7872
  });
9093
7873
  }
9094
7874
  if (options.xml) {
9095
- configs8.push({
7875
+ configs7.push({
9096
7876
  files: [GLOB_XML],
9097
7877
  languageOptions: {
9098
7878
  parser: parserPlain
@@ -9113,7 +7893,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9113
7893
  });
9114
7894
  }
9115
7895
  if (options.svg) {
9116
- configs8.push({
7896
+ configs7.push({
9117
7897
  files: [GLOB_SVG],
9118
7898
  languageOptions: {
9119
7899
  parser: parserPlain
@@ -9135,7 +7915,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9135
7915
  }
9136
7916
  if (options.markdown) {
9137
7917
  const formater = options.markdown === true ? "prettier" : options.markdown;
9138
- configs8.push({
7918
+ configs7.push({
9139
7919
  files: [GLOB_MARKDOWN],
9140
7920
  languageOptions: {
9141
7921
  parser: parserPlain
@@ -9156,7 +7936,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9156
7936
  });
9157
7937
  }
9158
7938
  if (options.astro) {
9159
- configs8.push({
7939
+ configs7.push({
9160
7940
  files: [GLOB_ASTRO],
9161
7941
  languageOptions: {
9162
7942
  parser: parserPlain
@@ -9172,7 +7952,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9172
7952
  ]
9173
7953
  }
9174
7954
  });
9175
- configs8.push({
7955
+ configs7.push({
9176
7956
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
9177
7957
  name: "storm/formatter/astro/disables",
9178
7958
  rules: {
@@ -9187,7 +7967,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9187
7967
  });
9188
7968
  }
9189
7969
  if (options.graphql) {
9190
- configs8.push({
7970
+ configs7.push({
9191
7971
  files: [GLOB_GRAPHQL],
9192
7972
  languageOptions: {
9193
7973
  parser: parserPlain
@@ -9203,7 +7983,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9203
7983
  }
9204
7984
  });
9205
7985
  }
9206
- return configs8;
7986
+ return configs7;
9207
7987
  }
9208
7988
 
9209
7989
  // src/configs/graphql.ts
@@ -9731,13 +8511,13 @@ var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commi
9731
8511
 
9732
8512
  // ../../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
9733
8513
  function RuleCreator3(urlCreator) {
9734
- return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
8514
+ return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
9735
8515
  return createRule_({
9736
8516
  meta: {
9737
8517
  ...meta3,
9738
8518
  docs: {
9739
8519
  ...meta3.docs,
9740
- url: urlCreator(name3)
8520
+ url: urlCreator(name2)
9741
8521
  }
9742
8522
  },
9743
8523
  ...rule
@@ -9758,9 +8538,9 @@ var createRule3 = RuleCreator3(docsUrl);
9758
8538
 
9759
8539
  // ../../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
9760
8540
  init_cjs_shims();
9761
- function declaredScope(context, node2, name3) {
8541
+ function declaredScope(context, node2, name2) {
9762
8542
  const references = context.sourceCode.getScope(node2).references;
9763
- const reference = references.find((x) => x.identifier.name === name3);
8543
+ const reference = references.find((x) => x.identifier.name === name2);
9764
8544
  return reference?.resolved?.scope.type;
9765
8545
  }
9766
8546
 
@@ -10055,49 +8835,49 @@ function getFilePackageName(filename) {
10055
8835
  }
10056
8836
 
10057
8837
  // ../../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
10058
- function baseModule(name3) {
10059
- if (isScoped(name3)) {
10060
- const [scope, pkg2] = name3.split("/");
8838
+ function baseModule(name2) {
8839
+ if (isScoped(name2)) {
8840
+ const [scope, pkg2] = name2.split("/");
10061
8841
  return `${scope}/${pkg2}`;
10062
8842
  }
10063
- const [pkg] = name3.split("/");
8843
+ const [pkg] = name2.split("/");
10064
8844
  return pkg;
10065
8845
  }
10066
- function isInternalRegexMatch(name3, settings) {
8846
+ function isInternalRegexMatch(name2, settings) {
10067
8847
  const internalScope = settings?.["import-x/internal-regex"];
10068
- return internalScope && new RegExp(internalScope).test(name3);
8848
+ return internalScope && new RegExp(internalScope).test(name2);
10069
8849
  }
10070
- function isAbsolute3(name3) {
10071
- return typeof name3 === "string" && path16__default.default.isAbsolute(name3);
8850
+ function isAbsolute3(name2) {
8851
+ return typeof name2 === "string" && path16__default.default.isAbsolute(name2);
10072
8852
  }
10073
- function isBuiltIn(name3, settings, modulePath) {
10074
- if (modulePath || !name3) {
8853
+ function isBuiltIn(name2, settings, modulePath) {
8854
+ if (modulePath || !name2) {
10075
8855
  return false;
10076
8856
  }
10077
- const base2 = baseModule(name3);
8857
+ const base3 = baseModule(name2);
10078
8858
  const extras = settings && settings["import-x/core-modules"] || [];
10079
- return Module.isBuiltin(base2) || extras.includes(base2);
8859
+ return Module.isBuiltin(base3) || extras.includes(base3);
10080
8860
  }
10081
- function isExternalModule(name3, modulePath, context) {
10082
- return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
8861
+ function isExternalModule(name2, modulePath, context) {
8862
+ return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
10083
8863
  }
10084
8864
  var moduleRegExp = /^\w/;
10085
- function isModule(name3) {
10086
- return !!name3 && moduleRegExp.test(name3);
8865
+ function isModule(name2) {
8866
+ return !!name2 && moduleRegExp.test(name2);
10087
8867
  }
10088
8868
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
10089
- function isScoped(name3) {
10090
- return !!name3 && scopedRegExp.test(name3);
8869
+ function isScoped(name2) {
8870
+ return !!name2 && scopedRegExp.test(name2);
10091
8871
  }
10092
- function isRelativeToParent(name3) {
10093
- return /^\.\.$|^\.\.[/\\]/.test(name3);
8872
+ function isRelativeToParent(name2) {
8873
+ return /^\.\.$|^\.\.[/\\]/.test(name2);
10094
8874
  }
10095
8875
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
10096
- function isIndex(name3) {
10097
- return indexFiles.has(name3);
8876
+ function isIndex(name2) {
8877
+ return indexFiles.has(name2);
10098
8878
  }
10099
- function isRelativeToSibling(name3) {
10100
- return /^\.[/\\]/.test(name3);
8879
+ function isRelativeToSibling(name2) {
8880
+ return /^\.[/\\]/.test(name2);
10101
8881
  }
10102
8882
  function isExternalPath(filepath, context) {
10103
8883
  if (!filepath) {
@@ -10124,28 +8904,28 @@ function isInternalPath(filepath, context) {
10124
8904
  const packagePath = getContextPackagePath(context);
10125
8905
  return !path16__default.default.relative(packagePath, filepath).startsWith("../");
10126
8906
  }
10127
- function isExternalLookingName(name3) {
10128
- return isModule(name3) || isScoped(name3);
8907
+ function isExternalLookingName(name2) {
8908
+ return isModule(name2) || isScoped(name2);
10129
8909
  }
10130
- function typeTest(name3, context, path23) {
8910
+ function typeTest(name2, context, path23) {
10131
8911
  const { settings } = context;
10132
- if (typeof name3 === "string") {
10133
- if (isInternalRegexMatch(name3, settings)) {
8912
+ if (typeof name2 === "string") {
8913
+ if (isInternalRegexMatch(name2, settings)) {
10134
8914
  return "internal";
10135
8915
  }
10136
- if (isAbsolute3(name3)) {
8916
+ if (isAbsolute3(name2)) {
10137
8917
  return "absolute";
10138
8918
  }
10139
- if (isBuiltIn(name3, settings, path23)) {
8919
+ if (isBuiltIn(name2, settings, path23)) {
10140
8920
  return "builtin";
10141
8921
  }
10142
- if (isRelativeToParent(name3)) {
8922
+ if (isRelativeToParent(name2)) {
10143
8923
  return "parent";
10144
8924
  }
10145
- if (isIndex(name3)) {
8925
+ if (isIndex(name2)) {
10146
8926
  return "index";
10147
8927
  }
10148
- if (isRelativeToSibling(name3)) {
8928
+ if (isRelativeToSibling(name2)) {
10149
8929
  return "sibling";
10150
8930
  }
10151
8931
  }
@@ -10155,13 +8935,13 @@ function typeTest(name3, context, path23) {
10155
8935
  if (isInternalPath(path23, context)) {
10156
8936
  return "internal";
10157
8937
  }
10158
- if (typeof name3 === "string" && isExternalLookingName(name3)) {
8938
+ if (typeof name2 === "string" && isExternalLookingName(name2)) {
10159
8939
  return "external";
10160
8940
  }
10161
8941
  return "unknown";
10162
8942
  }
10163
- function importType(name3, context) {
10164
- return typeTest(name3, context, typeof name3 === "string" ? resolve3(name3, context) : null);
8943
+ function importType(name2, context) {
8944
+ return typeTest(name2, context, typeof name2 === "string" ? resolve3(name2, context) : null);
10165
8945
  }
10166
8946
 
10167
8947
  // ../../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
@@ -10201,32 +8981,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
10201
8981
  const map = /* @__PURE__ */ new Map();
10202
8982
  for (const nameOrRecordOrObject of resolverArray) {
10203
8983
  if (typeof nameOrRecordOrObject === "string") {
10204
- const name3 = nameOrRecordOrObject;
10205
- map.set(name3, {
10206
- name: name3,
8984
+ const name2 = nameOrRecordOrObject;
8985
+ map.set(name2, {
8986
+ name: name2,
10207
8987
  enable: true,
10208
8988
  options: void 0,
10209
- resolver: requireResolver(name3, sourceFile)
8989
+ resolver: requireResolver(name2, sourceFile)
10210
8990
  });
10211
8991
  } else if (typeof nameOrRecordOrObject === "object") {
10212
8992
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
10213
8993
  const object2 = nameOrRecordOrObject;
10214
- const { name: name3, enable = true, options, resolver } = object2;
10215
- map.set(name3, { name: name3, enable, options, resolver });
8994
+ const { name: name2, enable = true, options, resolver } = object2;
8995
+ map.set(name2, { name: name2, enable, options, resolver });
10216
8996
  } else {
10217
8997
  const record2 = nameOrRecordOrObject;
10218
- for (const [name3, enableOrOptions] of Object.entries(record2)) {
10219
- const resolver = requireResolver(name3, sourceFile);
8998
+ for (const [name2, enableOrOptions] of Object.entries(record2)) {
8999
+ const resolver = requireResolver(name2, sourceFile);
10220
9000
  if (typeof enableOrOptions === "boolean") {
10221
- map.set(name3, {
10222
- name: name3,
9001
+ map.set(name2, {
9002
+ name: name2,
10223
9003
  enable: enableOrOptions,
10224
9004
  options: void 0,
10225
9005
  resolver
10226
9006
  });
10227
9007
  } else {
10228
- map.set(name3, {
10229
- name: name3,
9008
+ map.set(name2, {
9009
+ name: name2,
10230
9010
  enable: true,
10231
9011
  options: enableOrOptions,
10232
9012
  resolver
@@ -10250,18 +9030,18 @@ try {
10250
9030
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
10251
9031
  } catch {
10252
9032
  }
10253
- function requireResolver(name3, sourceFile) {
10254
- const resolver = tryRequire(`eslint-import-resolver-${name3}`, sourceFile) || tryRequire(name3, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name3));
9033
+ function requireResolver(name2, sourceFile) {
9034
+ const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name2));
10255
9035
  if (!resolver) {
10256
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9036
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10257
9037
  return void 0;
10258
9038
  }
10259
- const err = new Error(`unable to load resolver "${name3}".`);
9039
+ const err = new Error(`unable to load resolver "${name2}".`);
10260
9040
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10261
9041
  throw err;
10262
9042
  }
10263
9043
  if (!isLegacyResolverValid(resolver)) {
10264
- const err = new Error(`${name3} with invalid interface loaded as resolver`);
9044
+ const err = new Error(`${name2} with invalid interface loaded as resolver`);
10265
9045
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10266
9046
  throw err;
10267
9047
  }
@@ -10515,11 +9295,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
10515
9295
  };
10516
9296
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
10517
9297
  for (const sourceFile2 of sourceFiles) {
10518
- for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
9298
+ for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
10519
9299
  if (!enable) {
10520
9300
  continue;
10521
9301
  }
10522
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9302
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10523
9303
  const resolverOptions = options || {};
10524
9304
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
10525
9305
  if (resolved2?.found) {
@@ -11049,44 +9829,44 @@ var ExportMap = class _ExportMap {
11049
9829
  }
11050
9830
  return size;
11051
9831
  }
11052
- has(name3) {
11053
- if (this.namespace.has(name3)) {
9832
+ has(name2) {
9833
+ if (this.namespace.has(name2)) {
11054
9834
  return true;
11055
9835
  }
11056
- if (this.reexports.has(name3)) {
9836
+ if (this.reexports.has(name2)) {
11057
9837
  return true;
11058
9838
  }
11059
- if (name3 !== "default") {
9839
+ if (name2 !== "default") {
11060
9840
  for (const dep of this.dependencies) {
11061
9841
  const innerMap = dep();
11062
9842
  if (!innerMap) {
11063
9843
  continue;
11064
9844
  }
11065
- if (innerMap.has(name3)) {
9845
+ if (innerMap.has(name2)) {
11066
9846
  return true;
11067
9847
  }
11068
9848
  }
11069
9849
  }
11070
9850
  return false;
11071
9851
  }
11072
- hasDeep(name3) {
11073
- if (this.namespace.has(name3)) {
9852
+ hasDeep(name2) {
9853
+ if (this.namespace.has(name2)) {
11074
9854
  return { found: true, path: [this] };
11075
9855
  }
11076
- if (this.reexports.has(name3)) {
11077
- const reexports = this.reexports.get(name3);
9856
+ if (this.reexports.has(name2)) {
9857
+ const reexports = this.reexports.get(name2);
11078
9858
  const imported = reexports.getImport();
11079
9859
  if (imported == null) {
11080
9860
  return { found: true, path: [this] };
11081
9861
  }
11082
- if (imported.path === this.path && reexports.local === name3) {
9862
+ if (imported.path === this.path && reexports.local === name2) {
11083
9863
  return { found: false, path: [this] };
11084
9864
  }
11085
9865
  const deep = imported.hasDeep(reexports.local);
11086
9866
  deep.path.unshift(this);
11087
9867
  return deep;
11088
9868
  }
11089
- if (name3 !== "default") {
9869
+ if (name2 !== "default") {
11090
9870
  for (const dep of this.dependencies) {
11091
9871
  const innerMap = dep();
11092
9872
  if (innerMap == null) {
@@ -11098,7 +9878,7 @@ var ExportMap = class _ExportMap {
11098
9878
  if (innerMap.path === this.path) {
11099
9879
  continue;
11100
9880
  }
11101
- const innerValue = innerMap.hasDeep(name3);
9881
+ const innerValue = innerMap.hasDeep(name2);
11102
9882
  if (innerValue.found) {
11103
9883
  innerValue.path.unshift(this);
11104
9884
  return innerValue;
@@ -11107,22 +9887,22 @@ var ExportMap = class _ExportMap {
11107
9887
  }
11108
9888
  return { found: false, path: [this] };
11109
9889
  }
11110
- get(name3) {
11111
- if (this.namespace.has(name3)) {
11112
- return this.namespace.get(name3);
9890
+ get(name2) {
9891
+ if (this.namespace.has(name2)) {
9892
+ return this.namespace.get(name2);
11113
9893
  }
11114
- if (this.reexports.has(name3)) {
11115
- const reexports = this.reexports.get(name3);
9894
+ if (this.reexports.has(name2)) {
9895
+ const reexports = this.reexports.get(name2);
11116
9896
  const imported = reexports.getImport();
11117
9897
  if (imported == null) {
11118
9898
  return null;
11119
9899
  }
11120
- if (imported.path === this.path && reexports.local === name3) {
9900
+ if (imported.path === this.path && reexports.local === name2) {
11121
9901
  return void 0;
11122
9902
  }
11123
9903
  return imported.get(reexports.local);
11124
9904
  }
11125
- if (name3 !== "default") {
9905
+ if (name2 !== "default") {
11126
9906
  for (const dep of this.dependencies) {
11127
9907
  const innerMap = dep();
11128
9908
  if (!innerMap) {
@@ -11131,7 +9911,7 @@ var ExportMap = class _ExportMap {
11131
9911
  if (innerMap.path === this.path) {
11132
9912
  continue;
11133
9913
  }
11134
- const innerValue = innerMap.get(name3);
9914
+ const innerValue = innerMap.get(name2);
11135
9915
  if (innerValue !== void 0) {
11136
9916
  return innerValue;
11137
9917
  }
@@ -11142,9 +9922,9 @@ var ExportMap = class _ExportMap {
11142
9922
  for (const [n, v] of this.namespace.entries()) {
11143
9923
  callback.call(thisArg, v, n, this);
11144
9924
  }
11145
- for (const [name3, reexports] of this.reexports.entries()) {
9925
+ for (const [name2, reexports] of this.reexports.entries()) {
11146
9926
  const reexported = reexports.getImport();
11147
- callback.call(thisArg, reexported?.get(reexports.local), name3, this);
9927
+ callback.call(thisArg, reexported?.get(reexports.local), name2, this);
11148
9928
  }
11149
9929
  this.dependencies.forEach((dep) => {
11150
9930
  const d = dep();
@@ -11433,7 +10213,7 @@ function moduleVisitor(visitor, options) {
11433
10213
  return visitors;
11434
10214
  }
11435
10215
  function makeOptionsSchema(additionalProperties) {
11436
- const base2 = {
10216
+ const base3 = {
11437
10217
  type: "object",
11438
10218
  properties: {
11439
10219
  commonjs: { type: "boolean" },
@@ -11449,10 +10229,10 @@ function makeOptionsSchema(additionalProperties) {
11449
10229
  };
11450
10230
  if (additionalProperties) {
11451
10231
  for (const key in additionalProperties) {
11452
- base2.properties[key] = additionalProperties[key];
10232
+ base3.properties[key] = additionalProperties[key];
11453
10233
  }
11454
10234
  }
11455
- return base2;
10235
+ return base3;
11456
10236
  }
11457
10237
  makeOptionsSchema();
11458
10238
 
@@ -11934,12 +10714,12 @@ var export_default = createRule3({
11934
10714
  defaultOptions: [],
11935
10715
  create(context) {
11936
10716
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
11937
- function addNamed(name3, node2, parent, isType) {
10717
+ function addNamed(name2, node2, parent, isType) {
11938
10718
  if (!namespace.has(parent)) {
11939
10719
  namespace.set(parent, /* @__PURE__ */ new Map());
11940
10720
  }
11941
10721
  const named = namespace.get(parent);
11942
- const key = isType ? `${tsTypePrefix}${name3}` : name3;
10722
+ const key = isType ? `${tsTypePrefix}${name2}` : name2;
11943
10723
  let nodes = named.get(key);
11944
10724
  if (nodes == null) {
11945
10725
  nodes = /* @__PURE__ */ new Set();
@@ -11995,10 +10775,10 @@ var export_default = createRule3({
11995
10775
  }
11996
10776
  const parent = getParent(node2);
11997
10777
  let any2 = false;
11998
- remoteExports.$forEach((_, name3) => {
11999
- if (name3 !== "default") {
10778
+ remoteExports.$forEach((_, name2) => {
10779
+ if (name2 !== "default") {
12000
10780
  any2 = true;
12001
- addNamed(name3, node2, parent);
10781
+ addNamed(name2, node2, parent);
12002
10782
  }
12003
10783
  });
12004
10784
  if (!any2) {
@@ -12011,7 +10791,7 @@ var export_default = createRule3({
12011
10791
  },
12012
10792
  "Program:exit"() {
12013
10793
  for (const [, named] of namespace) {
12014
- for (const [name3, nodes] of named) {
10794
+ for (const [name2, nodes] of named) {
12015
10795
  if (nodes.size === 0) {
12016
10796
  continue;
12017
10797
  }
@@ -12026,7 +10806,7 @@ var export_default = createRule3({
12026
10806
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
12027
10807
  continue;
12028
10808
  }
12029
- if (name3 === "default") {
10809
+ if (name2 === "default") {
12030
10810
  context.report({
12031
10811
  node: node2,
12032
10812
  messageId: "multiDefault"
@@ -12036,7 +10816,7 @@ var export_default = createRule3({
12036
10816
  node: node2,
12037
10817
  messageId: "multiNamed",
12038
10818
  data: {
12039
- name: name3.replace(tsTypePrefix, "")
10819
+ name: name2.replace(tsTypePrefix, "")
12040
10820
  }
12041
10821
  });
12042
10822
  }
@@ -14362,8 +13142,8 @@ var named_default = createRule3({
14362
13142
  continue;
14363
13143
  }
14364
13144
  const imNode = im[key];
14365
- const name3 = imNode.name || imNode.value;
14366
- const deepLookup = imports2.hasDeep(name3);
13145
+ const name2 = imNode.name || imNode.value;
13146
+ const deepLookup = imports2.hasDeep(name2);
14367
13147
  if (!deepLookup.found) {
14368
13148
  if (deepLookup.path.length > 1) {
14369
13149
  const deepPath = deepLookup.path.map((i) => path16__default.default.relative(path16__default.default.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -14371,7 +13151,7 @@ var named_default = createRule3({
14371
13151
  node: imNode,
14372
13152
  messageId: "notFoundDeep",
14373
13153
  data: {
14374
- name: name3,
13154
+ name: name2,
14375
13155
  deepPath
14376
13156
  }
14377
13157
  });
@@ -14380,7 +13160,7 @@ var named_default = createRule3({
14380
13160
  node: imNode,
14381
13161
  messageId: "notFound",
14382
13162
  data: {
14383
- name: name3,
13163
+ name: name2,
14384
13164
  path: node2.source.value
14385
13165
  }
14386
13166
  });
@@ -15262,7 +14042,7 @@ var no_cycle_default = createRule3({
15262
14042
  }
15263
14043
  const options = context.options[0] || {};
15264
14044
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
15265
- const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve3(name3, context), context) : () => false;
14045
+ const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve3(name2, context), context) : () => false;
15266
14046
  return {
15267
14047
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
15268
14048
  if (ignoreModule(sourceNode.value)) {
@@ -16092,8 +14872,8 @@ function getDependencies(context, packageDir) {
16092
14872
  }
16093
14873
  }
16094
14874
  }
16095
- function getModuleOriginalName(name3) {
16096
- const [first, second] = name3.split("/");
14875
+ function getModuleOriginalName(name2) {
14876
+ const [first, second] = name2.split("/");
16097
14877
  return first.startsWith("@") ? `${first}/${second}` : first;
16098
14878
  }
16099
14879
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -16120,19 +14900,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
16120
14900
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
16121
14901
  }), newDeclarationStatus);
16122
14902
  }
16123
- function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
14903
+ function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
16124
14904
  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")))) {
16125
14905
  return;
16126
14906
  }
16127
- const typeOfImport = importType(name3, context);
14907
+ const typeOfImport = importType(name2, context);
16128
14908
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
16129
14909
  return;
16130
14910
  }
16131
- const resolved = resolve3(name3, context);
14911
+ const resolved = resolve3(name2, context);
16132
14912
  if (!resolved) {
16133
14913
  return;
16134
14914
  }
16135
- const importPackageName = getModuleOriginalName(name3);
14915
+ const importPackageName = getModuleOriginalName(name2);
16136
14916
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
16137
14917
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
16138
14918
  return;
@@ -16467,9 +15247,9 @@ var no_mutable_exports_default = createRule3({
16467
15247
  });
16468
15248
  }
16469
15249
  }
16470
- function checkDeclarationsInScope({ variables }, name3) {
15250
+ function checkDeclarationsInScope({ variables }, name2) {
16471
15251
  for (const variable of variables) {
16472
- if (variable.name === name3) {
15252
+ if (variable.name === name2) {
16473
15253
  for (const def of variable.defs) {
16474
15254
  if (def.type === "Variable" && def.parent) {
16475
15255
  checkDeclaration(def.parent);
@@ -16821,21 +15601,21 @@ function getVariableNamesInScope(scopeManager, node2) {
16821
15601
  }
16822
15602
  function generateLocalNames(names, nameConflicts, namespaceName) {
16823
15603
  const localNames = {};
16824
- for (const name3 of names) {
15604
+ for (const name2 of names) {
16825
15605
  let localName;
16826
- if (!nameConflicts[name3].has(name3)) {
16827
- localName = name3;
16828
- } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
15606
+ if (!nameConflicts[name2].has(name2)) {
15607
+ localName = name2;
15608
+ } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
16829
15609
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
16830
- if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
16831
- localName = `${namespaceName}_${name3}_${i}`;
15610
+ if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
15611
+ localName = `${namespaceName}_${name2}_${i}`;
16832
15612
  break;
16833
15613
  }
16834
15614
  }
16835
15615
  } else {
16836
- localName = `${namespaceName}_${name3}`;
15616
+ localName = `${namespaceName}_${name2}`;
16837
15617
  }
16838
- localNames[name3] = localName;
15618
+ localNames[name2] = localName;
16839
15619
  }
16840
15620
  return localNames;
16841
15621
  }
@@ -18042,8 +16822,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18042
16822
  }
18043
16823
  }
18044
16824
  }
18045
- forEachDeclarationIdentifier(s.declaration, (name3) => {
18046
- newExportIdentifiers.add(name3);
16825
+ forEachDeclarationIdentifier(s.declaration, (name2) => {
16826
+ newExportIdentifiers.add(name2);
18047
16827
  });
18048
16828
  }
18049
16829
  }
@@ -18118,11 +16898,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18118
16898
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
18119
16899
  resolvedPath = resolve3(astNode.source.raw.replaceAll(/('|")/g, ""), context);
18120
16900
  for (const specifier of astNode.specifiers) {
18121
- const name3 = getValue(specifier.local);
18122
- if (name3 === DEFAULT) {
16901
+ const name2 = getValue(specifier.local);
16902
+ if (name2 === DEFAULT) {
18123
16903
  newDefaultImports.add(resolvedPath);
18124
16904
  } else {
18125
- newImports.set(name3, resolvedPath);
16905
+ newImports.set(name2, resolvedPath);
18126
16906
  }
18127
16907
  }
18128
16908
  }
@@ -18320,8 +17100,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18320
17100
  for (const specifier of node2.specifiers) {
18321
17101
  checkUsage(specifier, getValue(specifier.exported), false);
18322
17102
  }
18323
- forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
18324
- checkUsage(node2, name3, isTypeExport);
17103
+ forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
17104
+ checkUsage(node2, name2, isTypeExport);
18325
17105
  });
18326
17106
  }
18327
17107
  };
@@ -19339,11 +18119,11 @@ var order_default = createRule3({
19339
18119
  return {
19340
18120
  ImportDeclaration(node2) {
19341
18121
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
19342
- const name3 = node2.source.value;
18122
+ const name2 = node2.source.value;
19343
18123
  registerNode(context, {
19344
18124
  node: node2,
19345
- value: name3,
19346
- displayName: name3,
18125
+ value: name2,
18126
+ displayName: name2,
19347
18127
  type: "import"
19348
18128
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
19349
18129
  if (named.import) {
@@ -19465,11 +18245,11 @@ var order_default = createRule3({
19465
18245
  } else {
19466
18246
  const nameParts = getNamedCJSExports(context, node2.left);
19467
18247
  if (nameParts && nameParts.length > 0) {
19468
- const name3 = nameParts.join(".");
18248
+ const name2 = nameParts.join(".");
19469
18249
  getBlockExports(node2.parent.parent).push({
19470
18250
  node: node2,
19471
- value: name3,
19472
- displayName: name3,
18251
+ value: name2,
18252
+ displayName: name2,
19473
18253
  type: "export",
19474
18254
  rank: 0
19475
18255
  });
@@ -19831,7 +18611,7 @@ var getImportSource;
19831
18611
  var isAllSameSubmodule;
19832
18612
  var prefer_zod_namespace_default;
19833
18613
  var init_prefer_zod_namespace = __esm2({ "src/rules/prefer-zod-namespace.ts"() {
19834
- createRule4 = utils.ESLintUtils.RuleCreator((name3) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name3}.md`);
18614
+ createRule4 = utils.ESLintUtils.RuleCreator((name2) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name2}.md`);
19835
18615
  getImportSource = (importedName, originalSource) => {
19836
18616
  return importedName === "core" && originalSource === "zod/v4" ? `${originalSource}/${importedName}` : originalSource;
19837
18617
  };
@@ -21488,7 +20268,7 @@ async function pnpm(options = {}) {
21488
20268
  } = options;
21489
20269
  const workspaceRoot = findWorkspaceRoot2();
21490
20270
  await ensurePackages(["@storm-software/eslint-plugin-pnpm", "jsonc-eslint-parser", "yaml-eslint-parser"]);
21491
- const [plugin9, parserJsonc3, parserYaml2] = await Promise.all([
20271
+ const [plugin8, parserJsonc3, parserYaml2] = await Promise.all([
21492
20272
  interopDefault(Promise.resolve().then(() => (init_src2(), src_exports2))),
21493
20273
  interopDefault(import('jsonc-eslint-parser')),
21494
20274
  interopDefault(import('yaml-eslint-parser'))
@@ -21536,7 +20316,7 @@ async function pnpm(options = {}) {
21536
20316
  {
21537
20317
  name: "storm/pnpm/setup",
21538
20318
  plugins: {
21539
- pnpm: plugin9
20319
+ pnpm: plugin8
21540
20320
  }
21541
20321
  },
21542
20322
  {
@@ -21844,12 +20624,12 @@ async function reactNative(options = {}) {
21844
20624
  init_cjs_shims();
21845
20625
  async function regexp(options = {}) {
21846
20626
  const config7 = eslintPluginRegexp.configs["flat/recommended"];
21847
- const rules7 = {
20627
+ const rules6 = {
21848
20628
  ...config7.rules
21849
20629
  };
21850
20630
  if (options.level === "warn") {
21851
- for (const key in rules7) {
21852
- if (rules7[key] === "error") rules7[key] = "warn";
20631
+ for (const key in rules6) {
20632
+ if (rules6[key] === "error") rules6[key] = "warn";
21853
20633
  }
21854
20634
  }
21855
20635
  return [
@@ -21857,7 +20637,7 @@ async function regexp(options = {}) {
21857
20637
  ...config7,
21858
20638
  name: "storm/regexp/rules",
21859
20639
  rules: {
21860
- ...rules7,
20640
+ ...rules6,
21861
20641
  "regexp/no-unused-capturing-group": [
21862
20642
  "error",
21863
20643
  {
@@ -22180,10 +20960,10 @@ async function storybook(options = {}) {
22180
20960
  // src/configs/test.ts
22181
20961
  init_cjs_shims();
22182
20962
  init_globs();
22183
- var plugin7;
20963
+ var plugin6;
22184
20964
  async function test(options = {}) {
22185
20965
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
22186
- plugin7 = plugin7 || {
20966
+ plugin6 = plugin6 || {
22187
20967
  ...default4__default.default,
22188
20968
  rules: {
22189
20969
  ...default4__default.default.rules,
@@ -22195,7 +20975,7 @@ async function test(options = {}) {
22195
20975
  {
22196
20976
  name: "storm/test/setup",
22197
20977
  plugins: {
22198
- test: plugin7
20978
+ test: plugin6
22199
20979
  }
22200
20980
  },
22201
20981
  {
@@ -22825,7 +21605,7 @@ function getOverrides(options, key) {
22825
21605
  }
22826
21606
  function preset(options, ...userConfigs) {
22827
21607
  const {
22828
- name: name3,
21608
+ name: name2,
22829
21609
  globals = {},
22830
21610
  banner: enableBanner = true,
22831
21611
  astro: enableAstro = false,
@@ -22865,10 +21645,10 @@ function preset(options, ...userConfigs) {
22865
21645
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
22866
21646
  stylisticOptions.jsx = enableJsx;
22867
21647
  }
22868
- const configs8 = [];
21648
+ const configs7 = [];
22869
21649
  if (enableGitignore) {
22870
21650
  if (typeof enableGitignore !== "boolean") {
22871
- configs8.push(
21651
+ configs7.push(
22872
21652
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22873
21653
  r({
22874
21654
  name: "storm/gitignore",
@@ -22877,7 +21657,7 @@ function preset(options, ...userConfigs) {
22877
21657
  ])
22878
21658
  );
22879
21659
  } else {
22880
- configs8.push(
21660
+ configs7.push(
22881
21661
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22882
21662
  r({
22883
21663
  name: "storm/gitignore",
@@ -22887,7 +21667,7 @@ function preset(options, ...userConfigs) {
22887
21667
  );
22888
21668
  }
22889
21669
  }
22890
- configs8.push(
21670
+ configs7.push(
22891
21671
  ignores(options.ignores),
22892
21672
  javascript({
22893
21673
  globals,
@@ -22912,7 +21692,7 @@ function preset(options, ...userConfigs) {
22912
21692
  }
22913
21693
  }
22914
21694
  if (enableTypeScript) {
22915
- configs8.push(
21695
+ configs7.push(
22916
21696
  typescript({
22917
21697
  ...typescriptOptions,
22918
21698
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -22923,25 +21703,25 @@ function preset(options, ...userConfigs) {
22923
21703
  );
22924
21704
  }
22925
21705
  if (enableBanner) {
22926
- configs8.push(
21706
+ configs7.push(
22927
21707
  banner({
22928
21708
  ...resolveSubOptions(options, "banner"),
22929
- name: name3,
21709
+ name: name2,
22930
21710
  overrides: getOverrides(options, "banner")
22931
21711
  })
22932
21712
  );
22933
21713
  }
22934
21714
  if (!stylisticOptions) {
22935
- configs8.push(prettier());
21715
+ configs7.push(prettier());
22936
21716
  }
22937
21717
  if (enableCSpell) {
22938
- configs8.push(cspell(resolveSubOptions(options, "cspell")));
21718
+ configs7.push(cspell(resolveSubOptions(options, "cspell")));
22939
21719
  }
22940
21720
  if (enableUnicorn) {
22941
- configs8.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
21721
+ configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
22942
21722
  }
22943
21723
  if (enableJSDoc) {
22944
- configs8.push(
21724
+ configs7.push(
22945
21725
  jsdoc({
22946
21726
  ...resolveSubOptions(options, "jsdoc"),
22947
21727
  overrides: getOverrides(options, "jsdoc")
@@ -22949,7 +21729,7 @@ function preset(options, ...userConfigs) {
22949
21729
  );
22950
21730
  }
22951
21731
  if (enableTSDoc) {
22952
- configs8.push(
21732
+ configs7.push(
22953
21733
  tsdoc({
22954
21734
  ...resolveSubOptions(options, "tsdoc"),
22955
21735
  overrides: getOverrides(options, "tsdoc")
@@ -22957,17 +21737,17 @@ function preset(options, ...userConfigs) {
22957
21737
  );
22958
21738
  }
22959
21739
  if (enableJsx) {
22960
- configs8.push(jsx());
21740
+ configs7.push(jsx());
22961
21741
  }
22962
21742
  if (enableZod) {
22963
- configs8.push(
21743
+ configs7.push(
22964
21744
  zod({
22965
21745
  overrides: getOverrides(options, "zod")
22966
21746
  })
22967
21747
  );
22968
21748
  }
22969
21749
  if (stylisticOptions) {
22970
- configs8.push(
21750
+ configs7.push(
22971
21751
  stylistic({
22972
21752
  ...stylisticOptions,
22973
21753
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -22977,10 +21757,10 @@ function preset(options, ...userConfigs) {
22977
21757
  );
22978
21758
  }
22979
21759
  if (enableRegexp) {
22980
- configs8.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
21760
+ configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
22981
21761
  }
22982
21762
  if (enableTest) {
22983
- configs8.push(
21763
+ configs7.push(
22984
21764
  test({
22985
21765
  isInEditor,
22986
21766
  overrides: getOverrides(options, "test")
@@ -22988,10 +21768,10 @@ function preset(options, ...userConfigs) {
22988
21768
  );
22989
21769
  }
22990
21770
  if (enableGraphQL) {
22991
- configs8.push(graphql(resolveSubOptions(options, "graphql")));
21771
+ configs7.push(graphql(resolveSubOptions(options, "graphql")));
22992
21772
  }
22993
21773
  if (enableReact) {
22994
- configs8.push(
21774
+ configs7.push(
22995
21775
  react({
22996
21776
  ...typescriptOptions,
22997
21777
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -23001,7 +21781,7 @@ function preset(options, ...userConfigs) {
23001
21781
  );
23002
21782
  }
23003
21783
  if (enableReactNative) {
23004
- configs8.push(
21784
+ configs7.push(
23005
21785
  reactNative({
23006
21786
  ...resolveSubOptions(options, "react-native"),
23007
21787
  overrides: getOverrides(options, "react-native")
@@ -23009,13 +21789,13 @@ function preset(options, ...userConfigs) {
23009
21789
  );
23010
21790
  }
23011
21791
  if (enableNext) {
23012
- configs8.push(next(resolveSubOptions(options, "next")));
21792
+ configs7.push(next(resolveSubOptions(options, "next")));
23013
21793
  }
23014
21794
  if (enableStorybook) {
23015
- configs8.push(storybook(resolveSubOptions(options, "storybook")));
21795
+ configs7.push(storybook(resolveSubOptions(options, "storybook")));
23016
21796
  }
23017
21797
  if (enableUnoCSS) {
23018
- configs8.push(
21798
+ configs7.push(
23019
21799
  unocss({
23020
21800
  ...resolveSubOptions(options, "unocss"),
23021
21801
  overrides: getOverrides(options, "unocss")
@@ -23023,7 +21803,7 @@ function preset(options, ...userConfigs) {
23023
21803
  );
23024
21804
  }
23025
21805
  if (enableAstro) {
23026
- configs8.push(
21806
+ configs7.push(
23027
21807
  astro({
23028
21808
  overrides: getOverrides(options, "astro"),
23029
21809
  stylistic: stylisticOptions
@@ -23031,7 +21811,7 @@ function preset(options, ...userConfigs) {
23031
21811
  );
23032
21812
  }
23033
21813
  if (enablePnpm ?? packageManager !== "bun") {
23034
- configs8.push(
21814
+ configs7.push(
23035
21815
  pnpm({
23036
21816
  overrides: getOverrides(options, "pnpm"),
23037
21817
  ignore: typeof enablePnpm !== "boolean" ? enablePnpm?.ignore : void 0
@@ -23039,13 +21819,13 @@ function preset(options, ...userConfigs) {
23039
21819
  );
23040
21820
  }
23041
21821
  if (enableBun ?? packageManager === "bun") {
23042
- configs8.push(bun({
21822
+ configs7.push(bun({
23043
21823
  overrides: getOverrides(options, "bun"),
23044
21824
  ignore: typeof enableBun !== "boolean" ? enableBun?.ignore : void 0
23045
21825
  }));
23046
21826
  }
23047
21827
  if (options.jsonc ?? true) {
23048
- configs8.push(
21828
+ configs7.push(
23049
21829
  jsonc({
23050
21830
  overrides: getOverrides(options, "jsonc"),
23051
21831
  stylistic: stylisticOptions
@@ -23053,11 +21833,11 @@ function preset(options, ...userConfigs) {
23053
21833
  sortTsconfig()
23054
21834
  );
23055
21835
  if (stylisticOptions) {
23056
- configs8.push(sortPackageJson());
21836
+ configs7.push(sortPackageJson());
23057
21837
  }
23058
21838
  }
23059
21839
  if (options.yaml ?? true) {
23060
- configs8.push(
21840
+ configs7.push(
23061
21841
  yaml({
23062
21842
  overrides: getOverrides(options, "yaml"),
23063
21843
  stylistic: stylisticOptions
@@ -23065,7 +21845,7 @@ function preset(options, ...userConfigs) {
23065
21845
  );
23066
21846
  }
23067
21847
  if (options.toml ?? true) {
23068
- configs8.push(
21848
+ configs7.push(
23069
21849
  toml({
23070
21850
  overrides: getOverrides(options, "toml"),
23071
21851
  stylistic: stylisticOptions
@@ -23073,28 +21853,28 @@ function preset(options, ...userConfigs) {
23073
21853
  );
23074
21854
  }
23075
21855
  if (options.markdown === true) {
23076
- configs8.push(
21856
+ configs7.push(
23077
21857
  markdown({
23078
21858
  overrides: getOverrides(options, "markdown")
23079
21859
  })
23080
21860
  );
23081
21861
  }
23082
21862
  if (enableMdx) {
23083
- configs8.push(
21863
+ configs7.push(
23084
21864
  mdx({
23085
21865
  overrides: getOverrides(options, "mdx")
23086
21866
  })
23087
21867
  );
23088
21868
  }
23089
21869
  if (options.formatters) {
23090
- configs8.push(
21870
+ configs7.push(
23091
21871
  formatters(
23092
21872
  options.formatters,
23093
21873
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
23094
21874
  )
23095
21875
  );
23096
21876
  }
23097
- configs8.push(disables());
21877
+ configs7.push(disables());
23098
21878
  if ("files" in options) {
23099
21879
  throw new Error(
23100
21880
  '[@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.'
@@ -23106,10 +21886,10 @@ function preset(options, ...userConfigs) {
23106
21886
  }
23107
21887
  return acc;
23108
21888
  }, {});
23109
- if (Object.keys(fusedConfig).length) configs8.push([fusedConfig]);
21889
+ if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
23110
21890
  let composer = new eslintFlatConfigUtils.FlatConfigComposer();
23111
21891
  composer = composer.append(
23112
- ...configs8,
21892
+ ...configs7,
23113
21893
  ...userConfigs
23114
21894
  );
23115
21895
  if (autoRenamePlugins) {