@storm-software/eslint 0.170.71 → 0.170.72

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
@@ -40,12 +40,14 @@ var default12 = require('eslint-plugin-unused-imports');
40
40
  var globalsLib = require('globals');
41
41
  var eslintMergeProcessors = require('eslint-merge-processors');
42
42
  var devkit = require('@nx/devkit');
43
- var parserJsonc = require('jsonc-eslint-parser');
44
- var parserYaml = require('yaml-eslint-parser');
45
- var base = require('eslint-plugin-pnpm');
43
+ var jsoncParser = require('jsonc-eslint-parser');
44
+ var yamlParser = require('yaml-eslint-parser');
45
+ var findUpSimple = require('find-up-simple');
46
+ var pnpmWorkspaceYaml = require('pnpm-workspace-yaml');
47
+ var pathe = require('pathe');
48
+ var tinyglobby = require('tinyglobby');
46
49
  var config4 = require('eslint-plugin-prettier/recommended');
47
50
  var eslintPluginRegexp = require('eslint-plugin-regexp');
48
- var pluginTsdoc = require('eslint-plugin-tsdoc');
49
51
 
50
52
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
51
53
 
@@ -90,24 +92,588 @@ var default10__default = /*#__PURE__*/_interopDefault(default10);
90
92
  var default11__default = /*#__PURE__*/_interopDefault(default11);
91
93
  var default12__default = /*#__PURE__*/_interopDefault(default12);
92
94
  var globalsLib__default = /*#__PURE__*/_interopDefault(globalsLib);
93
- var parserJsonc__default = /*#__PURE__*/_interopDefault(parserJsonc);
94
- var parserYaml__default = /*#__PURE__*/_interopDefault(parserYaml);
95
- var base__default = /*#__PURE__*/_interopDefault(base);
95
+ var jsoncParser__namespace = /*#__PURE__*/_interopNamespace(jsoncParser);
96
+ var yamlParser__namespace = /*#__PURE__*/_interopNamespace(yamlParser);
96
97
  var config4__default = /*#__PURE__*/_interopDefault(config4);
97
- var pluginTsdoc__default = /*#__PURE__*/_interopDefault(pluginTsdoc);
98
98
 
99
+ var __create = Object.create;
100
+ var __defProp = Object.defineProperty;
101
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
102
+ var __getOwnPropNames = Object.getOwnPropertyNames;
103
+ var __getProtoOf = Object.getPrototypeOf;
104
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
99
105
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
100
106
  get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
101
107
  }) : x)(function(x) {
102
108
  if (typeof require !== "undefined") return require.apply(this, arguments);
103
109
  throw Error('Dynamic require of "' + x + '" is not supported');
104
110
  });
111
+ var __esm = (fn, res) => function __init() {
112
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
113
+ };
114
+ var __commonJS = (cb, mod) => function __require2() {
115
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
116
+ };
117
+ var __copyProps = (to, from, except, desc) => {
118
+ if (from && typeof from === "object" || typeof from === "function") {
119
+ for (let key of __getOwnPropNames(from))
120
+ if (!__hasOwnProp.call(to, key) && key !== except)
121
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
122
+ }
123
+ return to;
124
+ };
125
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
126
+ // If the importer is in node compatibility mode or this is not an ESM
127
+ // file that has been converted to a CommonJS file using a Babel-
128
+ // compatible transform (i.e. "__esModule" has not been set), then set
129
+ // "default" to the CommonJS "module.exports" for node compatibility.
130
+ __defProp(target, "default", { value: mod, enumerable: true }) ,
131
+ mod
132
+ ));
105
133
 
106
134
  // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__e047f64c50df51d8b0fb5bb8be64db0f/node_modules/tsup/assets/cjs_shims.js
107
- var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
108
- var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
135
+ var getImportMetaUrl, importMetaUrl;
136
+ var init_cjs_shims = __esm({
137
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__e047f64c50df51d8b0fb5bb8be64db0f/node_modules/tsup/assets/cjs_shims.js"() {
138
+ getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
139
+ importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
140
+ }
141
+ });
142
+
143
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
144
+ var require_Debug = __commonJS({
145
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
146
+ init_cjs_shims();
147
+ Object.defineProperty(exports, "__esModule", { value: true });
148
+ exports.Debug = void 0;
149
+ var Debug = class {
150
+ // To debug the plugin, temporarily uncomment the body of this function
151
+ static log(message2) {
152
+ }
153
+ };
154
+ exports.Debug = Debug;
155
+ }
156
+ });
157
+
158
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
159
+ var require_ConfigCache = __commonJS({
160
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
161
+ init_cjs_shims();
162
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
163
+ if (k2 === void 0) k2 = k;
164
+ var desc = Object.getOwnPropertyDescriptor(m, k);
165
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
166
+ desc = { enumerable: true, get: function() {
167
+ return m[k];
168
+ } };
169
+ }
170
+ Object.defineProperty(o, k2, desc);
171
+ }) : (function(o, m, k, k2) {
172
+ if (k2 === void 0) k2 = k;
173
+ o[k2] = m[k];
174
+ }));
175
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
176
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
177
+ }) : function(o, v) {
178
+ o["default"] = v;
179
+ });
180
+ var __importStar = exports && exports.__importStar || function(mod) {
181
+ if (mod && mod.__esModule) return mod;
182
+ var result = {};
183
+ if (mod != null) {
184
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
185
+ }
186
+ __setModuleDefault(result, mod);
187
+ return result;
188
+ };
189
+ Object.defineProperty(exports, "__esModule", { value: true });
190
+ exports.ConfigCache = void 0;
191
+ var tsdoc_config_1 = __require("@microsoft/tsdoc-config");
192
+ var path23 = __importStar(__require("path"));
193
+ var Debug_1 = require_Debug();
194
+ function _nullishCoalesce(lhs, rhsFn) {
195
+ if (lhs != null) {
196
+ return lhs;
197
+ } else {
198
+ return rhsFn();
199
+ }
200
+ }
201
+ var _fs = __require("fs");
202
+ var _path = __require("path");
203
+ var MAX_PATH_SEARCH_DEPTH3 = 30;
204
+ var depth3 = 0;
205
+ var ROOT_FILES = [
206
+ "storm-workspace.json",
207
+ "storm-workspace.json",
208
+ "storm-workspace.yaml",
209
+ "storm-workspace.yml",
210
+ "storm-workspace.js",
211
+ "storm-workspace.ts",
212
+ ".storm-workspace.json",
213
+ ".storm-workspace.yaml",
214
+ ".storm-workspace.yml",
215
+ ".storm-workspace.js",
216
+ ".storm-workspace.ts",
217
+ "lerna.json",
218
+ "nx.json",
219
+ "turbo.json",
220
+ "npm-workspace.json",
221
+ "yarn-workspace.json",
222
+ "pnpm-workspace.json",
223
+ "npm-workspace.yaml",
224
+ "yarn-workspace.yaml",
225
+ "pnpm-workspace.yaml",
226
+ "npm-workspace.yml",
227
+ "yarn-workspace.yml",
228
+ "pnpm-workspace.yml",
229
+ "npm-lock.json",
230
+ "yarn-lock.json",
231
+ "pnpm-lock.json",
232
+ "npm-lock.yaml",
233
+ "yarn-lock.yaml",
234
+ "pnpm-lock.yaml",
235
+ "npm-lock.yml",
236
+ "yarn-lock.yml",
237
+ "pnpm-lock.yml",
238
+ "bun.lockb"
239
+ ];
240
+ var ROOT_DIRECTORIES = [
241
+ ".storm-workspace",
242
+ ".nx",
243
+ ".github",
244
+ ".vscode",
245
+ ".verdaccio"
246
+ ];
247
+ function findWorkspaceRoot3(startPath) {
248
+ const _startPath = _nullishCoalesce(startPath, () => process.cwd());
249
+ if (ROOT_DIRECTORIES.some(
250
+ (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
251
+ )) {
252
+ return _startPath;
253
+ }
254
+ if (ROOT_FILES.some(
255
+ (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
256
+ )) {
257
+ return _startPath;
258
+ }
259
+ if (_startPath !== "/" && depth3++ < MAX_PATH_SEARCH_DEPTH3) {
260
+ const parent = _path.join.call(void 0, _startPath, "..");
261
+ return findWorkspaceRoot3(parent);
262
+ }
263
+ return void 0;
264
+ }
265
+ var CACHE_CHECK_INTERVAL_MS = 3 * 1e3;
266
+ var CACHE_EXPIRE_MS = 20 * 1e3;
267
+ var CACHE_MAX_SIZE = 100;
268
+ var ConfigCache = class _ConfigCache {
269
+ /**
270
+ * Node.js equivalent of performance.now().
271
+ */
272
+ static _getTimeInMs() {
273
+ const [seconds, nanoseconds] = process.hrtime();
274
+ return seconds * 1e3 + nanoseconds / 1e6;
275
+ }
276
+ static getForSourceFile(sourceFilePath, tsConfigRootDir) {
277
+ const sourceFileFolder = path23.dirname(path23.resolve(sourceFilePath));
278
+ const configFilePath = tsConfigRootDir ? path23.join(tsConfigRootDir, tsdoc_config_1.TSDocConfigFile.FILENAME) : tsdoc_config_1.TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
279
+ const cacheKey = configFilePath || sourceFileFolder + "/";
280
+ Debug_1.Debug.log(`Cache key: "${cacheKey}"`);
281
+ const nowMs = _ConfigCache._getTimeInMs();
282
+ let cachedConfig = void 0;
283
+ cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
284
+ if (cachedConfig) {
285
+ Debug_1.Debug.log("Cache hit");
286
+ const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
287
+ const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
288
+ if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
289
+ Debug_1.Debug.log("Evicting because item is expired");
290
+ cachedConfig = void 0;
291
+ _ConfigCache._cachedConfigs.delete(cacheKey);
292
+ } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
293
+ Debug_1.Debug.log("Checking for modifications");
294
+ cachedConfig.lastCheckTimeMs = nowMs;
295
+ if (cachedConfig.configFile.checkForModifiedFiles()) {
296
+ Debug_1.Debug.log("Evicting because item was modified");
297
+ cachedConfig = void 0;
298
+ _ConfigCache._cachedConfigs.delete(cacheKey);
299
+ }
300
+ }
301
+ }
302
+ if (!cachedConfig) {
303
+ if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
304
+ Debug_1.Debug.log("Clearing cache");
305
+ _ConfigCache._cachedConfigs.clear();
306
+ }
307
+ const configFile = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
308
+ if (configFile.fileNotFound) {
309
+ Debug_1.Debug.log(`File not found: "${configFilePath}"`);
310
+ } else {
311
+ Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
312
+ }
313
+ cachedConfig = {
314
+ configFile,
315
+ lastCheckTimeMs: nowMs,
316
+ loadTimeMs: nowMs
317
+ };
318
+ _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
319
+ }
320
+ return cachedConfig.configFile;
321
+ }
322
+ static _checkConfigFilePath(workspaceRoot, configFilePath) {
323
+ const workspaceRootPath = workspaceRoot ? workspaceRoot : "./";
324
+ if (!configFilePath) {
325
+ return void 0;
326
+ }
327
+ if (_fs.existsSync(configFilePath)) {
328
+ return configFilePath;
329
+ } else if (_fs.existsSync(
330
+ path23.join(
331
+ workspaceRootPath,
332
+ configFilePath
333
+ )
334
+ )) {
335
+ return path23.join(
336
+ workspaceRootPath,
337
+ configFilePath
338
+ );
339
+ } else if (_fs.existsSync(
340
+ path23.join(
341
+ workspaceRootPath,
342
+ "node_modules",
343
+ configFilePath
344
+ )
345
+ )) {
346
+ return path23.join(
347
+ workspaceRootPath,
348
+ "node_modules",
349
+ configFilePath
350
+ );
351
+ } else if (_fs.existsSync(
352
+ path23.join(
353
+ workspaceRootPath,
354
+ "node_modules",
355
+ "@storm-software",
356
+ "tsdoc",
357
+ configFilePath
358
+ )
359
+ )) {
360
+ return path23.join(
361
+ workspaceRootPath,
362
+ "node_modules",
363
+ "@storm-software",
364
+ "tsdoc",
365
+ configFilePath
366
+ );
367
+ } else if (_fs.existsSync(
368
+ path23.join(
369
+ workspaceRootPath,
370
+ "node_modules",
371
+ "@storm-software",
372
+ "tsdoc",
373
+ "config",
374
+ configFilePath
375
+ )
376
+ )) {
377
+ return path23.join(
378
+ workspaceRootPath,
379
+ "node_modules",
380
+ "@storm-software",
381
+ "tsdoc",
382
+ "config",
383
+ configFilePath
384
+ );
385
+ } else if (_fs.existsSync(
386
+ path23.join(
387
+ workspaceRootPath,
388
+ "node_modules",
389
+ "@storm-software",
390
+ "tsdoc",
391
+ "dist",
392
+ configFilePath
393
+ )
394
+ )) {
395
+ return path23.join(
396
+ workspaceRootPath,
397
+ "node_modules",
398
+ "@storm-software",
399
+ "tsdoc",
400
+ "dist",
401
+ configFilePath
402
+ );
403
+ }
404
+ return void 0;
405
+ }
406
+ static getStormConfigFile(options) {
407
+ const type = options && options.type ? options.type : "recommended";
408
+ const configFile = options && options.configFile ? options.configFile : void 0;
409
+ let workspaceRoot = "";
410
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
411
+ workspaceRoot = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
412
+ }
413
+ if (!workspaceRoot) {
414
+ workspaceRoot = findWorkspaceRoot3();
415
+ }
416
+ let currentConfigFile = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
417
+ Debug_1.Debug.log(`Config file from user options: ${currentConfigFile || "(none)"}`);
418
+ let configFilePath = _ConfigCache._checkConfigFilePath(
419
+ workspaceRoot,
420
+ currentConfigFile
421
+ );
422
+ if (!configFilePath) {
423
+ currentConfigFile = `${((process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type) || "recommended").replace(/\.jsonc?$/, "")}.json`;
424
+ Debug_1.Debug.log(`Config file from user options not found, trying: ${currentConfigFile}`);
425
+ configFilePath = _ConfigCache._checkConfigFilePath(
426
+ workspaceRoot,
427
+ currentConfigFile
428
+ );
429
+ if (!configFilePath) {
430
+ configFilePath = _ConfigCache._checkConfigFilePath(
431
+ workspaceRoot,
432
+ "recommended.json"
433
+ );
434
+ if (!configFilePath) {
435
+ configFilePath = _ConfigCache._checkConfigFilePath(
436
+ workspaceRoot,
437
+ "tsdoc.json"
438
+ );
439
+ }
440
+ }
441
+ }
442
+ const cacheKey = configFilePath || "missing-config-file";
443
+ Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
444
+ const nowMs = _ConfigCache._getTimeInMs();
445
+ let cachedConfig = void 0;
446
+ cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
447
+ if (cachedConfig) {
448
+ Debug_1.Debug.log("Cache hit");
449
+ const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
450
+ const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
451
+ if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
452
+ Debug_1.Debug.log("Evicting because item is expired");
453
+ cachedConfig = void 0;
454
+ _ConfigCache._cachedConfigs.delete(cacheKey);
455
+ } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
456
+ Debug_1.Debug.log("Checking for modifications");
457
+ cachedConfig.lastCheckTimeMs = nowMs;
458
+ if (cachedConfig.configFile.checkForModifiedFiles()) {
459
+ Debug_1.Debug.log("Evicting because item was modified");
460
+ cachedConfig = void 0;
461
+ _ConfigCache._cachedConfigs.delete(cacheKey);
462
+ }
463
+ }
464
+ }
465
+ if (!cachedConfig) {
466
+ if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
467
+ Debug_1.Debug.log("Clearing cache");
468
+ _ConfigCache._cachedConfigs.clear();
469
+ }
470
+ const configFile2 = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
471
+ if (configFile2.fileNotFound) {
472
+ Debug_1.Debug.log(`File not found: "${configFilePath}"`);
473
+ } else {
474
+ Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
475
+ }
476
+ cachedConfig = {
477
+ configFile: configFile2,
478
+ lastCheckTimeMs: nowMs,
479
+ loadTimeMs: nowMs
480
+ };
481
+ _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
482
+ }
483
+ return cachedConfig.configFile;
484
+ }
485
+ };
486
+ exports.ConfigCache = ConfigCache;
487
+ ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
488
+ ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
489
+ }
490
+ });
491
+
492
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js
493
+ var require_lib = __commonJS({
494
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
495
+ init_cjs_shims();
496
+ var tsdoc_1 = __require("@microsoft/tsdoc");
497
+ var Debug_1 = require_Debug();
498
+ var ConfigCache_1 = require_ConfigCache();
499
+ var tsdocMessageIds = {};
500
+ var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration();
501
+ defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
502
+ tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
503
+ });
504
+ var plugin6 = {
505
+ rules: {
506
+ // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
507
+ // from the NPM package name, and then appending this string.
508
+ syntax: {
509
+ meta: {
510
+ messages: Object.assign({
511
+ "error-loading-storm-config": `Error loading Storm Software's shared TSDoc config file:
512
+ {{details}}
513
+
514
+ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
515
+ "error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
516
+ "error-applying-storm-config": "Error applying Storm Software's shared TSDoc configuration: {{details}}",
517
+ "error-applying-config": "Error applying TSDoc configuration: {{details}}"
518
+ }, tsdocMessageIds),
519
+ type: "problem",
520
+ docs: {
521
+ description: "Validates that TypeScript documentation comments conform to the TSDoc standard",
522
+ category: "Stylistic Issues",
523
+ recommended: true,
524
+ url: "https://tsdoc.org/pages/packages/eslint-plugin-tsdoc"
525
+ },
526
+ schema: [
527
+ {
528
+ type: "object",
529
+ properties: {
530
+ type: {
531
+ type: "string",
532
+ enum: ["typedoc", "api-extractor", "base", "core", "callouts", "recommended"],
533
+ description: "The TSDoc configuration type to use from '@storm-software/tsdoc'. Defaults to 'recommended' (@storm-software/tsdoc/recommended.json)."
534
+ },
535
+ configFile: {
536
+ type: "string",
537
+ description: "The TSDoc configuration file to use."
538
+ }
539
+ },
540
+ additionalProperties: false
541
+ }
542
+ ]
543
+ },
544
+ defaultOptions: [
545
+ {
546
+ type: "recommended"
547
+ }
548
+ ],
549
+ create: (context) => {
550
+ const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
551
+ const tsConfigDir = context.parserOptions.tsconfigRootDir;
552
+ const sourceFilePath = context.filename;
553
+ Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
554
+ try {
555
+ let tsdocConfigFile = {};
556
+ try {
557
+ const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
558
+ const config5 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
559
+ Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config5, void 0, 2)}`);
560
+ tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config5);
561
+ if (!tsdocConfigFile.fileNotFound) {
562
+ if (tsdocConfigFile.hasErrors) {
563
+ context.report({
564
+ loc: { line: 1, column: 1 },
565
+ messageId: "error-loading-storm-config",
566
+ data: {
567
+ details: tsdocConfigFile.getErrorSummary()
568
+ }
569
+ });
570
+ }
571
+ try {
572
+ tsdocConfigFile.configureParser(tsdocConfiguration);
573
+ } catch (e) {
574
+ context.report({
575
+ loc: { line: 1, column: 1 },
576
+ messageId: "error-applying-storm-config",
577
+ data: {
578
+ details: e.message
579
+ }
580
+ });
581
+ }
582
+ }
583
+ } catch (e) {
584
+ context.report({
585
+ loc: { line: 1, column: 1 },
586
+ messageId: "error-loading-storm-config",
587
+ data: {
588
+ details: `Unexpected exception: ${e.message}`
589
+ }
590
+ });
591
+ }
592
+ if (!tsdocConfigFile || tsdocConfigFile.fileNotFound || tsdocConfigFile.hasErrors) {
593
+ tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath, tsConfigDir);
594
+ if (!tsdocConfigFile.fileNotFound) {
595
+ if (tsdocConfigFile.hasErrors) {
596
+ context.report({
597
+ loc: { line: 1, column: 1 },
598
+ messageId: "error-loading-config-file",
599
+ data: {
600
+ details: tsdocConfigFile.getErrorSummary()
601
+ }
602
+ });
603
+ }
604
+ try {
605
+ tsdocConfigFile.configureParser(tsdocConfiguration);
606
+ } catch (e) {
607
+ context.report({
608
+ loc: { line: 1, column: 1 },
609
+ messageId: "error-applying-config",
610
+ data: {
611
+ details: e.message
612
+ }
613
+ });
614
+ }
615
+ }
616
+ }
617
+ } catch (e) {
618
+ context.report({
619
+ loc: { line: 1, column: 1 },
620
+ messageId: "error-loading-config-file",
621
+ data: {
622
+ details: `Unexpected exception: ${e.message}`
623
+ }
624
+ });
625
+ }
626
+ const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
627
+ const sourceCode = context.getSourceCode();
628
+ const checkCommentBlocks = function(node2) {
629
+ for (const comment of sourceCode.getAllComments()) {
630
+ if (comment.type !== "Block") {
631
+ continue;
632
+ }
633
+ if (!comment.range) {
634
+ continue;
635
+ }
636
+ const textRange = tsdoc_1.TextRange.fromStringRange(sourceCode.text, comment.range[0], comment.range[1]);
637
+ if (textRange.length < 5) {
638
+ continue;
639
+ }
640
+ if (textRange.buffer[textRange.pos + 2] !== "*") {
641
+ continue;
642
+ }
643
+ const parserContext = tsdocParser.parseRange(textRange);
644
+ for (const message2 of parserContext.log.messages) {
645
+ context.report({
646
+ loc: {
647
+ start: sourceCode.getLocFromIndex(message2.textRange.pos),
648
+ end: sourceCode.getLocFromIndex(message2.textRange.end)
649
+ },
650
+ messageId: message2.messageId,
651
+ data: {
652
+ unformattedText: message2.unformattedText
653
+ }
654
+ });
655
+ }
656
+ }
657
+ };
658
+ return {
659
+ Program: checkCommentBlocks
660
+ };
661
+ }
662
+ }
663
+ }
664
+ };
665
+ module.exports = plugin6;
666
+ }
667
+ });
668
+
669
+ // src/preset.ts
670
+ init_cjs_shims();
671
+
672
+ // src/configs/astro.ts
673
+ init_cjs_shims();
109
674
 
