@storm-software/eslint 0.170.150 → 0.170.151

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preset.cjs CHANGED
@@ -9,8 +9,9 @@ var findUpSimple = require('find-up-simple');
9
9
  var pathe = require('pathe');
10
10
  var tinyglobby = require('tinyglobby');
11
11
  var parserJsonc = require('jsonc-eslint-parser');
12
- var yamlParser = require('yaml-eslint-parser');
13
- var pnpmWorkspaceYaml = require('pnpm-workspace-yaml');
12
+ var base = require('eslint-plugin-pnpm');
13
+ var parserYaml = require('yaml-eslint-parser');
14
+ var base2 = require('eslint-plugin-tsdoc');
14
15
  var eslintFlatConfigUtils = require('eslint-flat-config-utils');
15
16
  var localPkg = require('local-pkg');
16
17
  var url$1 = require('url');
@@ -73,8 +74,10 @@ function _interopNamespace(e) {
73
74
  var defu__default = /*#__PURE__*/_interopDefault(defu);
74
75
  var fs__default = /*#__PURE__*/_interopDefault(fs);
75
76
  var process2__default = /*#__PURE__*/_interopDefault(process2);
76
- var parserJsonc__namespace = /*#__PURE__*/_interopNamespace(parserJsonc);
77
- var yamlParser__namespace = /*#__PURE__*/_interopNamespace(yamlParser);
77
+ var parserJsonc__default = /*#__PURE__*/_interopDefault(parserJsonc);
78
+ var base__default = /*#__PURE__*/_interopDefault(base);
79
+ var parserYaml__default = /*#__PURE__*/_interopDefault(parserYaml);
80
+ var base2__default = /*#__PURE__*/_interopDefault(base2);
78
81
  var chalk__default = /*#__PURE__*/_interopDefault(chalk);
79
82
  var path16__default = /*#__PURE__*/_interopDefault(path16);
80
83
  var cspellConfig__default = /*#__PURE__*/_interopDefault(cspellConfig);
@@ -117,8 +120,8 @@ var __commonJS = (cb, mod) => function __require2() {
117
120
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
118
121
  };
119
122
  var __export = (target, all) => {
120
- for (var name3 in all)
121
- __defProp(target, name3, { get: all[name3], enumerable: true });
123
+ for (var name2 in all)
124
+ __defProp(target, name2, { get: all[name2], enumerable: true });
122
125
  };
123
126
  var __copyProps = (to, from, except, desc) => {
124
127
  if (from && typeof from === "object" || typeof from === "function") {
@@ -321,10 +324,16 @@ 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.4",
325
328
  private: false,
326
329
  description: "An ESLint Plugin that enforces Bun catalog rules in Storm Software projects.",
327
- keywords: ["eslint", "eslint-plugin", "storm-software", "bun", "catalog"],
330
+ keywords: [
331
+ "eslint",
332
+ "eslint-plugin",
333
+ "storm-software",
334
+ "bun",
335
+ "catalog"
336
+ ],
328
337
  homepage: "https://stormsoftware.com",
329
338
  bugs: {
330
339
  url: "https://stormsoftware.com/support",
@@ -387,7 +396,9 @@ var init_package = __esm({
387
396
  },
388
397
  "./package.json": "./package.json"
389
398
  },
390
- files: ["dist"],
399
+ files: [
400
+ "dist"
401
+ ],
391
402
  dependencies: {
392
403
  "@storm-software/package-constants": "workspace:*",
393
404
  "@typescript-eslint/utils": "catalog:",
@@ -427,7 +438,7 @@ var init_package = __esm({
427
438
  });
428
439
  function RuleCreator2(urlCreator) {
429
440
  return function createNamedRule({
430
- name: name3,
441
+ name: name2,
431
442
  meta: meta3,
432
443
  ...rule
433
444
  }) {
@@ -436,7 +447,7 @@ function RuleCreator2(urlCreator) {
436
447
  ...meta3,
437
448
  docs: {
438
449
  ...meta3.docs,
439
- url: urlCreator(name3)
450
+ url: urlCreator(name2)
440
451
  }
441
452
  },
442
453
  ...rule
@@ -480,8 +491,8 @@ function detectCatalogRoot(data) {
480
491
  }
481
492
  return isWorkspaceObject(data.workspaces) ? "workspaces" : "top";
482
493
  }
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, "_");
494
+ function normalizeCatalogName(name2) {
495
+ return name2.replace(/\^/g, "h").replace(/~/g, "t").replace(/\./g, "_").replace(/</g, "l").replace(/>/g, "g").replace(/=/g, "e").replace(/\*/g, "s").replace(/@/g, "a").replace(/\|/g, "p").replace(/&/g, "n").replace(/-/g, "m").replace(/\+/g, "u").replace(/\s/g, "_");
485
496
  }
486
497
  function sortObjectKeys(input) {
487
498
  return Object.fromEntries(
@@ -610,9 +621,9 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
610
621
  const found = [];
611
622
  const { catalog, catalogs } = getCatalogData();
612
623
  if (catalogs) {
613
- for (const name3 of Object.keys(catalogs)) {
614
- if (catalogs[name3]?.[packageName]) {
615
- found.push(name3);
624
+ for (const name2 of Object.keys(catalogs)) {
625
+ if (catalogs[name2]?.[packageName]) {
626
+ found.push(name2);
616
627
  }
617
628
  }
618
629
  }
@@ -621,7 +632,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
621
632
  }
622
633
  return found;
623
634
  };
624
- const workspace3 = {
635
+ const workspace2 = {
625
636
  filepath: current,
626
637
  setContent(newContent) {
627
638
  content = newContent;
@@ -646,7 +657,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
646
657
  const clone2 = [...queue];
647
658
  queue.length = 0;
648
659
  for (const queued of clone2) {
649
- queued(workspace3);
660
+ queued(workspace2);
650
661
  }
651
662
  if (hasChanged) {
652
663
  write();
@@ -678,7 +689,7 @@ function readBunWorkspace(cwd2 = process2__default.default.cwd()) {
678
689
  return [];
679
690
  }
680
691
  };
681
- return workspace3;
692
+ return workspace2;
682
693
  }
683
694
  function getBunWorkspace(cwd2 = process2__default.default.cwd()) {
684
695
  if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
@@ -874,7 +885,7 @@ var init_json_enforce_catalog = __esm({
874
885
  context,
875
886
  fields
876
887
  )) {
877
- if (ignore2?.some((name3) => name3 === packageName)) {
888
+ if (ignore2?.some((name2) => name2 === packageName)) {
878
889
  continue;
879
890
  }
880
891
  if (specifier.startsWith("catalog:")) {
@@ -883,14 +894,14 @@ var init_json_enforce_catalog = __esm({
883
894
  if (allowedProtocols?.some((protocol) => specifier.startsWith(protocol))) {
884
895
  continue;
885
896
  }
886
- let workspace3;
897
+ let workspace2;
887
898
  try {
888
- workspace3 = getBunWorkspace();
899
+ workspace2 = getBunWorkspace();
889
900
  } catch {
890
901
  return {};
891
902
  }
892
- let targetCatalog = reuseExistingCatalog ? workspace3.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
893
- const resolvedConflicts = workspace3.hasSpecifierConflicts(
903
+ let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
904
+ const resolvedConflicts = workspace2.hasSpecifierConflicts(
894
905
  targetCatalog,
895
906
  packageName,
896
907
  specifier
@@ -910,8 +921,8 @@ var init_json_enforce_catalog = __esm({
910
921
  packageName
911
922
  },
912
923
  fix: shouldFix ? (fixer) => {
913
- workspace3.queueChange(() => {
914
- workspace3.setPackage(targetCatalog, packageName, specifier);
924
+ workspace2.queueChange(() => {
925
+ workspace2.setPackage(targetCatalog, packageName, specifier);
915
926
  });
916
927
  return fixer.replaceText(
917
928
  property.value,
@@ -968,16 +979,16 @@ var init_json_no_duplicate_catalog_item = __esm({
968
979
  if (!isRootWorkspacePackageJson(context.filename)) {
969
980
  return {};
970
981
  }
971
- let workspace3;
982
+ let workspace2;
972
983
  try {
973
- workspace3 = getBunWorkspace();
984
+ workspace2 = getBunWorkspace();
974
985
  } catch {
975
986
  return {};
976
987
  }
977
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
988
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
978
989
  return {};
979
990
  }
980
- workspace3.setContent(context.sourceCode.text);
991
+ workspace2.setContent(context.sourceCode.text);
981
992
  const root = getPackageJsonRootNode(context);
982
993
  if (!root) {
983
994
  return {};
@@ -1070,16 +1081,16 @@ var init_json_no_unused_catalog_item = __esm({
1070
1081
  if (!isRootWorkspacePackageJson(context.filename)) {
1071
1082
  return {};
1072
1083
  }
1073
- let workspace3;
1084
+ let workspace2;
1074
1085
  try {
1075
- workspace3 = getBunWorkspace();
1086
+ workspace2 = getBunWorkspace();
1076
1087
  } catch {
1077
1088
  return {};
1078
1089
  }
1079
- if (workspace3.hasChanged() || workspace3.hasQueue()) {
1090
+ if (workspace2.hasChanged() || workspace2.hasQueue()) {
1080
1091
  return {};
1081
1092
  }
1082
- workspace3.setContent(context.sourceCode.text);
1093
+ workspace2.setContent(context.sourceCode.text);
1083
1094
  const root = getPackageJsonRootNode(context);
1084
1095
  if (!root) {
1085
1096
  return {};
@@ -1111,7 +1122,7 @@ var init_json_no_unused_catalog_item = __esm({
1111
1122
  if (entries.size === 0) {
1112
1123
  return {};
1113
1124
  }
1114
- const packages = collectWorkspacePackageJsonPaths(workspace3);
1125
+ const packages = collectWorkspacePackageJsonPaths(workspace2);
1115
1126
  for (const path23 of packages) {
1116
1127
  const pkg = JSON.parse(fs__default.default.readFileSync(path23, "utf8"));
1117
1128
  for (const field of FIELDS) {
@@ -1119,12 +1130,12 @@ var init_json_no_unused_catalog_item = __esm({
1119
1130
  if (!map) {
1120
1131
  continue;
1121
1132
  }
1122
- for (const [name3, value] of Object.entries(map)) {
1133
+ for (const [name2, value] of Object.entries(map)) {
1123
1134
  if (typeof value !== "string" || !value.startsWith("catalog:")) {
1124
1135
  continue;
1125
1136
  }
1126
1137
  const catalogName = value.slice(8) || "default";
1127
- entries.delete(`${name3}:${catalogName}`);
1138
+ entries.delete(`${name2}:${catalogName}`);
1128
1139
  }
1129
1140
  }
1130
1141
  }
@@ -1217,14 +1228,14 @@ var init_json_valid_catalog = __esm({
1217
1228
  if (!specifier.startsWith("catalog:")) {
1218
1229
  continue;
1219
1230
  }
1220
- let workspace3;
1231
+ let workspace2;
1221
1232
  try {
1222
- workspace3 = getBunWorkspace();
1233
+ workspace2 = getBunWorkspace();
1223
1234
  } catch {
1224
1235
  return {};
1225
1236
  }
1226
1237
  const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
1227
- const existingCatalogs = workspace3.getPackageCatalogs(packageName);
1238
+ const existingCatalogs = workspace2.getPackageCatalogs(packageName);
1228
1239
  if (!existingCatalogs.includes(currentCatalog)) {
1229
1240
  context.report({
1230
1241
  node: property.value,
@@ -1237,8 +1248,8 @@ var init_json_valid_catalog = __esm({
1237
1248
  let catalog = existingCatalogs[0];
1238
1249
  if (!catalog && autoInsert) {
1239
1250
  catalog = currentCatalog;
1240
- workspace3.queueChange(() => {
1241
- workspace3.setPackage(
1251
+ workspace2.queueChange(() => {
1252
+ workspace2.setPackage(
1242
1253
  catalog,
1243
1254
  packageName,
1244
1255
  autoInsertDefaultSpecifier
@@ -1264,781 +1275,99 @@ var plugin2;
1264
1275
  var init_plugin = __esm({
1265
1276
  "../eslint-plugin-bun/src/plugin.ts"() {
1266
1277
  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 = {
1278
+ init_package();
1279
+ init_json_enforce_catalog();
1280
+ init_json_no_duplicate_catalog_item();
1281
+ init_json_no_unused_catalog_item();
1282
+ init_json_valid_catalog();
1283
+ plugin2 = {
1990
1284
  meta: {
1991
- name: name2,
1992
- version: version3
1285
+ name: "bun",
1286
+ version: package_default2.version
1993
1287
  },
1994
- rules: rules4
1288
+ rules: {
1289
+ "json-enforce-catalog": json_enforce_catalog_default,
1290
+ "json-valid-catalog": json_valid_catalog_default,
1291
+ "json-no-unused-catalog-item": json_no_unused_catalog_item_default,
1292
+ "json-no-duplicate-catalog-item": json_no_duplicate_catalog_item_default
1293
+ }
1995
1294
  };
1996
- configsJson = [
1295
+ }
1296
+ });
1297
+ var config3, recommended_default2;
1298
+ var init_recommended = __esm({
1299
+ "../eslint-plugin-bun/src/configs/recommended.ts"() {
1300
+ init_cjs_shims();
1301
+ init_globs();
1302
+ init_plugin();
1303
+ config3 = [
1997
1304
  {
1998
- name: "pnpm/package.json",
1999
- files: [
2000
- "package.json",
2001
- "**/package.json"
2002
- ],
2003
- languageOptions: {
2004
- parser: parserJsonc__namespace
2005
- },
1305
+ name: "bun/recommended/setup",
2006
1306
  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"
1307
+ bun: plugin2
2013
1308
  }
2014
- }
2015
- ];
2016
- configsYaml = [
1309
+ },
2017
1310
  {
2018
- name: "pnpm/pnpm-workspace-yaml",
2019
- files: ["pnpm-workspace.yaml"],
1311
+ name: "bun/recommended/package-json",
1312
+ ignores: GLOB_EXCLUDE,
1313
+ files: ["package.json", "**/package.json"],
2020
1314
  languageOptions: {
2021
- parser: yamlParser__namespace
2022
- },
2023
- plugins: {
2024
- pnpm: plugin4
1315
+ parser: parserJsonc__default.default
2025
1316
  },
2026
1317
  rules: {
2027
- "pnpm/yaml-no-unused-catalog-item": "error",
2028
- "pnpm/yaml-no-duplicate-catalog-item": "error"
1318
+ "bun/json-enforce-catalog": [
1319
+ "error",
1320
+ {
1321
+ autofix: true,
1322
+ allowedProtocols: ["workspace", "link", "file"],
1323
+ defaultCatalog: "default",
1324
+ reuseExistingCatalog: true,
1325
+ conflicts: "overrides",
1326
+ fields: ["dependencies", "devDependencies"],
1327
+ ignore: ["typescript"]
1328
+ }
1329
+ ],
1330
+ "bun/json-valid-catalog": "error",
1331
+ "bun/json-no-unused-catalog-item": "error",
1332
+ "bun/json-no-duplicate-catalog-item": "error"
2029
1333
  }
2030
1334
  }
2031
1335
  ];
2032
- configs4 = {
2033
- recommended: [
2034
- ...configsJson
2035
- // Yaml support is still experimental
2036
- // ...configsYaml,
2037
- ],
2038
- json: configsJson,
2039
- yaml: configsYaml
1336
+ recommended_default2 = config3;
1337
+ }
1338
+ });
1339
+
1340
+ // ../eslint-plugin-bun/src/configs/index.ts
1341
+ var configs2;
1342
+ var init_configs = __esm({
1343
+ "../eslint-plugin-bun/src/configs/index.ts"() {
1344
+ init_cjs_shims();
1345
+ init_recommended();
1346
+ configs2 = {
1347
+ recommended: recommended_default2
1348
+ };
1349
+ }
1350
+ });
1351
+
1352
+ // ../eslint-plugin-bun/src/index.ts
1353
+ var src_exports = {};
1354
+ __export(src_exports, {
1355
+ configs: () => configs2,
1356
+ default: () => src_default2,
1357
+ rules: () => rules2
1358
+ });
1359
+ var eslintPlugin2, src_default2, rules2;
1360
+ var init_src = __esm({
1361
+ "../eslint-plugin-bun/src/index.ts"() {
1362
+ init_cjs_shims();
1363
+ init_configs();
1364
+ init_plugin();
1365
+ eslintPlugin2 = {
1366
+ ...plugin2,
1367
+ configs: configs2
2040
1368
  };
2041
- plugin4.configs = configs4;
1369
+ src_default2 = eslintPlugin2;
1370
+ rules2 = plugin2.rules;
2042
1371
  }
2043
1372
  });
2044
1373
 
@@ -2048,10 +1377,14 @@ var init_package2 = __esm({
2048
1377
  "../eslint-plugin-pnpm/package.json"() {
2049
1378
  package_default3 = {
2050
1379
  name: "@storm-software/eslint-plugin-pnpm",
2051
- version: "0.0.78",
1380
+ version: "0.0.79",
2052
1381
  private: false,
2053
1382
  description: "An ESLint Plugin that enforces PNPM-related rules in Storm Software projects.",
2054
- keywords: ["eslint", "eslint-plugin", "storm-software"],
1383
+ keywords: [
1384
+ "eslint",
1385
+ "eslint-plugin",
1386
+ "storm-software"
1387
+ ],
2055
1388
  homepage: "https://stormsoftware.com",
2056
1389
  bugs: {
2057
1390
  url: "https://stormsoftware.com/support",
@@ -2097,7 +1430,9 @@ var init_package2 = __esm({
2097
1430
  },
2098
1431
  types: "./dist/index.d.ts",
2099
1432
  typings: "dist/index.d.mts",
2100
- files: ["dist"],
1433
+ files: [
1434
+ "dist"
1435
+ ],
2101
1436
  dependencies: {
2102
1437
  "@eslint/core": "^1.2.1",
2103
1438
  "@storm-software/package-constants": "workspace:*",
@@ -2147,16 +1482,13 @@ var init_package2 = __esm({
2147
1482
  };
2148
1483
  }
2149
1484
  });
2150
-
2151
- // ../eslint-plugin-pnpm/src/plugin.ts
2152
- var plugin5;
1485
+ var plugin4;
2153
1486
  var init_plugin2 = __esm({
2154
1487
  "../eslint-plugin-pnpm/src/plugin.ts"() {
2155
1488
  init_cjs_shims();
2156
- init_dist();
2157
1489
  init_package2();
2158
- plugin5 = {
2159
- ...plugin4,
1490
+ plugin4 = {
1491
+ ...base__default.default,
2160
1492
  meta: {
2161
1493
  name: "pnpm",
2162
1494
  version: package_default3.version
@@ -2174,7 +1506,7 @@ var init_recommended2 = __esm({
2174
1506
  {
2175
1507
  name: "pnpm/recommended/setup",
2176
1508
  plugins: {
2177
- pnpm: plugin5
1509
+ pnpm: plugin4
2178
1510
  }
2179
1511
  },
2180
1512
  {
@@ -2182,7 +1514,7 @@ var init_recommended2 = __esm({
2182
1514
  ignores: GLOB_EXCLUDE,
2183
1515
  files: ["package.json", "**/package.json"],
2184
1516
  languageOptions: {
2185
- parser: parserJsonc__namespace.default
1517
+ parser: parserJsonc__default.default
2186
1518
  },
2187
1519
  rules: {
2188
1520
  "pnpm/json-enforce-catalog": [
@@ -2205,7 +1537,7 @@ var init_recommended2 = __esm({
2205
1537
  ignores: GLOB_EXCLUDE,
2206
1538
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
2207
1539
  languageOptions: {
2208
- parser: yamlParser__namespace.default
1540
+ parser: parserYaml__default.default
2209
1541
  },
2210
1542
  rules: {
2211
1543
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -2218,12 +1550,12 @@ var init_recommended2 = __esm({
2218
1550
  });
2219
1551
 
2220
1552
  // ../eslint-plugin-pnpm/src/configs/index.ts
2221
- var configs5;
1553
+ var configs4;
2222
1554
  var init_configs2 = __esm({
2223
1555
  "../eslint-plugin-pnpm/src/configs/index.ts"() {
2224
1556
  init_cjs_shims();
2225
1557
  init_recommended2();
2226
- configs5 = {
1558
+ configs4 = {
2227
1559
  recommended: recommended_default5
2228
1560
  };
2229
1561
  }
@@ -2232,22 +1564,22 @@ var init_configs2 = __esm({
2232
1564
  // ../eslint-plugin-pnpm/src/index.ts
2233
1565
  var src_exports2 = {};
2234
1566
  __export(src_exports2, {
2235
- configs: () => configs5,
1567
+ configs: () => configs4,
2236
1568
  default: () => src_default3,
2237
- rules: () => rules5
1569
+ rules: () => rules4
2238
1570
  });
2239
- var eslintPlugin3, src_default3, rules5;
1571
+ var eslintPlugin3, src_default3, rules4;
2240
1572
  var init_src2 = __esm({
2241
1573
  "../eslint-plugin-pnpm/src/index.ts"() {
2242
1574
  init_cjs_shims();
2243
1575
  init_configs2();
2244
1576
  init_plugin2();
2245
1577
  eslintPlugin3 = {
2246
- ...plugin5,
2247
- configs: configs5
1578
+ ...plugin4,
1579
+ configs: configs4
2248
1580
  };
2249
1581
  src_default3 = eslintPlugin3;
2250
- rules5 = plugin5.rules;
1582
+ rules4 = plugin4.rules;
2251
1583
  }
2252
1584
  });
2253
1585
 
@@ -2819,9 +2151,9 @@ var require_stylesheet = __commonJS({
2819
2151
  },
2820
2152
  getStyleReferenceFromExpression: function(node2) {
2821
2153
  const result = [];
2822
- const name3 = astHelpers.getObjectName(node2);
2823
- if (name3) {
2824
- result.push(name3);
2154
+ const name2 = astHelpers.getObjectName(node2);
2155
+ if (name2) {
2156
+ result.push(name2);
2825
2157
  }
2826
2158
  const property = astHelpers.getPropertyName(node2);
2827
2159
  if (property) {
@@ -3217,10 +2549,10 @@ var require_split_platform_components = __commonJS({
3217
2549
  return node2.name;
3218
2550
  }
3219
2551
  }
3220
- function hasNodeWithName(nodes, name3) {
2552
+ function hasNodeWithName(nodes, name2) {
3221
2553
  return nodes.some((node2) => {
3222
2554
  const nodeName = getName(node2);
3223
- return nodeName && nodeName.includes(name3);
2555
+ return nodeName && nodeName.includes(name2);
3224
2556
  });
3225
2557
  }
3226
2558
  function reportErrors(components, filename) {
@@ -3302,8 +2634,8 @@ var require_no_raw_text = __commonJS({
3302
2634
  let curNode = parent;
3303
2635
  while (curNode) {
3304
2636
  if (curNode.type === "JSXElement") {
3305
- const name3 = elementName(curNode);
3306
- if (allowedElements.includes(name3)) {
2637
+ const name2 = elementName(curNode);
2638
+ if (allowedElements.includes(name2)) {
3307
2639
  return true;
3308
2640
  }
3309
2641
  }
@@ -3475,10 +2807,10 @@ var require_eslint_plugin_react_native = __commonJS({
3475
2807
  "no-raw-text": require_no_raw_text(),
3476
2808
  "no-single-element-style-arrays": require_no_single_element_style_arrays()
3477
2809
  };
3478
- function configureAsError(rules7) {
2810
+ function configureAsError(rules6) {
3479
2811
  const result = {};
3480
- for (const key in rules7) {
3481
- if (!rules7.hasOwnProperty(key)) {
2812
+ for (const key in rules6) {
2813
+ if (!rules6.hasOwnProperty(key)) {
3482
2814
  continue;
3483
2815
  }
3484
2816
  result["react-native/" + key] = 2;
@@ -3520,550 +2852,20 @@ var require_eslint_plugin_react_native = __commonJS({
3520
2852
  }
3521
2853
  });
3522
2854
 
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
2855
  // ../eslint-plugin-tsdoc/package.json
4058
2856
  var package_default4;
4059
2857
  var init_package3 = __esm({
4060
2858
  "../eslint-plugin-tsdoc/package.json"() {
4061
2859
  package_default4 = {
4062
2860
  name: "@storm-software/eslint-plugin-tsdoc",
4063
- version: "0.0.78",
2861
+ version: "0.0.79",
4064
2862
  private: false,
4065
2863
  description: "An ESLint Plugin that enforces TSDoc comments in Storm Software projects.",
4066
- keywords: ["eslint", "eslint-plugin", "storm-software"],
2864
+ keywords: [
2865
+ "eslint",
2866
+ "eslint-plugin",
2867
+ "storm-software"
2868
+ ],
4067
2869
  homepage: "https://stormsoftware.com",
4068
2870
  bugs: {
4069
2871
  url: "https://stormsoftware.com/support",
@@ -4108,13 +2910,14 @@ var init_package3 = __esm({
4108
2910
  },
4109
2911
  types: "./dist/index.d.ts",
4110
2912
  typings: "dist/index.d.mts",
4111
- files: ["dist"],
2913
+ files: [
2914
+ "dist"
2915
+ ],
4112
2916
  dependencies: {
4113
2917
  "@microsoft/tsdoc": "catalog:",
4114
2918
  "@microsoft/tsdoc-config": "catalog:",
4115
2919
  "@storm-software/package-constants": "workspace:*",
4116
2920
  "@typescript-eslint/utils": "catalog:",
4117
- ajv: "catalog:",
4118
2921
  defu: "catalog:",
4119
2922
  "es-errors": "1.3.0",
4120
2923
  "fast-deep-equal": "3.1.3",
@@ -4164,16 +2967,13 @@ var init_package3 = __esm({
4164
2967
  };
4165
2968
  }
4166
2969
  });
4167
-
4168
- // ../eslint-plugin-tsdoc/src/plugin.ts
4169
- var import_eslint_plugin_tsdoc, plugin8;
2970
+ var plugin7;
4170
2971
  var init_plugin3 = __esm({
4171
2972
  "../eslint-plugin-tsdoc/src/plugin.ts"() {
4172
2973
  init_cjs_shims();
4173
- import_eslint_plugin_tsdoc = __toESM(require_lib());
4174
2974
  init_package3();
4175
- plugin8 = {
4176
- ...import_eslint_plugin_tsdoc.default,
2975
+ plugin7 = {
2976
+ ...base2__default.default,
4177
2977
  meta: {
4178
2978
  name: "tsdoc",
4179
2979
  version: package_default4.version
@@ -4194,7 +2994,7 @@ var init_recommended3 = __esm({
4194
2994
  ignores: GLOB_EXCLUDE,
4195
2995
  name: "tsdoc/recommended",
4196
2996
  plugins: {
4197
- tsdoc: plugin8
2997
+ tsdoc: plugin7
4198
2998
  },
4199
2999
  rules: {
4200
3000
  "tsdoc/syntax": ["error", { type: "recommended" }]
@@ -4205,12 +3005,12 @@ var init_recommended3 = __esm({
4205
3005
  });
4206
3006
 
4207
3007
  // ../eslint-plugin-tsdoc/src/configs/index.ts
4208
- var configs7;
3008
+ var configs6;
4209
3009
  var init_configs3 = __esm({
4210
3010
  "../eslint-plugin-tsdoc/src/configs/index.ts"() {
4211
3011
  init_cjs_shims();
4212
3012
  init_recommended3();
4213
- configs7 = {
3013
+ configs6 = {
4214
3014
  recommended: recommended_default6
4215
3015
  };
4216
3016
  }
@@ -4219,22 +3019,22 @@ var init_configs3 = __esm({
4219
3019
  // ../eslint-plugin-tsdoc/src/index.ts
4220
3020
  var src_exports3 = {};
4221
3021
  __export(src_exports3, {
4222
- configs: () => configs7,
3022
+ configs: () => configs6,
4223
3023
  default: () => src_default4,
4224
- rules: () => rules6
3024
+ rules: () => rules5
4225
3025
  });
4226
- var eslintPlugin4, src_default4, rules6;
3026
+ var eslintPlugin4, src_default4, rules5;
4227
3027
  var init_src3 = __esm({
4228
3028
  "../eslint-plugin-tsdoc/src/index.ts"() {
4229
3029
  init_cjs_shims();
4230
3030
  init_configs3();
4231
3031
  init_plugin3();
4232
3032
  eslintPlugin4 = {
4233
- ...plugin8,
4234
- configs: configs7
3033
+ ...plugin7,
3034
+ configs: configs6
4235
3035
  };
4236
3036
  src_default4 = eslintPlugin4;
4237
- rules6 = plugin8.rules;
3037
+ rules5 = plugin7.rules;
4238
3038
  }
4239
3039
  });
4240
3040
 
@@ -4281,8 +3081,8 @@ async function interopDefault(m) {
4281
3081
  const resolved = await m;
4282
3082
  return resolved.default || resolved;
4283
3083
  }
4284
- function isPackageInScope(name3) {
4285
- return localPkg.isPackageExists(name3, { paths: [scopeUrl] });
3084
+ function isPackageInScope(name2) {
3085
+ return localPkg.isPackageExists(name2, { paths: [scopeUrl] });
4286
3086
  }
4287
3087
  async function ensurePackages(packages) {
4288
3088
  if (process2__default.default.env.CI || process2__default.default.stdout.isTTY === false || isCwdInScope === false)
@@ -4302,9 +3102,9 @@ async function ensurePackages(packages) {
4302
3102
  (i) => i.installPackage(nonExistingPackages, { dev: true })
4303
3103
  );
4304
3104
  }
4305
- function renameRules(rules7, map) {
3105
+ function renameRules(rules6, map) {
4306
3106
  return Object.fromEntries(
4307
- Object.entries(rules7).map(([key, value]) => {
3107
+ Object.entries(rules6).map(([key, value]) => {
4308
3108
  for (const [from, to] of Object.entries(map)) {
4309
3109
  if (key.startsWith(`${from}/`))
4310
3110
  return [to + key.slice(from.length), value];
@@ -4944,7 +3744,7 @@ init_cjs_shims();
4944
3744
  init_cjs_shims();
4945
3745
  var _a;
4946
3746
  // @__NO_SIDE_EFFECTS__
4947
- function $constructor(name3, initializer2, params) {
3747
+ function $constructor(name2, initializer2, params) {
4948
3748
  function init(inst, def) {
4949
3749
  if (!inst._zod) {
4950
3750
  Object.defineProperty(inst, "_zod", {
@@ -4956,10 +3756,10 @@ function $constructor(name3, initializer2, params) {
4956
3756
  enumerable: false
4957
3757
  });
4958
3758
  }
4959
- if (inst._zod.traits.has(name3)) {
3759
+ if (inst._zod.traits.has(name2)) {
4960
3760
  return;
4961
3761
  }
4962
- inst._zod.traits.add(name3);
3762
+ inst._zod.traits.add(name2);
4963
3763
  initializer2(inst, def);
4964
3764
  const proto = _.prototype;
4965
3765
  const keys = Object.keys(proto);
@@ -4973,7 +3773,7 @@ function $constructor(name3, initializer2, params) {
4973
3773
  const Parent = params?.Parent ?? Object;
4974
3774
  class Definition extends Parent {
4975
3775
  }
4976
- Object.defineProperty(Definition, "name", { value: name3 });
3776
+ Object.defineProperty(Definition, "name", { value: name2 });
4977
3777
  function _(def) {
4978
3778
  var _a4;
4979
3779
  const inst = params?.Parent ? new Definition() : this;
@@ -4989,10 +3789,10 @@ function $constructor(name3, initializer2, params) {
4989
3789
  value: (inst) => {
4990
3790
  if (params?.Parent && inst instanceof params.Parent)
4991
3791
  return true;
4992
- return inst?._zod?.traits?.has(name3);
3792
+ return inst?._zod?.traits?.has(name2);
4993
3793
  }
4994
3794
  });
4995
- Object.defineProperty(_, "name", { value: name3 });
3795
+ Object.defineProperty(_, "name", { value: name2 });
4996
3796
  return _;
4997
3797
  }
4998
3798
  var $ZodAsyncError = class extends Error {
@@ -6982,7 +5782,7 @@ async function getPackageJsonConfig(root) {
6982
5782
  let license = STORM_DEFAULT_LICENSE;
6983
5783
  let homepage = void 0;
6984
5784
  let support = void 0;
6985
- let name3 = void 0;
5785
+ let name2 = void 0;
6986
5786
  let namespace = void 0;
6987
5787
  let repository = void 0;
6988
5788
  const workspaceRoot = findWorkspaceRoot(root);
@@ -6994,7 +5794,7 @@ async function getPackageJsonConfig(root) {
6994
5794
  if (file) {
6995
5795
  const packageJson = JSON.parse(file);
6996
5796
  if (packageJson.name) {
6997
- name3 = packageJson.name;
5797
+ name2 = packageJson.name;
6998
5798
  }
6999
5799
  if (packageJson.namespace) {
7000
5800
  namespace = packageJson.namespace;
@@ -7023,7 +5823,7 @@ async function getPackageJsonConfig(root) {
7023
5823
  }
7024
5824
  return {
7025
5825
  workspaceRoot,
7026
- name: name3,
5826
+ name: name2,
7027
5827
  namespace,
7028
5828
  repository,
7029
5829
  license,
@@ -7064,7 +5864,7 @@ function applyDefaultConfig(config7) {
7064
5864
  // ../config-tools/src/config-file/get-config-file.ts
7065
5865
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
7066
5866
  const workspacePath = filePath || findWorkspaceRoot(filePath);
7067
- const configs8 = await Promise.all([
5867
+ const configs7 = await Promise.all([
7068
5868
  c12.loadConfig({
7069
5869
  cwd: workspacePath,
7070
5870
  packageJson: true,
@@ -7095,7 +5895,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
7095
5895
  ...options
7096
5896
  })
7097
5897
  ]);
7098
- return defu__default.default(configs8[0] ?? {}, configs8[1] ?? {});
5898
+ return defu__default.default(configs7[0] ?? {}, configs7[1] ?? {});
7099
5899
  };
7100
5900
  var getConfigFile = async (filePath, additionalFileNames = []) => {
7101
5901
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
@@ -7851,7 +6651,7 @@ init_cjs_shims();
7851
6651
 
7852
6652
  // ../eslint-plugin-banner/package.json
7853
6653
  var package_default = {
7854
- version: "0.0.80"};
6654
+ version: "0.0.81"};
7855
6655
 
7856
6656
  // ../eslint-plugin-banner/src/rules/banner.ts
7857
6657
  init_cjs_shims();
@@ -7860,7 +6660,7 @@ init_cjs_shims();
7860
6660
  init_cjs_shims();
7861
6661
  function RuleCreator(urlCreator) {
7862
6662
  return function createNamedRule({
7863
- name: name3,
6663
+ name: name2,
7864
6664
  meta: meta3,
7865
6665
  ...rule
7866
6666
  }) {
@@ -7869,7 +6669,7 @@ function RuleCreator(urlCreator) {
7869
6669
  ...meta3,
7870
6670
  docs: {
7871
6671
  ...meta3.docs,
7872
- url: urlCreator(name3)
6672
+ url: urlCreator(name2)
7873
6673
  }
7874
6674
  },
7875
6675
  ...rule
@@ -7945,12 +6745,12 @@ var ACRONYMS_LIST = [
7945
6745
 
7946
6746
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
7947
6747
  function getBanner(options) {
7948
- const { name: name3 } = options;
6748
+ const { name: name2 } = options;
7949
6749
  let padding = " ";
7950
- for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
6750
+ for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
7951
6751
  padding = padding.slice(0, -1);
7952
6752
  }
7953
- let titleName = name3;
6753
+ let titleName = name2;
7954
6754
  if (titleName) {
7955
6755
  if (titleName?.startsWith("@")) {
7956
6756
  titleName = titleName.slice(1);
@@ -7966,8 +6766,8 @@ function getBanner(options) {
7966
6766
  const organization = options.organization || "storm-software";
7967
6767
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
7968
6768
  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}` : ""}`;
6769
+ const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
6770
+ const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
7971
6771
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
7972
6772
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
7973
6773
  return word.toUpperCase();
@@ -7982,7 +6782,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
7982
6782
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
7983
6783
  is maintained by ${formattedOrganization} under the ${license} license, and is
7984
6784
  free for commercial and private use. For more information, please visit
7985
- our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
6785
+ our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
7986
6786
 
7987
6787
  Website: ${homepage}
7988
6788
  Repository: ${repository}
@@ -8182,7 +6982,7 @@ var banner_default = createRule({
8182
6982
  ],
8183
6983
  create: (context) => {
8184
6984
  const {
8185
- name: name3,
6985
+ name: name2,
8186
6986
  license,
8187
6987
  organization,
8188
6988
  licensing,
@@ -8194,7 +6994,7 @@ var banner_default = createRule({
8194
6994
  lineEndings
8195
6995
  } = context.options[0];
8196
6996
  const banner2 = getBanner({
8197
- name: name3,
6997
+ name: name2,
8198
6998
  license,
8199
6999
  organization,
8200
7000
  licensing,
@@ -8737,7 +7537,7 @@ async function bun(options = {}) {
8737
7537
  "@storm-software/eslint-plugin-bun",
8738
7538
  "jsonc-eslint-parser"
8739
7539
  ]);
8740
- const [plugin9, parserJsonc3] = await Promise.all([
7540
+ const [plugin8, parserJsonc3] = await Promise.all([
8741
7541
  interopDefault(Promise.resolve().then(() => (init_src(), src_exports))),
8742
7542
  interopDefault(import('jsonc-eslint-parser'))
8743
7543
  ]);
@@ -8780,20 +7580,20 @@ async function bun(options = {}) {
8780
7580
  }
8781
7581
  });
8782
7582
  }
8783
- const configs8 = (Array.isArray(plugin9.configs?.recommended) ? plugin9.configs.recommended : [plugin9.configs?.recommended]).filter(
7583
+ const configs7 = (Array.isArray(plugin8.configs?.recommended) ? plugin8.configs.recommended : [plugin8.configs?.recommended]).filter(
8784
7584
  (config7) => config7 && typeof config7 === "object" && "name" in config7 && !config7.name?.endsWith("setup")
8785
7585
  );
8786
- const packageJsonConfig = configs8.find(
7586
+ const packageJsonConfig = configs7.find(
8787
7587
  (config7) => config7.name?.endsWith("package-json") ?? false
8788
7588
  );
8789
7589
  return [
8790
7590
  {
8791
7591
  name: "storm/bun/setup",
8792
7592
  plugins: {
8793
- bun: plugin9
7593
+ bun: plugin8
8794
7594
  }
8795
7595
  },
8796
- ...configs8.map((config7) => ({
7596
+ ...configs7.map((config7) => ({
8797
7597
  name: config7.name,
8798
7598
  ...config7
8799
7599
  })),
@@ -9017,7 +7817,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9017
7817
  options.dprintOptions ?? {}
9018
7818
  );
9019
7819
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
9020
- const configs8 = [
7820
+ const configs7 = [
9021
7821
  {
9022
7822
  name: "storm/formatter/setup",
9023
7823
  plugins: {
@@ -9026,7 +7826,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9026
7826
  }
9027
7827
  ];
9028
7828
  if (options.css) {
9029
- configs8.push(
7829
+ configs7.push(
9030
7830
  {
9031
7831
  files: [GLOB_CSS, GLOB_POSTCSS],
9032
7832
  languageOptions: {
@@ -9075,7 +7875,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9075
7875
  );
9076
7876
  }
9077
7877
  if (options.html) {
9078
- configs8.push({
7878
+ configs7.push({
9079
7879
  files: [GLOB_HTML],
9080
7880
  languageOptions: {
9081
7881
  parser: parserPlain
@@ -9092,7 +7892,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9092
7892
  });
9093
7893
  }
9094
7894
  if (options.xml) {
9095
- configs8.push({
7895
+ configs7.push({
9096
7896
  files: [GLOB_XML],
9097
7897
  languageOptions: {
9098
7898
  parser: parserPlain
@@ -9113,7 +7913,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9113
7913
  });
9114
7914
  }
9115
7915
  if (options.svg) {
9116
- configs8.push({
7916
+ configs7.push({
9117
7917
  files: [GLOB_SVG],
9118
7918
  languageOptions: {
9119
7919
  parser: parserPlain
@@ -9135,7 +7935,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9135
7935
  }
9136
7936
  if (options.markdown) {
9137
7937
  const formater = options.markdown === true ? "prettier" : options.markdown;
9138
- configs8.push({
7938
+ configs7.push({
9139
7939
  files: [GLOB_MARKDOWN],
9140
7940
  languageOptions: {
9141
7941
  parser: parserPlain
@@ -9156,7 +7956,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9156
7956
  });
9157
7957
  }
9158
7958
  if (options.astro) {
9159
- configs8.push({
7959
+ configs7.push({
9160
7960
  files: [GLOB_ASTRO],
9161
7961
  languageOptions: {
9162
7962
  parser: parserPlain
@@ -9172,7 +7972,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9172
7972
  ]
9173
7973
  }
9174
7974
  });
9175
- configs8.push({
7975
+ configs7.push({
9176
7976
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
9177
7977
  name: "storm/formatter/astro/disables",
9178
7978
  rules: {
@@ -9187,7 +7987,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9187
7987
  });
9188
7988
  }
9189
7989
  if (options.graphql) {
9190
- configs8.push({
7990
+ configs7.push({
9191
7991
  files: [GLOB_GRAPHQL],
9192
7992
  languageOptions: {
9193
7993
  parser: parserPlain
@@ -9203,7 +8003,7 @@ async function formatters(options = {}, stylistic2 = {}) {
9203
8003
  }
9204
8004
  });
9205
8005
  }
9206
- return configs8;
8006
+ return configs7;
9207
8007
  }
9208
8008
 
9209
8009
  // src/configs/graphql.ts
@@ -9731,13 +8531,13 @@ var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commi
9731
8531
 
9732
8532
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
9733
8533
  function RuleCreator3(urlCreator) {
9734
- return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
8534
+ return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
9735
8535
  return createRule_({
9736
8536
  meta: {
9737
8537
  ...meta3,
9738
8538
  docs: {
9739
8539
  ...meta3.docs,
9740
- url: urlCreator(name3)
8540
+ url: urlCreator(name2)
9741
8541
  }
9742
8542
  },
9743
8543
  ...rule
@@ -9758,9 +8558,9 @@ var createRule3 = RuleCreator3(docsUrl);
9758
8558
 
9759
8559
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
9760
8560
  init_cjs_shims();
9761
- function declaredScope(context, node2, name3) {
8561
+ function declaredScope(context, node2, name2) {
9762
8562
  const references = context.sourceCode.getScope(node2).references;
9763
- const reference = references.find((x) => x.identifier.name === name3);
8563
+ const reference = references.find((x) => x.identifier.name === name2);
9764
8564
  return reference?.resolved?.scope.type;
9765
8565
  }
9766
8566
 
@@ -10055,49 +8855,49 @@ function getFilePackageName(filename) {
10055
8855
  }
10056
8856
 
10057
8857
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
10058
- function baseModule(name3) {
10059
- if (isScoped(name3)) {
10060
- const [scope, pkg2] = name3.split("/");
8858
+ function baseModule(name2) {
8859
+ if (isScoped(name2)) {
8860
+ const [scope, pkg2] = name2.split("/");
10061
8861
  return `${scope}/${pkg2}`;
10062
8862
  }
10063
- const [pkg] = name3.split("/");
8863
+ const [pkg] = name2.split("/");
10064
8864
  return pkg;
10065
8865
  }
10066
- function isInternalRegexMatch(name3, settings) {
8866
+ function isInternalRegexMatch(name2, settings) {
10067
8867
  const internalScope = settings?.["import-x/internal-regex"];
10068
- return internalScope && new RegExp(internalScope).test(name3);
8868
+ return internalScope && new RegExp(internalScope).test(name2);
10069
8869
  }
10070
- function isAbsolute3(name3) {
10071
- return typeof name3 === "string" && path16__default.default.isAbsolute(name3);
8870
+ function isAbsolute3(name2) {
8871
+ return typeof name2 === "string" && path16__default.default.isAbsolute(name2);
10072
8872
  }
10073
- function isBuiltIn(name3, settings, modulePath) {
10074
- if (modulePath || !name3) {
8873
+ function isBuiltIn(name2, settings, modulePath) {
8874
+ if (modulePath || !name2) {
10075
8875
  return false;
10076
8876
  }
10077
- const base2 = baseModule(name3);
8877
+ const base3 = baseModule(name2);
10078
8878
  const extras = settings && settings["import-x/core-modules"] || [];
10079
- return Module.isBuiltin(base2) || extras.includes(base2);
8879
+ return Module.isBuiltin(base3) || extras.includes(base3);
10080
8880
  }
10081
- function isExternalModule(name3, modulePath, context) {
10082
- return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
8881
+ function isExternalModule(name2, modulePath, context) {
8882
+ return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
10083
8883
  }
10084
8884
  var moduleRegExp = /^\w/;
10085
- function isModule(name3) {
10086
- return !!name3 && moduleRegExp.test(name3);
8885
+ function isModule(name2) {
8886
+ return !!name2 && moduleRegExp.test(name2);
10087
8887
  }
10088
8888
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
10089
- function isScoped(name3) {
10090
- return !!name3 && scopedRegExp.test(name3);
8889
+ function isScoped(name2) {
8890
+ return !!name2 && scopedRegExp.test(name2);
10091
8891
  }
10092
- function isRelativeToParent(name3) {
10093
- return /^\.\.$|^\.\.[/\\]/.test(name3);
8892
+ function isRelativeToParent(name2) {
8893
+ return /^\.\.$|^\.\.[/\\]/.test(name2);
10094
8894
  }
10095
8895
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
10096
- function isIndex(name3) {
10097
- return indexFiles.has(name3);
8896
+ function isIndex(name2) {
8897
+ return indexFiles.has(name2);
10098
8898
  }
10099
- function isRelativeToSibling(name3) {
10100
- return /^\.[/\\]/.test(name3);
8899
+ function isRelativeToSibling(name2) {
8900
+ return /^\.[/\\]/.test(name2);
10101
8901
  }
10102
8902
  function isExternalPath(filepath, context) {
10103
8903
  if (!filepath) {
@@ -10124,28 +8924,28 @@ function isInternalPath(filepath, context) {
10124
8924
  const packagePath = getContextPackagePath(context);
10125
8925
  return !path16__default.default.relative(packagePath, filepath).startsWith("../");
10126
8926
  }
10127
- function isExternalLookingName(name3) {
10128
- return isModule(name3) || isScoped(name3);
8927
+ function isExternalLookingName(name2) {
8928
+ return isModule(name2) || isScoped(name2);
10129
8929
  }
10130
- function typeTest(name3, context, path23) {
8930
+ function typeTest(name2, context, path23) {
10131
8931
  const { settings } = context;
10132
- if (typeof name3 === "string") {
10133
- if (isInternalRegexMatch(name3, settings)) {
8932
+ if (typeof name2 === "string") {
8933
+ if (isInternalRegexMatch(name2, settings)) {
10134
8934
  return "internal";
10135
8935
  }
10136
- if (isAbsolute3(name3)) {
8936
+ if (isAbsolute3(name2)) {
10137
8937
  return "absolute";
10138
8938
  }
10139
- if (isBuiltIn(name3, settings, path23)) {
8939
+ if (isBuiltIn(name2, settings, path23)) {
10140
8940
  return "builtin";
10141
8941
  }
10142
- if (isRelativeToParent(name3)) {
8942
+ if (isRelativeToParent(name2)) {
10143
8943
  return "parent";
10144
8944
  }
10145
- if (isIndex(name3)) {
8945
+ if (isIndex(name2)) {
10146
8946
  return "index";
10147
8947
  }
10148
- if (isRelativeToSibling(name3)) {
8948
+ if (isRelativeToSibling(name2)) {
10149
8949
  return "sibling";
10150
8950
  }
10151
8951
  }
@@ -10155,13 +8955,13 @@ function typeTest(name3, context, path23) {
10155
8955
  if (isInternalPath(path23, context)) {
10156
8956
  return "internal";
10157
8957
  }
10158
- if (typeof name3 === "string" && isExternalLookingName(name3)) {
8958
+ if (typeof name2 === "string" && isExternalLookingName(name2)) {
10159
8959
  return "external";
10160
8960
  }
10161
8961
  return "unknown";
10162
8962
  }
10163
- function importType(name3, context) {
10164
- return typeTest(name3, context, typeof name3 === "string" ? resolve3(name3, context) : null);
8963
+ function importType(name2, context) {
8964
+ return typeTest(name2, context, typeof name2 === "string" ? resolve3(name2, context) : null);
10165
8965
  }
10166
8966
 
10167
8967
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
@@ -10201,32 +9001,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
10201
9001
  const map = /* @__PURE__ */ new Map();
10202
9002
  for (const nameOrRecordOrObject of resolverArray) {
10203
9003
  if (typeof nameOrRecordOrObject === "string") {
10204
- const name3 = nameOrRecordOrObject;
10205
- map.set(name3, {
10206
- name: name3,
9004
+ const name2 = nameOrRecordOrObject;
9005
+ map.set(name2, {
9006
+ name: name2,
10207
9007
  enable: true,
10208
9008
  options: void 0,
10209
- resolver: requireResolver(name3, sourceFile)
9009
+ resolver: requireResolver(name2, sourceFile)
10210
9010
  });
10211
9011
  } else if (typeof nameOrRecordOrObject === "object") {
10212
9012
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
10213
9013
  const object2 = nameOrRecordOrObject;
10214
- const { name: name3, enable = true, options, resolver } = object2;
10215
- map.set(name3, { name: name3, enable, options, resolver });
9014
+ const { name: name2, enable = true, options, resolver } = object2;
9015
+ map.set(name2, { name: name2, enable, options, resolver });
10216
9016
  } else {
10217
9017
  const record2 = nameOrRecordOrObject;
10218
- for (const [name3, enableOrOptions] of Object.entries(record2)) {
10219
- const resolver = requireResolver(name3, sourceFile);
9018
+ for (const [name2, enableOrOptions] of Object.entries(record2)) {
9019
+ const resolver = requireResolver(name2, sourceFile);
10220
9020
  if (typeof enableOrOptions === "boolean") {
10221
- map.set(name3, {
10222
- name: name3,
9021
+ map.set(name2, {
9022
+ name: name2,
10223
9023
  enable: enableOrOptions,
10224
9024
  options: void 0,
10225
9025
  resolver
10226
9026
  });
10227
9027
  } else {
10228
- map.set(name3, {
10229
- name: name3,
9028
+ map.set(name2, {
9029
+ name: name2,
10230
9030
  enable: true,
10231
9031
  options: enableOrOptions,
10232
9032
  resolver
@@ -10250,18 +9050,18 @@ try {
10250
9050
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
10251
9051
  } catch {
10252
9052
  }
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));
9053
+ function requireResolver(name2, sourceFile) {
9054
+ const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name2));
10255
9055
  if (!resolver) {
10256
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9056
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10257
9057
  return void 0;
10258
9058
  }
10259
- const err = new Error(`unable to load resolver "${name3}".`);
9059
+ const err = new Error(`unable to load resolver "${name2}".`);
10260
9060
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10261
9061
  throw err;
10262
9062
  }
10263
9063
  if (!isLegacyResolverValid(resolver)) {
10264
- const err = new Error(`${name3} with invalid interface loaded as resolver`);
9064
+ const err = new Error(`${name2} with invalid interface loaded as resolver`);
10265
9065
  err.name = IMPORT_RESOLVE_ERROR_NAME;
10266
9066
  throw err;
10267
9067
  }
@@ -10515,11 +9315,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
10515
9315
  };
10516
9316
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
10517
9317
  for (const sourceFile2 of sourceFiles) {
10518
- for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
9318
+ for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
10519
9319
  if (!enable) {
10520
9320
  continue;
10521
9321
  }
10522
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
9322
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
10523
9323
  const resolverOptions = options || {};
10524
9324
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
10525
9325
  if (resolved2?.found) {
@@ -11049,44 +9849,44 @@ var ExportMap = class _ExportMap {
11049
9849
  }
11050
9850
  return size;
11051
9851
  }
11052
- has(name3) {
11053
- if (this.namespace.has(name3)) {
9852
+ has(name2) {
9853
+ if (this.namespace.has(name2)) {
11054
9854
  return true;
11055
9855
  }
11056
- if (this.reexports.has(name3)) {
9856
+ if (this.reexports.has(name2)) {
11057
9857
  return true;
11058
9858
  }
11059
- if (name3 !== "default") {
9859
+ if (name2 !== "default") {
11060
9860
  for (const dep of this.dependencies) {
11061
9861
  const innerMap = dep();
11062
9862
  if (!innerMap) {
11063
9863
  continue;
11064
9864
  }
11065
- if (innerMap.has(name3)) {
9865
+ if (innerMap.has(name2)) {
11066
9866
  return true;
11067
9867
  }
11068
9868
  }
11069
9869
  }
11070
9870
  return false;
11071
9871
  }
11072
- hasDeep(name3) {
11073
- if (this.namespace.has(name3)) {
9872
+ hasDeep(name2) {
9873
+ if (this.namespace.has(name2)) {
11074
9874
  return { found: true, path: [this] };
11075
9875
  }
11076
- if (this.reexports.has(name3)) {
11077
- const reexports = this.reexports.get(name3);
9876
+ if (this.reexports.has(name2)) {
9877
+ const reexports = this.reexports.get(name2);
11078
9878
  const imported = reexports.getImport();
11079
9879
  if (imported == null) {
11080
9880
  return { found: true, path: [this] };
11081
9881
  }
11082
- if (imported.path === this.path && reexports.local === name3) {
9882
+ if (imported.path === this.path && reexports.local === name2) {
11083
9883
  return { found: false, path: [this] };
11084
9884
  }
11085
9885
  const deep = imported.hasDeep(reexports.local);
11086
9886
  deep.path.unshift(this);
11087
9887
  return deep;
11088
9888
  }
11089
- if (name3 !== "default") {
9889
+ if (name2 !== "default") {
11090
9890
  for (const dep of this.dependencies) {
11091
9891
  const innerMap = dep();
11092
9892
  if (innerMap == null) {
@@ -11098,7 +9898,7 @@ var ExportMap = class _ExportMap {
11098
9898
  if (innerMap.path === this.path) {
11099
9899
  continue;
11100
9900
  }
11101
- const innerValue = innerMap.hasDeep(name3);
9901
+ const innerValue = innerMap.hasDeep(name2);
11102
9902
  if (innerValue.found) {
11103
9903
  innerValue.path.unshift(this);
11104
9904
  return innerValue;
@@ -11107,22 +9907,22 @@ var ExportMap = class _ExportMap {
11107
9907
  }
11108
9908
  return { found: false, path: [this] };
11109
9909
  }
11110
- get(name3) {
11111
- if (this.namespace.has(name3)) {
11112
- return this.namespace.get(name3);
9910
+ get(name2) {
9911
+ if (this.namespace.has(name2)) {
9912
+ return this.namespace.get(name2);
11113
9913
  }
11114
- if (this.reexports.has(name3)) {
11115
- const reexports = this.reexports.get(name3);
9914
+ if (this.reexports.has(name2)) {
9915
+ const reexports = this.reexports.get(name2);
11116
9916
  const imported = reexports.getImport();
11117
9917
  if (imported == null) {
11118
9918
  return null;
11119
9919
  }
11120
- if (imported.path === this.path && reexports.local === name3) {
9920
+ if (imported.path === this.path && reexports.local === name2) {
11121
9921
  return void 0;
11122
9922
  }
11123
9923
  return imported.get(reexports.local);
11124
9924
  }
11125
- if (name3 !== "default") {
9925
+ if (name2 !== "default") {
11126
9926
  for (const dep of this.dependencies) {
11127
9927
  const innerMap = dep();
11128
9928
  if (!innerMap) {
@@ -11131,7 +9931,7 @@ var ExportMap = class _ExportMap {
11131
9931
  if (innerMap.path === this.path) {
11132
9932
  continue;
11133
9933
  }
11134
- const innerValue = innerMap.get(name3);
9934
+ const innerValue = innerMap.get(name2);
11135
9935
  if (innerValue !== void 0) {
11136
9936
  return innerValue;
11137
9937
  }
@@ -11142,9 +9942,9 @@ var ExportMap = class _ExportMap {
11142
9942
  for (const [n, v] of this.namespace.entries()) {
11143
9943
  callback.call(thisArg, v, n, this);
11144
9944
  }
11145
- for (const [name3, reexports] of this.reexports.entries()) {
9945
+ for (const [name2, reexports] of this.reexports.entries()) {
11146
9946
  const reexported = reexports.getImport();
11147
- callback.call(thisArg, reexported?.get(reexports.local), name3, this);
9947
+ callback.call(thisArg, reexported?.get(reexports.local), name2, this);
11148
9948
  }
11149
9949
  this.dependencies.forEach((dep) => {
11150
9950
  const d = dep();
@@ -11433,7 +10233,7 @@ function moduleVisitor(visitor, options) {
11433
10233
  return visitors;
11434
10234
  }
11435
10235
  function makeOptionsSchema(additionalProperties) {
11436
- const base2 = {
10236
+ const base3 = {
11437
10237
  type: "object",
11438
10238
  properties: {
11439
10239
  commonjs: { type: "boolean" },
@@ -11449,10 +10249,10 @@ function makeOptionsSchema(additionalProperties) {
11449
10249
  };
11450
10250
  if (additionalProperties) {
11451
10251
  for (const key in additionalProperties) {
11452
- base2.properties[key] = additionalProperties[key];
10252
+ base3.properties[key] = additionalProperties[key];
11453
10253
  }
11454
10254
  }
11455
- return base2;
10255
+ return base3;
11456
10256
  }
11457
10257
  makeOptionsSchema();
11458
10258
 
@@ -11934,12 +10734,12 @@ var export_default = createRule3({
11934
10734
  defaultOptions: [],
11935
10735
  create(context) {
11936
10736
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
11937
- function addNamed(name3, node2, parent, isType) {
10737
+ function addNamed(name2, node2, parent, isType) {
11938
10738
  if (!namespace.has(parent)) {
11939
10739
  namespace.set(parent, /* @__PURE__ */ new Map());
11940
10740
  }
11941
10741
  const named = namespace.get(parent);
11942
- const key = isType ? `${tsTypePrefix}${name3}` : name3;
10742
+ const key = isType ? `${tsTypePrefix}${name2}` : name2;
11943
10743
  let nodes = named.get(key);
11944
10744
  if (nodes == null) {
11945
10745
  nodes = /* @__PURE__ */ new Set();
@@ -11995,10 +10795,10 @@ var export_default = createRule3({
11995
10795
  }
11996
10796
  const parent = getParent(node2);
11997
10797
  let any2 = false;
11998
- remoteExports.$forEach((_, name3) => {
11999
- if (name3 !== "default") {
10798
+ remoteExports.$forEach((_, name2) => {
10799
+ if (name2 !== "default") {
12000
10800
  any2 = true;
12001
- addNamed(name3, node2, parent);
10801
+ addNamed(name2, node2, parent);
12002
10802
  }
12003
10803
  });
12004
10804
  if (!any2) {
@@ -12011,7 +10811,7 @@ var export_default = createRule3({
12011
10811
  },
12012
10812
  "Program:exit"() {
12013
10813
  for (const [, named] of namespace) {
12014
- for (const [name3, nodes] of named) {
10814
+ for (const [name2, nodes] of named) {
12015
10815
  if (nodes.size === 0) {
12016
10816
  continue;
12017
10817
  }
@@ -12026,7 +10826,7 @@ var export_default = createRule3({
12026
10826
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
12027
10827
  continue;
12028
10828
  }
12029
- if (name3 === "default") {
10829
+ if (name2 === "default") {
12030
10830
  context.report({
12031
10831
  node: node2,
12032
10832
  messageId: "multiDefault"
@@ -12036,7 +10836,7 @@ var export_default = createRule3({
12036
10836
  node: node2,
12037
10837
  messageId: "multiNamed",
12038
10838
  data: {
12039
- name: name3.replace(tsTypePrefix, "")
10839
+ name: name2.replace(tsTypePrefix, "")
12040
10840
  }
12041
10841
  });
12042
10842
  }
@@ -14362,8 +13162,8 @@ var named_default = createRule3({
14362
13162
  continue;
14363
13163
  }
14364
13164
  const imNode = im[key];
14365
- const name3 = imNode.name || imNode.value;
14366
- const deepLookup = imports2.hasDeep(name3);
13165
+ const name2 = imNode.name || imNode.value;
13166
+ const deepLookup = imports2.hasDeep(name2);
14367
13167
  if (!deepLookup.found) {
14368
13168
  if (deepLookup.path.length > 1) {
14369
13169
  const deepPath = deepLookup.path.map((i) => path16__default.default.relative(path16__default.default.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -14371,7 +13171,7 @@ var named_default = createRule3({
14371
13171
  node: imNode,
14372
13172
  messageId: "notFoundDeep",
14373
13173
  data: {
14374
- name: name3,
13174
+ name: name2,
14375
13175
  deepPath
14376
13176
  }
14377
13177
  });
@@ -14380,7 +13180,7 @@ var named_default = createRule3({
14380
13180
  node: imNode,
14381
13181
  messageId: "notFound",
14382
13182
  data: {
14383
- name: name3,
13183
+ name: name2,
14384
13184
  path: node2.source.value
14385
13185
  }
14386
13186
  });
@@ -15262,7 +14062,7 @@ var no_cycle_default = createRule3({
15262
14062
  }
15263
14063
  const options = context.options[0] || {};
15264
14064
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
15265
- const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve3(name3, context), context) : () => false;
14065
+ const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve3(name2, context), context) : () => false;
15266
14066
  return {
15267
14067
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
15268
14068
  if (ignoreModule(sourceNode.value)) {
@@ -16092,8 +14892,8 @@ function getDependencies(context, packageDir) {
16092
14892
  }
16093
14893
  }
16094
14894
  }
16095
- function getModuleOriginalName(name3) {
16096
- const [first, second] = name3.split("/");
14895
+ function getModuleOriginalName(name2) {
14896
+ const [first, second] = name2.split("/");
16097
14897
  return first.startsWith("@") ? `${first}/${second}` : first;
16098
14898
  }
16099
14899
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -16120,19 +14920,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
16120
14920
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
16121
14921
  }), newDeclarationStatus);
16122
14922
  }
16123
- function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
14923
+ function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
16124
14924
  if (!depsOptions.verifyTypeImports && ("importKind" in node2 && (node2.importKind === "type" || node2.importKind === "typeof") || "exportKind" in node2 && node2.exportKind === "type" || "specifiers" in node2 && Array.isArray(node2.specifiers) && node2.specifiers.length > 0 && node2.specifiers.every((specifier) => "importKind" in specifier && (specifier.importKind === "type" || specifier.importKind === "typeof")))) {
16125
14925
  return;
16126
14926
  }
16127
- const typeOfImport = importType(name3, context);
14927
+ const typeOfImport = importType(name2, context);
16128
14928
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
16129
14929
  return;
16130
14930
  }
16131
- const resolved = resolve3(name3, context);
14931
+ const resolved = resolve3(name2, context);
16132
14932
  if (!resolved) {
16133
14933
  return;
16134
14934
  }
16135
- const importPackageName = getModuleOriginalName(name3);
14935
+ const importPackageName = getModuleOriginalName(name2);
16136
14936
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
16137
14937
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
16138
14938
  return;
@@ -16467,9 +15267,9 @@ var no_mutable_exports_default = createRule3({
16467
15267
  });
16468
15268
  }
16469
15269
  }
16470
- function checkDeclarationsInScope({ variables }, name3) {
15270
+ function checkDeclarationsInScope({ variables }, name2) {
16471
15271
  for (const variable of variables) {
16472
- if (variable.name === name3) {
15272
+ if (variable.name === name2) {
16473
15273
  for (const def of variable.defs) {
16474
15274
  if (def.type === "Variable" && def.parent) {
16475
15275
  checkDeclaration(def.parent);
@@ -16821,21 +15621,21 @@ function getVariableNamesInScope(scopeManager, node2) {
16821
15621
  }
16822
15622
  function generateLocalNames(names, nameConflicts, namespaceName) {
16823
15623
  const localNames = {};
16824
- for (const name3 of names) {
15624
+ for (const name2 of names) {
16825
15625
  let localName;
16826
- if (!nameConflicts[name3].has(name3)) {
16827
- localName = name3;
16828
- } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
15626
+ if (!nameConflicts[name2].has(name2)) {
15627
+ localName = name2;
15628
+ } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
16829
15629
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
16830
- if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
16831
- localName = `${namespaceName}_${name3}_${i}`;
15630
+ if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
15631
+ localName = `${namespaceName}_${name2}_${i}`;
16832
15632
  break;
16833
15633
  }
16834
15634
  }
16835
15635
  } else {
16836
- localName = `${namespaceName}_${name3}`;
15636
+ localName = `${namespaceName}_${name2}`;
16837
15637
  }
16838
- localNames[name3] = localName;
15638
+ localNames[name2] = localName;
16839
15639
  }
16840
15640
  return localNames;
16841
15641
  }
@@ -18042,8 +16842,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18042
16842
  }
18043
16843
  }
18044
16844
  }
18045
- forEachDeclarationIdentifier(s.declaration, (name3) => {
18046
- newExportIdentifiers.add(name3);
16845
+ forEachDeclarationIdentifier(s.declaration, (name2) => {
16846
+ newExportIdentifiers.add(name2);
18047
16847
  });
18048
16848
  }
18049
16849
  }
@@ -18118,11 +16918,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18118
16918
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
18119
16919
  resolvedPath = resolve3(astNode.source.raw.replaceAll(/('|")/g, ""), context);
18120
16920
  for (const specifier of astNode.specifiers) {
18121
- const name3 = getValue(specifier.local);
18122
- if (name3 === DEFAULT) {
16921
+ const name2 = getValue(specifier.local);
16922
+ if (name2 === DEFAULT) {
18123
16923
  newDefaultImports.add(resolvedPath);
18124
16924
  } else {
18125
- newImports.set(name3, resolvedPath);
16925
+ newImports.set(name2, resolvedPath);
18126
16926
  }
18127
16927
  }
18128
16928
  }
@@ -18320,8 +17120,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
18320
17120
  for (const specifier of node2.specifiers) {
18321
17121
  checkUsage(specifier, getValue(specifier.exported), false);
18322
17122
  }
18323
- forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
18324
- checkUsage(node2, name3, isTypeExport);
17123
+ forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
17124
+ checkUsage(node2, name2, isTypeExport);
18325
17125
  });
18326
17126
  }
18327
17127
  };
@@ -19339,11 +18139,11 @@ var order_default = createRule3({
19339
18139
  return {
19340
18140
  ImportDeclaration(node2) {
19341
18141
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
19342
- const name3 = node2.source.value;
18142
+ const name2 = node2.source.value;
19343
18143
  registerNode(context, {
19344
18144
  node: node2,
19345
- value: name3,
19346
- displayName: name3,
18145
+ value: name2,
18146
+ displayName: name2,
19347
18147
  type: "import"
19348
18148
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
19349
18149
  if (named.import) {
@@ -19465,11 +18265,11 @@ var order_default = createRule3({
19465
18265
  } else {
19466
18266
  const nameParts = getNamedCJSExports(context, node2.left);
19467
18267
  if (nameParts && nameParts.length > 0) {
19468
- const name3 = nameParts.join(".");
18268
+ const name2 = nameParts.join(".");
19469
18269
  getBlockExports(node2.parent.parent).push({
19470
18270
  node: node2,
19471
- value: name3,
19472
- displayName: name3,
18271
+ value: name2,
18272
+ displayName: name2,
19473
18273
  type: "export",
19474
18274
  rank: 0
19475
18275
  });
@@ -19831,7 +18631,7 @@ var getImportSource;
19831
18631
  var isAllSameSubmodule;
19832
18632
  var prefer_zod_namespace_default;
19833
18633
  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`);
18634
+ createRule4 = utils.ESLintUtils.RuleCreator((name2) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name2}.md`);
19835
18635
  getImportSource = (importedName, originalSource) => {
19836
18636
  return importedName === "core" && originalSource === "zod/v4" ? `${originalSource}/${importedName}` : originalSource;
19837
18637
  };
@@ -21488,7 +20288,7 @@ async function pnpm(options = {}) {
21488
20288
  } = options;
21489
20289
  const workspaceRoot = findWorkspaceRoot2();
21490
20290
  await ensurePackages(["@storm-software/eslint-plugin-pnpm", "jsonc-eslint-parser", "yaml-eslint-parser"]);
21491
- const [plugin9, parserJsonc3, parserYaml2] = await Promise.all([
20291
+ const [plugin8, parserJsonc3, parserYaml2] = await Promise.all([
21492
20292
  interopDefault(Promise.resolve().then(() => (init_src2(), src_exports2))),
21493
20293
  interopDefault(import('jsonc-eslint-parser')),
21494
20294
  interopDefault(import('yaml-eslint-parser'))
@@ -21536,7 +20336,7 @@ async function pnpm(options = {}) {
21536
20336
  {
21537
20337
  name: "storm/pnpm/setup",
21538
20338
  plugins: {
21539
- pnpm: plugin9
20339
+ pnpm: plugin8
21540
20340
  }
21541
20341
  },
21542
20342
  {
@@ -21844,12 +20644,12 @@ async function reactNative(options = {}) {
21844
20644
  init_cjs_shims();
21845
20645
  async function regexp(options = {}) {
21846
20646
  const config7 = eslintPluginRegexp.configs["flat/recommended"];
21847
- const rules7 = {
20647
+ const rules6 = {
21848
20648
  ...config7.rules
21849
20649
  };
21850
20650
  if (options.level === "warn") {
21851
- for (const key in rules7) {
21852
- if (rules7[key] === "error") rules7[key] = "warn";
20651
+ for (const key in rules6) {
20652
+ if (rules6[key] === "error") rules6[key] = "warn";
21853
20653
  }
21854
20654
  }
21855
20655
  return [
@@ -21857,7 +20657,7 @@ async function regexp(options = {}) {
21857
20657
  ...config7,
21858
20658
  name: "storm/regexp/rules",
21859
20659
  rules: {
21860
- ...rules7,
20660
+ ...rules6,
21861
20661
  "regexp/no-unused-capturing-group": [
21862
20662
  "error",
21863
20663
  {
@@ -22180,10 +20980,10 @@ async function storybook(options = {}) {
22180
20980
  // src/configs/test.ts
22181
20981
  init_cjs_shims();
22182
20982
  init_globs();
22183
- var plugin7;
20983
+ var plugin6;
22184
20984
  async function test(options = {}) {
22185
20985
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
22186
- plugin7 = plugin7 || {
20986
+ plugin6 = plugin6 || {
22187
20987
  ...default4__default.default,
22188
20988
  rules: {
22189
20989
  ...default4__default.default.rules,
@@ -22195,7 +20995,7 @@ async function test(options = {}) {
22195
20995
  {
22196
20996
  name: "storm/test/setup",
22197
20997
  plugins: {
22198
- test: plugin7
20998
+ test: plugin6
22199
20999
  }
22200
21000
  },
22201
21001
  {
@@ -22825,7 +21625,7 @@ function getOverrides(options, key) {
22825
21625
  }
22826
21626
  function preset(options, ...userConfigs) {
22827
21627
  const {
22828
- name: name3,
21628
+ name: name2,
22829
21629
  globals = {},
22830
21630
  banner: enableBanner = true,
22831
21631
  astro: enableAstro = false,
@@ -22865,10 +21665,10 @@ function preset(options, ...userConfigs) {
22865
21665
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
22866
21666
  stylisticOptions.jsx = enableJsx;
22867
21667
  }
22868
- const configs8 = [];
21668
+ const configs7 = [];
22869
21669
  if (enableGitignore) {
22870
21670
  if (typeof enableGitignore !== "boolean") {
22871
- configs8.push(
21671
+ configs7.push(
22872
21672
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22873
21673
  r({
22874
21674
  name: "storm/gitignore",
@@ -22877,7 +21677,7 @@ function preset(options, ...userConfigs) {
22877
21677
  ])
22878
21678
  );
22879
21679
  } else {
22880
- configs8.push(
21680
+ configs7.push(
22881
21681
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
22882
21682
  r({
22883
21683
  name: "storm/gitignore",
@@ -22887,7 +21687,7 @@ function preset(options, ...userConfigs) {
22887
21687
  );
22888
21688
  }
22889
21689
  }
22890
- configs8.push(
21690
+ configs7.push(
22891
21691
  ignores(options.ignores),
22892
21692
  javascript({
22893
21693
  globals,
@@ -22912,7 +21712,7 @@ function preset(options, ...userConfigs) {
22912
21712
  }
22913
21713
  }
22914
21714
  if (enableTypeScript) {
22915
- configs8.push(
21715
+ configs7.push(
22916
21716
  typescript({
22917
21717
  ...typescriptOptions,
22918
21718
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -22923,25 +21723,25 @@ function preset(options, ...userConfigs) {
22923
21723
  );
22924
21724
  }
22925
21725
  if (enableBanner) {
22926
- configs8.push(
21726
+ configs7.push(
22927
21727
  banner({
22928
21728
  ...resolveSubOptions(options, "banner"),
22929
- name: name3,
21729
+ name: name2,
22930
21730
  overrides: getOverrides(options, "banner")
22931
21731
  })
22932
21732
  );
22933
21733
  }
22934
21734
  if (!stylisticOptions) {
22935
- configs8.push(prettier());
21735
+ configs7.push(prettier());
22936
21736
  }
22937
21737
  if (enableCSpell) {
22938
- configs8.push(cspell(resolveSubOptions(options, "cspell")));
21738
+ configs7.push(cspell(resolveSubOptions(options, "cspell")));
22939
21739
  }
22940
21740
  if (enableUnicorn) {
22941
- configs8.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
21741
+ configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
22942
21742
  }
22943
21743
  if (enableJSDoc) {
22944
- configs8.push(
21744
+ configs7.push(
22945
21745
  jsdoc({
22946
21746
  ...resolveSubOptions(options, "jsdoc"),
22947
21747
  overrides: getOverrides(options, "jsdoc")
@@ -22949,7 +21749,7 @@ function preset(options, ...userConfigs) {
22949
21749
  );
22950
21750
  }
22951
21751
  if (enableTSDoc) {
22952
- configs8.push(
21752
+ configs7.push(
22953
21753
  tsdoc({
22954
21754
  ...resolveSubOptions(options, "tsdoc"),
22955
21755
  overrides: getOverrides(options, "tsdoc")
@@ -22957,17 +21757,17 @@ function preset(options, ...userConfigs) {
22957
21757
  );
22958
21758
  }
22959
21759
  if (enableJsx) {
22960
- configs8.push(jsx());
21760
+ configs7.push(jsx());
22961
21761
  }
22962
21762
  if (enableZod) {
22963
- configs8.push(
21763
+ configs7.push(
22964
21764
  zod({
22965
21765
  overrides: getOverrides(options, "zod")
22966
21766
  })
22967
21767
  );
22968
21768
  }
22969
21769
  if (stylisticOptions) {
22970
- configs8.push(
21770
+ configs7.push(
22971
21771
  stylistic({
22972
21772
  ...stylisticOptions,
22973
21773
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -22977,10 +21777,10 @@ function preset(options, ...userConfigs) {
22977
21777
  );
22978
21778
  }
22979
21779
  if (enableRegexp) {
22980
- configs8.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
21780
+ configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
22981
21781
  }
22982
21782
  if (enableTest) {
22983
- configs8.push(
21783
+ configs7.push(
22984
21784
  test({
22985
21785
  isInEditor,
22986
21786
  overrides: getOverrides(options, "test")
@@ -22988,10 +21788,10 @@ function preset(options, ...userConfigs) {
22988
21788
  );
22989
21789
  }
22990
21790
  if (enableGraphQL) {
22991
- configs8.push(graphql(resolveSubOptions(options, "graphql")));
21791
+ configs7.push(graphql(resolveSubOptions(options, "graphql")));
22992
21792
  }
22993
21793
  if (enableReact) {
22994
- configs8.push(
21794
+ configs7.push(
22995
21795
  react({
22996
21796
  ...typescriptOptions,
22997
21797
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -23001,7 +21801,7 @@ function preset(options, ...userConfigs) {
23001
21801
  );
23002
21802
  }
23003
21803
  if (enableReactNative) {
23004
- configs8.push(
21804
+ configs7.push(
23005
21805
  reactNative({
23006
21806
  ...resolveSubOptions(options, "react-native"),
23007
21807
  overrides: getOverrides(options, "react-native")
@@ -23009,13 +21809,13 @@ function preset(options, ...userConfigs) {
23009
21809
  );
23010
21810
  }
23011
21811
  if (enableNext) {
23012
- configs8.push(next(resolveSubOptions(options, "next")));
21812
+ configs7.push(next(resolveSubOptions(options, "next")));
23013
21813
  }
23014
21814
  if (enableStorybook) {
23015
- configs8.push(storybook(resolveSubOptions(options, "storybook")));
21815
+ configs7.push(storybook(resolveSubOptions(options, "storybook")));
23016
21816
  }
23017
21817
  if (enableUnoCSS) {
23018
- configs8.push(
21818
+ configs7.push(
23019
21819
  unocss({
23020
21820
  ...resolveSubOptions(options, "unocss"),
23021
21821
  overrides: getOverrides(options, "unocss")
@@ -23023,7 +21823,7 @@ function preset(options, ...userConfigs) {
23023
21823
  );
23024
21824
  }
23025
21825
  if (enableAstro) {
23026
- configs8.push(
21826
+ configs7.push(
23027
21827
  astro({
23028
21828
  overrides: getOverrides(options, "astro"),
23029
21829
  stylistic: stylisticOptions
@@ -23031,7 +21831,7 @@ function preset(options, ...userConfigs) {
23031
21831
  );
23032
21832
  }
23033
21833
  if (enablePnpm ?? packageManager !== "bun") {
23034
- configs8.push(
21834
+ configs7.push(
23035
21835
  pnpm({
23036
21836
  overrides: getOverrides(options, "pnpm"),
23037
21837
  ignore: typeof enablePnpm !== "boolean" ? enablePnpm?.ignore : void 0
@@ -23039,13 +21839,13 @@ function preset(options, ...userConfigs) {
23039
21839
  );
23040
21840
  }
23041
21841
  if (enableBun ?? packageManager === "bun") {
23042
- configs8.push(bun({
21842
+ configs7.push(bun({
23043
21843
  overrides: getOverrides(options, "bun"),
23044
21844
  ignore: typeof enableBun !== "boolean" ? enableBun?.ignore : void 0
23045
21845
  }));
23046
21846
  }
23047
21847
  if (options.jsonc ?? true) {
23048
- configs8.push(
21848
+ configs7.push(
23049
21849
  jsonc({
23050
21850
  overrides: getOverrides(options, "jsonc"),
23051
21851
  stylistic: stylisticOptions
@@ -23053,11 +21853,11 @@ function preset(options, ...userConfigs) {
23053
21853
  sortTsconfig()
23054
21854
  );
23055
21855
  if (stylisticOptions) {
23056
- configs8.push(sortPackageJson());
21856
+ configs7.push(sortPackageJson());
23057
21857
  }
23058
21858
  }
23059
21859
  if (options.yaml ?? true) {
23060
- configs8.push(
21860
+ configs7.push(
23061
21861
  yaml({
23062
21862
  overrides: getOverrides(options, "yaml"),
23063
21863
  stylistic: stylisticOptions
@@ -23065,7 +21865,7 @@ function preset(options, ...userConfigs) {
23065
21865
  );
23066
21866
  }
23067
21867
  if (options.toml ?? true) {
23068
- configs8.push(
21868
+ configs7.push(
23069
21869
  toml({
23070
21870
  overrides: getOverrides(options, "toml"),
23071
21871
  stylistic: stylisticOptions
@@ -23073,28 +21873,28 @@ function preset(options, ...userConfigs) {
23073
21873
  );
23074
21874
  }
23075
21875
  if (options.markdown === true) {
23076
- configs8.push(
21876
+ configs7.push(
23077
21877
  markdown({
23078
21878
  overrides: getOverrides(options, "markdown")
23079
21879
  })
23080
21880
  );
23081
21881
  }
23082
21882
  if (enableMdx) {
23083
- configs8.push(
21883
+ configs7.push(
23084
21884
  mdx({
23085
21885
  overrides: getOverrides(options, "mdx")
23086
21886
  })
23087
21887
  );
23088
21888
  }
23089
21889
  if (options.formatters) {
23090
- configs8.push(
21890
+ configs7.push(
23091
21891
  formatters(
23092
21892
  options.formatters,
23093
21893
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
23094
21894
  )
23095
21895
  );
23096
21896
  }
23097
- configs8.push(disables());
21897
+ configs7.push(disables());
23098
21898
  if ("files" in options) {
23099
21899
  throw new Error(
23100
21900
  '[@storm-software/eslint] The first argument should not contain the "files" property as the options are supposed to be global. Place it in the second or later config instead.'
@@ -23106,10 +21906,10 @@ function preset(options, ...userConfigs) {
23106
21906
  }
23107
21907
  return acc;
23108
21908
  }, {});
23109
- if (Object.keys(fusedConfig).length) configs8.push([fusedConfig]);
21909
+ if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
23110
21910
  let composer = new eslintFlatConfigUtils.FlatConfigComposer();
23111
21911
  composer = composer.append(
23112
- ...configs8,
21912
+ ...configs7,
23113
21913
  ...userConfigs
23114
21914
  );
23115
21915
  if (autoRenamePlugins) {