110
675
  // ../package-constants/src/globs.ts
676
+ init_cjs_shims();
111
677
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
112
678
  var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
113
679
  var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
@@ -269,6 +835,9 @@ var GLOB_EXCLUDE = [
269
835
  ".nx/**/*",
270
836
  "**/.nx/**/*"
271
837
  ];
838
+
839
+ // src/utils/helpers.ts
840
+ init_cjs_shims();
272
841
  var scopeUrl = url$1.fileURLToPath(new URL(".", importMetaUrl));
273
842
  var isCwdInScope = localPkg.isPackageExists("@storm-software/eslint");
274
843
  var parserPlain = {
@@ -303,8 +872,8 @@ async function interopDefault(m) {
303
872
  const resolved = await m;
304
873
  return resolved.default || resolved;
305
874
  }
306
- function isPackageInScope(name2) {
307
- return localPkg.isPackageExists(name2, { paths: [scopeUrl] });
875
+ function isPackageInScope(name3) {
876
+ return localPkg.isPackageExists(name3, { paths: [scopeUrl] });
308
877
  }
309
878
  async function ensurePackages(packages) {
310
879
  if (process2__default.default.env.CI || process2__default.default.stdout.isTTY === false || isCwdInScope === false)
@@ -324,9 +893,9 @@ async function ensurePackages(packages) {
324
893
  (i) => i.installPackage(nonExistingPackages, { dev: true })
325
894
  );
326
895
  }
327
- function renameRules(rules4, map) {
896
+ function renameRules(rules5, map) {
328
897
  return Object.fromEntries(
329
- Object.entries(rules4).map(([key, value]) => {
898
+ Object.entries(rules5).map(([key, value]) => {
330
899
  for (const [from, to] of Object.entries(map)) {
331
900
  if (key.startsWith(`${from}/`))
332
901
  return [to + key.slice(from.length), value];
@@ -388,7 +957,17 @@ async function astro(options = {}) {
388
957
  ];
389
958
  }
390
959
 
960
+ // src/configs/banner.ts
961
+ init_cjs_shims();
962
+
963
+ // ../config-tools/src/config-file/get-config-file.ts
964
+ init_cjs_shims();
965
+
966
+ // ../config-tools/src/logger/console.ts
967
+ init_cjs_shims();
968
+
391
969
  // ../config-tools/src/types.ts
970
+ init_cjs_shims();
392
971
  var LogLevel = {
393
972
  SILENT: 0,
394
973
  FATAL: 10,
@@ -415,6 +994,7 @@ var LogLevelLabel = {
415
994
  };
416
995
 
417
996
  // ../config-tools/src/utilities/colors.ts
997
+ init_cjs_shims();
418
998
  var DEFAULT_COLOR_CONFIG = {
419
999
  dark: {
420
1000
  brand: "#2dd4bf",
@@ -426,6 +1006,9 @@ var DEFAULT_COLOR_CONFIG = {
426
1006
  fatal: "#a40e26",
427
1007
  performance: "#80fd74"}
428
1008
  };
1009
+
1010
+ // ../config-tools/src/logger/chalk.ts
1011
+ init_cjs_shims();
429
1012
  var chalkDefault = {
430
1013
  hex: (_) => (message2) => message2,
431
1014
  bgHex: (_) => ({
@@ -457,7 +1040,11 @@ var getChalk = () => {
457
1040
  return _chalk;
458
1041
  };
459
1042
 
1043
+ // ../config-tools/src/logger/console-icons.ts
1044
+ init_cjs_shims();
1045
+
460
1046
  // ../config-tools/src/logger/is-unicode-supported.ts
1047
+ init_cjs_shims();
461
1048
  function isUnicodeSupported() {
462
1049
  if (process.platform !== "win32") {
463
1050
  return process.env.TERM !== "linux";
@@ -483,11 +1070,13 @@ var CONSOLE_ICONS = {
483
1070
  };
484
1071
 
485
1072
  // ../config-tools/src/logger/format-timestamp.ts
1073
+ init_cjs_shims();
486
1074
  var formatTimestamp = (fullDateTime = false, date2 = /* @__PURE__ */ new Date()) => {
487
1075
  return fullDateTime ? `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}` : `${date2.toLocaleTimeString()}`;
488
1076
  };
489
1077
 
490
1078
  // ../config-tools/src/logger/get-log-level.ts
1079
+ init_cjs_shims();
491
1080
  var getLogLevel = (label) => {
492
1081
  switch (label) {
493
1082
  case "all":
@@ -696,7 +1285,11 @@ var _isFunction = (value) => {
696
1285
  }
697
1286
  };
698
1287
 
1288
+ // ../config-tools/src/utilities/find-workspace-root.ts
1289
+ init_cjs_shims();
1290
+
699
1291
  // ../config-tools/src/utilities/correct-paths.ts
1292
+ init_cjs_shims();
700
1293
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
701
1294
  function normalizeWindowsPath(input = "") {
702
1295
  if (!input) {
@@ -819,6 +1412,9 @@ function normalizeString(path23, allowAboveRoot) {
819
1412
  var isAbsolute = function(p) {
820
1413
  return _IS_ABSOLUTE_RE.test(p);
821
1414
  };
1415
+
1416
+ // ../config-tools/src/utilities/find-up.ts
1417
+ init_cjs_shims();
822
1418
  var MAX_PATH_SEARCH_DEPTH = 30;
823
1419
  var depth = 0;
824
1420
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
@@ -909,7 +1505,14 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
909
1505
  return result;
910
1506
  }
911
1507
 
1508
+ // ../config-tools/src/utilities/get-default-config.ts
1509
+ init_cjs_shims();
1510
+
1511
+ // ../config/src/index.ts
1512
+ init_cjs_shims();
1513
+
912
1514
  // ../config/src/constants.ts
1515
+ init_cjs_shims();
913
1516
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
914
1517
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
915
1518
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
@@ -917,10 +1520,20 @@ var STORM_DEFAULT_LICENSE = "Apache-2.0";
917
1520
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
918
1521
  var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
919
1522
 
1523
+ // ../config/src/define-config.ts
1524
+ init_cjs_shims();
1525
+
1526
+ // ../config/src/schema.ts
1527
+ init_cjs_shims();
1528
+
1529
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
1530
+ init_cjs_shims();
1531
+
920
1532
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
1533
+ init_cjs_shims();
921
1534
  var _a;
922
1535
  // @__NO_SIDE_EFFECTS__
923
- function $constructor(name2, initializer2, params) {
1536
+ function $constructor(name3, initializer2, params) {
924
1537
  function init(inst, def) {
925
1538
  if (!inst._zod) {
926
1539
  Object.defineProperty(inst, "_zod", {
@@ -932,10 +1545,10 @@ function $constructor(name2, initializer2, params) {
932
1545
  enumerable: false
933
1546
  });
934
1547
  }
935
- if (inst._zod.traits.has(name2)) {
1548
+ if (inst._zod.traits.has(name3)) {
936
1549
  return;
937
1550
  }
938
- inst._zod.traits.add(name2);
1551
+ inst._zod.traits.add(name3);
939
1552
  initializer2(inst, def);
940
1553
  const proto = _.prototype;
941
1554
  const keys = Object.keys(proto);
@@ -949,7 +1562,7 @@ function $constructor(name2, initializer2, params) {
949
1562
  const Parent = params?.Parent ?? Object;
950
1563
  class Definition extends Parent {
951
1564
  }
952
- Object.defineProperty(Definition, "name", { value: name2 });
1565
+ Object.defineProperty(Definition, "name", { value: name3 });
953
1566
  function _(def) {
954
1567
  var _a4;
955
1568
  const inst = params?.Parent ? new Definition() : this;
@@ -965,10 +1578,10 @@ function $constructor(name2, initializer2, params) {
965
1578
  value: (inst) => {
966
1579
  if (params?.Parent && inst instanceof params.Parent)
967
1580
  return true;
968
- return inst?._zod?.traits?.has(name2);
1581
+ return inst?._zod?.traits?.has(name3);
969
1582
  }
970
1583
  });
971
- Object.defineProperty(_, "name", { value: name2 });
1584
+ Object.defineProperty(_, "name", { value: name3 });
972
1585
  return _;
973
1586
  }
974
1587
  var $ZodAsyncError = class extends Error {
@@ -982,7 +1595,14 @@ function config(newConfig) {
982
1595
  return globalConfig;
983
1596
  }
984
1597
 
1598
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
1599
+ init_cjs_shims();
1600
+
1601
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
1602
+ init_cjs_shims();
1603
+
985
1604
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
1605
+ init_cjs_shims();
986
1606
  function getEnumValues(entries) {
987
1607
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
988
1608
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -1219,7 +1839,14 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1219
1839
  };
1220
1840
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1221
1841
 
1842
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
1843
+ init_cjs_shims();
1844
+
1845
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
1846
+ init_cjs_shims();
1847
+
1222
1848
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
1849
+ init_cjs_shims();
1223
1850
  var httpProtocol = /^https?$/;
1224
1851
  var string = (params) => {
1225
1852
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
@@ -1321,6 +1948,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1321
1948
  });
1322
1949
 
1323
1950
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
1951
+ init_cjs_shims();
1324
1952
  var version = {
1325
1953
  major: 4,
1326
1954
  minor: 4,
@@ -2043,6 +2671,7 @@ function handleDefaultResult(payload, def) {
2043
2671
  }
2044
2672
 
2045
2673
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
2674
+ init_cjs_shims();
2046
2675
  var _a2;
2047
2676
  var $ZodRegistry = class {
2048
2677
  constructor() {
@@ -2090,6 +2719,7 @@ function registry() {
2090
2719
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
2091
2720
 
2092
2721
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
2722
+ init_cjs_shims();
2093
2723
  // @__NO_SIDE_EFFECTS__
2094
2724
  function _string(Class, params) {
2095
2725
  return new Class({
@@ -2153,7 +2783,11 @@ function _toLowerCase() {
2153
2783
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
2154
2784
  }
2155
2785
 
2786
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/parse.js
2787
+ init_cjs_shims();
2788
+
2156
2789
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
2790
+ init_cjs_shims();
2157
2791
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
2158
2792
  if (!inst._zod)
2159
2793
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -2342,6 +2976,9 @@ function _default(innerType, defaultValue) {
2342
2976
  });
2343
2977
  }
2344
2978
 
2979
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/checks.js
2980
+ init_cjs_shims();
2981
+
2345
2982
  // ../config/src/schema.ts
2346
2983
  var schemaRegistry = registry();
2347
2984
  var colorSchema = string2().check(
@@ -2911,6 +3548,7 @@ schemaRegistry.add(extensionsSchema, {
2911
3548
  });
2912
3549
 
2913
3550
  // ../config/src/types.ts
3551
+ init_cjs_shims();
2914
3552
  var COLOR_KEYS = [
2915
3553
  "dark",
2916
3554
  "light",
@@ -2933,7 +3571,7 @@ async function getPackageJsonConfig(root) {
2933
3571
  let license = STORM_DEFAULT_LICENSE;
2934
3572
  let homepage = void 0;
2935
3573
  let support = void 0;
2936
- let name2 = void 0;
3574
+ let name3 = void 0;
2937
3575
  let namespace = void 0;
2938
3576
  let repository = void 0;
2939
3577
  const workspaceRoot = findWorkspaceRoot(root);
@@ -2945,7 +3583,7 @@ async function getPackageJsonConfig(root) {
2945
3583
  if (file) {
2946
3584
  const packageJson = JSON.parse(file);
2947
3585
  if (packageJson.name) {
2948
- name2 = packageJson.name;
3586
+ name3 = packageJson.name;
2949
3587
  }
2950
3588
  if (packageJson.namespace) {
2951
3589
  namespace = packageJson.namespace;
@@ -2974,7 +3612,7 @@ async function getPackageJsonConfig(root) {
2974
3612
  }
2975
3613
  return {
2976
3614
  workspaceRoot,
2977
- name: name2,
3615
+ name: name3,
2978
3616
  namespace,
2979
3617
  repository,
2980
3618
  license,
@@ -3015,7 +3653,7 @@ function applyDefaultConfig(config5) {
3015
3653
  // ../config-tools/src/config-file/get-config-file.ts
3016
3654
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
3017
3655
  const workspacePath = filePath || findWorkspaceRoot(filePath);
3018
- const configs5 = await Promise.all([
3656
+ const configs6 = await Promise.all([
3019
3657
  c12.loadConfig({
3020
3658
  cwd: workspacePath,
3021
3659
  packageJson: true,
@@ -3046,7 +3684,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
3046
3684
  ...options
3047
3685
  })
3048
3686
  ]);
3049
- return defu__default.default(configs5[0] ?? {}, configs5[1] ?? {});
3687
+ return defu__default.default(configs6[0] ?? {}, configs6[1] ?? {});
3050
3688
  };
3051
3689
  var getConfigFile = async (filePath, additionalFileNames = []) => {
3052
3690
  const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
@@ -3087,6 +3725,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
3087
3725
  config5.configFile = configFile;
3088
3726
  return config5;
3089
3727
  };
3728
+
3729
+ // ../config-tools/src/create-storm-config.ts
3730
+ init_cjs_shims();
3731
+
3732
+ // ../config-tools/src/env/get-env.ts
3733
+ init_cjs_shims();
3090
3734
  var getConfigEnv = () => {
3091
3735
  const prefix = "STORM_";
3092
3736
  let config5 = {
@@ -3291,6 +3935,7 @@ var getBaseThemeColorsEnv = (prefix) => {
3291
3935
  };
3292
3936
 
3293
3937
  // ../config-tools/src/env/set-env.ts
3938
+ init_cjs_shims();
3294
3939
  var setExtensionEnv = (extensionName, extension) => {
3295
3940
  for (const key of Object.keys(extension ?? {})) {
3296
3941
  if (extension[key]) {
@@ -3763,6 +4408,7 @@ ${formatLogMessage(config5)}`,
3763
4408
  };
3764
4409
 
3765
4410
  // ../config-tools/src/get-config.ts
4411
+ init_cjs_shims();
3766
4412
  async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
3767
4413
  try {
3768
4414
  let workspaceRoot = options.workspaceRoot;
@@ -3779,12 +4425,30 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
3779
4425
  }
3780
4426
  }
3781
4427
 
4428
+ // ../eslint-plugin-banner/src/index.ts
4429
+ init_cjs_shims();
4430
+
4431
+ // ../eslint-plugin-banner/src/configs/index.ts
4432
+ init_cjs_shims();
4433
+
4434
+ // ../eslint-plugin-banner/src/configs/recommended.ts
4435
+ init_cjs_shims();
4436
+
4437
+ // ../eslint-plugin-banner/src/plugin.ts
4438
+ init_cjs_shims();
4439
+
3782
4440
  // ../eslint-plugin-banner/package.json
3783
4441
  var package_default = {
3784
- version: "0.0.10"};
4442
+ version: "0.0.11"};
4443
+
4444
+ // ../eslint-plugin-banner/src/rules/banner.ts
4445
+ init_cjs_shims();
4446
+
4447
+ // ../eslint-plugin-banner/src/helpers/create-rule.ts
4448
+ init_cjs_shims();
3785
4449
  function RuleCreator(urlCreator) {
3786
4450
  return function createNamedRule({
3787
- name: name2,
4451
+ name: name3,
3788
4452
  meta: meta3,
3789
4453
  ...rule
3790
4454
  }) {
@@ -3793,7 +4457,7 @@ function RuleCreator(urlCreator) {
3793
4457
  ...meta3,
3794
4458
  docs: {
3795
4459
  ...meta3.docs,
3796
- url: urlCreator(name2)
4460
+ url: urlCreator(name3)
3797
4461
  }
3798
4462
  },
3799
4463
  ...rule
@@ -3820,7 +4484,11 @@ var createRule = RuleCreator(
3820
4484
  (ruleName) => `https://docs.stormsoftware.com/projects/shell-shock/eslint/rules/${ruleName}.md`
3821
4485
  );
3822
4486
 
4487
+ // ../eslint-plugin-banner/src/helpers/get-banner.ts
4488
+ init_cjs_shims();
4489
+
3823
4490
  // ../package-constants/src/acronyms.ts
4491
+ init_cjs_shims();
3824
4492
  var ACRONYMS_LIST = [
3825
4493
  "API",
3826
4494
  "ASCII",
@@ -3865,12 +4533,12 @@ var ACRONYMS_LIST = [
3865
4533
 
3866
4534
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
3867
4535
  function getBanner(options) {
3868
- const { name: name2 } = options;
4536
+ const { name: name3 } = options;
3869
4537
  let padding = " ";
3870
- for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
4538
+ for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
3871
4539
  padding = padding.slice(0, -1);
3872
4540
  }
3873
- let titleName = name2;
4541
+ let titleName = name3;
3874
4542
  if (titleName) {
3875
4543
  if (titleName?.startsWith("@")) {
3876
4544
  titleName = titleName.slice(1);
@@ -3886,8 +4554,8 @@ function getBanner(options) {
3886
4554
  const organization = options.organization || "storm-software";
3887
4555
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
3888
4556
  const homepage = options.homepage || "https://stormsoftware.com";
3889
- const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
3890
- const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
4557
+ const repository = options.repository || `https://github.com/${organization}${name3 ? `/${name3}` : ""}`;
4558
+ const docs = options.docs || `https://docs.stormsoftware.com${name3 ? `/projects/${name3}` : ""}`;
3891
4559
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
3892
4560
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
3893
4561
  return word.toUpperCase();
@@ -3902,7 +4570,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
3902
4570
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
3903
4571
  is maintained by ${formattedOrganization} under the ${license} license, and is
3904
4572
  free for commercial and private use. For more information, please visit
3905
- our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
4573
+ our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
3906
4574
 
3907
4575
  Website: ${homepage}
3908
4576
  Repository: ${repository}
@@ -4100,7 +4768,7 @@ var banner_default = createRule({
4100
4768
  ],
4101
4769
  create: (context) => {
4102
4770
  const {
4103
- name: name2,
4771
+ name: name3,
4104
4772
  license,
4105
4773
  organization,
4106
4774
  licensing,
@@ -4112,7 +4780,7 @@ var banner_default = createRule({
4112
4780
  lineEndings
4113
4781
  } = context.options[0];
4114
4782
  const banner2 = getBanner({
4115
- name: name2,
4783
+ name: name3,
4116
4784
  license,
4117
4785
  organization,
4118
4786
  licensing,
@@ -4380,7 +5048,11 @@ async function banner(options = {}) {
4380
5048
  ];
4381
5049
  }
4382
5050
 
5051
+ // src/configs/cspell.ts
5052
+ init_cjs_shims();
5053
+
4383
5054
  // src/utils/correct-paths.ts
5055
+ init_cjs_shims();
4384
5056
  var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
4385
5057
  function normalizeWindowsPath2(input = "") {
4386
5058
  if (!input) {
@@ -4544,6 +5216,9 @@ var relative = function(from, to) {
4544
5216
  }
4545
5217
  return [..._from.map(() => ".."), ..._to].join("/");
4546
5218
  };
5219
+
5220
+ // src/utils/find-workspace-root.ts
5221
+ init_cjs_shims();
4547
5222
  var MAX_PATH_SEARCH_DEPTH2 = 30;
4548
5223
  var depth2 = 0;
4549
5224
  function findFolderUp2(startPath, endFileNames = [], endDirectoryNames = []) {
@@ -4657,6 +5332,7 @@ async function cspell(options = {}) {
4657
5332
  }
4658
5333
 
4659
5334
  // src/configs/disables.ts
5335
+ init_cjs_shims();
4660
5336
  async function disables() {
4661
5337
  return [
4662
5338
  {
@@ -4702,7 +5378,11 @@ async function disables() {
4702
5378
  ];
4703
5379
  }
4704
5380
 
5381
+ // src/configs/formatters.ts
5382
+ init_cjs_shims();
5383
+
4705
5384
  // src/configs/stylistic.ts
5385
+ init_cjs_shims();
4706
5386
  var StylisticConfigDefaults = {
4707
5387
  indent: 2,
4708
5388
  jsx: true,
@@ -4829,7 +5509,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4829
5509
  options.dprintOptions ?? {}
4830
5510
  );
4831
5511
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
4832
- const configs5 = [
5512
+ const configs6 = [
4833
5513
  {
4834
5514
  name: "storm/formatter/setup",
4835
5515
  plugins: {
@@ -4838,7 +5518,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4838
5518
  }
4839
5519
  ];
4840
5520
  if (options.css) {
4841
- configs5.push(
5521
+ configs6.push(
4842
5522
  {
4843
5523
  files: [GLOB_CSS, GLOB_POSTCSS],
4844
5524
  languageOptions: {
@@ -4887,7 +5567,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4887
5567
  );
4888
5568
  }
4889
5569
  if (options.html) {
4890
- configs5.push({
5570
+ configs6.push({
4891
5571
  files: [GLOB_HTML],
4892
5572
  languageOptions: {
4893
5573
  parser: parserPlain
@@ -4904,7 +5584,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4904
5584
  });
4905
5585
  }
4906
5586
  if (options.xml) {
4907
- configs5.push({
5587
+ configs6.push({
4908
5588
  files: [GLOB_XML],
4909
5589
  languageOptions: {
4910
5590
  parser: parserPlain
@@ -4925,7 +5605,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4925
5605
  });
4926
5606
  }
4927
5607
  if (options.svg) {
4928
- configs5.push({
5608
+ configs6.push({
4929
5609
  files: [GLOB_SVG],
4930
5610
  languageOptions: {
4931
5611
  parser: parserPlain
@@ -4947,7 +5627,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4947
5627
  }
4948
5628
  if (options.markdown) {
4949
5629
  const formater = options.markdown === true ? "prettier" : options.markdown;
4950
- configs5.push({
5630
+ configs6.push({
4951
5631
  files: [GLOB_MARKDOWN],
4952
5632
  languageOptions: {
4953
5633
  parser: parserPlain
@@ -4968,7 +5648,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4968
5648
  });
4969
5649
  }
4970
5650
  if (options.astro) {
4971
- configs5.push({
5651
+ configs6.push({
4972
5652
  files: [GLOB_ASTRO],
4973
5653
  languageOptions: {
4974
5654
  parser: parserPlain
@@ -4984,7 +5664,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4984
5664
  ]
4985
5665
  }
4986
5666
  });
4987
- configs5.push({
5667
+ configs6.push({
4988
5668
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
4989
5669
  name: "storm/formatter/astro/disables",
4990
5670
  rules: {
@@ -4999,7 +5679,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4999
5679
  });
5000
5680
  }
5001
5681
  if (options.graphql) {
5002
- configs5.push({
5682
+ configs6.push({
5003
5683
  files: [GLOB_GRAPHQL],
5004
5684
  languageOptions: {
5005
5685
  parser: parserPlain
@@ -5015,10 +5695,11 @@ async function formatters(options = {}, stylistic2 = {}) {
5015
5695
  }
5016
5696
  });
5017
5697
  }
5018
- return configs5;
5698
+ return configs6;
5019
5699
  }
5020
5700
 
5021
5701
  // src/configs/graphql.ts
5702
+ init_cjs_shims();
5022
5703
  async function graphql(options = {}) {
5023
5704
  const {
5024
5705
  relay = true,
@@ -5197,6 +5878,7 @@ async function graphql(options = {}) {
5197
5878
  }
5198
5879
 
5199
5880
  // src/configs/ignores.ts
5881
+ init_cjs_shims();
5200
5882
  async function ignores(userIgnores = []) {
5201
5883
  return [
5202
5884
  {
@@ -5206,7 +5888,17 @@ async function ignores(userIgnores = []) {
5206
5888
  ];
5207
5889
  }
5208
5890
 
5891
+ // src/configs/imports.ts
5892
+ init_cjs_shims();
5893
+
5894
+ // src/plugins.ts
5895
+ init_cjs_shims();
5896
+
5897
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/index.js
5898
+ init_cjs_shims();
5899
+
5209
5900
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/electron.js
5901
+ init_cjs_shims();
5210
5902
  var electron_default = {
5211
5903
  settings: {
5212
5904
  "import-x/core-modules": ["electron"]
@@ -5214,6 +5906,7 @@ var electron_default = {
5214
5906
  };
5215
5907
 
5216
5908
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/errors.js
5909
+ init_cjs_shims();
5217
5910
  var errors_default = {
5218
5911
  plugins: ["import-x"],
5219
5912
  rules: {
@@ -5226,6 +5919,7 @@ var errors_default = {
5226
5919
  };
5227
5920
 
5228
5921
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/electron.js
5922
+ init_cjs_shims();
5229
5923
  var electron_default2 = {
5230
5924
  settings: {
5231
5925
  "import-x/core-modules": ["electron"]
@@ -5233,6 +5927,7 @@ var electron_default2 = {
5233
5927
  };
5234
5928
 
5235
5929
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/errors.js
5930
+ init_cjs_shims();
5236
5931
  var errors_default2 = {
5237
5932
  rules: {
5238
5933
  "import-x/no-unresolved": 2,
@@ -5244,6 +5939,7 @@ var errors_default2 = {
5244
5939
  };
5245
5940
 
5246
5941
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/react-native.js
5942
+ init_cjs_shims();
5247
5943
  var react_native_default = {
5248
5944
  settings: {
5249
5945
  "import-x/resolver": {
@@ -5255,6 +5951,7 @@ var react_native_default = {
5255
5951
  };
5256
5952
 
5257
5953
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/react.js
5954
+ init_cjs_shims();
5258
5955
  var react_default = {
5259
5956
  settings: {
5260
5957
  "import-x/extensions": [".js", ".jsx", ".mjs", ".cjs"]
@@ -5269,6 +5966,7 @@ var react_default = {
5269
5966
  };
5270
5967
 
5271
5968
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/recommended.js
5969
+ init_cjs_shims();
5272
5970
  var recommended_default2 = {
5273
5971
  rules: {
5274
5972
  "import-x/no-unresolved": "error",
@@ -5283,6 +5981,7 @@ var recommended_default2 = {
5283
5981
  };
5284
5982
 
5285
5983
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/stage-0.js
5984
+ init_cjs_shims();
5286
5985
  var stage_0_default = {
5287
5986
  rules: {
5288
5987
  "import-x/no-deprecated": 1
@@ -5290,6 +5989,7 @@ var stage_0_default = {
5290
5989
  };
5291
5990
 
5292
5991
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/typescript.js
5992
+ init_cjs_shims();
5293
5993
  var typeScriptExtensions = [".ts", ".tsx", ".cts", ".mts"];
5294
5994
  var allExtensions = [
5295
5995
  ...typeScriptExtensions,
@@ -5315,6 +6015,7 @@ var typescript_default = {
5315
6015
  };
5316
6016
 
5317
6017
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/flat/warnings.js
6018
+ init_cjs_shims();
5318
6019
  var warnings_default = {
5319
6020
  rules: {
5320
6021
  "import-x/no-named-as-default": 1,
@@ -5325,6 +6026,7 @@ var warnings_default = {
5325
6026
  };
5326
6027
 
5327
6028
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/react-native.js
6029
+ init_cjs_shims();
5328
6030
  var react_native_default2 = {
5329
6031
  settings: {
5330
6032
  "import-x/resolver": {
@@ -5336,6 +6038,7 @@ var react_native_default2 = {
5336
6038
  };
5337
6039
 
5338
6040
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/react.js
6041
+ init_cjs_shims();
5339
6042
  var react_default2 = {
5340
6043
  settings: {
5341
6044
  "import-x/extensions": [".js", ".jsx"]
@@ -5348,6 +6051,7 @@ var react_default2 = {
5348
6051
  };
5349
6052
 
5350
6053
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/recommended.js
6054
+ init_cjs_shims();
5351
6055
  var recommended_default3 = {
5352
6056
  plugins: ["import-x"],
5353
6057
  rules: {
@@ -5367,6 +6071,7 @@ var recommended_default3 = {
5367
6071
  };
5368
6072
 
5369
6073
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/stage-0.js
6074
+ init_cjs_shims();
5370
6075
  var stage_0_default2 = {
5371
6076
  plugins: ["import-x"],
5372
6077
  rules: {
@@ -5375,6 +6080,7 @@ var stage_0_default2 = {
5375
6080
  };
5376
6081
 
5377
6082
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/typescript.js
6083
+ init_cjs_shims();
5378
6084
  var typeScriptExtensions2 = [".ts", ".tsx", ".cts", ".mts"];
5379
6085
  var allExtensions2 = [
5380
6086
  ...typeScriptExtensions2,
@@ -5400,6 +6106,7 @@ var typescript_default2 = {
5400
6106
  };
5401
6107
 
5402
6108
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/warnings.js
6109
+ init_cjs_shims();
5403
6110
  var warnings_default2 = {
5404
6111
  plugins: ["import-x"],
5405
6112
  rules: {
@@ -5409,12 +6116,21 @@ var warnings_default2 = {
5409
6116
  "import-x/no-duplicates": 1
5410
6117
  }
5411
6118
  };
6119
+
6120
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/meta.js
6121
+ init_cjs_shims();
6122
+
6123
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/require.js
6124
+ init_cjs_shims();
5412
6125
  var importMetaUrl2 = importMetaUrl2;
5413
6126
  var cjsRequire = importMetaUrl2 ? Module.createRequire(importMetaUrl2) : __require;
5414
6127
 
5415
6128
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/meta.js
5416
6129
  var { name, version: version2 } = cjsRequire("../package.json");
5417
6130
  var meta2 = { name, version: version2 };
6131
+
6132
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/node-resolver.js
6133
+ init_cjs_shims();
5418
6134
  function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".node"], conditionNames = ["import", "require", "default"], mainFields = ["module", "main"], ...restOptions } = {}) {
5419
6135
  const resolver = new unrsResolver.ResolverFactory({
5420
6136
  extensions,
@@ -5441,7 +6157,17 @@ function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".no
5441
6157
  };
5442
6158
  }
5443
6159
 
6160
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/consistent-type-specifier-style.js
6161
+ init_cjs_shims();
6162
+
6163
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/index.js
6164
+ init_cjs_shims();
6165
+
6166
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/apply-default.js
6167
+ init_cjs_shims();
6168
+
5444
6169
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/deep-merge.js
6170
+ init_cjs_shims();
5445
6171
  function isObjectNotArray(obj) {
5446
6172
  return typeof obj === "object" && obj != null && !Array.isArray(obj);
5447
6173
  }
@@ -5480,21 +6206,26 @@ function applyDefault(defaultOptions, userOptions) {
5480
6206
  }
5481
6207
 
5482
6208
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
6209
+ init_cjs_shims();
5483
6210
  var arraify = (value) => value ? Array.isArray(value) ? value : [value] : void 0;
5484
6211
 
6212
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
6213
+ init_cjs_shims();
6214
+
5485
6215
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/docs-url.js
6216
+ init_cjs_shims();
5486
6217
  var repoUrl = "https://github.com/un-ts/eslint-plugin-import-x";
5487
6218
  var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
5488
6219
 
5489
6220
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
5490
6221
  function RuleCreator2(urlCreator) {
5491
- return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
6222
+ return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
5492
6223
  return createRule_({
5493
6224
  meta: {
5494
6225
  ...meta3,
5495
6226
  docs: {
5496
6227
  ...meta3.docs,
5497
- url: urlCreator(name2)
6228
+ url: urlCreator(name3)
5498
6229
  }
5499
6230
  },
5500
6231
  ...rule
@@ -5514,11 +6245,18 @@ function createRule_({ create, defaultOptions, meta: meta3 }) {
5514
6245
  var createRule2 = RuleCreator2(docsUrl);
5515
6246
 
5516
6247
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
5517
- function declaredScope(context, node2, name2) {
6248
+ init_cjs_shims();
6249
+ function declaredScope(context, node2, name3) {
5518
6250
  const references = context.sourceCode.getScope(node2).references;
5519
- const reference = references.find((x) => x.identifier.name === name2);
6251
+ const reference = references.find((x) => x.identifier.name === name3);
5520
6252
  return reference?.resolved?.scope.type;
5521
6253
  }
6254
+
6255
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/export-map.js
6256
+ init_cjs_shims();
6257
+
6258
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/get-value.js
6259
+ init_cjs_shims();
5522
6260
  var getValue = (node2) => {
5523
6261
  switch (node2.type) {
5524
6262
  case types$1.TSESTree.AST_NODE_TYPES.Identifier: {
@@ -5532,6 +6270,9 @@ var getValue = (node2) => {
5532
6270
  }
5533
6271
  }
5534
6272
  };
6273
+
6274
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
6275
+ init_cjs_shims();
5535
6276
  var log = debug__default.default("eslint-plugin-import-x:utils:ignore");
5536
6277
  var cachedSet;
5537
6278
  var lastSettings;
@@ -5580,6 +6321,7 @@ function hasValidExtension(filepath, context) {
5580
6321
  }
5581
6322
 
5582
6323
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/lazy-value.js
6324
+ init_cjs_shims();
5583
6325
  var lazy = (cb) => {
5584
6326
  let isCalled = false;
5585
6327
  let result;
@@ -5611,6 +6353,12 @@ function defineLazyProperty(object2, propertyName, valueGetter) {
5611
6353
  });
5612
6354
  return object2;
5613
6355
  }
6356
+
6357
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/parse.js
6358
+ init_cjs_shims();
6359
+
6360
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/module-require.js
6361
+ init_cjs_shims();
5614
6362
  function createModule(filename) {
5615
6363
  const mod = new Module__default.default(filename);
5616
6364
  mod.filename = filename;
@@ -5728,6 +6476,18 @@ function getParserOrPath(path23, context) {
5728
6476
  }
5729
6477
  return null;
5730
6478
  }
6479
+
6480
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
6481
+ init_cjs_shims();
6482
+
6483
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
6484
+ init_cjs_shims();
6485
+
6486
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/package-path.js
6487
+ init_cjs_shims();
6488
+
6489
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/pkg-up.js
6490
+ init_cjs_shims();
5731
6491
  function findUp(filename, cwd2) {
5732
6492
  let dir = path16__default.default.resolve(cwd2 || "");
5733
6493
  const root = path16__default.default.parse(dir).root;
@@ -5746,6 +6506,9 @@ function findUp(filename, cwd2) {
5746
6506
  function pkgUp(opts) {
5747
6507
  return findUp("package.json", opts && opts.cwd);
5748
6508
  }
6509
+
6510
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/read-pkg-up.js
6511
+ init_cjs_shims();
5749
6512
  function stripBOM(str) {
5750
6513
  return str.replace(/^\uFEFF/, "");
5751
6514
  }
@@ -5780,49 +6543,49 @@ function getFilePackageName(filename) {
5780
6543
  }
5781
6544
 
5782
6545
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
5783
- function baseModule(name2) {
5784
- if (isScoped(name2)) {
5785
- const [scope, pkg2] = name2.split("/");
6546
+ function baseModule(name3) {
6547
+ if (isScoped(name3)) {
6548
+ const [scope, pkg2] = name3.split("/");
5786
6549
  return `${scope}/${pkg2}`;
5787
6550
  }
5788
- const [pkg] = name2.split("/");
6551
+ const [pkg] = name3.split("/");
5789
6552
  return pkg;
5790
6553
  }
5791
- function isInternalRegexMatch(name2, settings) {
6554
+ function isInternalRegexMatch(name3, settings) {
5792
6555
  const internalScope = settings?.["import-x/internal-regex"];
5793
- return internalScope && new RegExp(internalScope).test(name2);
6556
+ return internalScope && new RegExp(internalScope).test(name3);
5794
6557
  }
5795
- function isAbsolute3(name2) {
5796
- return typeof name2 === "string" && path16__default.default.isAbsolute(name2);
6558
+ function isAbsolute3(name3) {
6559
+ return typeof name3 === "string" && path16__default.default.isAbsolute(name3);
5797
6560
  }
5798
- function isBuiltIn(name2, settings, modulePath) {
5799
- if (modulePath || !name2) {
6561
+ function isBuiltIn(name3, settings, modulePath) {
6562
+ if (modulePath || !name3) {
5800
6563
  return false;
5801
6564
  }
5802
- const base2 = baseModule(name2);
6565
+ const base = baseModule(name3);
5803
6566
  const extras = settings && settings["import-x/core-modules"] || [];
5804
- return Module.isBuiltin(base2) || extras.includes(base2);
6567
+ return Module.isBuiltin(base) || extras.includes(base);
5805
6568
  }
5806
- function isExternalModule(name2, modulePath, context) {
5807
- return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
6569
+ function isExternalModule(name3, modulePath, context) {
6570
+ return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
5808
6571
  }
5809
6572
  var moduleRegExp = /^\w/;
5810
- function isModule(name2) {
5811
- return !!name2 && moduleRegExp.test(name2);
6573
+ function isModule(name3) {
6574
+ return !!name3 && moduleRegExp.test(name3);
5812
6575
  }
5813
6576
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
5814
- function isScoped(name2) {
5815
- return !!name2 && scopedRegExp.test(name2);
6577
+ function isScoped(name3) {
6578
+ return !!name3 && scopedRegExp.test(name3);
5816
6579
  }
5817
- function isRelativeToParent(name2) {
5818
- return /^\.\.$|^\.\.[/\\]/.test(name2);
6580
+ function isRelativeToParent(name3) {
6581
+ return /^\.\.$|^\.\.[/\\]/.test(name3);
5819
6582
  }
5820
6583
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
5821
- function isIndex(name2) {
5822
- return indexFiles.has(name2);
6584
+ function isIndex(name3) {
6585
+ return indexFiles.has(name3);
5823
6586
  }
5824
- function isRelativeToSibling(name2) {
5825
- return /^\.[/\\]/.test(name2);
6587
+ function isRelativeToSibling(name3) {
6588
+ return /^\.[/\\]/.test(name3);
5826
6589
  }
5827
6590
  function isExternalPath(filepath, context) {
5828
6591
  if (!filepath) {
@@ -5849,28 +6612,28 @@ function isInternalPath(filepath, context) {
5849
6612
  const packagePath = getContextPackagePath(context);
5850
6613
  return !path16__default.default.relative(packagePath, filepath).startsWith("../");
5851
6614
  }
5852
- function isExternalLookingName(name2) {
5853
- return isModule(name2) || isScoped(name2);
6615
+ function isExternalLookingName(name3) {
6616
+ return isModule(name3) || isScoped(name3);
5854
6617
  }
5855
- function typeTest(name2, context, path23) {
6618
+ function typeTest(name3, context, path23) {
5856
6619
  const { settings } = context;
5857
- if (typeof name2 === "string") {
5858
- if (isInternalRegexMatch(name2, settings)) {
6620
+ if (typeof name3 === "string") {
6621
+ if (isInternalRegexMatch(name3, settings)) {
5859
6622
  return "internal";
5860
6623
  }
5861
- if (isAbsolute3(name2)) {
6624
+ if (isAbsolute3(name3)) {
5862
6625
  return "absolute";
5863
6626
  }
5864
- if (isBuiltIn(name2, settings, path23)) {
6627
+ if (isBuiltIn(name3, settings, path23)) {
5865
6628
  return "builtin";
5866
6629
  }
5867
- if (isRelativeToParent(name2)) {
6630
+ if (isRelativeToParent(name3)) {
5868
6631
  return "parent";
5869
6632
  }
5870
- if (isIndex(name2)) {
6633
+ if (isIndex(name3)) {
5871
6634
  return "index";
5872
6635
  }
5873
- if (isRelativeToSibling(name2)) {
6636
+ if (isRelativeToSibling(name3)) {
5874
6637
  return "sibling";
5875
6638
  }
5876
6639
  }
@@ -5880,14 +6643,20 @@ function typeTest(name2, context, path23) {
5880
6643
  if (isInternalPath(path23, context)) {
5881
6644
  return "internal";
5882
6645
  }
5883
- if (typeof name2 === "string" && isExternalLookingName(name2)) {
6646
+ if (typeof name3 === "string" && isExternalLookingName(name3)) {
5884
6647
  return "external";
5885
6648
  }
5886
6649
  return "unknown";
5887
6650
  }
5888
- function importType(name2, context) {
5889
- return typeTest(name2, context, typeof name2 === "string" ? resolve2(name2, context) : null);
6651
+ function importType(name3, context) {
6652
+ return typeTest(name3, context, typeof name3 === "string" ? resolve2(name3, context) : null);
5890
6653
  }
6654
+
6655
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
6656
+ init_cjs_shims();
6657
+
6658
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/pkg-dir.js
6659
+ init_cjs_shims();
5891
6660
  function pkgDir(cwd2) {
5892
6661
  const fp = pkgUp({ cwd: cwd2 });
5893
6662
  return fp ? path16__default.default.dirname(fp) : null;
@@ -5920,32 +6689,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
5920
6689
  const map = /* @__PURE__ */ new Map();
5921
6690
  for (const nameOrRecordOrObject of resolverArray) {
5922
6691
  if (typeof nameOrRecordOrObject === "string") {
5923
- const name2 = nameOrRecordOrObject;
5924
- map.set(name2, {
5925
- name: name2,
6692
+ const name3 = nameOrRecordOrObject;
6693
+ map.set(name3, {
6694
+ name: name3,
5926
6695
  enable: true,
5927
6696
  options: void 0,
5928
- resolver: requireResolver(name2, sourceFile)
6697
+ resolver: requireResolver(name3, sourceFile)
5929
6698
  });
5930
6699
  } else if (typeof nameOrRecordOrObject === "object") {
5931
6700
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
5932
6701
  const object2 = nameOrRecordOrObject;
5933
- const { name: name2, enable = true, options, resolver } = object2;
5934
- map.set(name2, { name: name2, enable, options, resolver });
6702
+ const { name: name3, enable = true, options, resolver } = object2;
6703
+ map.set(name3, { name: name3, enable, options, resolver });
5935
6704
  } else {
5936
6705
  const record2 = nameOrRecordOrObject;
5937
- for (const [name2, enableOrOptions] of Object.entries(record2)) {
5938
- const resolver = requireResolver(name2, sourceFile);
6706
+ for (const [name3, enableOrOptions] of Object.entries(record2)) {
6707
+ const resolver = requireResolver(name3, sourceFile);
5939
6708
  if (typeof enableOrOptions === "boolean") {
5940
- map.set(name2, {
5941
- name: name2,
6709
+ map.set(name3, {
6710
+ name: name3,
5942
6711
  enable: enableOrOptions,
5943
6712
  options: void 0,
5944
6713
  resolver
5945
6714
  });
5946
6715
  } else {
5947
- map.set(name2, {
5948
- name: name2,
6716
+ map.set(name3, {
6717
+ name: name3,
5949
6718
  enable: true,
5950
6719
  options: enableOrOptions,
5951
6720
  resolver
@@ -5969,18 +6738,18 @@ try {
5969
6738
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
5970
6739
  } catch {
5971
6740
  }
5972
- function requireResolver(name2, sourceFile) {
5973
- const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name2));
6741
+ function requireResolver(name3, sourceFile) {
6742
+ const resolver = tryRequire(`eslint-import-resolver-${name3}`, sourceFile) || tryRequire(name3, sourceFile) || tryRequire(path16__default.default.resolve(getBaseDir(sourceFile), name3));
5974
6743
  if (!resolver) {
5975
- if (LEGACY_NODE_RESOLVERS.has(name2)) {
6744
+ if (LEGACY_NODE_RESOLVERS.has(name3)) {
5976
6745
  return void 0;
5977
6746
  }
5978
- const err = new Error(`unable to load resolver "${name2}".`);
6747
+ const err = new Error(`unable to load resolver "${name3}".`);
5979
6748
  err.name = IMPORT_RESOLVE_ERROR_NAME;
5980
6749
  throw err;
5981
6750
  }
5982
6751
  if (!isLegacyResolverValid(resolver)) {
5983
- const err = new Error(`${name2} with invalid interface loaded as resolver`);
6752
+ const err = new Error(`${name3} with invalid interface loaded as resolver`);
5984
6753
  err.name = IMPORT_RESOLVE_ERROR_NAME;
5985
6754
  throw err;
5986
6755
  }
@@ -6012,6 +6781,9 @@ function tryRequire(target, sourceFile) {
6012
6781
  function getBaseDir(sourceFile) {
6013
6782
  return pkgDir(sourceFile) || process.cwd();
6014
6783
  }
6784
+
6785
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/module-cache.js
6786
+ init_cjs_shims();
6015
6787
  var log3 = debug__default.default("eslint-plugin-import-x:utils:ModuleCache");
6016
6788
  var ModuleCache = class {
6017
6789
  constructor(map = /* @__PURE__ */ new Map()) {
@@ -6196,11 +6968,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
6196
6968
  };
6197
6969
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
6198
6970
  for (const sourceFile2 of sourceFiles) {
6199
- for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
6971
+ for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
6200
6972
  if (!enable) {
6201
6973
  continue;
6202
6974
  }
6203
- if (LEGACY_NODE_RESOLVERS.has(name2)) {
6975
+ if (LEGACY_NODE_RESOLVERS.has(name3)) {
6204
6976
  const resolverOptions = options || {};
6205
6977
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
6206
6978
  if (resolved2?.found) {
@@ -6260,6 +7032,7 @@ function importXResolverCompat(resolver, resolverOptions = {}) {
6260
7032
  }
6261
7033
 
6262
7034
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
7035
+ init_cjs_shims();
6263
7036
  var pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[*={]))|import\(/m;
6264
7037
  function isMaybeUnambiguousModule(content) {
6265
7038
  return pattern.test(content);
@@ -6270,6 +7043,7 @@ function isUnambiguousModule(ast) {
6270
7043
  }
6271
7044
 
6272
7045
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/visit.js
7046
+ init_cjs_shims();
6273
7047
  function visit(node2, keys, visitorSpec) {
6274
7048
  if (!node2 || !keys) {
6275
7049
  return;
@@ -6728,44 +7502,44 @@ var ExportMap = class _ExportMap {
6728
7502
  }
6729
7503
  return size;
6730
7504
  }
6731
- has(name2) {
6732
- if (this.namespace.has(name2)) {
7505
+ has(name3) {
7506
+ if (this.namespace.has(name3)) {
6733
7507
  return true;
6734
7508
  }
6735
- if (this.reexports.has(name2)) {
7509
+ if (this.reexports.has(name3)) {
6736
7510
  return true;
6737
7511
  }
6738
- if (name2 !== "default") {
7512
+ if (name3 !== "default") {
6739
7513
  for (const dep of this.dependencies) {
6740
7514
  const innerMap = dep();
6741
7515
  if (!innerMap) {
6742
7516
  continue;
6743
7517
  }
6744
- if (innerMap.has(name2)) {
7518
+ if (innerMap.has(name3)) {
6745
7519
  return true;
6746
7520
  }
6747
7521
  }
6748
7522
  }
6749
7523
  return false;
6750
7524
  }
6751
- hasDeep(name2) {
6752
- if (this.namespace.has(name2)) {
7525
+ hasDeep(name3) {
7526
+ if (this.namespace.has(name3)) {
6753
7527
  return { found: true, path: [this] };
6754
7528
  }
6755
- if (this.reexports.has(name2)) {
6756
- const reexports = this.reexports.get(name2);
7529
+ if (this.reexports.has(name3)) {
7530
+ const reexports = this.reexports.get(name3);
6757
7531
  const imported = reexports.getImport();
6758
7532
  if (imported == null) {
6759
7533
  return { found: true, path: [this] };
6760
7534
  }
6761
- if (imported.path === this.path && reexports.local === name2) {
7535
+ if (imported.path === this.path && reexports.local === name3) {
6762
7536
  return { found: false, path: [this] };
6763
7537
  }
6764
7538
  const deep = imported.hasDeep(reexports.local);
6765
7539
  deep.path.unshift(this);
6766
7540
  return deep;
6767
7541
  }
6768
- if (name2 !== "default") {
7542
+ if (name3 !== "default") {
6769
7543
  for (const dep of this.dependencies) {
6770
7544
  const innerMap = dep();
6771
7545
  if (innerMap == null) {
@@ -6777,7 +7551,7 @@ var ExportMap = class _ExportMap {
6777
7551
  if (innerMap.path === this.path) {
6778
7552
  continue;
6779
7553
  }
6780
- const innerValue = innerMap.hasDeep(name2);
7554
+ const innerValue = innerMap.hasDeep(name3);
6781
7555
  if (innerValue.found) {
6782
7556
  innerValue.path.unshift(this);
6783
7557
  return innerValue;
@@ -6786,22 +7560,22 @@ var ExportMap = class _ExportMap {
6786
7560
  }
6787
7561
  return { found: false, path: [this] };
6788
7562
  }
6789
- get(name2) {
6790
- if (this.namespace.has(name2)) {
6791
- return this.namespace.get(name2);
7563
+ get(name3) {
7564
+ if (this.namespace.has(name3)) {
7565
+ return this.namespace.get(name3);
6792
7566
  }
6793
- if (this.reexports.has(name2)) {
6794
- const reexports = this.reexports.get(name2);
7567
+ if (this.reexports.has(name3)) {
7568
+ const reexports = this.reexports.get(name3);
6795
7569
  const imported = reexports.getImport();
6796
7570
  if (imported == null) {
6797
7571
  return null;
6798
7572
  }
6799
- if (imported.path === this.path && reexports.local === name2) {
7573
+ if (imported.path === this.path && reexports.local === name3) {
6800
7574
  return void 0;
6801
7575
  }
6802
7576
  return imported.get(reexports.local);
6803
7577
  }
6804
- if (name2 !== "default") {
7578
+ if (name3 !== "default") {
6805
7579
  for (const dep of this.dependencies) {
6806
7580
  const innerMap = dep();
6807
7581
  if (!innerMap) {
@@ -6810,7 +7584,7 @@ var ExportMap = class _ExportMap {
6810
7584
  if (innerMap.path === this.path) {
6811
7585
  continue;
6812
7586
  }
6813
- const innerValue = innerMap.get(name2);
7587
+ const innerValue = innerMap.get(name3);
6814
7588
  if (innerValue !== void 0) {
6815
7589
  return innerValue;
6816
7590
  }
@@ -6821,9 +7595,9 @@ var ExportMap = class _ExportMap {
6821
7595
  for (const [n, v] of this.namespace.entries()) {
6822
7596
  callback.call(thisArg, v, n, this);
6823
7597
  }
6824
- for (const [name2, reexports] of this.reexports.entries()) {
7598
+ for (const [name3, reexports] of this.reexports.entries()) {
6825
7599
  const reexported = reexports.getImport();
6826
- callback.call(thisArg, reexported?.get(reexports.local), name2, this);
7600
+ callback.call(thisArg, reexported?.get(reexports.local), name3, this);
6827
7601
  }
6828
7602
  this.dependencies.forEach((dep) => {
6829
7603
  const d = dep();
@@ -6982,6 +7756,9 @@ function makeContextCacheKey(context) {
6982
7756
  hash += "\0" + stableHashX.stableHash(parserPath ?? languageOptions?.parser?.meta ?? languageOptions?.parser);
6983
7757
  return hash;
6984
7758
  }
7759
+
7760
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/import-declaration.js
7761
+ init_cjs_shims();
6985
7762
  var importDeclaration = (context, node2) => {
6986
7763
  if (node2.parent && node2.parent.type === types$1.AST_NODE_TYPES.ImportDeclaration) {
6987
7764
  return node2.parent;
@@ -6991,6 +7768,7 @@ var importDeclaration = (context, node2) => {
6991
7768
  };
6992
7769
 
6993
7770
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/module-visitor.js
7771
+ init_cjs_shims();
6994
7772
  function moduleVisitor(visitor, options) {
6995
7773
  const ignore2 = options?.ignore;
6996
7774
  const amd = !!options?.amd;
@@ -7108,7 +7886,7 @@ function moduleVisitor(visitor, options) {
7108
7886
  return visitors;
7109
7887
  }
7110
7888
  function makeOptionsSchema(additionalProperties) {
7111
- const base2 = {
7889
+ const base = {
7112
7890
  type: "object",
7113
7891
  properties: {
7114
7892
  commonjs: { type: "boolean" },
@@ -7125,14 +7903,15 @@ function makeOptionsSchema(additionalProperties) {
7125
7903
  };
7126
7904
  if (additionalProperties) {
7127
7905
  for (const key in additionalProperties) {
7128
- base2.properties[key] = additionalProperties[key];
7906
+ base.properties[key] = additionalProperties[key];
7129
7907
  }
7130
7908
  }
7131
- return base2;
7909
+ return base;
7132
7910
  }
7133
7911
  makeOptionsSchema();
7134
7912
 
7135
7913
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/npm-client.js
7914
+ init_cjs_shims();
7136
7915
  var NPM = "npm";
7137
7916
  var NPM_CLIENTS = /* @__PURE__ */ new Set([
7138
7917
  NPM,
@@ -7153,6 +7932,7 @@ var getNpmClient = () => {
7153
7932
  var getNpmInstallCommand = (packageName) => `${getNpmClient()} ${npmClient === NPM ? "i" : "add"} ${npmClient === "deno" ? `${NPM}:` : ""}${packageName}`;
7154
7933
 
7155
7934
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/parse-path.js
7935
+ init_cjs_shims();
7156
7936
  var parsePath = (path23) => {
7157
7937
  const hashIndex = path23.indexOf("#");
7158
7938
  const queryIndex = path23.indexOf("?");
@@ -7166,6 +7946,7 @@ var parsePath = (path23) => {
7166
7946
  var stringifyPath = ({ pathname, query, hash }) => pathname + query + hash;
7167
7947
 
7168
7948
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/source-type.js
7949
+ init_cjs_shims();
7169
7950
  function sourceType(context) {
7170
7951
  if ("languageOptions" in context && context.languageOptions) {
7171
7952
  if ("parserOptions" in context.languageOptions && context.languageOptions.parserOptions?.sourceType) {
@@ -7181,6 +7962,7 @@ function sourceType(context) {
7181
7962
  }
7182
7963
 
7183
7964
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/static-require.js
7965
+ init_cjs_shims();
7184
7966
  function isStaticRequire(node2) {
7185
7967
  return node2 && node2.callee && node2.callee.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length === 1 && node2.arguments[0].type === "Literal" && typeof node2.arguments[0].value === "string";
7186
7968
  }
@@ -7352,6 +8134,7 @@ ${newImports}`)
7352
8134
  });
7353
8135
 
7354
8136
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/default.js
8137
+ init_cjs_shims();
7355
8138
  var default_default = createRule2({
7356
8139
  name: "default",
7357
8140
  meta: {
@@ -7394,6 +8177,9 @@ var default_default = createRule2({
7394
8177
  };
7395
8178
  }
7396
8179
  });
8180
+
8181
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/dynamic-import-chunkname.js
8182
+ init_cjs_shims();
7397
8183
  var dynamic_import_chunkname_default = createRule2({
7398
8184
  name: "dynamic-import-chunkname",
7399
8185
  meta: {
@@ -7562,6 +8348,9 @@ var dynamic_import_chunkname_default = createRule2({
7562
8348
  };
7563
8349
  }
7564
8350
  });
8351
+
8352
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/export.js
8353
+ init_cjs_shims();
7565
8354
  var rootProgram = "root";
7566
8355
  var tsTypePrefix = "type:";
7567
8356
  function removeTypescriptFunctionOverloads(nodes) {
@@ -7599,12 +8388,12 @@ var export_default = createRule2({
7599
8388
  defaultOptions: [],
7600
8389
  create(context) {
7601
8390
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
7602
- function addNamed(name2, node2, parent, isType) {
8391
+ function addNamed(name3, node2, parent, isType) {
7603
8392
  if (!namespace.has(parent)) {
7604
8393
  namespace.set(parent, /* @__PURE__ */ new Map());
7605
8394
  }
7606
8395
  const named = namespace.get(parent);
7607
- const key = isType ? `${tsTypePrefix}${name2}` : name2;
8396
+ const key = isType ? `${tsTypePrefix}${name3}` : name3;
7608
8397
  let nodes = named.get(key);
7609
8398
  if (nodes == null) {
7610
8399
  nodes = /* @__PURE__ */ new Set();
@@ -7660,10 +8449,10 @@ var export_default = createRule2({
7660
8449
  }
7661
8450
  const parent = getParent(node2);
7662
8451
  let any2 = false;
7663
- remoteExports.$forEach((_, name2) => {
7664
- if (name2 !== "default") {
8452
+ remoteExports.$forEach((_, name3) => {
8453
+ if (name3 !== "default") {
7665
8454
  any2 = true;
7666
- addNamed(name2, node2, parent);
8455
+ addNamed(name3, node2, parent);
7667
8456
  }
7668
8457
  });
7669
8458
  if (!any2) {
@@ -7676,7 +8465,7 @@ var export_default = createRule2({
7676
8465
  },
7677
8466
  "Program:exit"() {
7678
8467
  for (const [, named] of namespace) {
7679
- for (const [name2, nodes] of named) {
8468
+ for (const [name3, nodes] of named) {
7680
8469
  if (nodes.size === 0) {
7681
8470
  continue;
7682
8471
  }
@@ -7691,7 +8480,7 @@ var export_default = createRule2({
7691
8480
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
7692
8481
  continue;
7693
8482
  }
7694
- if (name2 === "default") {
8483
+ if (name3 === "default") {
7695
8484
  context.report({
7696
8485
  node: node2,
7697
8486
  messageId: "multiDefault"
@@ -7701,7 +8490,7 @@ var export_default = createRule2({
7701
8490
  node: node2,
7702
8491
  messageId: "multiNamed",
7703
8492
  data: {
7704
- name: name2.replace(tsTypePrefix, "")
8493
+ name: name3.replace(tsTypePrefix, "")
7705
8494
  }
7706
8495
  });
7707
8496
  }
@@ -7714,6 +8503,7 @@ var export_default = createRule2({
7714
8503
  });
7715
8504
 
7716
8505
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/exports-last.js
8506
+ init_cjs_shims();
7717
8507
  var findLastIndex = (array2, predicate) => {
7718
8508
  let i = array2.length - 1;
7719
8509
  while (i >= 0) {
@@ -7760,7 +8550,14 @@ var exports_last_default = createRule2({
7760
8550
  }
7761
8551
  });
7762
8552
 
8553
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
8554
+ init_cjs_shims();
8555
+
8556
+ // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8557
+ init_cjs_shims();
8558
+
7763
8559
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8560
+ init_cjs_shims();
7764
8561
  var MAX_PATTERN_LENGTH = 1024 * 64;
7765
8562
  var assertValidPattern = (pattern2) => {
7766
8563
  if (typeof pattern2 !== "string") {
@@ -7771,7 +8568,11 @@ var assertValidPattern = (pattern2) => {
7771
8568
  }
7772
8569
  };
7773
8570
 
8571
+ // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8572
+ init_cjs_shims();
8573
+
7774
8574
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
8575
+ init_cjs_shims();
7775
8576
  var posixClasses = {
7776
8577
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
7777
8578
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -7881,6 +8682,7 @@ var parseClass = (glob, position) => {
7881
8682
  };
7882
8683
 
7883
8684
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8685
+ init_cjs_shims();
7884
8686
  var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
7885
8687
  if (magicalBraces) {
7886
8688
  return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
@@ -8533,6 +9335,7 @@ var AST = class {
8533
9335
  _a3 = AST;
8534
9336
 
8535
9337
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
9338
+ init_cjs_shims();
8536
9339
  var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
8537
9340
  if (magicalBraces) {
8538
9341
  return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -9632,6 +10435,7 @@ var extensions_default = createRule2({
9632
10435
  });
9633
10436
 
9634
10437
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/first.js
10438
+ init_cjs_shims();
9635
10439
  function getImportValue(node2) {
9636
10440
  return node2.type === "ImportDeclaration" ? node2.source.value : "moduleReference" in node2 && "expression" in node2.moduleReference && "value" in node2.moduleReference.expression && node2.moduleReference.expression.value;
9637
10441
  }
@@ -9766,6 +10570,7 @@ ${nodeSourceCode}`;
9766
10570
  });
9767
10571
 
9768
10572
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/group-exports.js
10573
+ init_cjs_shims();
9769
10574
  function accessorChain(node2) {
9770
10575
  const chain = [];
9771
10576
  let exp = node2;
@@ -9880,6 +10685,7 @@ var group_exports_default = createRule2({
9880
10685
  });
9881
10686
 
9882
10687
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/imports-first.js
10688
+ init_cjs_shims();
9883
10689
  var imports_first_default = createRule2({
9884
10690
  ...first_default,
9885
10691
  name: "imports-first",
@@ -9904,6 +10710,7 @@ var imports_first_default = createRule2({
9904
10710
  });
9905
10711
 
9906
10712
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/max-dependencies.js
10713
+ init_cjs_shims();
9907
10714
  var max_dependencies_default = createRule2({
9908
10715
  name: "max-dependencies",
9909
10716
  meta: {
@@ -9954,6 +10761,9 @@ var max_dependencies_default = createRule2({
9954
10761
  };
9955
10762
  }
9956
10763
  });
10764
+
10765
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/named.js
10766
+ init_cjs_shims();
9957
10767
  var named_default = createRule2({
9958
10768
  name: "named",
9959
10769
  meta: {
@@ -10001,8 +10811,8 @@ var named_default = createRule2({
10001
10811
  continue;
10002
10812
  }
10003
10813
  const imNode = im[key];
10004
- const name2 = imNode.name || imNode.value;
10005
- const deepLookup = imports2.hasDeep(name2);
10814
+ const name3 = imNode.name || imNode.value;
10815
+ const deepLookup = imports2.hasDeep(name3);
10006
10816
  if (!deepLookup.found) {
10007
10817
  if (deepLookup.path.length > 1) {
10008
10818
  const deepPath = deepLookup.path.map((i) => path16__default.default.relative(path16__default.default.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -10010,7 +10820,7 @@ var named_default = createRule2({
10010
10820
  node: imNode,
10011
10821
  messageId: "notFoundDeep",
10012
10822
  data: {
10013
- name: name2,
10823
+ name: name3,
10014
10824
  deepPath
10015
10825
  }
10016
10826
  });
@@ -10019,7 +10829,7 @@ var named_default = createRule2({
10019
10829
  node: imNode,
10020
10830
  messageId: "notFound",
10021
10831
  data: {
10022
- name: name2,
10832
+ name: name3,
10023
10833
  path: node2.source.value
10024
10834
  }
10025
10835
  });
@@ -10079,6 +10889,7 @@ var named_default = createRule2({
10079
10889
  });
10080
10890
 
10081
10891
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
10892
+ init_cjs_shims();
10082
10893
  function processBodyStatement(context, namespaces, declaration) {
10083
10894
  if (declaration.type !== "ImportDeclaration") {
10084
10895
  return;
@@ -10304,6 +11115,9 @@ var namespace_default = createRule2({
10304
11115
  };
10305
11116
  }
10306
11117
  });
11118
+
11119
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/newline-after-import.js
11120
+ init_cjs_shims();
10307
11121
  var log5 = debug__default.default("eslint-plugin-import-x:rules:newline-after-import");
10308
11122
  function containsNodeOrEqual(outerNode, innerNode) {
10309
11123
  return outerNode.range[0] <= innerNode.range[0] && outerNode.range[1] >= innerNode.range[1];
@@ -10503,6 +11317,9 @@ var newline_after_import_default = createRule2({
10503
11317
  };
10504
11318
  }
10505
11319
  });
11320
+
11321
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-absolute-path.js
11322
+ init_cjs_shims();
10506
11323
  var no_absolute_path_default = createRule2({
10507
11324
  name: "no-absolute-path",
10508
11325
  meta: {
@@ -10540,6 +11357,7 @@ var no_absolute_path_default = createRule2({
10540
11357
  });
10541
11358
 
10542
11359
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-amd.js
11360
+ init_cjs_shims();
10543
11361
  var no_amd_default = createRule2({
10544
11362
  name: "no-amd",
10545
11363
  meta: {
@@ -10586,6 +11404,7 @@ var no_amd_default = createRule2({
10586
11404
  });
10587
11405
 
10588
11406
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-anonymous-default-export.js
11407
+ init_cjs_shims();
10589
11408
  var { hasOwnProperty } = Object.prototype;
10590
11409
  var hasOwn = (object2, key) => hasOwnProperty.call(object2, key);
10591
11410
  var defs = {
@@ -10719,6 +11538,7 @@ var no_anonymous_default_export_default = createRule2({
10719
11538
  });
10720
11539
 
10721
11540
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-commonjs.js
11541
+ init_cjs_shims();
10722
11542
  function normalizeLegacyOptions(options) {
10723
11543
  if (options.includes("allow-primitive-modules")) {
10724
11544
  return { allowPrimitiveModules: true };
@@ -10841,6 +11661,7 @@ var no_commonjs_default = createRule2({
10841
11661
  });
10842
11662
 
10843
11663
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-cycle.js
11664
+ init_cjs_shims();
10844
11665
  var traversed = /* @__PURE__ */ new Set();
10845
11666
  var no_cycle_default = createRule2({
10846
11667
  name: "no-cycle",
@@ -10890,7 +11711,7 @@ var no_cycle_default = createRule2({
10890
11711
  }
10891
11712
  const options = context.options[0] || {};
10892
11713
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
10893
- const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve2(name2, context), context) : () => false;
11714
+ const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve2(name3, context), context) : () => false;
10894
11715
  return {
10895
11716
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
10896
11717
  if (ignoreModule(sourceNode.value)) {
@@ -10969,6 +11790,7 @@ function routeString(route) {
10969
11790
  }
10970
11791
 
10971
11792
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-default-export.js
11793
+ init_cjs_shims();
10972
11794
  var no_default_export_default = createRule2({
10973
11795
  name: "no-default-export",
10974
11796
  meta: {
@@ -11024,6 +11846,7 @@ var no_default_export_default = createRule2({
11024
11846
  });
11025
11847
 
11026
11848
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-deprecated.js
11849
+ init_cjs_shims();
11027
11850
  function message(deprecation) {
11028
11851
  if (deprecation.description) {
11029
11852
  return {
@@ -11179,6 +12002,9 @@ var no_deprecated_default = createRule2({
11179
12002
  };
11180
12003
  }
11181
12004
  });
12005
+
12006
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-duplicates.js
12007
+ init_cjs_shims();
11182
12008
  var isTypeScriptVersionSupportPreferInline = lazy(() => {
11183
12009
  let typescriptPkg;
11184
12010
  try {
@@ -11451,6 +12277,7 @@ var no_duplicates_default = createRule2({
11451
12277
  });
11452
12278
 
11453
12279
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-dynamic-require.js
12280
+ init_cjs_shims();
11454
12281
  function isRequire(node2) {
11455
12282
  return node2.callee?.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length > 0;
11456
12283
  }
@@ -11519,6 +12346,7 @@ var no_dynamic_require_default = createRule2({
11519
12346
  });
11520
12347
 
11521
12348
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-empty-named-blocks.js
12349
+ init_cjs_shims();
11522
12350
  function getEmptyBlockRange(tokens, index) {
11523
12351
  const token = tokens[index];
11524
12352
  const nextToken = tokens[index + 1];
@@ -11614,6 +12442,9 @@ var no_empty_named_blocks_default = createRule2({
11614
12442
  };
11615
12443
  }
11616
12444
  });
12445
+
12446
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-extraneous-dependencies.js
12447
+ init_cjs_shims();
11617
12448
  var depFieldCache = /* @__PURE__ */ new Map();
11618
12449
  var minimatch2 = minimatch;
11619
12450
  function hasKeys(obj = {}) {
@@ -11710,8 +12541,8 @@ function getDependencies(context, packageDir) {
11710
12541
  }
11711
12542
  }
11712
12543
  }
11713
- function getModuleOriginalName(name2) {
11714
- const [first, second] = name2.split("/");
12544
+ function getModuleOriginalName(name3) {
12545
+ const [first, second] = name3.split("/");
11715
12546
  return first.startsWith("@") ? `${first}/${second}` : first;
11716
12547
  }
11717
12548
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -11738,19 +12569,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
11738
12569
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
11739
12570
  }), newDeclarationStatus);
11740
12571
  }
11741
- function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
12572
+ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
11742
12573
  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")))) {
11743
12574
  return;
11744
12575
  }
11745
- const typeOfImport = importType(name2, context);
12576
+ const typeOfImport = importType(name3, context);
11746
12577
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
11747
12578
  return;
11748
12579
  }
11749
- const resolved = resolve2(name2, context);
12580
+ const resolved = resolve2(name3, context);
11750
12581
  if (!resolved) {
11751
12582
  return;
11752
12583
  }
11753
- const importPackageName = getModuleOriginalName(name2);
12584
+ const importPackageName = getModuleOriginalName(name3);
11754
12585
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
11755
12586
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
11756
12587
  return;
@@ -11857,6 +12688,9 @@ var no_extraneous_dependencies_default = createRule2({
11857
12688
  };
11858
12689
  }
11859
12690
  });
12691
+
12692
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-import-module-exports.js
12693
+ init_cjs_shims();
11860
12694
  function getEntryPoint(context) {
11861
12695
  const pkgPath = pkgUp({
11862
12696
  cwd: context.physicalFilename
@@ -11938,6 +12772,7 @@ var no_import_module_exports_default = createRule2({
11938
12772
  });
11939
12773
 
11940
12774
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-internal-modules.js
12775
+ init_cjs_shims();
11941
12776
  function normalizeSep(somePath) {
11942
12777
  return somePath.split("\\").join("/");
11943
12778
  }
@@ -12054,6 +12889,7 @@ var no_internal_modules_default = createRule2({
12054
12889
  });
12055
12890
 
12056
12891
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-mutable-exports.js
12892
+ init_cjs_shims();
12057
12893
  var no_mutable_exports_default = createRule2({
12058
12894
  name: "no-mutable-exports",
12059
12895
  meta: {
@@ -12080,9 +12916,9 @@ var no_mutable_exports_default = createRule2({
12080
12916
  });
12081
12917
  }
12082
12918
  }
12083
- function checkDeclarationsInScope({ variables }, name2) {
12919
+ function checkDeclarationsInScope({ variables }, name3) {
12084
12920
  for (const variable of variables) {
12085
- if (variable.name === name2) {
12921
+ if (variable.name === name3) {
12086
12922
  for (const def of variable.defs) {
12087
12923
  if (def.type === "Variable" && def.parent) {
12088
12924
  checkDeclaration(def.parent);
@@ -12113,6 +12949,7 @@ var no_mutable_exports_default = createRule2({
12113
12949
  });
12114
12950
 
12115
12951
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default-member.js
12952
+ init_cjs_shims();
12116
12953
  var no_named_as_default_member_default = createRule2({
12117
12954
  name: "no-named-as-default-member",
12118
12955
  meta: {
@@ -12199,6 +13036,7 @@ var no_named_as_default_member_default = createRule2({
12199
13036
  });
12200
13037
 
12201
13038
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-named-as-default.js
13039
+ init_cjs_shims();
12202
13040
  var no_named_as_default_default = createRule2({
12203
13041
  name: "no-named-as-default",
12204
13042
  meta: {
@@ -12254,6 +13092,7 @@ var no_named_as_default_default = createRule2({
12254
13092
  });
12255
13093
 
12256
13094
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-named-default.js
13095
+ init_cjs_shims();
12257
13096
  var no_named_default_default = createRule2({
12258
13097
  name: "no-named-default",
12259
13098
  meta: {
@@ -12291,6 +13130,7 @@ var no_named_default_default = createRule2({
12291
13130
  });
12292
13131
 
12293
13132
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-named-export.js
13133
+ init_cjs_shims();
12294
13134
  var no_named_export_default = createRule2({
12295
13135
  name: "no-named-export",
12296
13136
  meta: {
@@ -12327,6 +13167,7 @@ var no_named_export_default = createRule2({
12327
13167
  });
12328
13168
 
12329
13169
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-namespace.js
13170
+ init_cjs_shims();
12330
13171
  var no_namespace_default = createRule2({
12331
13172
  name: "no-namespace",
12332
13173
  meta: {
@@ -12429,26 +13270,27 @@ function getVariableNamesInScope(scopeManager, node2) {
12429
13270
  }
12430
13271
  function generateLocalNames(names, nameConflicts, namespaceName) {
12431
13272
  const localNames = {};
12432
- for (const name2 of names) {
13273
+ for (const name3 of names) {
12433
13274
  let localName;
12434
- if (!nameConflicts[name2].has(name2)) {
12435
- localName = name2;
12436
- } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
13275
+ if (!nameConflicts[name3].has(name3)) {
13276
+ localName = name3;
13277
+ } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
12437
13278
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
12438
- if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
12439
- localName = `${namespaceName}_${name2}_${i}`;
13279
+ if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
13280
+ localName = `${namespaceName}_${name3}_${i}`;
12440
13281
  break;
12441
13282
  }
12442
13283
  }
12443
13284
  } else {
12444
- localName = `${namespaceName}_${name2}`;
13285
+ localName = `${namespaceName}_${name3}`;
12445
13286
  }
12446
- localNames[name2] = localName;
13287
+ localNames[name3] = localName;
12447
13288
  }
12448
13289
  return localNames;
12449
13290
  }
12450
13291
 
12451
13292
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-nodejs-modules.js
13293
+ init_cjs_shims();
12452
13294
  var no_nodejs_modules_default = createRule2({
12453
13295
  name: "no-nodejs-modules",
12454
13296
  meta: {
@@ -12494,6 +13336,9 @@ var no_nodejs_modules_default = createRule2({
12494
13336
  }, { commonjs: true });
12495
13337
  }
12496
13338
  });
13339
+
13340
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-relative-packages.js
13341
+ init_cjs_shims();
12497
13342
  function toPosixPath(filePath) {
12498
13343
  return filePath.replaceAll("\\", "/");
12499
13344
  }
@@ -12551,6 +13396,9 @@ var no_relative_packages_default = createRule2({
12551
13396
  return moduleVisitor((source) => checkImportForRelativePackage(context, source.value, source), context.options[0]);
12552
13397
  }
12553
13398
  });
13399
+
13400
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-relative-parent-imports.js
13401
+ init_cjs_shims();
12554
13402
  var no_relative_parent_imports_default = createRule2({
12555
13403
  name: "no-relative-parent-imports",
12556
13404
  meta: {
@@ -12593,6 +13441,9 @@ var no_relative_parent_imports_default = createRule2({
12593
13441
  }, context.options[0]);
12594
13442
  }
12595
13443
  });
13444
+
13445
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-rename-default.js
13446
+ init_cjs_shims();
12596
13447
  var no_rename_default_default = createRule2({
12597
13448
  name: "no-rename-default",
12598
13449
  meta: {
@@ -12830,6 +13681,9 @@ function getDefaultExportNode(exportMap) {
12830
13681
  }
12831
13682
  }
12832
13683
  }
13684
+
13685
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-restricted-paths.js
13686
+ init_cjs_shims();
12833
13687
  var containsPath = (filepath, target) => {
12834
13688
  const relative3 = path16__default.default.relative(target, filepath);
12835
13689
  return relative3 === "" || !relative3.startsWith("..");
@@ -13030,6 +13884,7 @@ var no_restricted_paths_default = createRule2({
13030
13884
  });
13031
13885
 
13032
13886
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-self-import.js
13887
+ init_cjs_shims();
13033
13888
  function isImportingSelf(context, node2, requireName) {
13034
13889
  const filename = context.physicalFilename;
13035
13890
  if (filename !== "<text>" && filename === resolve2(requireName, context)) {
@@ -13060,6 +13915,9 @@ var no_self_import_default = createRule2({
13060
13915
  }, { commonjs: true });
13061
13916
  }
13062
13917
  });
13918
+
13919
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-unassigned-import.js
13920
+ init_cjs_shims();
13063
13921
  function testIsAllow(globs, context, source) {
13064
13922
  if (!Array.isArray(globs)) {
13065
13923
  return false;
@@ -13129,6 +13987,7 @@ var no_unassigned_import_default = createRule2({
13129
13987
  });
13130
13988
 
13131
13989
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-unresolved.js
13990
+ init_cjs_shims();
13132
13991
  var no_unresolved_default = createRule2({
13133
13992
  name: "no-unresolved",
13134
13993
  meta: {
@@ -13181,6 +14040,9 @@ var no_unresolved_default = createRule2({
13181
14040
  }, options);
13182
14041
  }
13183
14042
  });
14043
+
14044
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-unused-modules.js
14045
+ init_cjs_shims();
13184
14046
  function isESLint9UnsupportedApi(input) {
13185
14047
  return typeof input === "object" && input !== null && "shouldUseFlatConfig" in input && "FileEnumerator" in eslintUnsupportedApi__default.default;
13186
14048
  }
@@ -13629,8 +14491,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13629
14491
  }
13630
14492
  }
13631
14493
  }
13632
- forEachDeclarationIdentifier(s.declaration, (name2) => {
13633
- newExportIdentifiers.add(name2);
14494
+ forEachDeclarationIdentifier(s.declaration, (name3) => {
14495
+ newExportIdentifiers.add(name3);
13634
14496
  });
13635
14497
  }
13636
14498
  }
@@ -13705,11 +14567,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13705
14567
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
13706
14568
  resolvedPath = resolve2(astNode.source.raw.replaceAll(/('|")/g, ""), context);
13707
14569
  for (const specifier of astNode.specifiers) {
13708
- const name2 = getValue(specifier.local);
13709
- if (name2 === DEFAULT) {
14570
+ const name3 = getValue(specifier.local);
14571
+ if (name3 === DEFAULT) {
13710
14572
  newDefaultImports.add(resolvedPath);
13711
14573
  } else {
13712
- newImports.set(name2, resolvedPath);
14574
+ newImports.set(name3, resolvedPath);
13713
14575
  }
13714
14576
  }
13715
14577
  }
@@ -13907,13 +14769,16 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13907
14769
  for (const specifier of node2.specifiers) {
13908
14770
  checkUsage(specifier, getValue(specifier.exported), false);
13909
14771
  }
13910
- forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
13911
- checkUsage(node2, name2, isTypeExport);
14772
+ forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
14773
+ checkUsage(node2, name3, isTypeExport);
13912
14774
  });
13913
14775
  }
13914
14776
  };
13915
14777
  }
13916
14778
  });
14779
+
14780
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-useless-path-segments.js
14781
+ init_cjs_shims();
13917
14782
  function toRelativePath(relativePath) {
13918
14783
  const stripped = relativePath.replaceAll(/\/$/g, "");
13919
14784
  return /^((\.\.)|(\.))($|\/)/.test(stripped) ? stripped : `./${stripped}`;
@@ -14010,6 +14875,7 @@ var no_useless_path_segments_default = createRule2({
14010
14875
  });
14011
14876
 
14012
14877
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/no-webpack-loader-syntax.js
14878
+ init_cjs_shims();
14013
14879
  var no_webpack_loader_syntax_default = createRule2({
14014
14880
  name: "no-webpack-loader-syntax",
14015
14881
  meta: {
@@ -14038,6 +14904,9 @@ var no_webpack_loader_syntax_default = createRule2({
14038
14904
  }, { commonjs: true });
14039
14905
  }
14040
14906
  });
14907
+
14908
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/order.js
14909
+ init_cjs_shims();
14041
14910
  var log6 = debug__default.default("eslint-plugin-import-x:rules:order");
14042
14911
  var groupBy = (array2, grouper) => array2.reduce((acc, curr, index) => {
14043
14912
  const key = grouper(curr, index);
@@ -14919,11 +15788,11 @@ var order_default = createRule2({
14919
15788
  return {
14920
15789
  ImportDeclaration(node2) {
14921
15790
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
14922
- const name2 = node2.source.value;
15791
+ const name3 = node2.source.value;
14923
15792
  registerNode(context, {
14924
15793
  node: node2,
14925
- value: name2,
14926
- displayName: name2,
15794
+ value: name3,
15795
+ displayName: name3,
14927
15796
  type: "import"
14928
15797
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
14929
15798
  if (named.import) {
@@ -15045,11 +15914,11 @@ var order_default = createRule2({
15045
15914
  } else {
15046
15915
  const nameParts = getNamedCJSExports(context, node2.left);
15047
15916
  if (nameParts && nameParts.length > 0) {
15048
- const name2 = nameParts.join(".");
15917
+ const name3 = nameParts.join(".");
15049
15918
  getBlockExports(node2.parent.parent).push({
15050
15919
  node: node2,
15051
- value: name2,
15052
- displayName: name2,
15920
+ value: name3,
15921
+ displayName: name3,
15053
15922
  type: "export",
15054
15923
  rank: 0
15055
15924
  });
@@ -15082,6 +15951,7 @@ var order_default = createRule2({
15082
15951
  });
15083
15952
 
15084
15953
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/prefer-default-export.js
15954
+ init_cjs_shims();
15085
15955
  var prefer_default_export_default = createRule2({
15086
15956
  name: "prefer-default-export",
15087
15957
  meta: {
@@ -15187,6 +16057,7 @@ var prefer_default_export_default = createRule2({
15187
16057
  });
15188
16058
 
15189
16059
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/prefer-namespace-import.js
16060
+ init_cjs_shims();
15190
16061
  var prefer_namespace_import_default = createRule2({
15191
16062
  name: "prefer-namespace-import",
15192
16063
  meta: {
@@ -15268,6 +16139,7 @@ function toRegExp(string3) {
15268
16139
  }
15269
16140
 
15270
16141
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/unambiguous.js
16142
+ init_cjs_shims();
15271
16143
  var unambiguous_default = createRule2({
15272
16144
  name: "unambiguous",
15273
16145
  meta: {
@@ -15418,6 +16290,9 @@ async function imports(options = {}) {
15418
16290
  }
15419
16291
  ];
15420
16292
  }
16293
+
16294
+ // src/configs/javascript.ts
16295
+ init_cjs_shims();
15421
16296
  async function javascript(options = {}) {
15422
16297
  const { overrides = {}, globals = {} } = options;
15423
16298
  return [
@@ -16299,6 +17174,7 @@ async function javascript(options = {}) {
16299
17174
  }
16300
17175
 
16301
17176
  // src/configs/jsdoc.ts
17177
+ init_cjs_shims();
16302
17178
  async function jsdoc(options = {}) {
16303
17179
  const { stylistic: stylistic2 = true, severity = "warn" } = options;
16304
17180
  return [
@@ -16333,6 +17209,7 @@ async function jsdoc(options = {}) {
16333
17209
  }
16334
17210
 
16335
17211
  // src/configs/jsonc.ts
17212
+ init_cjs_shims();
16336
17213
  async function jsonc(options = {}) {
16337
17214
  const {
16338
17215
  files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
@@ -16412,6 +17289,7 @@ async function jsonc(options = {}) {
16412
17289
  }
16413
17290
 
16414
17291
  // src/configs/jsx.ts
17292
+ init_cjs_shims();
16415
17293
  async function jsx() {
16416
17294
  await ensurePackages(["eslint-plugin-jsx-a11y"]);
16417
17295
  const [pluginJsxA11y] = await Promise.all([
@@ -16588,6 +17466,9 @@ async function jsx() {
16588
17466
  }
16589
17467
  ];
16590
17468
  }
17469
+
17470
+ // src/configs/markdown.ts
17471
+ init_cjs_shims();
16591
17472
  async function markdown(options = {}) {
16592
17473
  const { files = [GLOB_MARKDOWN], overrides = {} } = options;
16593
17474
  const markdown2 = await interopDefault(import('@eslint/markdown'));
@@ -16664,6 +17545,7 @@ async function markdown(options = {}) {
16664
17545
  }
16665
17546
 
16666
17547
  // src/configs/mdx.ts
17548
+ init_cjs_shims();
16667
17549
  async function mdx(options = {}) {
16668
17550
  const { files = [GLOB_MDX], overrides = {} } = options;
16669
17551
  await ensurePackages(["eslint-plugin-mdx"]);
@@ -16691,6 +17573,7 @@ async function mdx(options = {}) {
16691
17573
  }
16692
17574
 
16693
17575
  // src/configs/next.ts
17576
+ init_cjs_shims();
16694
17577
  async function next(options = {}) {
16695
17578
  const { coreWebVitals = true, rootDir } = options;
16696
17579
  await ensurePackages(["@next/eslint-plugin-next"]);
@@ -16741,6 +17624,7 @@ async function next(options = {}) {
16741
17624
  }
16742
17625
 
16743
17626
  // src/configs/node.ts
17627
+ init_cjs_shims();
16744
17628
  async function node() {
16745
17629
  return [
16746
17630
  {
@@ -16761,6 +17645,9 @@ async function node() {
16761
17645
  }
16762
17646
  ];
16763
17647
  }
17648
+
17649
+ // src/configs/nx.ts
17650
+ init_cjs_shims();
16764
17651
  async function nx(options = {}) {
16765
17652
  const {
16766
17653
  depsCheck = false,
@@ -16827,6 +17714,7 @@ async function nx(options = {}) {
16827
17714
  }
16828
17715
 
16829
17716
  // src/configs/perfectionist.ts
17717
+ init_cjs_shims();
16830
17718
  async function perfectionist() {
16831
17719
  return [
16832
17720
  {
@@ -16873,14 +17761,710 @@ async function perfectionist() {
16873
17761
  ];
16874
17762
  }
16875
17763
 
16876
- // ../eslint-plugin-pnpm/package.json
16877
- var package_default2 = {
16878
- version: "0.0.10"};
17764
+ // src/configs/pnpm.ts
17765
+ init_cjs_shims();
16879
17766
 
16880
- // ../eslint-plugin-pnpm/src/plugin.ts
16881
- var plugin3 = {
16882
- ...base__default.default,
16883
- meta: {
17767
+ // ../eslint-plugin-pnpm/src/index.ts
17768
+ init_cjs_shims();
17769
+
17770
+ // ../eslint-plugin-pnpm/src/configs/index.ts
17771
+ init_cjs_shims();
17772
+
17773
+ // ../eslint-plugin-pnpm/src/configs/recommended.ts
17774
+ init_cjs_shims();
17775
+
17776
+ // ../eslint-plugin-pnpm/src/plugin.ts
17777
+ init_cjs_shims();
17778
+
17779
+ // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_9a83dbe288d598de72c3e754ec4675de/node_modules/eslint-plugin-pnpm/dist/index.mjs
17780
+ init_cjs_shims();
17781
+ var name2 = "eslint-plugin-pnpm";
17782
+ var version3 = "0.3.0";
17783
+ var blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
17784
+ function RuleCreator3(urlCreator) {
17785
+ return function createNamedRule({
17786
+ name: name3,
17787
+ meta: meta3,
17788
+ ...rule
17789
+ }) {
17790
+ return createRule3({
17791
+ meta: {
17792
+ ...meta3,
17793
+ docs: {
17794
+ ...meta3.docs,
17795
+ url: urlCreator(name3)
17796
+ }
17797
+ },
17798
+ ...rule
17799
+ });
17800
+ };
17801
+ }
17802
+ function createRule3({
17803
+ create,
17804
+ defaultOptions,
17805
+ meta: meta3
17806
+ }) {
17807
+ return {
17808
+ create: (context) => {
17809
+ const optionsWithDefault = context.options.map((options, index) => {
17810
+ return {
17811
+ ...defaultOptions[index] || {},
17812
+ ...options || {}
17813
+ };
17814
+ });
17815
+ return create(context, optionsWithDefault);
17816
+ },
17817
+ defaultOptions,
17818
+ meta: meta3
17819
+ };
17820
+ }
17821
+ var createEslintRule = RuleCreator3(
17822
+ (ruleName) => `${blobUrl}${ruleName}.test.ts`
17823
+ );
17824
+ function getPackageJsonRootNode(context) {
17825
+ if (!context.filename.endsWith("package.json"))
17826
+ return;
17827
+ const ast = context.sourceCode.ast;
17828
+ const root = ast.body[0];
17829
+ if (root.expression.type === "JSONObjectExpression")
17830
+ return root.expression;
17831
+ }
17832
+ function* iterateDependencies(context, fields) {
17833
+ const root = getPackageJsonRootNode(context);
17834
+ if (!root)
17835
+ return;
17836
+ for (const fieldName of fields) {
17837
+ const path23 = fieldName.split(".");
17838
+ let node2 = root;
17839
+ for (let i = 0; i < path23.length; i++) {
17840
+ const item = node2.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === path23[i]);
17841
+ if (!item?.value || item.value.type !== "JSONObjectExpression") {
17842
+ node2 = void 0;
17843
+ break;
17844
+ }
17845
+ node2 = item.value;
17846
+ }
17847
+ if (!node2 || node2 === root)
17848
+ continue;
17849
+ for (const property of node2.properties) {
17850
+ if (property.value.type !== "JSONLiteral" || property.key.type !== "JSONLiteral")
17851
+ continue;
17852
+ if (typeof property.value.value !== "string")
17853
+ continue;
17854
+ const packageName = String(property.key.value);
17855
+ const specifier = String(property.value.value);
17856
+ yield {
17857
+ packageName,
17858
+ specifier,
17859
+ property
17860
+ };
17861
+ }
17862
+ }
17863
+ }
17864
+ function readPnpmWorkspace() {
17865
+ const filepath = findUpSimple.findUpSync("pnpm-workspace.yaml", { cwd: process2__default.default.cwd() });
17866
+ if (!filepath)
17867
+ throw new Error("pnpm-workspace.yaml not found");
17868
+ const content = fs3__default.default.readFileSync(filepath, "utf-8");
17869
+ const workspace2 = pnpmWorkspaceYaml.parsePnpmWorkspaceYaml(content);
17870
+ let queueTimer;
17871
+ const queue = [];
17872
+ const write = () => {
17873
+ fs3__default.default.writeFileSync(filepath, workspace2.toString());
17874
+ };
17875
+ const hasQueue = () => queueTimer != null;
17876
+ const queueChange = (fn, order) => {
17877
+ if (order === "pre")
17878
+ queue.unshift(fn);
17879
+ else
17880
+ queue.push(fn);
17881
+ if (queueTimer != null)
17882
+ clearTimeout(queueTimer);
17883
+ queueTimer = setTimeout(() => {
17884
+ queueTimer = void 0;
17885
+ const clone2 = [...queue];
17886
+ queue.length = 0;
17887
+ for (const fn2 of clone2)
17888
+ fn2(workspace2);
17889
+ if (workspace2.hasChanged())
17890
+ write();
17891
+ }, 1e3);
17892
+ };
17893
+ return {
17894
+ filepath,
17895
+ ...workspace2,
17896
+ hasQueue,
17897
+ queueChange
17898
+ };
17899
+ }
17900
+ var WORKSPACE_CACHE_TIME = 1e4;
17901
+ var workspaceLastRead;
17902
+ var workspace;
17903
+ function getPnpmWorkspace() {
17904
+ if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
17905
+ workspace = void 0;
17906
+ }
17907
+ if (!workspace) {
17908
+ workspace = readPnpmWorkspace();
17909
+ workspaceLastRead = Date.now();
17910
+ }
17911
+ return workspace;
17912
+ }
17913
+ var RULE_NAME$4 = "json-enforce-catalog";
17914
+ var DEFAULT_FIELDS$1 = [
17915
+ "dependencies",
17916
+ "devDependencies"
17917
+ ];
17918
+ var IGNORED_DEPENDENCIES = [
17919
+ "typescript"
17920
+ ];
17921
+ var enforceCatalog = createEslintRule({
17922
+ name: RULE_NAME$4,
17923
+ meta: {
17924
+ type: "layout",
17925
+ docs: {
17926
+ description: 'Enforce using "catalog:" in `package.json`'
17927
+ },
17928
+ fixable: "code",
17929
+ schema: [
17930
+ {
17931
+ type: "object",
17932
+ properties: {
17933
+ allowedProtocols: {
17934
+ type: "array",
17935
+ description: "Allowed protocols in specifier to not be converted to catalog",
17936
+ items: {
17937
+ type: "string"
17938
+ }
17939
+ },
17940
+ autofix: {
17941
+ type: "boolean",
17942
+ description: "Whether to autofix the linting error",
17943
+ default: true
17944
+ },
17945
+ defaultCatalog: {
17946
+ type: "string",
17947
+ description: "Default catalog to use when moving version to catalog with autofix"
17948
+ },
17949
+ reuseExistingCatalog: {
17950
+ type: "boolean",
17951
+ description: "Whether to reuse existing catalog when moving version to catalog with autofix",
17952
+ default: true
17953
+ },
17954
+ conflicts: {
17955
+ type: "string",
17956
+ description: "Strategy to handle conflicts when adding packages to catalogs",
17957
+ enum: ["new-catalog", "overrides", "error"],
17958
+ default: "new-catalog"
17959
+ },
17960
+ fields: {
17961
+ type: "array",
17962
+ description: "Fields to check for catalog",
17963
+ items: { type: "string" },
17964
+ default: DEFAULT_FIELDS$1
17965
+ },
17966
+ ignore: {
17967
+ type: "array",
17968
+ description: "A list of dependencies to ignore",
17969
+ items: { type: "string" },
17970
+ default: IGNORED_DEPENDENCIES
17971
+ }
17972
+ },
17973
+ additionalProperties: false
17974
+ }
17975
+ ],
17976
+ messages: {
17977
+ expectCatalog: 'Expect to use catalog instead of plain specifier, got "{{specifier}}" for package "{{packageName}}".'
17978
+ }
17979
+ },
17980
+ defaultOptions: [{}],
17981
+ create(context, [options]) {
17982
+ const {
17983
+ allowedProtocols = ["workspace", "link", "file"],
17984
+ defaultCatalog = "default",
17985
+ autofix = true,
17986
+ reuseExistingCatalog = true,
17987
+ conflicts = "new-catalog",
17988
+ fields = DEFAULT_FIELDS$1,
17989
+ ignore: ignore2 = IGNORED_DEPENDENCIES
17990
+ } = options || {};
17991
+ for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
17992
+ if (ignore2?.some((i) => i === packageName))
17993
+ continue;
17994
+ if (specifier.startsWith("catalog:"))
17995
+ continue;
17996
+ if (allowedProtocols?.some((p) => specifier.startsWith(p)))
17997
+ continue;
17998
+ const workspace2 = getPnpmWorkspace();
17999
+ if (!workspace2)
18000
+ return {};
18001
+ let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
18002
+ const resolvedConflicts = workspace2.hasSpecifierConflicts(
18003
+ targetCatalog,
18004
+ packageName,
18005
+ specifier
18006
+ );
18007
+ let shouldFix = autofix;
18008
+ if (conflicts === "error") {
18009
+ if (resolvedConflicts.conflicts) {
18010
+ shouldFix = false;
18011
+ }
18012
+ }
18013
+ if (conflicts === "new-catalog" && resolvedConflicts.conflicts) {
18014
+ targetCatalog = resolvedConflicts.newCatalogName;
18015
+ }
18016
+ context.report({
18017
+ node: property.value,
18018
+ messageId: "expectCatalog",
18019
+ data: {
18020
+ specifier,
18021
+ packageName
18022
+ },
18023
+ fix: shouldFix ? (fixer) => {
18024
+ workspace2.queueChange(() => {
18025
+ workspace2.setPackage(targetCatalog, packageName, specifier);
18026
+ });
18027
+ return fixer.replaceText(
18028
+ property.value,
18029
+ targetCatalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${targetCatalog}`)
18030
+ );
18031
+ } : void 0
18032
+ });
18033
+ }
18034
+ return {};
18035
+ }
18036
+ });
18037
+ var RULE_NAME$3 = "json-prefer-workspace-settings";
18038
+ var preferWorkspaceSettings = createEslintRule({
18039
+ name: RULE_NAME$3,
18040
+ meta: {
18041
+ type: "layout",
18042
+ docs: {
18043
+ 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."
18044
+ },
18045
+ fixable: "code",
18046
+ schema: [
18047
+ {
18048
+ type: "object",
18049
+ properties: {
18050
+ autofix: {
18051
+ type: "boolean",
18052
+ description: "Whether to autofix the linting error",
18053
+ default: true
18054
+ }
18055
+ },
18056
+ additionalProperties: false
18057
+ }
18058
+ ],
18059
+ messages: {
18060
+ unexpectedPnpmSettings: "Unexpected pnpm settings in package.json, should move to pnpm-workspace.yaml"
18061
+ }
18062
+ },
18063
+ defaultOptions: [{}],
18064
+ create(context, [options = {}]) {
18065
+ const {
18066
+ autofix = true
18067
+ } = options || {};
18068
+ const root = getPackageJsonRootNode(context);
18069
+ if (!root)
18070
+ return {};
18071
+ const pnpmNode = root.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === "pnpm");
18072
+ if (!pnpmNode)
18073
+ return {};
18074
+ const workspace2 = getPnpmWorkspace();
18075
+ if (!workspace2)
18076
+ return {};
18077
+ context.report({
18078
+ node: pnpmNode,
18079
+ messageId: "unexpectedPnpmSettings",
18080
+ fix: autofix ? (fixer) => {
18081
+ const json = JSON.parse(context.sourceCode.text);
18082
+ const pnpmSettings = json.pnpm;
18083
+ const flatValueParis = [];
18084
+ function traverse(value, paths) {
18085
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) {
18086
+ for (const key in value) {
18087
+ traverse(value[key], [...paths, key]);
18088
+ }
18089
+ } else {
18090
+ flatValueParis.push([paths, value]);
18091
+ }
18092
+ }
18093
+ traverse(pnpmSettings, []);
18094
+ workspace2.queueChange(() => {
18095
+ for (const [paths, value] of flatValueParis) {
18096
+ workspace2.setPath(paths, value);
18097
+ }
18098
+ });
18099
+ let start = pnpmNode.range[0];
18100
+ let end = pnpmNode.range[1];
18101
+ const before = context.sourceCode.getTokenBefore(pnpmNode);
18102
+ if (before)
18103
+ start = before.range[1];
18104
+ const after = context.sourceCode.getTokenAfter(pnpmNode);
18105
+ if (after?.type === "Punctuator" && after.value === ",")
18106
+ end = after.range[1];
18107
+ return fixer.removeRange([start, end]);
18108
+ } : void 0
18109
+ });
18110
+ return {};
18111
+ }
18112
+ });
18113
+ var RULE_NAME$2 = "json-valid-catalog";
18114
+ var DEFAULT_FIELDS = [
18115
+ "dependencies",
18116
+ "devDependencies",
18117
+ "optionalDependencies",
18118
+ "peerDependencies",
18119
+ "resolutions",
18120
+ "overrides",
18121
+ "pnpm.overrides"
18122
+ ];
18123
+ var validCatalog = createEslintRule({
18124
+ name: RULE_NAME$2,
18125
+ meta: {
18126
+ type: "layout",
18127
+ docs: {
18128
+ description: "Enforce using valid catalog in `package.json`"
18129
+ },
18130
+ fixable: "code",
18131
+ schema: [
18132
+ {
18133
+ type: "object",
18134
+ properties: {
18135
+ autoInsert: {
18136
+ type: "boolean",
18137
+ description: "Whether to auto insert to catalog if missing",
18138
+ default: true
18139
+ },
18140
+ autoInsertDefaultSpecifier: {
18141
+ type: "string",
18142
+ description: "Default specifier to use when auto inserting to catalog",
18143
+ default: "^0.0.0"
18144
+ },
18145
+ autofix: {
18146
+ type: "boolean",
18147
+ description: "Whether to autofix the linting error",
18148
+ default: true
18149
+ },
18150
+ enforceNoConflict: {
18151
+ type: "boolean",
18152
+ description: "Whether to enforce no conflicts when adding packages to catalogs (will create version-specific catalogs)",
18153
+ default: true
18154
+ },
18155
+ fields: {
18156
+ type: "array",
18157
+ description: "Fields to check for catalog",
18158
+ default: DEFAULT_FIELDS
18159
+ }
18160
+ },
18161
+ additionalProperties: false
18162
+ }
18163
+ ],
18164
+ messages: {
18165
+ invalidCatalog: 'Catalog "{{specifier}}" for package "{{packageName}}" is not defined in `pnpm-workspace.yaml`.'
18166
+ }
18167
+ },
18168
+ defaultOptions: [{}],
18169
+ create(context, [options = {}]) {
18170
+ const {
18171
+ autoInsert = true,
18172
+ autofix = true,
18173
+ autoInsertDefaultSpecifier = "^0.0.0",
18174
+ fields = DEFAULT_FIELDS
18175
+ } = options || {};
18176
+ for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
18177
+ if (!specifier.startsWith("catalog:"))
18178
+ continue;
18179
+ const workspace2 = getPnpmWorkspace();
18180
+ if (!workspace2)
18181
+ return {};
18182
+ const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
18183
+ const existingCatalogs = workspace2.getPackageCatalogs(packageName);
18184
+ if (!existingCatalogs.includes(currentCatalog)) {
18185
+ context.report({
18186
+ node: property.value,
18187
+ messageId: "invalidCatalog",
18188
+ data: {
18189
+ specifier,
18190
+ packageName
18191
+ },
18192
+ fix: !autofix || !autoInsert && !existingCatalogs.length ? void 0 : (fixer) => {
18193
+ let catalog = existingCatalogs[0];
18194
+ if (!catalog && autoInsert) {
18195
+ catalog = currentCatalog;
18196
+ workspace2.queueChange(() => {
18197
+ workspace2.setPackage(catalog, packageName, autoInsertDefaultSpecifier);
18198
+ }, "pre");
18199
+ }
18200
+ return fixer.replaceText(
18201
+ property.value,
18202
+ catalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${catalog}`)
18203
+ );
18204
+ }
18205
+ });
18206
+ }
18207
+ }
18208
+ return {};
18209
+ }
18210
+ });
18211
+ var rules$2 = {
18212
+ "json-enforce-catalog": enforceCatalog,
18213
+ "json-valid-catalog": validCatalog,
18214
+ "json-prefer-workspace-settings": preferWorkspaceSettings
18215
+ };
18216
+ var RULE_NAME$1 = "yaml-no-duplicate-catalog-item";
18217
+ var noDuplicateCatalogItem = createEslintRule({
18218
+ name: RULE_NAME$1,
18219
+ meta: {
18220
+ type: "problem",
18221
+ docs: {
18222
+ description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
18223
+ },
18224
+ fixable: "code",
18225
+ schema: [
18226
+ {
18227
+ type: "object",
18228
+ properties: {
18229
+ allow: {
18230
+ type: "array",
18231
+ items: { type: "string" }
18232
+ }
18233
+ },
18234
+ additionalProperties: false
18235
+ }
18236
+ ],
18237
+ messages: {
18238
+ duplicateCatalogItem: 'Catalog item "{{name}}" is already defined in the "{{existingCatalog}}" catalog. You may want to remove one of them.'
18239
+ }
18240
+ },
18241
+ defaultOptions: [{}],
18242
+ create(context, [options = {}]) {
18243
+ if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
18244
+ return {};
18245
+ const workspace2 = getPnpmWorkspace();
18246
+ if (!workspace2 || pathe.normalize(workspace2.filepath) !== pathe.normalize(context.filename))
18247
+ return {};
18248
+ if (workspace2.hasChanged() || workspace2.hasQueue())
18249
+ return {};
18250
+ const { allow = [] } = options;
18251
+ workspace2.setContent(context.sourceCode.text);
18252
+ const json = workspace2.toJSON() || {};
18253
+ const exists = /* @__PURE__ */ new Map();
18254
+ const catalogs = {
18255
+ ...json.catalogs,
18256
+ default: json.catalog
18257
+ };
18258
+ const doc = workspace2.getDocument();
18259
+ for (const [catalog, object2] of Object.entries(catalogs)) {
18260
+ if (!object2)
18261
+ continue;
18262
+ for (const key of Object.keys(object2)) {
18263
+ if (allow.includes(key))
18264
+ continue;
18265
+ if (exists.has(key)) {
18266
+ const existingCatalog = exists.get(key);
18267
+ const node2 = doc.getIn(catalog === "default" ? ["catalog", key] : ["catalogs", catalog, key], true);
18268
+ const start = context.sourceCode.getLocFromIndex(node2.range[0]);
18269
+ const end = context.sourceCode.getLocFromIndex(node2.range[1]);
18270
+ context.report({
18271
+ loc: {
18272
+ start,
18273
+ end
18274
+ },
18275
+ messageId: "duplicateCatalogItem",
18276
+ data: {
18277
+ name: key,
18278
+ currentCatalog: catalog,
18279
+ existingCatalog
18280
+ }
18281
+ });
18282
+ } else {
18283
+ exists.set(key, catalog);
18284
+ }
18285
+ }
18286
+ }
18287
+ return {};
18288
+ }
18289
+ });
18290
+ var RULE_NAME2 = "yaml-no-unused-catalog-item";
18291
+ var noUnusedCatalogItem = createEslintRule({
18292
+ name: RULE_NAME2,
18293
+ meta: {
18294
+ type: "problem",
18295
+ docs: {
18296
+ description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
18297
+ },
18298
+ fixable: "code",
18299
+ schema: [],
18300
+ messages: {
18301
+ unusedCatalogItem: 'Catalog item "{{catalogItem}}" is not used in any package.json.'
18302
+ }
18303
+ },
18304
+ defaultOptions: [],
18305
+ create(context) {
18306
+ if (pathe.basename(context.filename) !== "pnpm-workspace.yaml")
18307
+ return {};
18308
+ const workspace2 = getPnpmWorkspace();
18309
+ if (!workspace2 || pathe.normalize(workspace2.filepath) !== pathe.normalize(context.filename))
18310
+ return {};
18311
+ if (workspace2.hasChanged() || workspace2.hasQueue())
18312
+ return {};
18313
+ workspace2.setContent(context.sourceCode.text);
18314
+ const parsed = workspace2.toJSON() || {};
18315
+ const root = pathe.resolve(pathe.dirname(context.filename));
18316
+ const entries = /* @__PURE__ */ new Map();
18317
+ const doc = workspace2.getDocument();
18318
+ const catalogs = {
18319
+ default: doc.getIn(["catalog"])
18320
+ };
18321
+ for (const item of doc.getIn(["catalogs"])?.items || [])
18322
+ catalogs[String(item.key)] = item.value;
18323
+ for (const [catalog, map] of Object.entries(catalogs)) {
18324
+ if (!map)
18325
+ continue;
18326
+ for (const item of map.items) {
18327
+ entries.set(`${String(item.key)}:${catalog}`, item);
18328
+ }
18329
+ }
18330
+ if (entries.size === 0)
18331
+ return {};
18332
+ const dirs = parsed.packages ? tinyglobby.globSync(parsed.packages, {
18333
+ cwd: root,
18334
+ dot: false,
18335
+ ignore: [
18336
+ "**/node_modules/**",
18337
+ "**/dist/**",
18338
+ "**/build/**",
18339
+ "**/dist/**",
18340
+ "**/dist/**"
18341
+ ],
18342
+ absolute: true,
18343
+ expandDirectories: false,
18344
+ onlyDirectories: true
18345
+ }) : [];
18346
+ dirs.push(root);
18347
+ const packages = dirs.map((dir) => pathe.resolve(dir, "package.json")).filter((x) => fs3.existsSync(x)).sort();
18348
+ const FIELDS = [
18349
+ "dependencies",
18350
+ "devDependencies",
18351
+ "peerDependencies",
18352
+ "optionalDependencies",
18353
+ "overrides",
18354
+ "resolutions",
18355
+ "pnpm.overrides"
18356
+ ];
18357
+ for (const path23 of packages) {
18358
+ const pkg = JSON.parse(fs3.readFileSync(path23, "utf-8"));
18359
+ for (const field of FIELDS) {
18360
+ const map = getObjectPath(pkg, field.split("."));
18361
+ if (!map)
18362
+ continue;
18363
+ for (const [name3, value] of Object.entries(map)) {
18364
+ if (!value.startsWith("catalog:"))
18365
+ continue;
18366
+ const catalog = value.slice(8) || "default";
18367
+ const key = `${name3}:${catalog}`;
18368
+ entries.delete(key);
18369
+ }
18370
+ }
18371
+ }
18372
+ if (entries.size > 0) {
18373
+ for (const [key, value] of Array.from(entries.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
18374
+ const start = context.sourceCode.getLocFromIndex(value.key.range[0]);
18375
+ const end = context.sourceCode.getLocFromIndex(value.value.range.at(-1));
18376
+ context.report({
18377
+ loc: {
18378
+ start,
18379
+ end
18380
+ },
18381
+ messageId: "unusedCatalogItem",
18382
+ data: { catalogItem: key }
18383
+ });
18384
+ }
18385
+ }
18386
+ return {};
18387
+ }
18388
+ });
18389
+ function getObjectPath(obj, path23) {
18390
+ let current = obj;
18391
+ for (const key of path23) {
18392
+ current = current[key];
18393
+ if (!current)
18394
+ return void 0;
18395
+ }
18396
+ return current;
18397
+ }
18398
+ var rules$1 = {
18399
+ "yaml-no-unused-catalog-item": noUnusedCatalogItem,
18400
+ "yaml-no-duplicate-catalog-item": noDuplicateCatalogItem
18401
+ };
18402
+ var rules3 = {
18403
+ ...rules$2,
18404
+ ...rules$1
18405
+ };
18406
+ var plugin3 = {
18407
+ meta: {
18408
+ name: name2,
18409
+ version: version3
18410
+ },
18411
+ rules: rules3
18412
+ };
18413
+ var configsJson = [
18414
+ {
18415
+ name: "pnpm/package.json",
18416
+ files: [
18417
+ "package.json",
18418
+ "**/package.json"
18419
+ ],
18420
+ languageOptions: {
18421
+ parser: jsoncParser__namespace
18422
+ },
18423
+ plugins: {
18424
+ pnpm: plugin3
18425
+ },
18426
+ rules: {
18427
+ "pnpm/json-enforce-catalog": "error",
18428
+ "pnpm/json-valid-catalog": "error",
18429
+ "pnpm/json-prefer-workspace-settings": "error"
18430
+ }
18431
+ }
18432
+ ];
18433
+ var configsYaml = [
18434
+ {
18435
+ name: "pnpm/pnpm-workspace-yaml",
18436
+ files: ["pnpm-workspace.yaml"],
18437
+ languageOptions: {
18438
+ parser: yamlParser__namespace
18439
+ },
18440
+ plugins: {
18441
+ pnpm: plugin3
18442
+ },
18443
+ rules: {
18444
+ "pnpm/yaml-no-unused-catalog-item": "error",
18445
+ "pnpm/yaml-no-duplicate-catalog-item": "error"
18446
+ }
18447
+ }
18448
+ ];
18449
+ var configs3 = {
18450
+ recommended: [
18451
+ ...configsJson
18452
+ // Yaml support is still experimental
18453
+ // ...configsYaml,
18454
+ ],
18455
+ json: configsJson,
18456
+ yaml: configsYaml
18457
+ };
18458
+ plugin3.configs = configs3;
18459
+
18460
+ // ../eslint-plugin-pnpm/package.json
18461
+ var package_default2 = {
18462
+ version: "0.0.11"};
18463
+
18464
+ // ../eslint-plugin-pnpm/src/plugin.ts
18465
+ var plugin4 = {
18466
+ ...plugin3,
18467
+ meta: {
16884
18468
  name: "pnpm",
16885
18469
  version: package_default2.version
16886
18470
  }
@@ -16891,7 +18475,7 @@ var config3 = [
16891
18475
  {
16892
18476
  name: "pnpm/recommended/setup",
16893
18477
  plugins: {
16894
- pnpm: plugin3
18478
+ pnpm: plugin4
16895
18479
  }
16896
18480
  },
16897
18481
  {
@@ -16899,7 +18483,7 @@ var config3 = [
16899
18483
  ignores: GLOB_EXCLUDE,
16900
18484
  files: ["package.json", "**/package.json"],
16901
18485
  languageOptions: {
16902
- parser: parserJsonc__default.default
18486
+ parser: jsoncParser__namespace.default
16903
18487
  },
16904
18488
  rules: {
16905
18489
  "pnpm/json-enforce-catalog": [
@@ -16922,7 +18506,7 @@ var config3 = [
16922
18506
  ignores: GLOB_EXCLUDE,
16923
18507
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
16924
18508
  languageOptions: {
16925
- parser: parserYaml__default.default
18509
+ parser: yamlParser__namespace.default
16926
18510
  },
16927
18511
  rules: {
16928
18512
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -16933,17 +18517,17 @@ var config3 = [
16933
18517
  var recommended_default4 = config3;
16934
18518
 
16935
18519
  // ../eslint-plugin-pnpm/src/configs/index.ts
16936
- var configs3 = {
18520
+ var configs4 = {
16937
18521
  recommended: recommended_default4
16938
18522
  };
16939
18523
 
16940
18524
  // ../eslint-plugin-pnpm/src/index.ts
16941
18525
  var eslintPlugin2 = {
16942
- ...plugin3,
16943
- configs: configs3
18526
+ ...plugin4,
18527
+ configs: configs4
16944
18528
  };
16945
18529
  var src_default2 = eslintPlugin2;
16946
- plugin3.rules;
18530
+ plugin4.rules;
16947
18531
  async function pnpm(options = {}) {
16948
18532
  const {
16949
18533
  overrides = {},
@@ -17042,6 +18626,9 @@ async function pnpm(options = {}) {
17042
18626
  }
17043
18627
  ];
17044
18628
  }
18629
+
18630
+ // src/configs/prettier.ts
18631
+ init_cjs_shims();
17045
18632
  async function prettier() {
17046
18633
  return [
17047
18634
  defu__default.default(
@@ -17060,6 +18647,9 @@ async function prettier() {
17060
18647
  )
17061
18648
  ];
17062
18649
  }
18650
+
18651
+ // src/configs/react.ts
18652
+ init_cjs_shims();
17063
18653
  var ReactRefreshAllowConstantExportPackages = ["vite"];
17064
18654
  var ReactRouterPackages = [
17065
18655
  "@react-router/node",
@@ -17232,6 +18822,7 @@ async function react(options = {}) {
17232
18822
  }
17233
18823
 
17234
18824
  // src/configs/react-native.ts
18825
+ init_cjs_shims();
17235
18826
  async function reactNative(options = {}) {
17236
18827
  const { overrides = {} } = options;
17237
18828
  await ensurePackages(["eslint-plugin-react-native"]);
@@ -17250,14 +18841,17 @@ async function reactNative(options = {}) {
17250
18841
  }
17251
18842
  ];
17252
18843
  }
18844
+
18845
+ // src/configs/regexp.ts
18846
+ init_cjs_shims();
17253
18847
  async function regexp(options = {}) {
17254
18848
  const config5 = eslintPluginRegexp.configs["flat/recommended"];
17255
- const rules4 = {
18849
+ const rules5 = {
17256
18850
  ...config5.rules
17257
18851
  };
17258
18852
  if (options.level === "warn") {
17259
- for (const key in rules4) {
17260
- if (rules4[key] === "error") rules4[key] = "warn";
18853
+ for (const key in rules5) {
18854
+ if (rules5[key] === "error") rules5[key] = "warn";
17261
18855
  }
17262
18856
  }
17263
18857
  return [
@@ -17265,7 +18859,7 @@ async function regexp(options = {}) {
17265
18859
  ...config5,
17266
18860
  name: "storm/regexp/rules",
17267
18861
  rules: {
17268
- ...rules4,
18862
+ ...rules5,
17269
18863
  "regexp/no-unused-capturing-group": [
17270
18864
  "error",
17271
18865
  {
@@ -17280,6 +18874,7 @@ async function regexp(options = {}) {
17280
18874
  }
17281
18875
 
17282
18876
  // src/configs/secrets.ts
18877
+ init_cjs_shims();
17283
18878
  async function secrets(options) {
17284
18879
  const { json = true } = options;
17285
18880
  if (json) {
@@ -17303,6 +18898,7 @@ async function secrets(options) {
17303
18898
  }
17304
18899
 
17305
18900
  // src/configs/sort.ts
18901
+ init_cjs_shims();
17306
18902
  async function sortPackageJson() {
17307
18903
  return [
17308
18904
  {
@@ -17528,6 +19124,7 @@ function sortTsconfig() {
17528
19124
  }
17529
19125
 
17530
19126
  // src/configs/storybook.ts
19127
+ init_cjs_shims();
17531
19128
  async function storybook(options = {}) {
17532
19129
  const { csf = "loose" } = options;
17533
19130
  await ensurePackages(["eslint-plugin-storybook"]);
@@ -17583,10 +19180,11 @@ async function storybook(options = {}) {
17583
19180
  }
17584
19181
 
17585
19182
  // src/configs/test.ts
17586
- var plugin4;
19183
+ init_cjs_shims();
19184
+ var plugin5;
17587
19185
  async function test(options = {}) {
17588
19186
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
17589
- plugin4 = plugin4 || {
19187
+ plugin5 = plugin5 || {
17590
19188
  ...default4__default.default,
17591
19189
  rules: {
17592
19190
  ...default4__default.default.rules,
@@ -17598,7 +19196,7 @@ async function test(options = {}) {
17598
19196
  {
17599
19197
  name: "storm/test/setup",
17600
19198
  plugins: {
17601
- test: plugin4
19199
+ test: plugin5
17602
19200
  }
17603
19201
  },
17604
19202
  {
@@ -17632,6 +19230,7 @@ async function test(options = {}) {
17632
19230
  }
17633
19231
 
17634
19232
  // src/configs/toml.ts
19233
+ init_cjs_shims();
17635
19234
  async function toml(options = {}) {
17636
19235
  const { files = [GLOB_TOML], overrides = {}, stylistic: stylistic2 = true } = options;
17637
19236
  const { indent = 2 } = typeof stylistic2 === "boolean" ? {} : stylistic2;
@@ -17680,6 +19279,10 @@ async function toml(options = {}) {
17680
19279
  }
17681
19280
  ];
17682
19281
  }
19282
+
19283
+ // src/configs/tsdoc.ts
19284
+ init_cjs_shims();
19285
+ var import_eslint_plugin_tsdoc = __toESM(require_lib());
17683
19286
  async function tsdoc(options = {}) {
17684
19287
  const {
17685
19288
  severity = "error",
@@ -17692,7 +19295,7 @@ async function tsdoc(options = {}) {
17692
19295
  files,
17693
19296
  name: "storm/tsdoc/rules",
17694
19297
  plugins: {
17695
- tsdoc: pluginTsdoc__default.default
19298
+ tsdoc: import_eslint_plugin_tsdoc.default
17696
19299
  },
17697
19300
  rules: {
17698
19301
  "tsdoc/syntax": [severity, { type, configFile }]
@@ -17700,6 +19303,12 @@ async function tsdoc(options = {}) {
17700
19303
  }
17701
19304
  ];
17702
19305
  }
19306
+
19307
+ // src/configs/typescript.ts
19308
+ init_cjs_shims();
19309
+
19310
+ // src/utils/tsconfig-path.ts
19311
+ init_cjs_shims();
17703
19312
  function getTsConfigPath(tsconfigPath, type = "app") {
17704
19313
  const workspaceRoot = findWorkspaceRoot2();
17705
19314
  if (tsconfigPath && fs3.existsSync(tsconfigPath) && fs3.statSync(tsconfigPath).isFile()) {
@@ -18009,6 +19618,7 @@ async function typescript(options = {}) {
18009
19618
  }
18010
19619
 
18011
19620
  // src/configs/unicorn.ts
19621
+ init_cjs_shims();
18012
19622
  async function unicorn(options = {}) {
18013
19623
  return [
18014
19624
  {
@@ -18059,6 +19669,7 @@ async function unicorn(options = {}) {
18059
19669
  }
18060
19670
 
18061
19671
  // src/configs/unocss.ts
19672
+ init_cjs_shims();
18062
19673
  async function unocss(options = {}) {
18063
19674
  const { attributify = true, strict = false } = options;
18064
19675
  await ensurePackages(["@unocss/eslint-plugin"]);
@@ -18085,6 +19696,7 @@ async function unocss(options = {}) {
18085
19696
  }
18086
19697
 
18087
19698
  // src/configs/yaml.ts
19699
+ init_cjs_shims();
18088
19700
  async function yaml(options = {}) {
18089
19701
  const { files = [GLOB_YAML], overrides = {}, stylistic: stylistic2 = true } = options;
18090
19702
  const { indent = 2, quotes = "single" } = typeof stylistic2 === "boolean" ? {} : stylistic2;
@@ -18143,6 +19755,7 @@ async function yaml(options = {}) {
18143
19755
  }
18144
19756
 
18145
19757
  // src/configs/zod.ts
19758
+ init_cjs_shims();
18146
19759
  async function zod(options = {}) {
18147
19760
  const { overrides = {} } = options;
18148
19761
  return [
@@ -18191,7 +19804,7 @@ function getOverrides(options, key) {
18191
19804
  }
18192
19805
  function getStormConfig(options, ...userConfigs) {
18193
19806
  const {
18194
- name: name2,
19807
+ name: name3,
18195
19808
  globals = {},
18196
19809
  banner: enableBanner = true,
18197
19810
  astro: enableAstro = false,
@@ -18227,10 +19840,10 @@ function getStormConfig(options, ...userConfigs) {
18227
19840
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
18228
19841
  stylisticOptions.jsx = enableJsx;
18229
19842
  }
18230
- const configs5 = [];
19843
+ const configs6 = [];
18231
19844
  if (enableGitignore) {
18232
19845
  if (typeof enableGitignore !== "boolean") {
18233
- configs5.push(
19846
+ configs6.push(
18234
19847
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
18235
19848
  r({
18236
19849
  name: "storm/gitignore",
@@ -18239,7 +19852,7 @@ function getStormConfig(options, ...userConfigs) {
18239
19852
  ])
18240
19853
  );
18241
19854
  } else {
18242
- configs5.push(
19855
+ configs6.push(
18243
19856
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
18244
19857
  r({
18245
19858
  name: "storm/gitignore",
@@ -18250,7 +19863,7 @@ function getStormConfig(options, ...userConfigs) {
18250
19863
  }
18251
19864
  }
18252
19865
  const typescriptOptions = resolveSubOptions(options, "typescript");
18253
- configs5.push(
19866
+ configs6.push(
18254
19867
  ignores(options.ignores),
18255
19868
  javascript({
18256
19869
  globals,
@@ -18265,25 +19878,25 @@ function getStormConfig(options, ...userConfigs) {
18265
19878
  secrets({ json: options.jsonc !== false })
18266
19879
  );
18267
19880
  if (enableBanner) {
18268
- configs5.push(
19881
+ configs6.push(
18269
19882
  banner({
18270
19883
  ...resolveSubOptions(options, "banner"),
18271
- name: name2,
19884
+ name: name3,
18272
19885
  overrides: getOverrides(options, "banner")
18273
19886
  })
18274
19887
  );
18275
19888
  }
18276
19889
  if (!stylisticOptions) {
18277
- configs5.push(prettier());
19890
+ configs6.push(prettier());
18278
19891
  }
18279
19892
  if (enableCSpell) {
18280
- configs5.push(cspell(resolveSubOptions(options, "cspell")));
19893
+ configs6.push(cspell(resolveSubOptions(options, "cspell")));
18281
19894
  }
18282
19895
  if (enableUnicorn) {
18283
- configs5.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
19896
+ configs6.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
18284
19897
  }
18285
19898
  if (enableJSDoc) {
18286
- configs5.push(
19899
+ configs6.push(
18287
19900
  jsdoc({
18288
19901
  ...resolveSubOptions(options, "jsdoc"),
18289
19902
  overrides: getOverrides(options, "jsdoc")
@@ -18291,7 +19904,7 @@ function getStormConfig(options, ...userConfigs) {
18291
19904
  );
18292
19905
  }
18293
19906
  if (enableTSDoc) {
18294
- configs5.push(
19907
+ configs6.push(
18295
19908
  tsdoc({
18296
19909
  ...resolveSubOptions(options, "tsdoc"),
18297
19910
  overrides: getOverrides(options, "tsdoc")
@@ -18299,10 +19912,10 @@ function getStormConfig(options, ...userConfigs) {
18299
19912
  );
18300
19913
  }
18301
19914
  if (enableJsx) {
18302
- configs5.push(jsx());
19915
+ configs6.push(jsx());
18303
19916
  }
18304
19917
  if (enableTypeScript) {
18305
- configs5.push(
19918
+ configs6.push(
18306
19919
  typescript({
18307
19920
  ...typescriptOptions,
18308
19921
  componentExts,
@@ -18312,14 +19925,14 @@ function getStormConfig(options, ...userConfigs) {
18312
19925
  );
18313
19926
  }
18314
19927
  if (enableZod) {
18315
- configs5.push(
19928
+ configs6.push(
18316
19929
  zod({
18317
19930
  overrides: getOverrides(options, "zod")
18318
19931
  })
18319
19932
  );
18320
19933
  }
18321
19934
  if (stylisticOptions) {
18322
- configs5.push(
19935
+ configs6.push(
18323
19936
  stylistic({
18324
19937
  ...stylisticOptions,
18325
19938
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -18329,10 +19942,10 @@ function getStormConfig(options, ...userConfigs) {
18329
19942
  );
18330
19943
  }
18331
19944
  if (enableRegexp) {
18332
- configs5.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
19945
+ configs6.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
18333
19946
  }
18334
19947
  if (enableTest) {
18335
- configs5.push(
19948
+ configs6.push(
18336
19949
  test({
18337
19950
  isInEditor,
18338
19951
  overrides: getOverrides(options, "test")
@@ -18340,10 +19953,10 @@ function getStormConfig(options, ...userConfigs) {
18340
19953
  );
18341
19954
  }
18342
19955
  if (enableGraphQL) {
18343
- configs5.push(graphql(resolveSubOptions(options, "graphql")));
19956
+ configs6.push(graphql(resolveSubOptions(options, "graphql")));
18344
19957
  }
18345
19958
  if (enableReact) {
18346
- configs5.push(
19959
+ configs6.push(
18347
19960
  react({
18348
19961
  ...typescriptOptions,
18349
19962
  overrides: getOverrides(options, "react"),
@@ -18352,7 +19965,7 @@ function getStormConfig(options, ...userConfigs) {
18352
19965
  );
18353
19966
  }
18354
19967
  if (enableReactNative) {
18355
- configs5.push(
19968
+ configs6.push(
18356
19969
  reactNative({
18357
19970
  ...resolveSubOptions(options, "react-native"),
18358
19971
  overrides: getOverrides(options, "react-native")
@@ -18360,13 +19973,13 @@ function getStormConfig(options, ...userConfigs) {
18360
19973
  );
18361
19974
  }
18362
19975
  if (enableNext) {
18363
- configs5.push(next(resolveSubOptions(options, "next")));
19976
+ configs6.push(next(resolveSubOptions(options, "next")));
18364
19977
  }
18365
19978
  if (enableStorybook) {
18366
- configs5.push(storybook(resolveSubOptions(options, "storybook")));
19979
+ configs6.push(storybook(resolveSubOptions(options, "storybook")));
18367
19980
  }
18368
19981
  if (enableUnoCSS) {
18369
- configs5.push(
19982
+ configs6.push(
18370
19983
  unocss({
18371
19984
  ...resolveSubOptions(options, "unocss"),
18372
19985
  overrides: getOverrides(options, "unocss")
@@ -18374,7 +19987,7 @@ function getStormConfig(options, ...userConfigs) {
18374
19987
  );
18375
19988
  }
18376
19989
  if (enableAstro) {
18377
- configs5.push(
19990
+ configs6.push(
18378
19991
  astro({
18379
19992
  overrides: getOverrides(options, "astro"),
18380
19993
  stylistic: stylisticOptions
@@ -18382,7 +19995,7 @@ function getStormConfig(options, ...userConfigs) {
18382
19995
  );
18383
19996
  }
18384
19997
  if (options.pnpm ?? true) {
18385
- configs5.push(
19998
+ configs6.push(
18386
19999
  pnpm({
18387
20000
  overrides: getOverrides(options, "pnpm"),
18388
20001
  ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
@@ -18390,7 +20003,7 @@ function getStormConfig(options, ...userConfigs) {
18390
20003
  );
18391
20004
  }
18392
20005
  if (options.jsonc ?? true) {
18393
- configs5.push(
20006
+ configs6.push(
18394
20007
  jsonc({
18395
20008
  overrides: getOverrides(options, "jsonc"),
18396
20009
  stylistic: stylisticOptions
@@ -18398,11 +20011,11 @@ function getStormConfig(options, ...userConfigs) {
18398
20011
  sortTsconfig()
18399
20012
  );
18400
20013
  if (stylisticOptions) {
18401
- configs5.push(sortPackageJson());
20014
+ configs6.push(sortPackageJson());
18402
20015
  }
18403
20016
  }
18404
20017
  if (options.yaml ?? true) {
18405
- configs5.push(
20018
+ configs6.push(
18406
20019
  yaml({
18407
20020
  overrides: getOverrides(options, "yaml"),
18408
20021
  stylistic: stylisticOptions
@@ -18410,7 +20023,7 @@ function getStormConfig(options, ...userConfigs) {
18410
20023
  );
18411
20024
  }
18412
20025
  if (options.toml ?? true) {
18413
- configs5.push(
20026
+ configs6.push(
18414
20027
  toml({
18415
20028
  overrides: getOverrides(options, "toml"),
18416
20029
  stylistic: stylisticOptions
@@ -18418,28 +20031,28 @@ function getStormConfig(options, ...userConfigs) {
18418
20031
  );
18419
20032
  }
18420
20033
  if (options.markdown === true) {
18421
- configs5.push(
20034
+ configs6.push(
18422
20035
  markdown({
18423
20036
  overrides: getOverrides(options, "markdown")
18424
20037
  })
18425
20038
  );
18426
20039
  }
18427
20040
  if (options.mdx ?? true) {
18428
- configs5.push(
20041
+ configs6.push(
18429
20042
  mdx({
18430
20043
  overrides: getOverrides(options, "mdx")
18431
20044
  })
18432
20045
  );
18433
20046
  }
18434
20047
  if (options.formatters) {
18435
- configs5.push(
20048
+ configs6.push(
18436
20049
  formatters(
18437
20050
  options.formatters,
18438
20051
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
18439
20052
  )
18440
20053
  );
18441
20054
  }
18442
- configs5.push(disables());
20055
+ configs6.push(disables());
18443
20056
  if ("files" in options) {
18444
20057
  throw new Error(
18445
20058
  '[@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.'
@@ -18451,10 +20064,10 @@ function getStormConfig(options, ...userConfigs) {
18451
20064
  }
18452
20065
  return acc;
18453
20066
  }, {});
18454
- if (Object.keys(fusedConfig).length) configs5.push([fusedConfig]);
20067
+ if (Object.keys(fusedConfig).length) configs6.push([fusedConfig]);
18455
20068
  let composer = new eslintFlatConfigUtils.FlatConfigComposer();
18456
20069
  composer = composer.append(
18457
- ...configs5,
20070
+ ...configs6,
18458
20071
  ...userConfigs
18459
20072
  );
18460
20073
  if (autoRenamePlugins) {