@storm-software/eslint 0.170.71 → 0.170.73

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.js CHANGED
@@ -1,14 +1,18 @@
1
- import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-C74DAXLP.js';
2
- import { getTsConfigPath } from './chunk-DMZFJCWX.js';
3
- import { findWorkspaceRoot } from './chunk-WYU7W4UW.js';
4
- import { joinPaths } from './chunk-RU7GXBCG.js';
5
- import { __require, __filename as __filename$1 } from './chunk-WBEFFLSU.js';
1
+ import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-ZKDKPCV5.js';
2
+ import { getTsConfigPath } from './chunk-KELTZLAL.js';
3
+ import { findWorkspaceRoot } from './chunk-H5G3BZKC.js';
4
+ import { joinPaths } from './chunk-XUA7TAHD.js';
5
+ import { __commonJS, init_esm_shims, __toESM, __require, __filename as __filename$1 } from './chunk-W2N2UAU4.js';
6
+ import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
7
+ import * as __import_path from 'path';
8
+ import * as __import_fs from 'fs';
9
+ import * as __import__microsoft_tsdoc from '@microsoft/tsdoc';
6
10
  import { FlatConfigComposer } from 'eslint-flat-config-utils';
7
11
  import { isPackageExists } from 'local-pkg';
8
12
  import { loadConfig } from 'c12';
9
13
  import defu from 'defu';
10
14
  import chalk from 'chalk';
11
- import fs3, { existsSync } from 'node:fs';
15
+ import fs3, { existsSync, readFileSync } from 'node:fs';
12
16
  import path16, { join } from 'node:path';
13
17
  import { readFile } from 'node:fs/promises';
14
18
  import { EOL } from 'node:os';
@@ -40,14 +44,551 @@ import default12 from 'eslint-plugin-unused-imports';
40
44
  import globalsLib from 'globals';
41
45
  import { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';
42
46
  import { readCachedProjectGraph, createProjectGraphAsync } from '@nx/devkit';
43
- import parserJsonc from 'jsonc-eslint-parser';
44
- import parserYaml from 'yaml-eslint-parser';
45
- import base from 'eslint-plugin-pnpm';
47
+ import * as jsoncParser from 'jsonc-eslint-parser';
48
+ import jsoncParser__default from 'jsonc-eslint-parser';
49
+ import * as yamlParser from 'yaml-eslint-parser';
50
+ import yamlParser__default from 'yaml-eslint-parser';
51
+ import process2 from 'node:process';
52
+ import { findUpSync } from 'find-up-simple';
53
+ import { parsePnpmWorkspaceYaml } from 'pnpm-workspace-yaml';
54
+ import { basename, normalize as normalize$1, resolve as resolve$1, dirname } from 'pathe';
55
+ import { globSync } from 'tinyglobby';
46
56
  import config4 from 'eslint-plugin-prettier/recommended';
47
57
  import { configs as configs$1 } from 'eslint-plugin-regexp';
48
- import pluginTsdoc from 'eslint-plugin-tsdoc';
58
+
59
+ // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js
60
+ var require_Debug = __commonJS({
61
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
62
+ init_esm_shims();
63
+ Object.defineProperty(exports, "__esModule", { value: true });
64
+ exports.Debug = void 0;
65
+ var Debug = class {
66
+ // To debug the plugin, temporarily uncomment the body of this function
67
+ static log(message2) {
68
+ }
69
+ };
70
+ exports.Debug = Debug;
71
+ }
72
+ });
73
+ var require_ConfigCache = __commonJS({
74
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
75
+ init_esm_shims();
76
+ var __import___Debug = __toESM(require_Debug());
77
+ var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
78
+ if (k2 === void 0) k2 = k;
79
+ var desc = Object.getOwnPropertyDescriptor(m, k);
80
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
81
+ desc = { enumerable: true, get: function() {
82
+ return m[k];
83
+ } };
84
+ }
85
+ Object.defineProperty(o, k2, desc);
86
+ }) : (function(o, m, k, k2) {
87
+ if (k2 === void 0) k2 = k;
88
+ o[k2] = m[k];
89
+ }));
90
+ var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
91
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
92
+ }) : function(o, v) {
93
+ o["default"] = v;
94
+ });
95
+ var __importStar = exports && exports.__importStar || function(mod) {
96
+ if (mod && mod.__esModule) return mod;
97
+ var result = {};
98
+ if (mod != null) {
99
+ for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
100
+ }
101
+ __setModuleDefault(result, mod);
102
+ return result;
103
+ };
104
+ Object.defineProperty(exports, "__esModule", { value: true });
105
+ exports.ConfigCache = void 0;
106
+ var tsdoc_config_1 = __import__microsoft_tsdocConfig;
107
+ var path23 = __importStar(__import_path);
108
+ var Debug_1 = __import___Debug;
109
+ function _nullishCoalesce(lhs, rhsFn) {
110
+ if (lhs != null) {
111
+ return lhs;
112
+ } else {
113
+ return rhsFn();
114
+ }
115
+ }
116
+ var _fs = __import_fs;
117
+ var _path = __import_path;
118
+ var MAX_PATH_SEARCH_DEPTH2 = 30;
119
+ var depth2 = 0;
120
+ var ROOT_FILES = [
121
+ "storm-workspace.json",
122
+ "storm-workspace.json",
123
+ "storm-workspace.yaml",
124
+ "storm-workspace.yml",
125
+ "storm-workspace.js",
126
+ "storm-workspace.ts",
127
+ ".storm-workspace.json",
128
+ ".storm-workspace.yaml",
129
+ ".storm-workspace.yml",
130
+ ".storm-workspace.js",
131
+ ".storm-workspace.ts",
132
+ "lerna.json",
133
+ "nx.json",
134
+ "turbo.json",
135
+ "npm-workspace.json",
136
+ "yarn-workspace.json",
137
+ "pnpm-workspace.json",
138
+ "npm-workspace.yaml",
139
+ "yarn-workspace.yaml",
140
+ "pnpm-workspace.yaml",
141
+ "npm-workspace.yml",
142
+ "yarn-workspace.yml",
143
+ "pnpm-workspace.yml",
144
+ "npm-lock.json",
145
+ "yarn-lock.json",
146
+ "pnpm-lock.json",
147
+ "npm-lock.yaml",
148
+ "yarn-lock.yaml",
149
+ "pnpm-lock.yaml",
150
+ "npm-lock.yml",
151
+ "yarn-lock.yml",
152
+ "pnpm-lock.yml",
153
+ "bun.lockb"
154
+ ];
155
+ var ROOT_DIRECTORIES = [
156
+ ".storm-workspace",
157
+ ".nx",
158
+ ".github",
159
+ ".vscode",
160
+ ".verdaccio"
161
+ ];
162
+ function findWorkspaceRoot3(startPath) {
163
+ const _startPath = _nullishCoalesce(startPath, () => process.cwd());
164
+ if (ROOT_DIRECTORIES.some(
165
+ (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
166
+ )) {
167
+ return _startPath;
168
+ }
169
+ if (ROOT_FILES.some(
170
+ (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
171
+ )) {
172
+ return _startPath;
173
+ }
174
+ if (_startPath !== "/" && depth2++ < MAX_PATH_SEARCH_DEPTH2) {
175
+ const parent = _path.join.call(void 0, _startPath, "..");
176
+ return findWorkspaceRoot3(parent);
177
+ }
178
+ return void 0;
179
+ }
180
+ var CACHE_CHECK_INTERVAL_MS = 3 * 1e3;
181
+ var CACHE_EXPIRE_MS = 20 * 1e3;
182
+ var CACHE_MAX_SIZE = 100;
183
+ var ConfigCache = class _ConfigCache {
184
+ /**
185
+ * Node.js equivalent of performance.now().
186
+ */
187
+ static _getTimeInMs() {
188
+ const [seconds, nanoseconds] = process.hrtime();
189
+ return seconds * 1e3 + nanoseconds / 1e6;
190
+ }
191
+ static getForSourceFile(sourceFilePath, tsConfigRootDir) {
192
+ const sourceFileFolder = path23.dirname(path23.resolve(sourceFilePath));
193
+ const configFilePath = tsConfigRootDir ? path23.join(tsConfigRootDir, tsdoc_config_1.TSDocConfigFile.FILENAME) : tsdoc_config_1.TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
194
+ const cacheKey = configFilePath || sourceFileFolder + "/";
195
+ Debug_1.Debug.log(`Cache key: "${cacheKey}"`);
196
+ const nowMs = _ConfigCache._getTimeInMs();
197
+ let cachedConfig = void 0;
198
+ cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
199
+ if (cachedConfig) {
200
+ Debug_1.Debug.log("Cache hit");
201
+ const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
202
+ const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
203
+ if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
204
+ Debug_1.Debug.log("Evicting because item is expired");
205
+ cachedConfig = void 0;
206
+ _ConfigCache._cachedConfigs.delete(cacheKey);
207
+ } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
208
+ Debug_1.Debug.log("Checking for modifications");
209
+ cachedConfig.lastCheckTimeMs = nowMs;
210
+ if (cachedConfig.configFile.checkForModifiedFiles()) {
211
+ Debug_1.Debug.log("Evicting because item was modified");
212
+ cachedConfig = void 0;
213
+ _ConfigCache._cachedConfigs.delete(cacheKey);
214
+ }
215
+ }
216
+ }
217
+ if (!cachedConfig) {
218
+ if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
219
+ Debug_1.Debug.log("Clearing cache");
220
+ _ConfigCache._cachedConfigs.clear();
221
+ }
222
+ const configFile = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
223
+ if (configFile.fileNotFound) {
224
+ Debug_1.Debug.log(`File not found: "${configFilePath}"`);
225
+ } else {
226
+ Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
227
+ }
228
+ cachedConfig = {
229
+ configFile,
230
+ lastCheckTimeMs: nowMs,
231
+ loadTimeMs: nowMs
232
+ };
233
+ _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
234
+ }
235
+ return cachedConfig.configFile;
236
+ }
237
+ static _checkConfigFilePath(workspaceRoot, configFilePath) {
238
+ const workspaceRootPath = workspaceRoot ? workspaceRoot : "./";
239
+ if (!configFilePath) {
240
+ return void 0;
241
+ }
242
+ if (_fs.existsSync(configFilePath)) {
243
+ return configFilePath;
244
+ } else if (_fs.existsSync(
245
+ path23.join(
246
+ workspaceRootPath,
247
+ configFilePath
248
+ )
249
+ )) {
250
+ return path23.join(
251
+ workspaceRootPath,
252
+ configFilePath
253
+ );
254
+ } else if (_fs.existsSync(
255
+ path23.join(
256
+ workspaceRootPath,
257
+ "node_modules",
258
+ configFilePath
259
+ )
260
+ )) {
261
+ return path23.join(
262
+ workspaceRootPath,
263
+ "node_modules",
264
+ configFilePath
265
+ );
266
+ } else if (_fs.existsSync(
267
+ path23.join(
268
+ workspaceRootPath,
269
+ "node_modules",
270
+ "@storm-software",
271
+ "tsdoc",
272
+ configFilePath
273
+ )
274
+ )) {
275
+ return path23.join(
276
+ workspaceRootPath,
277
+ "node_modules",
278
+ "@storm-software",
279
+ "tsdoc",
280
+ configFilePath
281
+ );
282
+ } else if (_fs.existsSync(
283
+ path23.join(
284
+ workspaceRootPath,
285
+ "node_modules",
286
+ "@storm-software",
287
+ "tsdoc",
288
+ "config",
289
+ configFilePath
290
+ )
291
+ )) {
292
+ return path23.join(
293
+ workspaceRootPath,
294
+ "node_modules",
295
+ "@storm-software",
296
+ "tsdoc",
297
+ "config",
298
+ configFilePath
299
+ );
300
+ } else if (_fs.existsSync(
301
+ path23.join(
302
+ workspaceRootPath,
303
+ "node_modules",
304
+ "@storm-software",
305
+ "tsdoc",
306
+ "dist",
307
+ configFilePath
308
+ )
309
+ )) {
310
+ return path23.join(
311
+ workspaceRootPath,
312
+ "node_modules",
313
+ "@storm-software",
314
+ "tsdoc",
315
+ "dist",
316
+ configFilePath
317
+ );
318
+ }
319
+ return void 0;
320
+ }
321
+ static getStormConfigFile(options) {
322
+ const type = options && options.type ? options.type : "recommended";
323
+ const configFile = options && options.configFile ? options.configFile : void 0;
324
+ let workspaceRoot = "";
325
+ if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
326
+ workspaceRoot = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
327
+ }
328
+ if (!workspaceRoot) {
329
+ workspaceRoot = findWorkspaceRoot3();
330
+ }
331
+ let currentConfigFile = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
332
+ Debug_1.Debug.log(`Config file from user options: ${currentConfigFile || "(none)"}`);
333
+ let configFilePath = _ConfigCache._checkConfigFilePath(
334
+ workspaceRoot,
335
+ currentConfigFile
336
+ );
337
+ if (!configFilePath) {
338
+ currentConfigFile = `${((process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type) || "recommended").replace(/\.jsonc?$/, "")}.json`;
339
+ Debug_1.Debug.log(`Config file from user options not found, trying: ${currentConfigFile}`);
340
+ configFilePath = _ConfigCache._checkConfigFilePath(
341
+ workspaceRoot,
342
+ currentConfigFile
343
+ );
344
+ if (!configFilePath) {
345
+ configFilePath = _ConfigCache._checkConfigFilePath(
346
+ workspaceRoot,
347
+ "recommended.json"
348
+ );
349
+ if (!configFilePath) {
350
+ configFilePath = _ConfigCache._checkConfigFilePath(
351
+ workspaceRoot,
352
+ "tsdoc.json"
353
+ );
354
+ }
355
+ }
356
+ }
357
+ const cacheKey = configFilePath || "missing-config-file";
358
+ Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
359
+ const nowMs = _ConfigCache._getTimeInMs();
360
+ let cachedConfig = void 0;
361
+ cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
362
+ if (cachedConfig) {
363
+ Debug_1.Debug.log("Cache hit");
364
+ const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
365
+ const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
366
+ if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
367
+ Debug_1.Debug.log("Evicting because item is expired");
368
+ cachedConfig = void 0;
369
+ _ConfigCache._cachedConfigs.delete(cacheKey);
370
+ } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
371
+ Debug_1.Debug.log("Checking for modifications");
372
+ cachedConfig.lastCheckTimeMs = nowMs;
373
+ if (cachedConfig.configFile.checkForModifiedFiles()) {
374
+ Debug_1.Debug.log("Evicting because item was modified");
375
+ cachedConfig = void 0;
376
+ _ConfigCache._cachedConfigs.delete(cacheKey);
377
+ }
378
+ }
379
+ }
380
+ if (!cachedConfig) {
381
+ if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
382
+ Debug_1.Debug.log("Clearing cache");
383
+ _ConfigCache._cachedConfigs.clear();
384
+ }
385
+ const configFile2 = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
386
+ if (configFile2.fileNotFound) {
387
+ Debug_1.Debug.log(`File not found: "${configFilePath}"`);
388
+ } else {
389
+ Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
390
+ }
391
+ cachedConfig = {
392
+ configFile: configFile2,
393
+ lastCheckTimeMs: nowMs,
394
+ loadTimeMs: nowMs
395
+ };
396
+ _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
397
+ }
398
+ return cachedConfig.configFile;
399
+ }
400
+ };
401
+ exports.ConfigCache = ConfigCache;
402
+ ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
403
+ ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
404
+ }
405
+ });
406
+ var require_lib = __commonJS({
407
+ "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=11b9fbe0e91a2ce3492e80b89a7502a9ff364683b23b9bdfc2c979d988e1682b/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
408
+ init_esm_shims();
409
+ var __import___Debug = __toESM(require_Debug());
410
+ var __import___ConfigCache = __toESM(require_ConfigCache());
411
+ var tsdoc_1 = __import__microsoft_tsdoc;
412
+ var Debug_1 = __import___Debug;
413
+ var ConfigCache_1 = __import___ConfigCache;
414
+ var tsdocMessageIds = {};
415
+ var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration();
416
+ defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
417
+ tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
418
+ });
419
+ var plugin6 = {
420
+ rules: {
421
+ // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
422
+ // from the NPM package name, and then appending this string.
423
+ syntax: {
424
+ meta: {
425
+ messages: Object.assign({
426
+ "error-loading-storm-config": `Error loading Storm Software's shared TSDoc config file:
427
+ {{details}}
428
+
429
+ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
430
+ "error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
431
+ "error-applying-storm-config": "Error applying Storm Software's shared TSDoc configuration: {{details}}",
432
+ "error-applying-config": "Error applying TSDoc configuration: {{details}}"
433
+ }, tsdocMessageIds),
434
+ type: "problem",
435
+ docs: {
436
+ description: "Validates that TypeScript documentation comments conform to the TSDoc standard",
437
+ category: "Stylistic Issues",
438
+ recommended: true,
439
+ url: "https://tsdoc.org/pages/packages/eslint-plugin-tsdoc"
440
+ },
441
+ schema: [
442
+ {
443
+ type: "object",
444
+ properties: {
445
+ type: {
446
+ type: "string",
447
+ enum: ["typedoc", "api-extractor", "base", "core", "callouts", "recommended"],
448
+ description: "The TSDoc configuration type to use from '@storm-software/tsdoc'. Defaults to 'recommended' (@storm-software/tsdoc/recommended.json)."
449
+ },
450
+ configFile: {
451
+ type: "string",
452
+ description: "The TSDoc configuration file to use."
453
+ }
454
+ },
455
+ additionalProperties: false
456
+ }
457
+ ]
458
+ },
459
+ defaultOptions: [
460
+ {
461
+ type: "recommended"
462
+ }
463
+ ],
464
+ create: (context) => {
465
+ const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
466
+ const tsConfigDir = context.parserOptions.tsconfigRootDir;
467
+ const sourceFilePath = context.filename;
468
+ Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
469
+ try {
470
+ let tsdocConfigFile = {};
471
+ try {
472
+ const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
473
+ const config5 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
474
+ Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config5, void 0, 2)}`);
475
+ tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config5);
476
+ if (!tsdocConfigFile.fileNotFound) {
477
+ if (tsdocConfigFile.hasErrors) {
478
+ context.report({
479
+ loc: { line: 1, column: 1 },
480
+ messageId: "error-loading-storm-config",
481
+ data: {
482
+ details: tsdocConfigFile.getErrorSummary()
483
+ }
484
+ });
485
+ }
486
+ try {
487
+ tsdocConfigFile.configureParser(tsdocConfiguration);
488
+ } catch (e) {
489
+ context.report({
490
+ loc: { line: 1, column: 1 },
491
+ messageId: "error-applying-storm-config",
492
+ data: {
493
+ details: e.message
494
+ }
495
+ });
496
+ }
497
+ }
498
+ } catch (e) {
499
+ context.report({
500
+ loc: { line: 1, column: 1 },
501
+ messageId: "error-loading-storm-config",
502
+ data: {
503
+ details: `Unexpected exception: ${e.message}`
504
+ }
505
+ });
506
+ }
507
+ if (!tsdocConfigFile || tsdocConfigFile.fileNotFound || tsdocConfigFile.hasErrors) {
508
+ tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath, tsConfigDir);
509
+ if (!tsdocConfigFile.fileNotFound) {
510
+ if (tsdocConfigFile.hasErrors) {
511
+ context.report({
512
+ loc: { line: 1, column: 1 },
513
+ messageId: "error-loading-config-file",
514
+ data: {
515
+ details: tsdocConfigFile.getErrorSummary()
516
+ }
517
+ });
518
+ }
519
+ try {
520
+ tsdocConfigFile.configureParser(tsdocConfiguration);
521
+ } catch (e) {
522
+ context.report({
523
+ loc: { line: 1, column: 1 },
524
+ messageId: "error-applying-config",
525
+ data: {
526
+ details: e.message
527
+ }
528
+ });
529
+ }
530
+ }
531
+ }
532
+ } catch (e) {
533
+ context.report({
534
+ loc: { line: 1, column: 1 },
535
+ messageId: "error-loading-config-file",
536
+ data: {
537
+ details: `Unexpected exception: ${e.message}`
538
+ }
539
+ });
540
+ }
541
+ const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
542
+ const sourceCode = context.getSourceCode();
543
+ const checkCommentBlocks = function(node2) {
544
+ for (const comment of sourceCode.getAllComments()) {
545
+ if (comment.type !== "Block") {
546
+ continue;
547
+ }
548
+ if (!comment.range) {
549
+ continue;
550
+ }
551
+ const textRange = tsdoc_1.TextRange.fromStringRange(sourceCode.text, comment.range[0], comment.range[1]);
552
+ if (textRange.length < 5) {
553
+ continue;
554
+ }
555
+ if (textRange.buffer[textRange.pos + 2] !== "*") {
556
+ continue;
557
+ }
558
+ const parserContext = tsdocParser.parseRange(textRange);
559
+ for (const message2 of parserContext.log.messages) {
560
+ context.report({
561
+ loc: {
562
+ start: sourceCode.getLocFromIndex(message2.textRange.pos),
563
+ end: sourceCode.getLocFromIndex(message2.textRange.end)
564
+ },
565
+ messageId: message2.messageId,
566
+ data: {
567
+ unformattedText: message2.unformattedText
568
+ }
569
+ });
570
+ }
571
+ }
572
+ };
573
+ return {
574
+ Program: checkCommentBlocks
575
+ };
576
+ }
577
+ }
578
+ }
579
+ };
580
+ module.exports = plugin6;
581
+ }
582
+ });
583
+
584
+ // src/preset.ts
585
+ init_esm_shims();
586
+
587
+ // src/configs/astro.ts
588
+ init_esm_shims();
49
589
 
50
590
  // ../package-constants/src/globs.ts
591
+ init_esm_shims();
51
592
  var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
52
593
  var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
53
594
  var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
@@ -262,7 +803,17 @@ async function astro(options = {}) {
262
803
  ];
263
804
  }
264
805
 
806
+ // src/configs/banner.ts
807
+ init_esm_shims();
808
+
809
+ // ../config-tools/src/config-file/get-config-file.ts
810
+ init_esm_shims();
811
+
812
+ // ../config-tools/src/logger/console.ts
813
+ init_esm_shims();
814
+
265
815
  // ../config-tools/src/types.ts
816
+ init_esm_shims();
266
817
  var LogLevel = {
267
818
  SILENT: 0,
268
819
  FATAL: 10,
@@ -289,6 +840,7 @@ var LogLevelLabel = {
289
840
  };
290
841
 
291
842
  // ../config-tools/src/utilities/colors.ts
843
+ init_esm_shims();
292
844
  var DEFAULT_COLOR_CONFIG = {
293
845
  dark: {
294
846
  brand: "#2dd4bf",
@@ -300,6 +852,9 @@ var DEFAULT_COLOR_CONFIG = {
300
852
  fatal: "#a40e26",
301
853
  performance: "#80fd74"}
302
854
  };
855
+
856
+ // ../config-tools/src/logger/chalk.ts
857
+ init_esm_shims();
303
858
  var chalkDefault = {
304
859
  hex: (_) => (message2) => message2,
305
860
  bgHex: (_) => ({
@@ -331,7 +886,11 @@ var getChalk = () => {
331
886
  return _chalk;
332
887
  };
333
888
 
889
+ // ../config-tools/src/logger/console-icons.ts
890
+ init_esm_shims();
891
+
334
892
  // ../config-tools/src/logger/is-unicode-supported.ts
893
+ init_esm_shims();
335
894
  function isUnicodeSupported() {
336
895
  if (process.platform !== "win32") {
337
896
  return process.env.TERM !== "linux";
@@ -357,11 +916,13 @@ var CONSOLE_ICONS = {
357
916
  };
358
917
 
359
918
  // ../config-tools/src/logger/format-timestamp.ts
919
+ init_esm_shims();
360
920
  var formatTimestamp = (fullDateTime = false, date2 = /* @__PURE__ */ new Date()) => {
361
921
  return fullDateTime ? `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}` : `${date2.toLocaleTimeString()}`;
362
922
  };
363
923
 
364
924
  // ../config-tools/src/logger/get-log-level.ts
925
+ init_esm_shims();
365
926
  var getLogLevel = (label) => {
366
927
  switch (label) {
367
928
  case "all":
@@ -570,7 +1131,11 @@ var _isFunction = (value) => {
570
1131
  }
571
1132
  };
572
1133
 
1134
+ // ../config-tools/src/utilities/find-workspace-root.ts
1135
+ init_esm_shims();
1136
+
573
1137
  // ../config-tools/src/utilities/correct-paths.ts
1138
+ init_esm_shims();
574
1139
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
575
1140
  function normalizeWindowsPath(input = "") {
576
1141
  if (!input) {
@@ -693,6 +1258,9 @@ function normalizeString(path23, allowAboveRoot) {
693
1258
  var isAbsolute = function(p) {
694
1259
  return _IS_ABSOLUTE_RE.test(p);
695
1260
  };
1261
+
1262
+ // ../config-tools/src/utilities/find-up.ts
1263
+ init_esm_shims();
696
1264
  var MAX_PATH_SEARCH_DEPTH = 30;
697
1265
  var depth = 0;
698
1266
  function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
@@ -783,7 +1351,14 @@ Path: ${pathInsideMonorepo ? pathInsideMonorepo : process.cwd()}`
783
1351
  return result;
784
1352
  }
785
1353
 
1354
+ // ../config-tools/src/utilities/get-default-config.ts
1355
+ init_esm_shims();
1356
+
1357
+ // ../config/src/index.ts
1358
+ init_esm_shims();
1359
+
786
1360
  // ../config/src/constants.ts
1361
+ init_esm_shims();
787
1362
  var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
788
1363
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
789
1364
  var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
@@ -791,10 +1366,20 @@ var STORM_DEFAULT_LICENSE = "Apache-2.0";
791
1366
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
792
1367
  var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
793
1368
 
1369
+ // ../config/src/define-config.ts
1370
+ init_esm_shims();
1371
+
1372
+ // ../config/src/schema.ts
1373
+ init_esm_shims();
1374
+
1375
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/external.js
1376
+ init_esm_shims();
1377
+
794
1378
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/core.js
1379
+ init_esm_shims();
795
1380
  var _a;
796
1381
  // @__NO_SIDE_EFFECTS__
797
- function $constructor(name2, initializer2, params) {
1382
+ function $constructor(name3, initializer2, params) {
798
1383
  function init(inst, def) {
799
1384
  if (!inst._zod) {
800
1385
  Object.defineProperty(inst, "_zod", {
@@ -806,10 +1391,10 @@ function $constructor(name2, initializer2, params) {
806
1391
  enumerable: false
807
1392
  });
808
1393
  }
809
- if (inst._zod.traits.has(name2)) {
1394
+ if (inst._zod.traits.has(name3)) {
810
1395
  return;
811
1396
  }
812
- inst._zod.traits.add(name2);
1397
+ inst._zod.traits.add(name3);
813
1398
  initializer2(inst, def);
814
1399
  const proto = _.prototype;
815
1400
  const keys = Object.keys(proto);
@@ -823,7 +1408,7 @@ function $constructor(name2, initializer2, params) {
823
1408
  const Parent = params?.Parent ?? Object;
824
1409
  class Definition extends Parent {
825
1410
  }
826
- Object.defineProperty(Definition, "name", { value: name2 });
1411
+ Object.defineProperty(Definition, "name", { value: name3 });
827
1412
  function _(def) {
828
1413
  var _a4;
829
1414
  const inst = params?.Parent ? new Definition() : this;
@@ -839,10 +1424,10 @@ function $constructor(name2, initializer2, params) {
839
1424
  value: (inst) => {
840
1425
  if (params?.Parent && inst instanceof params.Parent)
841
1426
  return true;
842
- return inst?._zod?.traits?.has(name2);
1427
+ return inst?._zod?.traits?.has(name3);
843
1428
  }
844
1429
  });
845
- Object.defineProperty(_, "name", { value: name2 });
1430
+ Object.defineProperty(_, "name", { value: name3 });
846
1431
  return _;
847
1432
  }
848
1433
  var $ZodAsyncError = class extends Error {
@@ -856,7 +1441,14 @@ function config(newConfig) {
856
1441
  return globalConfig;
857
1442
  }
858
1443
 
1444
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/parse.js
1445
+ init_esm_shims();
1446
+
1447
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/errors.js
1448
+ init_esm_shims();
1449
+
859
1450
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/util.js
1451
+ init_esm_shims();
860
1452
  function getEnumValues(entries) {
861
1453
  const numericValues = Object.values(entries).filter((v) => typeof v === "number");
862
1454
  const values = Object.entries(entries).filter(([k, _]) => numericValues.indexOf(+k) === -1).map(([_, v]) => v);
@@ -1093,7 +1685,14 @@ var _safeParseAsync = (_Err) => async (schema, value, _ctx) => {
1093
1685
  };
1094
1686
  var safeParseAsync = /* @__PURE__ */ _safeParseAsync($ZodRealError);
1095
1687
 
1688
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/schemas.js
1689
+ init_esm_shims();
1690
+
1691
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/checks.js
1692
+ init_esm_shims();
1693
+
1096
1694
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/regexes.js
1695
+ init_esm_shims();
1097
1696
  var httpProtocol = /^https?$/;
1098
1697
  var string = (params) => {
1099
1698
  const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
@@ -1195,6 +1794,7 @@ var $ZodCheckOverwrite = /* @__PURE__ */ $constructor("$ZodCheckOverwrite", (ins
1195
1794
  });
1196
1795
 
1197
1796
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/versions.js
1797
+ init_esm_shims();
1198
1798
  var version = {
1199
1799
  major: 4,
1200
1800
  minor: 4,
@@ -1917,6 +2517,7 @@ function handleDefaultResult(payload, def) {
1917
2517
  }
1918
2518
 
1919
2519
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/registries.js
2520
+ init_esm_shims();
1920
2521
  var _a2;
1921
2522
  var $ZodRegistry = class {
1922
2523
  constructor() {
@@ -1964,6 +2565,7 @@ function registry() {
1964
2565
  (_a2 = globalThis).__zod_globalRegistry ?? (_a2.__zod_globalRegistry = registry());
1965
2566
 
1966
2567
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/core/api.js
2568
+ init_esm_shims();
1967
2569
  // @__NO_SIDE_EFFECTS__
1968
2570
  function _string(Class, params) {
1969
2571
  return new Class({
@@ -2027,7 +2629,11 @@ function _toLowerCase() {
2027
2629
  return /* @__PURE__ */ _overwrite((input) => input.toLowerCase());
2028
2630
  }
2029
2631
 
2632
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/parse.js
2633
+ init_esm_shims();
2634
+
2030
2635
  // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/schemas.js
2636
+ init_esm_shims();
2031
2637
  var ZodMiniType = /* @__PURE__ */ $constructor("ZodMiniType", (inst, def) => {
2032
2638
  if (!inst._zod)
2033
2639
  throw new Error("Uninitialized schema in ZodMiniType.");
@@ -2216,6 +2822,9 @@ function _default(innerType, defaultValue) {
2216
2822
  });
2217
2823
  }
2218
2824
 
2825
+ // ../../node_modules/.pnpm/zod@4.4.3/node_modules/zod/v4/mini/checks.js
2826
+ init_esm_shims();
2827
+
2219
2828
  // ../config/src/schema.ts
2220
2829
  var schemaRegistry = registry();
2221
2830
  var colorSchema = string2().check(
@@ -2785,6 +3394,7 @@ schemaRegistry.add(extensionsSchema, {
2785
3394
  });
2786
3395
 
2787
3396
  // ../config/src/types.ts
3397
+ init_esm_shims();
2788
3398
  var COLOR_KEYS = [
2789
3399
  "dark",
2790
3400
  "light",
@@ -2807,7 +3417,7 @@ async function getPackageJsonConfig(root) {
2807
3417
  let license = STORM_DEFAULT_LICENSE;
2808
3418
  let homepage = void 0;
2809
3419
  let support = void 0;
2810
- let name2 = void 0;
3420
+ let name3 = void 0;
2811
3421
  let namespace = void 0;
2812
3422
  let repository = void 0;
2813
3423
  const workspaceRoot = findWorkspaceRoot2(root);
@@ -2819,7 +3429,7 @@ async function getPackageJsonConfig(root) {
2819
3429
  if (file) {
2820
3430
  const packageJson = JSON.parse(file);
2821
3431
  if (packageJson.name) {
2822
- name2 = packageJson.name;
3432
+ name3 = packageJson.name;
2823
3433
  }
2824
3434
  if (packageJson.namespace) {
2825
3435
  namespace = packageJson.namespace;
@@ -2848,7 +3458,7 @@ async function getPackageJsonConfig(root) {
2848
3458
  }
2849
3459
  return {
2850
3460
  workspaceRoot,
2851
- name: name2,
3461
+ name: name3,
2852
3462
  namespace,
2853
3463
  repository,
2854
3464
  license,
@@ -2889,7 +3499,7 @@ function applyDefaultConfig(config5) {
2889
3499
  // ../config-tools/src/config-file/get-config-file.ts
2890
3500
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
2891
3501
  const workspacePath = filePath || findWorkspaceRoot2(filePath);
2892
- const configs5 = await Promise.all([
3502
+ const configs6 = await Promise.all([
2893
3503
  loadConfig({
2894
3504
  cwd: workspacePath,
2895
3505
  packageJson: true,
@@ -2920,7 +3530,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
2920
3530
  ...options
2921
3531
  })
2922
3532
  ]);
2923
- return defu(configs5[0] ?? {}, configs5[1] ?? {});
3533
+ return defu(configs6[0] ?? {}, configs6[1] ?? {});
2924
3534
  };
2925
3535
  var getConfigFile = async (filePath, additionalFileNames = []) => {
2926
3536
  const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
@@ -2961,6 +3571,12 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
2961
3571
  config5.configFile = configFile;
2962
3572
  return config5;
2963
3573
  };
3574
+
3575
+ // ../config-tools/src/create-storm-config.ts
3576
+ init_esm_shims();
3577
+
3578
+ // ../config-tools/src/env/get-env.ts
3579
+ init_esm_shims();
2964
3580
  var getConfigEnv = () => {
2965
3581
  const prefix = "STORM_";
2966
3582
  let config5 = {
@@ -3165,6 +3781,7 @@ var getBaseThemeColorsEnv = (prefix) => {
3165
3781
  };
3166
3782
 
3167
3783
  // ../config-tools/src/env/set-env.ts
3784
+ init_esm_shims();
3168
3785
  var setExtensionEnv = (extensionName, extension) => {
3169
3786
  for (const key of Object.keys(extension ?? {})) {
3170
3787
  if (extension[key]) {
@@ -3637,6 +4254,7 @@ ${formatLogMessage(config5)}`,
3637
4254
  };
3638
4255
 
3639
4256
  // ../config-tools/src/get-config.ts
4257
+ init_esm_shims();
3640
4258
  async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
3641
4259
  try {
3642
4260
  let workspaceRoot = options.workspaceRoot;
@@ -3653,12 +4271,30 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
3653
4271
  }
3654
4272
  }
3655
4273
 
4274
+ // ../eslint-plugin-banner/src/index.ts
4275
+ init_esm_shims();
4276
+
4277
+ // ../eslint-plugin-banner/src/configs/index.ts
4278
+ init_esm_shims();
4279
+
4280
+ // ../eslint-plugin-banner/src/configs/recommended.ts
4281
+ init_esm_shims();
4282
+
4283
+ // ../eslint-plugin-banner/src/plugin.ts
4284
+ init_esm_shims();
4285
+
3656
4286
  // ../eslint-plugin-banner/package.json
3657
4287
  var package_default = {
3658
- version: "0.0.10"};
4288
+ version: "0.0.12"};
4289
+
4290
+ // ../eslint-plugin-banner/src/rules/banner.ts
4291
+ init_esm_shims();
4292
+
4293
+ // ../eslint-plugin-banner/src/helpers/create-rule.ts
4294
+ init_esm_shims();
3659
4295
  function RuleCreator(urlCreator) {
3660
4296
  return function createNamedRule({
3661
- name: name2,
4297
+ name: name3,
3662
4298
  meta: meta3,
3663
4299
  ...rule
3664
4300
  }) {
@@ -3667,7 +4303,7 @@ function RuleCreator(urlCreator) {
3667
4303
  ...meta3,
3668
4304
  docs: {
3669
4305
  ...meta3.docs,
3670
- url: urlCreator(name2)
4306
+ url: urlCreator(name3)
3671
4307
  }
3672
4308
  },
3673
4309
  ...rule
@@ -3694,7 +4330,11 @@ var createRule = RuleCreator(
3694
4330
  (ruleName) => `https://docs.stormsoftware.com/projects/shell-shock/eslint/rules/${ruleName}.md`
3695
4331
  );
3696
4332
 
4333
+ // ../eslint-plugin-banner/src/helpers/get-banner.ts
4334
+ init_esm_shims();
4335
+
3697
4336
  // ../package-constants/src/acronyms.ts
4337
+ init_esm_shims();
3698
4338
  var ACRONYMS_LIST = [
3699
4339
  "API",
3700
4340
  "ASCII",
@@ -3739,12 +4379,12 @@ var ACRONYMS_LIST = [
3739
4379
 
3740
4380
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
3741
4381
  function getBanner(options) {
3742
- const { name: name2 } = options;
4382
+ const { name: name3 } = options;
3743
4383
  let padding = " ";
3744
- for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
4384
+ for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
3745
4385
  padding = padding.slice(0, -1);
3746
4386
  }
3747
- let titleName = name2;
4387
+ let titleName = name3;
3748
4388
  if (titleName) {
3749
4389
  if (titleName?.startsWith("@")) {
3750
4390
  titleName = titleName.slice(1);
@@ -3760,8 +4400,8 @@ function getBanner(options) {
3760
4400
  const organization = options.organization || "storm-software";
3761
4401
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
3762
4402
  const homepage = options.homepage || "https://stormsoftware.com";
3763
- const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
3764
- const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
4403
+ const repository = options.repository || `https://github.com/${organization}${name3 ? `/${name3}` : ""}`;
4404
+ const docs = options.docs || `https://docs.stormsoftware.com${name3 ? `/projects/${name3}` : ""}`;
3765
4405
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
3766
4406
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
3767
4407
  return word.toUpperCase();
@@ -3776,7 +4416,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
3776
4416
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
3777
4417
  is maintained by ${formattedOrganization} under the ${license} license, and is
3778
4418
  free for commercial and private use. For more information, please visit
3779
- our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
4419
+ our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
3780
4420
 
3781
4421
  Website: ${homepage}
3782
4422
  Repository: ${repository}
@@ -3974,7 +4614,7 @@ var banner_default = createRule({
3974
4614
  ],
3975
4615
  create: (context) => {
3976
4616
  const {
3977
- name: name2,
4617
+ name: name3,
3978
4618
  license,
3979
4619
  organization,
3980
4620
  licensing,
@@ -3986,7 +4626,7 @@ var banner_default = createRule({
3986
4626
  lineEndings
3987
4627
  } = context.options[0];
3988
4628
  const banner2 = getBanner({
3989
- name: name2,
4629
+ name: name3,
3990
4630
  license,
3991
4631
  organization,
3992
4632
  licensing,
@@ -4253,6 +4893,9 @@ async function banner(options = {}) {
4253
4893
  }
4254
4894
  ];
4255
4895
  }
4896
+
4897
+ // src/configs/cspell.ts
4898
+ init_esm_shims();
4256
4899
  async function cspell(options = {}) {
4257
4900
  const { configFile = "./.vscode/cspell.json", overrides = {} } = options;
4258
4901
  return [
@@ -4277,6 +4920,7 @@ async function cspell(options = {}) {
4277
4920
  }
4278
4921
 
4279
4922
  // src/configs/disables.ts
4923
+ init_esm_shims();
4280
4924
  async function disables() {
4281
4925
  return [
4282
4926
  {
@@ -4322,7 +4966,11 @@ async function disables() {
4322
4966
  ];
4323
4967
  }
4324
4968
 
4969
+ // src/configs/formatters.ts
4970
+ init_esm_shims();
4971
+
4325
4972
  // src/configs/stylistic.ts
4973
+ init_esm_shims();
4326
4974
  var StylisticConfigDefaults = {
4327
4975
  indent: 2,
4328
4976
  jsx: true,
@@ -4449,7 +5097,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4449
5097
  options.dprintOptions ?? {}
4450
5098
  );
4451
5099
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
4452
- const configs5 = [
5100
+ const configs6 = [
4453
5101
  {
4454
5102
  name: "storm/formatter/setup",
4455
5103
  plugins: {
@@ -4458,7 +5106,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4458
5106
  }
4459
5107
  ];
4460
5108
  if (options.css) {
4461
- configs5.push(
5109
+ configs6.push(
4462
5110
  {
4463
5111
  files: [GLOB_CSS, GLOB_POSTCSS],
4464
5112
  languageOptions: {
@@ -4507,7 +5155,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4507
5155
  );
4508
5156
  }
4509
5157
  if (options.html) {
4510
- configs5.push({
5158
+ configs6.push({
4511
5159
  files: [GLOB_HTML],
4512
5160
  languageOptions: {
4513
5161
  parser: parserPlain
@@ -4524,7 +5172,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4524
5172
  });
4525
5173
  }
4526
5174
  if (options.xml) {
4527
- configs5.push({
5175
+ configs6.push({
4528
5176
  files: [GLOB_XML],
4529
5177
  languageOptions: {
4530
5178
  parser: parserPlain
@@ -4545,7 +5193,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4545
5193
  });
4546
5194
  }
4547
5195
  if (options.svg) {
4548
- configs5.push({
5196
+ configs6.push({
4549
5197
  files: [GLOB_SVG],
4550
5198
  languageOptions: {
4551
5199
  parser: parserPlain
@@ -4567,7 +5215,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4567
5215
  }
4568
5216
  if (options.markdown) {
4569
5217
  const formater = options.markdown === true ? "prettier" : options.markdown;
4570
- configs5.push({
5218
+ configs6.push({
4571
5219
  files: [GLOB_MARKDOWN],
4572
5220
  languageOptions: {
4573
5221
  parser: parserPlain
@@ -4588,7 +5236,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4588
5236
  });
4589
5237
  }
4590
5238
  if (options.astro) {
4591
- configs5.push({
5239
+ configs6.push({
4592
5240
  files: [GLOB_ASTRO],
4593
5241
  languageOptions: {
4594
5242
  parser: parserPlain
@@ -4604,7 +5252,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4604
5252
  ]
4605
5253
  }
4606
5254
  });
4607
- configs5.push({
5255
+ configs6.push({
4608
5256
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
4609
5257
  name: "storm/formatter/astro/disables",
4610
5258
  rules: {
@@ -4619,7 +5267,7 @@ async function formatters(options = {}, stylistic2 = {}) {
4619
5267
  });
4620
5268
  }
4621
5269
  if (options.graphql) {
4622
- configs5.push({
5270
+ configs6.push({
4623
5271
  files: [GLOB_GRAPHQL],
4624
5272
  languageOptions: {
4625
5273
  parser: parserPlain
@@ -4635,10 +5283,11 @@ async function formatters(options = {}, stylistic2 = {}) {
4635
5283
  }
4636
5284
  });
4637
5285
  }
4638
- return configs5;
5286
+ return configs6;
4639
5287
  }
4640
5288
 
4641
5289
  // src/configs/graphql.ts
5290
+ init_esm_shims();
4642
5291
  async function graphql(options = {}) {
4643
5292
  const {
4644
5293
  relay = true,
@@ -4817,6 +5466,7 @@ async function graphql(options = {}) {
4817
5466
  }
4818
5467
 
4819
5468
  // src/configs/ignores.ts
5469
+ init_esm_shims();
4820
5470
  async function ignores(userIgnores = []) {
4821
5471
  return [
4822
5472
  {
@@ -4826,7 +5476,17 @@ async function ignores(userIgnores = []) {
4826
5476
  ];
4827
5477
  }
4828
5478
 
5479
+ // src/configs/imports.ts
5480
+ init_esm_shims();
5481
+
5482
+ // src/plugins.ts
5483
+ init_esm_shims();
5484
+
5485
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/index.js
5486
+ init_esm_shims();
5487
+
4829
5488
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/electron.js
5489
+ init_esm_shims();
4830
5490
  var electron_default = {
4831
5491
  settings: {
4832
5492
  "import-x/core-modules": ["electron"]
@@ -4834,6 +5494,7 @@ var electron_default = {
4834
5494
  };
4835
5495
 
4836
5496
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/errors.js
5497
+ init_esm_shims();
4837
5498
  var errors_default = {
4838
5499
  plugins: ["import-x"],
4839
5500
  rules: {
@@ -4846,6 +5507,7 @@ var errors_default = {
4846
5507
  };
4847
5508
 
4848
5509
  // ../../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
5510
+ init_esm_shims();
4849
5511
  var electron_default2 = {
4850
5512
  settings: {
4851
5513
  "import-x/core-modules": ["electron"]
@@ -4853,6 +5515,7 @@ var electron_default2 = {
4853
5515
  };
4854
5516
 
4855
5517
  // ../../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
5518
+ init_esm_shims();
4856
5519
  var errors_default2 = {
4857
5520
  rules: {
4858
5521
  "import-x/no-unresolved": 2,
@@ -4864,6 +5527,7 @@ var errors_default2 = {
4864
5527
  };
4865
5528
 
4866
5529
  // ../../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
5530
+ init_esm_shims();
4867
5531
  var react_native_default = {
4868
5532
  settings: {
4869
5533
  "import-x/resolver": {
@@ -4875,6 +5539,7 @@ var react_native_default = {
4875
5539
  };
4876
5540
 
4877
5541
  // ../../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
5542
+ init_esm_shims();
4878
5543
  var react_default = {
4879
5544
  settings: {
4880
5545
  "import-x/extensions": [".js", ".jsx", ".mjs", ".cjs"]
@@ -4889,6 +5554,7 @@ var react_default = {
4889
5554
  };
4890
5555
 
4891
5556
  // ../../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
5557
+ init_esm_shims();
4892
5558
  var recommended_default2 = {
4893
5559
  rules: {
4894
5560
  "import-x/no-unresolved": "error",
@@ -4903,6 +5569,7 @@ var recommended_default2 = {
4903
5569
  };
4904
5570
 
4905
5571
  // ../../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
5572
+ init_esm_shims();
4906
5573
  var stage_0_default = {
4907
5574
  rules: {
4908
5575
  "import-x/no-deprecated": 1
@@ -4910,6 +5577,7 @@ var stage_0_default = {
4910
5577
  };
4911
5578
 
4912
5579
  // ../../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
5580
+ init_esm_shims();
4913
5581
  var typeScriptExtensions = [".ts", ".tsx", ".cts", ".mts"];
4914
5582
  var allExtensions = [
4915
5583
  ...typeScriptExtensions,
@@ -4935,6 +5603,7 @@ var typescript_default = {
4935
5603
  };
4936
5604
 
4937
5605
  // ../../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
5606
+ init_esm_shims();
4938
5607
  var warnings_default = {
4939
5608
  rules: {
4940
5609
  "import-x/no-named-as-default": 1,
@@ -4945,6 +5614,7 @@ var warnings_default = {
4945
5614
  };
4946
5615
 
4947
5616
  // ../../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
5617
+ init_esm_shims();
4948
5618
  var react_native_default2 = {
4949
5619
  settings: {
4950
5620
  "import-x/resolver": {
@@ -4956,6 +5626,7 @@ var react_native_default2 = {
4956
5626
  };
4957
5627
 
4958
5628
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/react.js
5629
+ init_esm_shims();
4959
5630
  var react_default2 = {
4960
5631
  settings: {
4961
5632
  "import-x/extensions": [".js", ".jsx"]
@@ -4968,6 +5639,7 @@ var react_default2 = {
4968
5639
  };
4969
5640
 
4970
5641
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/recommended.js
5642
+ init_esm_shims();
4971
5643
  var recommended_default3 = {
4972
5644
  plugins: ["import-x"],
4973
5645
  rules: {
@@ -4987,6 +5659,7 @@ var recommended_default3 = {
4987
5659
  };
4988
5660
 
4989
5661
  // ../../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
5662
+ init_esm_shims();
4990
5663
  var stage_0_default2 = {
4991
5664
  plugins: ["import-x"],
4992
5665
  rules: {
@@ -4995,6 +5668,7 @@ var stage_0_default2 = {
4995
5668
  };
4996
5669
 
4997
5670
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/typescript.js
5671
+ init_esm_shims();
4998
5672
  var typeScriptExtensions2 = [".ts", ".tsx", ".cts", ".mts"];
4999
5673
  var allExtensions2 = [
5000
5674
  ...typeScriptExtensions2,
@@ -5020,6 +5694,7 @@ var typescript_default2 = {
5020
5694
  };
5021
5695
 
5022
5696
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/config/warnings.js
5697
+ init_esm_shims();
5023
5698
  var warnings_default2 = {
5024
5699
  plugins: ["import-x"],
5025
5700
  rules: {
@@ -5029,12 +5704,21 @@ var warnings_default2 = {
5029
5704
  "import-x/no-duplicates": 1
5030
5705
  }
5031
5706
  };
5707
+
5708
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/meta.js
5709
+ init_esm_shims();
5710
+
5711
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/require.js
5712
+ init_esm_shims();
5032
5713
  var importMetaUrl = import.meta.url;
5033
5714
  var cjsRequire = importMetaUrl ? createRequire(importMetaUrl) : __require;
5034
5715
 
5035
5716
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/meta.js
5036
5717
  var { name, version: version2 } = cjsRequire("../package.json");
5037
5718
  var meta2 = { name, version: version2 };
5719
+
5720
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/node-resolver.js
5721
+ init_esm_shims();
5038
5722
  function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".node"], conditionNames = ["import", "require", "default"], mainFields = ["module", "main"], ...restOptions } = {}) {
5039
5723
  const resolver = new ResolverFactory({
5040
5724
  extensions,
@@ -5061,7 +5745,17 @@ function createNodeResolver({ extensions = [".mjs", ".cjs", ".js", ".json", ".no
5061
5745
  };
5062
5746
  }
5063
5747
 
5748
+ // ../../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
5749
+ init_esm_shims();
5750
+
5751
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/index.js
5752
+ init_esm_shims();
5753
+
5754
+ // ../../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
5755
+ init_esm_shims();
5756
+
5064
5757
  // ../../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
5758
+ init_esm_shims();
5065
5759
  function isObjectNotArray(obj) {
5066
5760
  return typeof obj === "object" && obj != null && !Array.isArray(obj);
5067
5761
  }
@@ -5100,21 +5794,26 @@ function applyDefault(defaultOptions, userOptions) {
5100
5794
  }
5101
5795
 
5102
5796
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/arraify.js
5797
+ init_esm_shims();
5103
5798
  var arraify = (value) => value ? Array.isArray(value) ? value : [value] : void 0;
5104
5799
 
5800
+ // ../../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
5801
+ init_esm_shims();
5802
+
5105
5803
  // ../../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
5804
+ init_esm_shims();
5106
5805
  var repoUrl = "https://github.com/un-ts/eslint-plugin-import-x";
5107
5806
  var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commitish}/docs/rules/${ruleName}.md`;
5108
5807
 
5109
5808
  // ../../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
5110
5809
  function RuleCreator2(urlCreator) {
5111
- return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
5810
+ return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
5112
5811
  return createRule_({
5113
5812
  meta: {
5114
5813
  ...meta3,
5115
5814
  docs: {
5116
5815
  ...meta3.docs,
5117
- url: urlCreator(name2)
5816
+ url: urlCreator(name3)
5118
5817
  }
5119
5818
  },
5120
5819
  ...rule
@@ -5134,11 +5833,18 @@ function createRule_({ create, defaultOptions, meta: meta3 }) {
5134
5833
  var createRule2 = RuleCreator2(docsUrl);
5135
5834
 
5136
5835
  // ../../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
5137
- function declaredScope(context, node2, name2) {
5836
+ init_esm_shims();
5837
+ function declaredScope(context, node2, name3) {
5138
5838
  const references = context.sourceCode.getScope(node2).references;
5139
- const reference = references.find((x) => x.identifier.name === name2);
5839
+ const reference = references.find((x) => x.identifier.name === name3);
5140
5840
  return reference?.resolved?.scope.type;
5141
5841
  }
5842
+
5843
+ // ../../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
5844
+ init_esm_shims();
5845
+
5846
+ // ../../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
5847
+ init_esm_shims();
5142
5848
  var getValue = (node2) => {
5143
5849
  switch (node2.type) {
5144
5850
  case TSESTree.AST_NODE_TYPES.Identifier: {
@@ -5152,6 +5858,9 @@ var getValue = (node2) => {
5152
5858
  }
5153
5859
  }
5154
5860
  };
5861
+
5862
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/ignore.js
5863
+ init_esm_shims();
5155
5864
  var log = debug("eslint-plugin-import-x:utils:ignore");
5156
5865
  var cachedSet;
5157
5866
  var lastSettings;
@@ -5200,6 +5909,7 @@ function hasValidExtension(filepath, context) {
5200
5909
  }
5201
5910
 
5202
5911
  // ../../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
5912
+ init_esm_shims();
5203
5913
  var lazy = (cb) => {
5204
5914
  let isCalled = false;
5205
5915
  let result;
@@ -5231,6 +5941,12 @@ function defineLazyProperty(object2, propertyName, valueGetter) {
5231
5941
  });
5232
5942
  return object2;
5233
5943
  }
5944
+
5945
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/parse.js
5946
+ init_esm_shims();
5947
+
5948
+ // ../../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
5949
+ init_esm_shims();
5234
5950
  function createModule(filename) {
5235
5951
  const mod = new Module(filename);
5236
5952
  mod.filename = filename;
@@ -5348,6 +6064,18 @@ function getParserOrPath(path23, context) {
5348
6064
  }
5349
6065
  return null;
5350
6066
  }
6067
+
6068
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/resolve.js
6069
+ init_esm_shims();
6070
+
6071
+ // ../../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
6072
+ init_esm_shims();
6073
+
6074
+ // ../../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
6075
+ init_esm_shims();
6076
+
6077
+ // ../../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
6078
+ init_esm_shims();
5351
6079
  function findUp(filename, cwd) {
5352
6080
  let dir = path16.resolve(cwd || "");
5353
6081
  const root = path16.parse(dir).root;
@@ -5366,6 +6094,9 @@ function findUp(filename, cwd) {
5366
6094
  function pkgUp(opts) {
5367
6095
  return findUp("package.json", opts && opts.cwd);
5368
6096
  }
6097
+
6098
+ // ../../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
6099
+ init_esm_shims();
5369
6100
  function stripBOM(str) {
5370
6101
  return str.replace(/^\uFEFF/, "");
5371
6102
  }
@@ -5400,49 +6131,49 @@ function getFilePackageName(filename) {
5400
6131
  }
5401
6132
 
5402
6133
  // ../../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
5403
- function baseModule(name2) {
5404
- if (isScoped(name2)) {
5405
- const [scope, pkg2] = name2.split("/");
6134
+ function baseModule(name3) {
6135
+ if (isScoped(name3)) {
6136
+ const [scope, pkg2] = name3.split("/");
5406
6137
  return `${scope}/${pkg2}`;
5407
6138
  }
5408
- const [pkg] = name2.split("/");
6139
+ const [pkg] = name3.split("/");
5409
6140
  return pkg;
5410
6141
  }
5411
- function isInternalRegexMatch(name2, settings) {
6142
+ function isInternalRegexMatch(name3, settings) {
5412
6143
  const internalScope = settings?.["import-x/internal-regex"];
5413
- return internalScope && new RegExp(internalScope).test(name2);
6144
+ return internalScope && new RegExp(internalScope).test(name3);
5414
6145
  }
5415
- function isAbsolute2(name2) {
5416
- return typeof name2 === "string" && path16.isAbsolute(name2);
6146
+ function isAbsolute2(name3) {
6147
+ return typeof name3 === "string" && path16.isAbsolute(name3);
5417
6148
  }
5418
- function isBuiltIn(name2, settings, modulePath) {
5419
- if (modulePath || !name2) {
6149
+ function isBuiltIn(name3, settings, modulePath) {
6150
+ if (modulePath || !name3) {
5420
6151
  return false;
5421
6152
  }
5422
- const base2 = baseModule(name2);
6153
+ const base = baseModule(name3);
5423
6154
  const extras = settings && settings["import-x/core-modules"] || [];
5424
- return isBuiltin(base2) || extras.includes(base2);
6155
+ return isBuiltin(base) || extras.includes(base);
5425
6156
  }
5426
- function isExternalModule(name2, modulePath, context) {
5427
- return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
6157
+ function isExternalModule(name3, modulePath, context) {
6158
+ return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
5428
6159
  }
5429
6160
  var moduleRegExp = /^\w/;
5430
- function isModule(name2) {
5431
- return !!name2 && moduleRegExp.test(name2);
6161
+ function isModule(name3) {
6162
+ return !!name3 && moduleRegExp.test(name3);
5432
6163
  }
5433
6164
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
5434
- function isScoped(name2) {
5435
- return !!name2 && scopedRegExp.test(name2);
6165
+ function isScoped(name3) {
6166
+ return !!name3 && scopedRegExp.test(name3);
5436
6167
  }
5437
- function isRelativeToParent(name2) {
5438
- return /^\.\.$|^\.\.[/\\]/.test(name2);
6168
+ function isRelativeToParent(name3) {
6169
+ return /^\.\.$|^\.\.[/\\]/.test(name3);
5439
6170
  }
5440
6171
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
5441
- function isIndex(name2) {
5442
- return indexFiles.has(name2);
6172
+ function isIndex(name3) {
6173
+ return indexFiles.has(name3);
5443
6174
  }
5444
- function isRelativeToSibling(name2) {
5445
- return /^\.[/\\]/.test(name2);
6175
+ function isRelativeToSibling(name3) {
6176
+ return /^\.[/\\]/.test(name3);
5446
6177
  }
5447
6178
  function isExternalPath(filepath, context) {
5448
6179
  if (!filepath) {
@@ -5469,28 +6200,28 @@ function isInternalPath(filepath, context) {
5469
6200
  const packagePath = getContextPackagePath(context);
5470
6201
  return !path16.relative(packagePath, filepath).startsWith("../");
5471
6202
  }
5472
- function isExternalLookingName(name2) {
5473
- return isModule(name2) || isScoped(name2);
6203
+ function isExternalLookingName(name3) {
6204
+ return isModule(name3) || isScoped(name3);
5474
6205
  }
5475
- function typeTest(name2, context, path23) {
6206
+ function typeTest(name3, context, path23) {
5476
6207
  const { settings } = context;
5477
- if (typeof name2 === "string") {
5478
- if (isInternalRegexMatch(name2, settings)) {
6208
+ if (typeof name3 === "string") {
6209
+ if (isInternalRegexMatch(name3, settings)) {
5479
6210
  return "internal";
5480
6211
  }
5481
- if (isAbsolute2(name2)) {
6212
+ if (isAbsolute2(name3)) {
5482
6213
  return "absolute";
5483
6214
  }
5484
- if (isBuiltIn(name2, settings, path23)) {
6215
+ if (isBuiltIn(name3, settings, path23)) {
5485
6216
  return "builtin";
5486
6217
  }
5487
- if (isRelativeToParent(name2)) {
6218
+ if (isRelativeToParent(name3)) {
5488
6219
  return "parent";
5489
6220
  }
5490
- if (isIndex(name2)) {
6221
+ if (isIndex(name3)) {
5491
6222
  return "index";
5492
6223
  }
5493
- if (isRelativeToSibling(name2)) {
6224
+ if (isRelativeToSibling(name3)) {
5494
6225
  return "sibling";
5495
6226
  }
5496
6227
  }
@@ -5500,14 +6231,20 @@ function typeTest(name2, context, path23) {
5500
6231
  if (isInternalPath(path23, context)) {
5501
6232
  return "internal";
5502
6233
  }
5503
- if (typeof name2 === "string" && isExternalLookingName(name2)) {
6234
+ if (typeof name3 === "string" && isExternalLookingName(name3)) {
5504
6235
  return "external";
5505
6236
  }
5506
6237
  return "unknown";
5507
6238
  }
5508
- function importType(name2, context) {
5509
- return typeTest(name2, context, typeof name2 === "string" ? resolve(name2, context) : null);
6239
+ function importType(name3, context) {
6240
+ return typeTest(name3, context, typeof name3 === "string" ? resolve(name3, context) : null);
5510
6241
  }
6242
+
6243
+ // ../../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
6244
+ init_esm_shims();
6245
+
6246
+ // ../../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
6247
+ init_esm_shims();
5511
6248
  function pkgDir(cwd) {
5512
6249
  const fp = pkgUp({ cwd });
5513
6250
  return fp ? path16.dirname(fp) : null;
@@ -5540,32 +6277,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
5540
6277
  const map = /* @__PURE__ */ new Map();
5541
6278
  for (const nameOrRecordOrObject of resolverArray) {
5542
6279
  if (typeof nameOrRecordOrObject === "string") {
5543
- const name2 = nameOrRecordOrObject;
5544
- map.set(name2, {
5545
- name: name2,
6280
+ const name3 = nameOrRecordOrObject;
6281
+ map.set(name3, {
6282
+ name: name3,
5546
6283
  enable: true,
5547
6284
  options: void 0,
5548
- resolver: requireResolver(name2, sourceFile)
6285
+ resolver: requireResolver(name3, sourceFile)
5549
6286
  });
5550
6287
  } else if (typeof nameOrRecordOrObject === "object") {
5551
6288
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
5552
6289
  const object2 = nameOrRecordOrObject;
5553
- const { name: name2, enable = true, options, resolver } = object2;
5554
- map.set(name2, { name: name2, enable, options, resolver });
6290
+ const { name: name3, enable = true, options, resolver } = object2;
6291
+ map.set(name3, { name: name3, enable, options, resolver });
5555
6292
  } else {
5556
6293
  const record2 = nameOrRecordOrObject;
5557
- for (const [name2, enableOrOptions] of Object.entries(record2)) {
5558
- const resolver = requireResolver(name2, sourceFile);
6294
+ for (const [name3, enableOrOptions] of Object.entries(record2)) {
6295
+ const resolver = requireResolver(name3, sourceFile);
5559
6296
  if (typeof enableOrOptions === "boolean") {
5560
- map.set(name2, {
5561
- name: name2,
6297
+ map.set(name3, {
6298
+ name: name3,
5562
6299
  enable: enableOrOptions,
5563
6300
  options: void 0,
5564
6301
  resolver
5565
6302
  });
5566
6303
  } else {
5567
- map.set(name2, {
5568
- name: name2,
6304
+ map.set(name3, {
6305
+ name: name3,
5569
6306
  enable: true,
5570
6307
  options: enableOrOptions,
5571
6308
  resolver
@@ -5589,18 +6326,18 @@ try {
5589
6326
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
5590
6327
  } catch {
5591
6328
  }
5592
- function requireResolver(name2, sourceFile) {
5593
- const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16.resolve(getBaseDir(sourceFile), name2));
6329
+ function requireResolver(name3, sourceFile) {
6330
+ const resolver = tryRequire(`eslint-import-resolver-${name3}`, sourceFile) || tryRequire(name3, sourceFile) || tryRequire(path16.resolve(getBaseDir(sourceFile), name3));
5594
6331
  if (!resolver) {
5595
- if (LEGACY_NODE_RESOLVERS.has(name2)) {
6332
+ if (LEGACY_NODE_RESOLVERS.has(name3)) {
5596
6333
  return void 0;
5597
6334
  }
5598
- const err = new Error(`unable to load resolver "${name2}".`);
6335
+ const err = new Error(`unable to load resolver "${name3}".`);
5599
6336
  err.name = IMPORT_RESOLVE_ERROR_NAME;
5600
6337
  throw err;
5601
6338
  }
5602
6339
  if (!isLegacyResolverValid(resolver)) {
5603
- const err = new Error(`${name2} with invalid interface loaded as resolver`);
6340
+ const err = new Error(`${name3} with invalid interface loaded as resolver`);
5604
6341
  err.name = IMPORT_RESOLVE_ERROR_NAME;
5605
6342
  throw err;
5606
6343
  }
@@ -5632,6 +6369,9 @@ function tryRequire(target, sourceFile) {
5632
6369
  function getBaseDir(sourceFile) {
5633
6370
  return pkgDir(sourceFile) || process.cwd();
5634
6371
  }
6372
+
6373
+ // ../../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
6374
+ init_esm_shims();
5635
6375
  var log3 = debug("eslint-plugin-import-x:utils:ModuleCache");
5636
6376
  var ModuleCache = class {
5637
6377
  constructor(map = /* @__PURE__ */ new Map()) {
@@ -5816,11 +6556,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
5816
6556
  };
5817
6557
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
5818
6558
  for (const sourceFile2 of sourceFiles) {
5819
- for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
6559
+ for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
5820
6560
  if (!enable) {
5821
6561
  continue;
5822
6562
  }
5823
- if (LEGACY_NODE_RESOLVERS.has(name2)) {
6563
+ if (LEGACY_NODE_RESOLVERS.has(name3)) {
5824
6564
  const resolverOptions = options || {};
5825
6565
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
5826
6566
  if (resolved2?.found) {
@@ -5880,6 +6620,7 @@ function importXResolverCompat(resolver, resolverOptions = {}) {
5880
6620
  }
5881
6621
 
5882
6622
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/unambiguous.js
6623
+ init_esm_shims();
5883
6624
  var pattern = /(^|;)\s*(export|import)((\s+\w)|(\s*[*={]))|import\(/m;
5884
6625
  function isMaybeUnambiguousModule(content) {
5885
6626
  return pattern.test(content);
@@ -5890,6 +6631,7 @@ function isUnambiguousModule(ast) {
5890
6631
  }
5891
6632
 
5892
6633
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/utils/visit.js
6634
+ init_esm_shims();
5893
6635
  function visit(node2, keys, visitorSpec) {
5894
6636
  if (!node2 || !keys) {
5895
6637
  return;
@@ -6348,44 +7090,44 @@ var ExportMap = class _ExportMap {
6348
7090
  }
6349
7091
  return size;
6350
7092
  }
6351
- has(name2) {
6352
- if (this.namespace.has(name2)) {
7093
+ has(name3) {
7094
+ if (this.namespace.has(name3)) {
6353
7095
  return true;
6354
7096
  }
6355
- if (this.reexports.has(name2)) {
7097
+ if (this.reexports.has(name3)) {
6356
7098
  return true;
6357
7099
  }
6358
- if (name2 !== "default") {
7100
+ if (name3 !== "default") {
6359
7101
  for (const dep of this.dependencies) {
6360
7102
  const innerMap = dep();
6361
7103
  if (!innerMap) {
6362
7104
  continue;
6363
7105
  }
6364
- if (innerMap.has(name2)) {
7106
+ if (innerMap.has(name3)) {
6365
7107
  return true;
6366
7108
  }
6367
7109
  }
6368
7110
  }
6369
7111
  return false;
6370
7112
  }
6371
- hasDeep(name2) {
6372
- if (this.namespace.has(name2)) {
7113
+ hasDeep(name3) {
7114
+ if (this.namespace.has(name3)) {
6373
7115
  return { found: true, path: [this] };
6374
7116
  }
6375
- if (this.reexports.has(name2)) {
6376
- const reexports = this.reexports.get(name2);
7117
+ if (this.reexports.has(name3)) {
7118
+ const reexports = this.reexports.get(name3);
6377
7119
  const imported = reexports.getImport();
6378
7120
  if (imported == null) {
6379
7121
  return { found: true, path: [this] };
6380
7122
  }
6381
- if (imported.path === this.path && reexports.local === name2) {
7123
+ if (imported.path === this.path && reexports.local === name3) {
6382
7124
  return { found: false, path: [this] };
6383
7125
  }
6384
7126
  const deep = imported.hasDeep(reexports.local);
6385
7127
  deep.path.unshift(this);
6386
7128
  return deep;
6387
7129
  }
6388
- if (name2 !== "default") {
7130
+ if (name3 !== "default") {
6389
7131
  for (const dep of this.dependencies) {
6390
7132
  const innerMap = dep();
6391
7133
  if (innerMap == null) {
@@ -6397,7 +7139,7 @@ var ExportMap = class _ExportMap {
6397
7139
  if (innerMap.path === this.path) {
6398
7140
  continue;
6399
7141
  }
6400
- const innerValue = innerMap.hasDeep(name2);
7142
+ const innerValue = innerMap.hasDeep(name3);
6401
7143
  if (innerValue.found) {
6402
7144
  innerValue.path.unshift(this);
6403
7145
  return innerValue;
@@ -6406,22 +7148,22 @@ var ExportMap = class _ExportMap {
6406
7148
  }
6407
7149
  return { found: false, path: [this] };
6408
7150
  }
6409
- get(name2) {
6410
- if (this.namespace.has(name2)) {
6411
- return this.namespace.get(name2);
7151
+ get(name3) {
7152
+ if (this.namespace.has(name3)) {
7153
+ return this.namespace.get(name3);
6412
7154
  }
6413
- if (this.reexports.has(name2)) {
6414
- const reexports = this.reexports.get(name2);
7155
+ if (this.reexports.has(name3)) {
7156
+ const reexports = this.reexports.get(name3);
6415
7157
  const imported = reexports.getImport();
6416
7158
  if (imported == null) {
6417
7159
  return null;
6418
7160
  }
6419
- if (imported.path === this.path && reexports.local === name2) {
7161
+ if (imported.path === this.path && reexports.local === name3) {
6420
7162
  return void 0;
6421
7163
  }
6422
7164
  return imported.get(reexports.local);
6423
7165
  }
6424
- if (name2 !== "default") {
7166
+ if (name3 !== "default") {
6425
7167
  for (const dep of this.dependencies) {
6426
7168
  const innerMap = dep();
6427
7169
  if (!innerMap) {
@@ -6430,7 +7172,7 @@ var ExportMap = class _ExportMap {
6430
7172
  if (innerMap.path === this.path) {
6431
7173
  continue;
6432
7174
  }
6433
- const innerValue = innerMap.get(name2);
7175
+ const innerValue = innerMap.get(name3);
6434
7176
  if (innerValue !== void 0) {
6435
7177
  return innerValue;
6436
7178
  }
@@ -6441,9 +7183,9 @@ var ExportMap = class _ExportMap {
6441
7183
  for (const [n, v] of this.namespace.entries()) {
6442
7184
  callback.call(thisArg, v, n, this);
6443
7185
  }
6444
- for (const [name2, reexports] of this.reexports.entries()) {
7186
+ for (const [name3, reexports] of this.reexports.entries()) {
6445
7187
  const reexported = reexports.getImport();
6446
- callback.call(thisArg, reexported?.get(reexports.local), name2, this);
7188
+ callback.call(thisArg, reexported?.get(reexports.local), name3, this);
6447
7189
  }
6448
7190
  this.dependencies.forEach((dep) => {
6449
7191
  const d = dep();
@@ -6602,6 +7344,9 @@ function makeContextCacheKey(context) {
6602
7344
  hash += "\0" + stableHash(parserPath ?? languageOptions?.parser?.meta ?? languageOptions?.parser);
6603
7345
  return hash;
6604
7346
  }
7347
+
7348
+ // ../../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
7349
+ init_esm_shims();
6605
7350
  var importDeclaration = (context, node2) => {
6606
7351
  if (node2.parent && node2.parent.type === AST_NODE_TYPES.ImportDeclaration) {
6607
7352
  return node2.parent;
@@ -6611,6 +7356,7 @@ var importDeclaration = (context, node2) => {
6611
7356
  };
6612
7357
 
6613
7358
  // ../../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
7359
+ init_esm_shims();
6614
7360
  function moduleVisitor(visitor, options) {
6615
7361
  const ignore2 = options?.ignore;
6616
7362
  const amd = !!options?.amd;
@@ -6728,7 +7474,7 @@ function moduleVisitor(visitor, options) {
6728
7474
  return visitors;
6729
7475
  }
6730
7476
  function makeOptionsSchema(additionalProperties) {
6731
- const base2 = {
7477
+ const base = {
6732
7478
  type: "object",
6733
7479
  properties: {
6734
7480
  commonjs: { type: "boolean" },
@@ -6745,14 +7491,15 @@ function makeOptionsSchema(additionalProperties) {
6745
7491
  };
6746
7492
  if (additionalProperties) {
6747
7493
  for (const key in additionalProperties) {
6748
- base2.properties[key] = additionalProperties[key];
7494
+ base.properties[key] = additionalProperties[key];
6749
7495
  }
6750
7496
  }
6751
- return base2;
7497
+ return base;
6752
7498
  }
6753
7499
  makeOptionsSchema();
6754
7500
 
6755
7501
  // ../../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
7502
+ init_esm_shims();
6756
7503
  var NPM = "npm";
6757
7504
  var NPM_CLIENTS = /* @__PURE__ */ new Set([
6758
7505
  NPM,
@@ -6773,6 +7520,7 @@ var getNpmClient = () => {
6773
7520
  var getNpmInstallCommand = (packageName) => `${getNpmClient()} ${npmClient === NPM ? "i" : "add"} ${npmClient === "deno" ? `${NPM}:` : ""}${packageName}`;
6774
7521
 
6775
7522
  // ../../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
7523
+ init_esm_shims();
6776
7524
  var parsePath = (path23) => {
6777
7525
  const hashIndex = path23.indexOf("#");
6778
7526
  const queryIndex = path23.indexOf("?");
@@ -6786,6 +7534,7 @@ var parsePath = (path23) => {
6786
7534
  var stringifyPath = ({ pathname, query, hash }) => pathname + query + hash;
6787
7535
 
6788
7536
  // ../../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
7537
+ init_esm_shims();
6789
7538
  function sourceType(context) {
6790
7539
  if ("languageOptions" in context && context.languageOptions) {
6791
7540
  if ("parserOptions" in context.languageOptions && context.languageOptions.parserOptions?.sourceType) {
@@ -6801,6 +7550,7 @@ function sourceType(context) {
6801
7550
  }
6802
7551
 
6803
7552
  // ../../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
7553
+ init_esm_shims();
6804
7554
  function isStaticRequire(node2) {
6805
7555
  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";
6806
7556
  }
@@ -6972,6 +7722,7 @@ ${newImports}`)
6972
7722
  });
6973
7723
 
6974
7724
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/default.js
7725
+ init_esm_shims();
6975
7726
  var default_default = createRule2({
6976
7727
  name: "default",
6977
7728
  meta: {
@@ -7014,6 +7765,9 @@ var default_default = createRule2({
7014
7765
  };
7015
7766
  }
7016
7767
  });
7768
+
7769
+ // ../../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
7770
+ init_esm_shims();
7017
7771
  var dynamic_import_chunkname_default = createRule2({
7018
7772
  name: "dynamic-import-chunkname",
7019
7773
  meta: {
@@ -7182,6 +7936,9 @@ var dynamic_import_chunkname_default = createRule2({
7182
7936
  };
7183
7937
  }
7184
7938
  });
7939
+
7940
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/export.js
7941
+ init_esm_shims();
7185
7942
  var rootProgram = "root";
7186
7943
  var tsTypePrefix = "type:";
7187
7944
  function removeTypescriptFunctionOverloads(nodes) {
@@ -7219,12 +7976,12 @@ var export_default = createRule2({
7219
7976
  defaultOptions: [],
7220
7977
  create(context) {
7221
7978
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
7222
- function addNamed(name2, node2, parent, isType) {
7979
+ function addNamed(name3, node2, parent, isType) {
7223
7980
  if (!namespace.has(parent)) {
7224
7981
  namespace.set(parent, /* @__PURE__ */ new Map());
7225
7982
  }
7226
7983
  const named = namespace.get(parent);
7227
- const key = isType ? `${tsTypePrefix}${name2}` : name2;
7984
+ const key = isType ? `${tsTypePrefix}${name3}` : name3;
7228
7985
  let nodes = named.get(key);
7229
7986
  if (nodes == null) {
7230
7987
  nodes = /* @__PURE__ */ new Set();
@@ -7280,10 +8037,10 @@ var export_default = createRule2({
7280
8037
  }
7281
8038
  const parent = getParent(node2);
7282
8039
  let any2 = false;
7283
- remoteExports.$forEach((_, name2) => {
7284
- if (name2 !== "default") {
8040
+ remoteExports.$forEach((_, name3) => {
8041
+ if (name3 !== "default") {
7285
8042
  any2 = true;
7286
- addNamed(name2, node2, parent);
8043
+ addNamed(name3, node2, parent);
7287
8044
  }
7288
8045
  });
7289
8046
  if (!any2) {
@@ -7296,7 +8053,7 @@ var export_default = createRule2({
7296
8053
  },
7297
8054
  "Program:exit"() {
7298
8055
  for (const [, named] of namespace) {
7299
- for (const [name2, nodes] of named) {
8056
+ for (const [name3, nodes] of named) {
7300
8057
  if (nodes.size === 0) {
7301
8058
  continue;
7302
8059
  }
@@ -7311,7 +8068,7 @@ var export_default = createRule2({
7311
8068
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
7312
8069
  continue;
7313
8070
  }
7314
- if (name2 === "default") {
8071
+ if (name3 === "default") {
7315
8072
  context.report({
7316
8073
  node: node2,
7317
8074
  messageId: "multiDefault"
@@ -7321,7 +8078,7 @@ var export_default = createRule2({
7321
8078
  node: node2,
7322
8079
  messageId: "multiNamed",
7323
8080
  data: {
7324
- name: name2.replace(tsTypePrefix, "")
8081
+ name: name3.replace(tsTypePrefix, "")
7325
8082
  }
7326
8083
  });
7327
8084
  }
@@ -7334,6 +8091,7 @@ var export_default = createRule2({
7334
8091
  });
7335
8092
 
7336
8093
  // ../../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
8094
+ init_esm_shims();
7337
8095
  var findLastIndex = (array2, predicate) => {
7338
8096
  let i = array2.length - 1;
7339
8097
  while (i >= 0) {
@@ -7380,7 +8138,14 @@ var exports_last_default = createRule2({
7380
8138
  }
7381
8139
  });
7382
8140
 
8141
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/extensions.js
8142
+ init_esm_shims();
8143
+
8144
+ // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/index.js
8145
+ init_esm_shims();
8146
+
7383
8147
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8148
+ init_esm_shims();
7384
8149
  var MAX_PATTERN_LENGTH = 1024 * 64;
7385
8150
  var assertValidPattern = (pattern2) => {
7386
8151
  if (typeof pattern2 !== "string") {
@@ -7391,7 +8156,11 @@ var assertValidPattern = (pattern2) => {
7391
8156
  }
7392
8157
  };
7393
8158
 
8159
+ // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/ast.js
8160
+ init_esm_shims();
8161
+
7394
8162
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/brace-expressions.js
8163
+ init_esm_shims();
7395
8164
  var posixClasses = {
7396
8165
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
7397
8166
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -7501,6 +8270,7 @@ var parseClass = (glob, position) => {
7501
8270
  };
7502
8271
 
7503
8272
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/unescape.js
8273
+ init_esm_shims();
7504
8274
  var unescape = (s, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
7505
8275
  if (magicalBraces) {
7506
8276
  return windowsPathsNoEscape ? s.replace(/\[([^/\\])\]/g, "$1") : s.replace(/((?!\\).|^)\[([^/\\])\]/g, "$1$2").replace(/\\([^/])/g, "$1");
@@ -8153,6 +8923,7 @@ var AST = class {
8153
8923
  _a3 = AST;
8154
8924
 
8155
8925
  // ../../node_modules/.pnpm/minimatch@10.2.5/node_modules/minimatch/dist/esm/escape.js
8926
+ init_esm_shims();
8156
8927
  var escape = (s, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
8157
8928
  if (magicalBraces) {
8158
8929
  return windowsPathsNoEscape ? s.replace(/[?*()[\]{}]/g, "[$&]") : s.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -9252,6 +10023,7 @@ var extensions_default = createRule2({
9252
10023
  });
9253
10024
 
9254
10025
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/first.js
10026
+ init_esm_shims();
9255
10027
  function getImportValue(node2) {
9256
10028
  return node2.type === "ImportDeclaration" ? node2.source.value : "moduleReference" in node2 && "expression" in node2.moduleReference && "value" in node2.moduleReference.expression && node2.moduleReference.expression.value;
9257
10029
  }
@@ -9386,6 +10158,7 @@ ${nodeSourceCode}`;
9386
10158
  });
9387
10159
 
9388
10160
  // ../../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
10161
+ init_esm_shims();
9389
10162
  function accessorChain(node2) {
9390
10163
  const chain = [];
9391
10164
  let exp = node2;
@@ -9500,6 +10273,7 @@ var group_exports_default = createRule2({
9500
10273
  });
9501
10274
 
9502
10275
  // ../../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
10276
+ init_esm_shims();
9503
10277
  var imports_first_default = createRule2({
9504
10278
  ...first_default,
9505
10279
  name: "imports-first",
@@ -9524,6 +10298,7 @@ var imports_first_default = createRule2({
9524
10298
  });
9525
10299
 
9526
10300
  // ../../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
10301
+ init_esm_shims();
9527
10302
  var max_dependencies_default = createRule2({
9528
10303
  name: "max-dependencies",
9529
10304
  meta: {
@@ -9574,6 +10349,9 @@ var max_dependencies_default = createRule2({
9574
10349
  };
9575
10350
  }
9576
10351
  });
10352
+
10353
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/named.js
10354
+ init_esm_shims();
9577
10355
  var named_default = createRule2({
9578
10356
  name: "named",
9579
10357
  meta: {
@@ -9621,8 +10399,8 @@ var named_default = createRule2({
9621
10399
  continue;
9622
10400
  }
9623
10401
  const imNode = im[key];
9624
- const name2 = imNode.name || imNode.value;
9625
- const deepLookup = imports2.hasDeep(name2);
10402
+ const name3 = imNode.name || imNode.value;
10403
+ const deepLookup = imports2.hasDeep(name3);
9626
10404
  if (!deepLookup.found) {
9627
10405
  if (deepLookup.path.length > 1) {
9628
10406
  const deepPath = deepLookup.path.map((i) => path16.relative(path16.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -9630,7 +10408,7 @@ var named_default = createRule2({
9630
10408
  node: imNode,
9631
10409
  messageId: "notFoundDeep",
9632
10410
  data: {
9633
- name: name2,
10411
+ name: name3,
9634
10412
  deepPath
9635
10413
  }
9636
10414
  });
@@ -9639,7 +10417,7 @@ var named_default = createRule2({
9639
10417
  node: imNode,
9640
10418
  messageId: "notFound",
9641
10419
  data: {
9642
- name: name2,
10420
+ name: name3,
9643
10421
  path: node2.source.value
9644
10422
  }
9645
10423
  });
@@ -9699,6 +10477,7 @@ var named_default = createRule2({
9699
10477
  });
9700
10478
 
9701
10479
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/namespace.js
10480
+ init_esm_shims();
9702
10481
  function processBodyStatement(context, namespaces, declaration) {
9703
10482
  if (declaration.type !== "ImportDeclaration") {
9704
10483
  return;
@@ -9924,6 +10703,9 @@ var namespace_default = createRule2({
9924
10703
  };
9925
10704
  }
9926
10705
  });
10706
+
10707
+ // ../../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
10708
+ init_esm_shims();
9927
10709
  var log5 = debug("eslint-plugin-import-x:rules:newline-after-import");
9928
10710
  function containsNodeOrEqual(outerNode, innerNode) {
9929
10711
  return outerNode.range[0] <= innerNode.range[0] && outerNode.range[1] >= innerNode.range[1];
@@ -10123,6 +10905,9 @@ var newline_after_import_default = createRule2({
10123
10905
  };
10124
10906
  }
10125
10907
  });
10908
+
10909
+ // ../../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
10910
+ init_esm_shims();
10126
10911
  var no_absolute_path_default = createRule2({
10127
10912
  name: "no-absolute-path",
10128
10913
  meta: {
@@ -10160,6 +10945,7 @@ var no_absolute_path_default = createRule2({
10160
10945
  });
10161
10946
 
10162
10947
  // ../../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
10948
+ init_esm_shims();
10163
10949
  var no_amd_default = createRule2({
10164
10950
  name: "no-amd",
10165
10951
  meta: {
@@ -10206,6 +10992,7 @@ var no_amd_default = createRule2({
10206
10992
  });
10207
10993
 
10208
10994
  // ../../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
10995
+ init_esm_shims();
10209
10996
  var { hasOwnProperty } = Object.prototype;
10210
10997
  var hasOwn = (object2, key) => hasOwnProperty.call(object2, key);
10211
10998
  var defs = {
@@ -10339,6 +11126,7 @@ var no_anonymous_default_export_default = createRule2({
10339
11126
  });
10340
11127
 
10341
11128
  // ../../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
11129
+ init_esm_shims();
10342
11130
  function normalizeLegacyOptions(options) {
10343
11131
  if (options.includes("allow-primitive-modules")) {
10344
11132
  return { allowPrimitiveModules: true };
@@ -10461,6 +11249,7 @@ var no_commonjs_default = createRule2({
10461
11249
  });
10462
11250
 
10463
11251
  // ../../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
11252
+ init_esm_shims();
10464
11253
  var traversed = /* @__PURE__ */ new Set();
10465
11254
  var no_cycle_default = createRule2({
10466
11255
  name: "no-cycle",
@@ -10510,7 +11299,7 @@ var no_cycle_default = createRule2({
10510
11299
  }
10511
11300
  const options = context.options[0] || {};
10512
11301
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
10513
- const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve(name2, context), context) : () => false;
11302
+ const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve(name3, context), context) : () => false;
10514
11303
  return {
10515
11304
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
10516
11305
  if (ignoreModule(sourceNode.value)) {
@@ -10589,6 +11378,7 @@ function routeString(route) {
10589
11378
  }
10590
11379
 
10591
11380
  // ../../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
11381
+ init_esm_shims();
10592
11382
  var no_default_export_default = createRule2({
10593
11383
  name: "no-default-export",
10594
11384
  meta: {
@@ -10644,6 +11434,7 @@ var no_default_export_default = createRule2({
10644
11434
  });
10645
11435
 
10646
11436
  // ../../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
11437
+ init_esm_shims();
10647
11438
  function message(deprecation) {
10648
11439
  if (deprecation.description) {
10649
11440
  return {
@@ -10799,6 +11590,9 @@ var no_deprecated_default = createRule2({
10799
11590
  };
10800
11591
  }
10801
11592
  });
11593
+
11594
+ // ../../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
11595
+ init_esm_shims();
10802
11596
  var isTypeScriptVersionSupportPreferInline = lazy(() => {
10803
11597
  let typescriptPkg;
10804
11598
  try {
@@ -11071,6 +11865,7 @@ var no_duplicates_default = createRule2({
11071
11865
  });
11072
11866
 
11073
11867
  // ../../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
11868
+ init_esm_shims();
11074
11869
  function isRequire(node2) {
11075
11870
  return node2.callee?.type === "Identifier" && node2.callee.name === "require" && node2.arguments.length > 0;
11076
11871
  }
@@ -11139,6 +11934,7 @@ var no_dynamic_require_default = createRule2({
11139
11934
  });
11140
11935
 
11141
11936
  // ../../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
11937
+ init_esm_shims();
11142
11938
  function getEmptyBlockRange(tokens, index) {
11143
11939
  const token = tokens[index];
11144
11940
  const nextToken = tokens[index + 1];
@@ -11234,6 +12030,9 @@ var no_empty_named_blocks_default = createRule2({
11234
12030
  };
11235
12031
  }
11236
12032
  });
12033
+
12034
+ // ../../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
12035
+ init_esm_shims();
11237
12036
  var depFieldCache = /* @__PURE__ */ new Map();
11238
12037
  var minimatch2 = minimatch;
11239
12038
  function hasKeys(obj = {}) {
@@ -11330,8 +12129,8 @@ function getDependencies(context, packageDir) {
11330
12129
  }
11331
12130
  }
11332
12131
  }
11333
- function getModuleOriginalName(name2) {
11334
- const [first, second] = name2.split("/");
12132
+ function getModuleOriginalName(name3) {
12133
+ const [first, second] = name3.split("/");
11335
12134
  return first.startsWith("@") ? `${first}/${second}` : first;
11336
12135
  }
11337
12136
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -11358,19 +12157,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
11358
12157
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
11359
12158
  }), newDeclarationStatus);
11360
12159
  }
11361
- function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
12160
+ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
11362
12161
  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")))) {
11363
12162
  return;
11364
12163
  }
11365
- const typeOfImport = importType(name2, context);
12164
+ const typeOfImport = importType(name3, context);
11366
12165
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
11367
12166
  return;
11368
12167
  }
11369
- const resolved = resolve(name2, context);
12168
+ const resolved = resolve(name3, context);
11370
12169
  if (!resolved) {
11371
12170
  return;
11372
12171
  }
11373
- const importPackageName = getModuleOriginalName(name2);
12172
+ const importPackageName = getModuleOriginalName(name3);
11374
12173
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
11375
12174
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
11376
12175
  return;
@@ -11477,6 +12276,9 @@ var no_extraneous_dependencies_default = createRule2({
11477
12276
  };
11478
12277
  }
11479
12278
  });
12279
+
12280
+ // ../../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
12281
+ init_esm_shims();
11480
12282
  function getEntryPoint(context) {
11481
12283
  const pkgPath = pkgUp({
11482
12284
  cwd: context.physicalFilename
@@ -11558,6 +12360,7 @@ var no_import_module_exports_default = createRule2({
11558
12360
  });
11559
12361
 
11560
12362
  // ../../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
12363
+ init_esm_shims();
11561
12364
  function normalizeSep(somePath) {
11562
12365
  return somePath.split("\\").join("/");
11563
12366
  }
@@ -11674,6 +12477,7 @@ var no_internal_modules_default = createRule2({
11674
12477
  });
11675
12478
 
11676
12479
  // ../../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
12480
+ init_esm_shims();
11677
12481
  var no_mutable_exports_default = createRule2({
11678
12482
  name: "no-mutable-exports",
11679
12483
  meta: {
@@ -11700,9 +12504,9 @@ var no_mutable_exports_default = createRule2({
11700
12504
  });
11701
12505
  }
11702
12506
  }
11703
- function checkDeclarationsInScope({ variables }, name2) {
12507
+ function checkDeclarationsInScope({ variables }, name3) {
11704
12508
  for (const variable of variables) {
11705
- if (variable.name === name2) {
12509
+ if (variable.name === name3) {
11706
12510
  for (const def of variable.defs) {
11707
12511
  if (def.type === "Variable" && def.parent) {
11708
12512
  checkDeclaration(def.parent);
@@ -11733,6 +12537,7 @@ var no_mutable_exports_default = createRule2({
11733
12537
  });
11734
12538
 
11735
12539
  // ../../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
12540
+ init_esm_shims();
11736
12541
  var no_named_as_default_member_default = createRule2({
11737
12542
  name: "no-named-as-default-member",
11738
12543
  meta: {
@@ -11819,6 +12624,7 @@ var no_named_as_default_member_default = createRule2({
11819
12624
  });
11820
12625
 
11821
12626
  // ../../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
12627
+ init_esm_shims();
11822
12628
  var no_named_as_default_default = createRule2({
11823
12629
  name: "no-named-as-default",
11824
12630
  meta: {
@@ -11874,6 +12680,7 @@ var no_named_as_default_default = createRule2({
11874
12680
  });
11875
12681
 
11876
12682
  // ../../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
12683
+ init_esm_shims();
11877
12684
  var no_named_default_default = createRule2({
11878
12685
  name: "no-named-default",
11879
12686
  meta: {
@@ -11911,6 +12718,7 @@ var no_named_default_default = createRule2({
11911
12718
  });
11912
12719
 
11913
12720
  // ../../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
12721
+ init_esm_shims();
11914
12722
  var no_named_export_default = createRule2({
11915
12723
  name: "no-named-export",
11916
12724
  meta: {
@@ -11947,6 +12755,7 @@ var no_named_export_default = createRule2({
11947
12755
  });
11948
12756
 
11949
12757
  // ../../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
12758
+ init_esm_shims();
11950
12759
  var no_namespace_default = createRule2({
11951
12760
  name: "no-namespace",
11952
12761
  meta: {
@@ -12049,26 +12858,27 @@ function getVariableNamesInScope(scopeManager, node2) {
12049
12858
  }
12050
12859
  function generateLocalNames(names, nameConflicts, namespaceName) {
12051
12860
  const localNames = {};
12052
- for (const name2 of names) {
12861
+ for (const name3 of names) {
12053
12862
  let localName;
12054
- if (!nameConflicts[name2].has(name2)) {
12055
- localName = name2;
12056
- } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
12863
+ if (!nameConflicts[name3].has(name3)) {
12864
+ localName = name3;
12865
+ } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
12057
12866
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
12058
- if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
12059
- localName = `${namespaceName}_${name2}_${i}`;
12867
+ if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
12868
+ localName = `${namespaceName}_${name3}_${i}`;
12060
12869
  break;
12061
12870
  }
12062
12871
  }
12063
12872
  } else {
12064
- localName = `${namespaceName}_${name2}`;
12873
+ localName = `${namespaceName}_${name3}`;
12065
12874
  }
12066
- localNames[name2] = localName;
12875
+ localNames[name3] = localName;
12067
12876
  }
12068
12877
  return localNames;
12069
12878
  }
12070
12879
 
12071
12880
  // ../../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
12881
+ init_esm_shims();
12072
12882
  var no_nodejs_modules_default = createRule2({
12073
12883
  name: "no-nodejs-modules",
12074
12884
  meta: {
@@ -12114,6 +12924,9 @@ var no_nodejs_modules_default = createRule2({
12114
12924
  }, { commonjs: true });
12115
12925
  }
12116
12926
  });
12927
+
12928
+ // ../../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
12929
+ init_esm_shims();
12117
12930
  function toPosixPath(filePath) {
12118
12931
  return filePath.replaceAll("\\", "/");
12119
12932
  }
@@ -12171,6 +12984,9 @@ var no_relative_packages_default = createRule2({
12171
12984
  return moduleVisitor((source) => checkImportForRelativePackage(context, source.value, source), context.options[0]);
12172
12985
  }
12173
12986
  });
12987
+
12988
+ // ../../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
12989
+ init_esm_shims();
12174
12990
  var no_relative_parent_imports_default = createRule2({
12175
12991
  name: "no-relative-parent-imports",
12176
12992
  meta: {
@@ -12213,6 +13029,9 @@ var no_relative_parent_imports_default = createRule2({
12213
13029
  }, context.options[0]);
12214
13030
  }
12215
13031
  });
13032
+
13033
+ // ../../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
13034
+ init_esm_shims();
12216
13035
  var no_rename_default_default = createRule2({
12217
13036
  name: "no-rename-default",
12218
13037
  meta: {
@@ -12450,6 +13269,9 @@ function getDefaultExportNode(exportMap) {
12450
13269
  }
12451
13270
  }
12452
13271
  }
13272
+
13273
+ // ../../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
13274
+ init_esm_shims();
12453
13275
  var containsPath = (filepath, target) => {
12454
13276
  const relative2 = path16.relative(target, filepath);
12455
13277
  return relative2 === "" || !relative2.startsWith("..");
@@ -12650,6 +13472,7 @@ var no_restricted_paths_default = createRule2({
12650
13472
  });
12651
13473
 
12652
13474
  // ../../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
13475
+ init_esm_shims();
12653
13476
  function isImportingSelf(context, node2, requireName) {
12654
13477
  const filename = context.physicalFilename;
12655
13478
  if (filename !== "<text>" && filename === resolve(requireName, context)) {
@@ -12680,6 +13503,9 @@ var no_self_import_default = createRule2({
12680
13503
  }, { commonjs: true });
12681
13504
  }
12682
13505
  });
13506
+
13507
+ // ../../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
13508
+ init_esm_shims();
12683
13509
  function testIsAllow(globs, context, source) {
12684
13510
  if (!Array.isArray(globs)) {
12685
13511
  return false;
@@ -12749,6 +13575,7 @@ var no_unassigned_import_default = createRule2({
12749
13575
  });
12750
13576
 
12751
13577
  // ../../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
13578
+ init_esm_shims();
12752
13579
  var no_unresolved_default = createRule2({
12753
13580
  name: "no-unresolved",
12754
13581
  meta: {
@@ -12801,6 +13628,9 @@ var no_unresolved_default = createRule2({
12801
13628
  }, options);
12802
13629
  }
12803
13630
  });
13631
+
13632
+ // ../../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
13633
+ init_esm_shims();
12804
13634
  function isESLint9UnsupportedApi(input) {
12805
13635
  return typeof input === "object" && input !== null && "shouldUseFlatConfig" in input && "FileEnumerator" in eslintUnsupportedApi;
12806
13636
  }
@@ -13249,8 +14079,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13249
14079
  }
13250
14080
  }
13251
14081
  }
13252
- forEachDeclarationIdentifier(s.declaration, (name2) => {
13253
- newExportIdentifiers.add(name2);
14082
+ forEachDeclarationIdentifier(s.declaration, (name3) => {
14083
+ newExportIdentifiers.add(name3);
13254
14084
  });
13255
14085
  }
13256
14086
  }
@@ -13325,11 +14155,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13325
14155
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
13326
14156
  resolvedPath = resolve(astNode.source.raw.replaceAll(/('|")/g, ""), context);
13327
14157
  for (const specifier of astNode.specifiers) {
13328
- const name2 = getValue(specifier.local);
13329
- if (name2 === DEFAULT) {
14158
+ const name3 = getValue(specifier.local);
14159
+ if (name3 === DEFAULT) {
13330
14160
  newDefaultImports.add(resolvedPath);
13331
14161
  } else {
13332
- newImports.set(name2, resolvedPath);
14162
+ newImports.set(name3, resolvedPath);
13333
14163
  }
13334
14164
  }
13335
14165
  }
@@ -13527,13 +14357,16 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
13527
14357
  for (const specifier of node2.specifiers) {
13528
14358
  checkUsage(specifier, getValue(specifier.exported), false);
13529
14359
  }
13530
- forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
13531
- checkUsage(node2, name2, isTypeExport);
14360
+ forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
14361
+ checkUsage(node2, name3, isTypeExport);
13532
14362
  });
13533
14363
  }
13534
14364
  };
13535
14365
  }
13536
14366
  });
14367
+
14368
+ // ../../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
14369
+ init_esm_shims();
13537
14370
  function toRelativePath(relativePath) {
13538
14371
  const stripped = relativePath.replaceAll(/\/$/g, "");
13539
14372
  return /^((\.\.)|(\.))($|\/)/.test(stripped) ? stripped : `./${stripped}`;
@@ -13630,6 +14463,7 @@ var no_useless_path_segments_default = createRule2({
13630
14463
  });
13631
14464
 
13632
14465
  // ../../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
14466
+ init_esm_shims();
13633
14467
  var no_webpack_loader_syntax_default = createRule2({
13634
14468
  name: "no-webpack-loader-syntax",
13635
14469
  meta: {
@@ -13658,6 +14492,9 @@ var no_webpack_loader_syntax_default = createRule2({
13658
14492
  }, { commonjs: true });
13659
14493
  }
13660
14494
  });
14495
+
14496
+ // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/order.js
14497
+ init_esm_shims();
13661
14498
  var log6 = debug("eslint-plugin-import-x:rules:order");
13662
14499
  var groupBy = (array2, grouper) => array2.reduce((acc, curr, index) => {
13663
14500
  const key = grouper(curr, index);
@@ -14539,11 +15376,11 @@ var order_default = createRule2({
14539
15376
  return {
14540
15377
  ImportDeclaration(node2) {
14541
15378
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
14542
- const name2 = node2.source.value;
15379
+ const name3 = node2.source.value;
14543
15380
  registerNode(context, {
14544
15381
  node: node2,
14545
- value: name2,
14546
- displayName: name2,
15382
+ value: name3,
15383
+ displayName: name3,
14547
15384
  type: "import"
14548
15385
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
14549
15386
  if (named.import) {
@@ -14665,11 +15502,11 @@ var order_default = createRule2({
14665
15502
  } else {
14666
15503
  const nameParts = getNamedCJSExports(context, node2.left);
14667
15504
  if (nameParts && nameParts.length > 0) {
14668
- const name2 = nameParts.join(".");
15505
+ const name3 = nameParts.join(".");
14669
15506
  getBlockExports(node2.parent.parent).push({
14670
15507
  node: node2,
14671
- value: name2,
14672
- displayName: name2,
15508
+ value: name3,
15509
+ displayName: name3,
14673
15510
  type: "export",
14674
15511
  rank: 0
14675
15512
  });
@@ -14702,6 +15539,7 @@ var order_default = createRule2({
14702
15539
  });
14703
15540
 
14704
15541
  // ../../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
15542
+ init_esm_shims();
14705
15543
  var prefer_default_export_default = createRule2({
14706
15544
  name: "prefer-default-export",
14707
15545
  meta: {
@@ -14807,6 +15645,7 @@ var prefer_default_export_default = createRule2({
14807
15645
  });
14808
15646
 
14809
15647
  // ../../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
15648
+ init_esm_shims();
14810
15649
  var prefer_namespace_import_default = createRule2({
14811
15650
  name: "prefer-namespace-import",
14812
15651
  meta: {
@@ -14888,6 +15727,7 @@ function toRegExp(string3) {
14888
15727
  }
14889
15728
 
14890
15729
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_b95cb6c19f81be476d27f00e3e92b785/node_modules/eslint-plugin-import-x/lib/rules/unambiguous.js
15730
+ init_esm_shims();
14891
15731
  var unambiguous_default = createRule2({
14892
15732
  name: "unambiguous",
14893
15733
  meta: {
@@ -15038,6 +15878,9 @@ async function imports(options = {}) {
15038
15878
  }
15039
15879
  ];
15040
15880
  }
15881
+
15882
+ // src/configs/javascript.ts
15883
+ init_esm_shims();
15041
15884
  async function javascript(options = {}) {
15042
15885
  const { overrides = {}, globals = {} } = options;
15043
15886
  return [
@@ -15919,6 +16762,7 @@ async function javascript(options = {}) {
15919
16762
  }
15920
16763
 
15921
16764
  // src/configs/jsdoc.ts
16765
+ init_esm_shims();
15922
16766
  async function jsdoc(options = {}) {
15923
16767
  const { stylistic: stylistic2 = true, severity = "warn" } = options;
15924
16768
  return [
@@ -15953,6 +16797,7 @@ async function jsdoc(options = {}) {
15953
16797
  }
15954
16798
 
15955
16799
  // src/configs/jsonc.ts
16800
+ init_esm_shims();
15956
16801
  async function jsonc(options = {}) {
15957
16802
  const {
15958
16803
  files = [GLOB_JSON, GLOB_JSON5, GLOB_JSONC],
@@ -16032,6 +16877,7 @@ async function jsonc(options = {}) {
16032
16877
  }
16033
16878
 
16034
16879
  // src/configs/jsx.ts
16880
+ init_esm_shims();
16035
16881
  async function jsx() {
16036
16882
  await ensurePackages(["eslint-plugin-jsx-a11y"]);
16037
16883
  const [pluginJsxA11y] = await Promise.all([
@@ -16208,6 +17054,9 @@ async function jsx() {
16208
17054
  }
16209
17055
  ];
16210
17056
  }
17057
+
17058
+ // src/configs/markdown.ts
17059
+ init_esm_shims();
16211
17060
  async function markdown(options = {}) {
16212
17061
  const { files = [GLOB_MARKDOWN], overrides = {} } = options;
16213
17062
  const markdown2 = await interopDefault(import('@eslint/markdown'));
@@ -16284,6 +17133,7 @@ async function markdown(options = {}) {
16284
17133
  }
16285
17134
 
16286
17135
  // src/configs/mdx.ts
17136
+ init_esm_shims();
16287
17137
  async function mdx(options = {}) {
16288
17138
  const { files = [GLOB_MDX], overrides = {} } = options;
16289
17139
  await ensurePackages(["eslint-plugin-mdx"]);
@@ -16311,6 +17161,7 @@ async function mdx(options = {}) {
16311
17161
  }
16312
17162
 
16313
17163
  // src/configs/next.ts
17164
+ init_esm_shims();
16314
17165
  async function next(options = {}) {
16315
17166
  const { coreWebVitals = true, rootDir } = options;
16316
17167
  await ensurePackages(["@next/eslint-plugin-next"]);
@@ -16361,6 +17212,7 @@ async function next(options = {}) {
16361
17212
  }
16362
17213
 
16363
17214
  // src/configs/node.ts
17215
+ init_esm_shims();
16364
17216
  async function node() {
16365
17217
  return [
16366
17218
  {
@@ -16381,6 +17233,9 @@ async function node() {
16381
17233
  }
16382
17234
  ];
16383
17235
  }
17236
+
17237
+ // src/configs/nx.ts
17238
+ init_esm_shims();
16384
17239
  async function nx(options = {}) {
16385
17240
  const {
16386
17241
  depsCheck = false,
@@ -16447,6 +17302,7 @@ async function nx(options = {}) {
16447
17302
  }
16448
17303
 
16449
17304
  // src/configs/perfectionist.ts
17305
+ init_esm_shims();
16450
17306
  async function perfectionist() {
16451
17307
  return [
16452
17308
  {
@@ -16493,25 +17349,721 @@ async function perfectionist() {
16493
17349
  ];
16494
17350
  }
16495
17351
 
16496
- // ../eslint-plugin-pnpm/package.json
16497
- var package_default2 = {
16498
- version: "0.0.10"};
17352
+ // src/configs/pnpm.ts
17353
+ init_esm_shims();
16499
17354
 
16500
- // ../eslint-plugin-pnpm/src/plugin.ts
16501
- var plugin3 = {
16502
- ...base,
16503
- meta: {
16504
- name: "pnpm",
16505
- version: package_default2.version
16506
- }
16507
- };
17355
+ // ../eslint-plugin-pnpm/src/index.ts
17356
+ init_esm_shims();
17357
+
17358
+ // ../eslint-plugin-pnpm/src/configs/index.ts
17359
+ init_esm_shims();
16508
17360
 
16509
17361
  // ../eslint-plugin-pnpm/src/configs/recommended.ts
16510
- var config3 = [
16511
- {
16512
- name: "pnpm/recommended/setup",
16513
- plugins: {
17362
+ init_esm_shims();
17363
+
17364
+ // ../eslint-plugin-pnpm/src/plugin.ts
17365
+ init_esm_shims();
17366
+
17367
+ // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_9a83dbe288d598de72c3e754ec4675de/node_modules/eslint-plugin-pnpm/dist/index.mjs
17368
+ init_esm_shims();
17369
+ var name2 = "eslint-plugin-pnpm";
17370
+ var version3 = "0.3.0";
17371
+ var blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
17372
+ function RuleCreator3(urlCreator) {
17373
+ return function createNamedRule({
17374
+ name: name3,
17375
+ meta: meta3,
17376
+ ...rule
17377
+ }) {
17378
+ return createRule3({
17379
+ meta: {
17380
+ ...meta3,
17381
+ docs: {
17382
+ ...meta3.docs,
17383
+ url: urlCreator(name3)
17384
+ }
17385
+ },
17386
+ ...rule
17387
+ });
17388
+ };
17389
+ }
17390
+ function createRule3({
17391
+ create,
17392
+ defaultOptions,
17393
+ meta: meta3
17394
+ }) {
17395
+ return {
17396
+ create: (context) => {
17397
+ const optionsWithDefault = context.options.map((options, index) => {
17398
+ return {
17399
+ ...defaultOptions[index] || {},
17400
+ ...options || {}
17401
+ };
17402
+ });
17403
+ return create(context, optionsWithDefault);
17404
+ },
17405
+ defaultOptions,
17406
+ meta: meta3
17407
+ };
17408
+ }
17409
+ var createEslintRule = RuleCreator3(
17410
+ (ruleName) => `${blobUrl}${ruleName}.test.ts`
17411
+ );
17412
+ function getPackageJsonRootNode(context) {
17413
+ if (!context.filename.endsWith("package.json"))
17414
+ return;
17415
+ const ast = context.sourceCode.ast;
17416
+ const root = ast.body[0];
17417
+ if (root.expression.type === "JSONObjectExpression")
17418
+ return root.expression;
17419
+ }
17420
+ function* iterateDependencies(context, fields) {
17421
+ const root = getPackageJsonRootNode(context);
17422
+ if (!root)
17423
+ return;
17424
+ for (const fieldName of fields) {
17425
+ const path23 = fieldName.split(".");
17426
+ let node2 = root;
17427
+ for (let i = 0; i < path23.length; i++) {
17428
+ const item = node2.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === path23[i]);
17429
+ if (!item?.value || item.value.type !== "JSONObjectExpression") {
17430
+ node2 = void 0;
17431
+ break;
17432
+ }
17433
+ node2 = item.value;
17434
+ }
17435
+ if (!node2 || node2 === root)
17436
+ continue;
17437
+ for (const property of node2.properties) {
17438
+ if (property.value.type !== "JSONLiteral" || property.key.type !== "JSONLiteral")
17439
+ continue;
17440
+ if (typeof property.value.value !== "string")
17441
+ continue;
17442
+ const packageName = String(property.key.value);
17443
+ const specifier = String(property.value.value);
17444
+ yield {
17445
+ packageName,
17446
+ specifier,
17447
+ property
17448
+ };
17449
+ }
17450
+ }
17451
+ }
17452
+ function readPnpmWorkspace() {
17453
+ const filepath = findUpSync("pnpm-workspace.yaml", { cwd: process2.cwd() });
17454
+ if (!filepath)
17455
+ throw new Error("pnpm-workspace.yaml not found");
17456
+ const content = fs3.readFileSync(filepath, "utf-8");
17457
+ const workspace2 = parsePnpmWorkspaceYaml(content);
17458
+ let queueTimer;
17459
+ const queue = [];
17460
+ const write = () => {
17461
+ fs3.writeFileSync(filepath, workspace2.toString());
17462
+ };
17463
+ const hasQueue = () => queueTimer != null;
17464
+ const queueChange = (fn, order) => {
17465
+ if (order === "pre")
17466
+ queue.unshift(fn);
17467
+ else
17468
+ queue.push(fn);
17469
+ if (queueTimer != null)
17470
+ clearTimeout(queueTimer);
17471
+ queueTimer = setTimeout(() => {
17472
+ queueTimer = void 0;
17473
+ const clone2 = [...queue];
17474
+ queue.length = 0;
17475
+ for (const fn2 of clone2)
17476
+ fn2(workspace2);
17477
+ if (workspace2.hasChanged())
17478
+ write();
17479
+ }, 1e3);
17480
+ };
17481
+ return {
17482
+ filepath,
17483
+ ...workspace2,
17484
+ hasQueue,
17485
+ queueChange
17486
+ };
17487
+ }
17488
+ var WORKSPACE_CACHE_TIME = 1e4;
17489
+ var workspaceLastRead;
17490
+ var workspace;
17491
+ function getPnpmWorkspace() {
17492
+ if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
17493
+ workspace = void 0;
17494
+ }
17495
+ if (!workspace) {
17496
+ workspace = readPnpmWorkspace();
17497
+ workspaceLastRead = Date.now();
17498
+ }
17499
+ return workspace;
17500
+ }
17501
+ var RULE_NAME$4 = "json-enforce-catalog";
17502
+ var DEFAULT_FIELDS$1 = [
17503
+ "dependencies",
17504
+ "devDependencies"
17505
+ ];
17506
+ var IGNORED_DEPENDENCIES = [
17507
+ "typescript"
17508
+ ];
17509
+ var enforceCatalog = createEslintRule({
17510
+ name: RULE_NAME$4,
17511
+ meta: {
17512
+ type: "layout",
17513
+ docs: {
17514
+ description: 'Enforce using "catalog:" in `package.json`'
17515
+ },
17516
+ fixable: "code",
17517
+ schema: [
17518
+ {
17519
+ type: "object",
17520
+ properties: {
17521
+ allowedProtocols: {
17522
+ type: "array",
17523
+ description: "Allowed protocols in specifier to not be converted to catalog",
17524
+ items: {
17525
+ type: "string"
17526
+ }
17527
+ },
17528
+ autofix: {
17529
+ type: "boolean",
17530
+ description: "Whether to autofix the linting error",
17531
+ default: true
17532
+ },
17533
+ defaultCatalog: {
17534
+ type: "string",
17535
+ description: "Default catalog to use when moving version to catalog with autofix"
17536
+ },
17537
+ reuseExistingCatalog: {
17538
+ type: "boolean",
17539
+ description: "Whether to reuse existing catalog when moving version to catalog with autofix",
17540
+ default: true
17541
+ },
17542
+ conflicts: {
17543
+ type: "string",
17544
+ description: "Strategy to handle conflicts when adding packages to catalogs",
17545
+ enum: ["new-catalog", "overrides", "error"],
17546
+ default: "new-catalog"
17547
+ },
17548
+ fields: {
17549
+ type: "array",
17550
+ description: "Fields to check for catalog",
17551
+ items: { type: "string" },
17552
+ default: DEFAULT_FIELDS$1
17553
+ },
17554
+ ignore: {
17555
+ type: "array",
17556
+ description: "A list of dependencies to ignore",
17557
+ items: { type: "string" },
17558
+ default: IGNORED_DEPENDENCIES
17559
+ }
17560
+ },
17561
+ additionalProperties: false
17562
+ }
17563
+ ],
17564
+ messages: {
17565
+ expectCatalog: 'Expect to use catalog instead of plain specifier, got "{{specifier}}" for package "{{packageName}}".'
17566
+ }
17567
+ },
17568
+ defaultOptions: [{}],
17569
+ create(context, [options]) {
17570
+ const {
17571
+ allowedProtocols = ["workspace", "link", "file"],
17572
+ defaultCatalog = "default",
17573
+ autofix = true,
17574
+ reuseExistingCatalog = true,
17575
+ conflicts = "new-catalog",
17576
+ fields = DEFAULT_FIELDS$1,
17577
+ ignore: ignore2 = IGNORED_DEPENDENCIES
17578
+ } = options || {};
17579
+ for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
17580
+ if (ignore2?.some((i) => i === packageName))
17581
+ continue;
17582
+ if (specifier.startsWith("catalog:"))
17583
+ continue;
17584
+ if (allowedProtocols?.some((p) => specifier.startsWith(p)))
17585
+ continue;
17586
+ const workspace2 = getPnpmWorkspace();
17587
+ if (!workspace2)
17588
+ return {};
17589
+ let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
17590
+ const resolvedConflicts = workspace2.hasSpecifierConflicts(
17591
+ targetCatalog,
17592
+ packageName,
17593
+ specifier
17594
+ );
17595
+ let shouldFix = autofix;
17596
+ if (conflicts === "error") {
17597
+ if (resolvedConflicts.conflicts) {
17598
+ shouldFix = false;
17599
+ }
17600
+ }
17601
+ if (conflicts === "new-catalog" && resolvedConflicts.conflicts) {
17602
+ targetCatalog = resolvedConflicts.newCatalogName;
17603
+ }
17604
+ context.report({
17605
+ node: property.value,
17606
+ messageId: "expectCatalog",
17607
+ data: {
17608
+ specifier,
17609
+ packageName
17610
+ },
17611
+ fix: shouldFix ? (fixer) => {
17612
+ workspace2.queueChange(() => {
17613
+ workspace2.setPackage(targetCatalog, packageName, specifier);
17614
+ });
17615
+ return fixer.replaceText(
17616
+ property.value,
17617
+ targetCatalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${targetCatalog}`)
17618
+ );
17619
+ } : void 0
17620
+ });
17621
+ }
17622
+ return {};
17623
+ }
17624
+ });
17625
+ var RULE_NAME$3 = "json-prefer-workspace-settings";
17626
+ var preferWorkspaceSettings = createEslintRule({
17627
+ name: RULE_NAME$3,
17628
+ meta: {
17629
+ type: "layout",
17630
+ docs: {
17631
+ 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."
17632
+ },
17633
+ fixable: "code",
17634
+ schema: [
17635
+ {
17636
+ type: "object",
17637
+ properties: {
17638
+ autofix: {
17639
+ type: "boolean",
17640
+ description: "Whether to autofix the linting error",
17641
+ default: true
17642
+ }
17643
+ },
17644
+ additionalProperties: false
17645
+ }
17646
+ ],
17647
+ messages: {
17648
+ unexpectedPnpmSettings: "Unexpected pnpm settings in package.json, should move to pnpm-workspace.yaml"
17649
+ }
17650
+ },
17651
+ defaultOptions: [{}],
17652
+ create(context, [options = {}]) {
17653
+ const {
17654
+ autofix = true
17655
+ } = options || {};
17656
+ const root = getPackageJsonRootNode(context);
17657
+ if (!root)
17658
+ return {};
17659
+ const pnpmNode = root.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === "pnpm");
17660
+ if (!pnpmNode)
17661
+ return {};
17662
+ const workspace2 = getPnpmWorkspace();
17663
+ if (!workspace2)
17664
+ return {};
17665
+ context.report({
17666
+ node: pnpmNode,
17667
+ messageId: "unexpectedPnpmSettings",
17668
+ fix: autofix ? (fixer) => {
17669
+ const json = JSON.parse(context.sourceCode.text);
17670
+ const pnpmSettings = json.pnpm;
17671
+ const flatValueParis = [];
17672
+ function traverse(value, paths) {
17673
+ if (typeof value === "object" && value !== null && !Array.isArray(value)) {
17674
+ for (const key in value) {
17675
+ traverse(value[key], [...paths, key]);
17676
+ }
17677
+ } else {
17678
+ flatValueParis.push([paths, value]);
17679
+ }
17680
+ }
17681
+ traverse(pnpmSettings, []);
17682
+ workspace2.queueChange(() => {
17683
+ for (const [paths, value] of flatValueParis) {
17684
+ workspace2.setPath(paths, value);
17685
+ }
17686
+ });
17687
+ let start = pnpmNode.range[0];
17688
+ let end = pnpmNode.range[1];
17689
+ const before = context.sourceCode.getTokenBefore(pnpmNode);
17690
+ if (before)
17691
+ start = before.range[1];
17692
+ const after = context.sourceCode.getTokenAfter(pnpmNode);
17693
+ if (after?.type === "Punctuator" && after.value === ",")
17694
+ end = after.range[1];
17695
+ return fixer.removeRange([start, end]);
17696
+ } : void 0
17697
+ });
17698
+ return {};
17699
+ }
17700
+ });
17701
+ var RULE_NAME$2 = "json-valid-catalog";
17702
+ var DEFAULT_FIELDS = [
17703
+ "dependencies",
17704
+ "devDependencies",
17705
+ "optionalDependencies",
17706
+ "peerDependencies",
17707
+ "resolutions",
17708
+ "overrides",
17709
+ "pnpm.overrides"
17710
+ ];
17711
+ var validCatalog = createEslintRule({
17712
+ name: RULE_NAME$2,
17713
+ meta: {
17714
+ type: "layout",
17715
+ docs: {
17716
+ description: "Enforce using valid catalog in `package.json`"
17717
+ },
17718
+ fixable: "code",
17719
+ schema: [
17720
+ {
17721
+ type: "object",
17722
+ properties: {
17723
+ autoInsert: {
17724
+ type: "boolean",
17725
+ description: "Whether to auto insert to catalog if missing",
17726
+ default: true
17727
+ },
17728
+ autoInsertDefaultSpecifier: {
17729
+ type: "string",
17730
+ description: "Default specifier to use when auto inserting to catalog",
17731
+ default: "^0.0.0"
17732
+ },
17733
+ autofix: {
17734
+ type: "boolean",
17735
+ description: "Whether to autofix the linting error",
17736
+ default: true
17737
+ },
17738
+ enforceNoConflict: {
17739
+ type: "boolean",
17740
+ description: "Whether to enforce no conflicts when adding packages to catalogs (will create version-specific catalogs)",
17741
+ default: true
17742
+ },
17743
+ fields: {
17744
+ type: "array",
17745
+ description: "Fields to check for catalog",
17746
+ default: DEFAULT_FIELDS
17747
+ }
17748
+ },
17749
+ additionalProperties: false
17750
+ }
17751
+ ],
17752
+ messages: {
17753
+ invalidCatalog: 'Catalog "{{specifier}}" for package "{{packageName}}" is not defined in `pnpm-workspace.yaml`.'
17754
+ }
17755
+ },
17756
+ defaultOptions: [{}],
17757
+ create(context, [options = {}]) {
17758
+ const {
17759
+ autoInsert = true,
17760
+ autofix = true,
17761
+ autoInsertDefaultSpecifier = "^0.0.0",
17762
+ fields = DEFAULT_FIELDS
17763
+ } = options || {};
17764
+ for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
17765
+ if (!specifier.startsWith("catalog:"))
17766
+ continue;
17767
+ const workspace2 = getPnpmWorkspace();
17768
+ if (!workspace2)
17769
+ return {};
17770
+ const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
17771
+ const existingCatalogs = workspace2.getPackageCatalogs(packageName);
17772
+ if (!existingCatalogs.includes(currentCatalog)) {
17773
+ context.report({
17774
+ node: property.value,
17775
+ messageId: "invalidCatalog",
17776
+ data: {
17777
+ specifier,
17778
+ packageName
17779
+ },
17780
+ fix: !autofix || !autoInsert && !existingCatalogs.length ? void 0 : (fixer) => {
17781
+ let catalog = existingCatalogs[0];
17782
+ if (!catalog && autoInsert) {
17783
+ catalog = currentCatalog;
17784
+ workspace2.queueChange(() => {
17785
+ workspace2.setPackage(catalog, packageName, autoInsertDefaultSpecifier);
17786
+ }, "pre");
17787
+ }
17788
+ return fixer.replaceText(
17789
+ property.value,
17790
+ catalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${catalog}`)
17791
+ );
17792
+ }
17793
+ });
17794
+ }
17795
+ }
17796
+ return {};
17797
+ }
17798
+ });
17799
+ var rules$2 = {
17800
+ "json-enforce-catalog": enforceCatalog,
17801
+ "json-valid-catalog": validCatalog,
17802
+ "json-prefer-workspace-settings": preferWorkspaceSettings
17803
+ };
17804
+ var RULE_NAME$1 = "yaml-no-duplicate-catalog-item";
17805
+ var noDuplicateCatalogItem = createEslintRule({
17806
+ name: RULE_NAME$1,
17807
+ meta: {
17808
+ type: "problem",
17809
+ docs: {
17810
+ description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
17811
+ },
17812
+ fixable: "code",
17813
+ schema: [
17814
+ {
17815
+ type: "object",
17816
+ properties: {
17817
+ allow: {
17818
+ type: "array",
17819
+ items: { type: "string" }
17820
+ }
17821
+ },
17822
+ additionalProperties: false
17823
+ }
17824
+ ],
17825
+ messages: {
17826
+ duplicateCatalogItem: 'Catalog item "{{name}}" is already defined in the "{{existingCatalog}}" catalog. You may want to remove one of them.'
17827
+ }
17828
+ },
17829
+ defaultOptions: [{}],
17830
+ create(context, [options = {}]) {
17831
+ if (basename(context.filename) !== "pnpm-workspace.yaml")
17832
+ return {};
17833
+ const workspace2 = getPnpmWorkspace();
17834
+ if (!workspace2 || normalize$1(workspace2.filepath) !== normalize$1(context.filename))
17835
+ return {};
17836
+ if (workspace2.hasChanged() || workspace2.hasQueue())
17837
+ return {};
17838
+ const { allow = [] } = options;
17839
+ workspace2.setContent(context.sourceCode.text);
17840
+ const json = workspace2.toJSON() || {};
17841
+ const exists = /* @__PURE__ */ new Map();
17842
+ const catalogs = {
17843
+ ...json.catalogs,
17844
+ default: json.catalog
17845
+ };
17846
+ const doc = workspace2.getDocument();
17847
+ for (const [catalog, object2] of Object.entries(catalogs)) {
17848
+ if (!object2)
17849
+ continue;
17850
+ for (const key of Object.keys(object2)) {
17851
+ if (allow.includes(key))
17852
+ continue;
17853
+ if (exists.has(key)) {
17854
+ const existingCatalog = exists.get(key);
17855
+ const node2 = doc.getIn(catalog === "default" ? ["catalog", key] : ["catalogs", catalog, key], true);
17856
+ const start = context.sourceCode.getLocFromIndex(node2.range[0]);
17857
+ const end = context.sourceCode.getLocFromIndex(node2.range[1]);
17858
+ context.report({
17859
+ loc: {
17860
+ start,
17861
+ end
17862
+ },
17863
+ messageId: "duplicateCatalogItem",
17864
+ data: {
17865
+ name: key,
17866
+ currentCatalog: catalog,
17867
+ existingCatalog
17868
+ }
17869
+ });
17870
+ } else {
17871
+ exists.set(key, catalog);
17872
+ }
17873
+ }
17874
+ }
17875
+ return {};
17876
+ }
17877
+ });
17878
+ var RULE_NAME2 = "yaml-no-unused-catalog-item";
17879
+ var noUnusedCatalogItem = createEslintRule({
17880
+ name: RULE_NAME2,
17881
+ meta: {
17882
+ type: "problem",
17883
+ docs: {
17884
+ description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
17885
+ },
17886
+ fixable: "code",
17887
+ schema: [],
17888
+ messages: {
17889
+ unusedCatalogItem: 'Catalog item "{{catalogItem}}" is not used in any package.json.'
17890
+ }
17891
+ },
17892
+ defaultOptions: [],
17893
+ create(context) {
17894
+ if (basename(context.filename) !== "pnpm-workspace.yaml")
17895
+ return {};
17896
+ const workspace2 = getPnpmWorkspace();
17897
+ if (!workspace2 || normalize$1(workspace2.filepath) !== normalize$1(context.filename))
17898
+ return {};
17899
+ if (workspace2.hasChanged() || workspace2.hasQueue())
17900
+ return {};
17901
+ workspace2.setContent(context.sourceCode.text);
17902
+ const parsed = workspace2.toJSON() || {};
17903
+ const root = resolve$1(dirname(context.filename));
17904
+ const entries = /* @__PURE__ */ new Map();
17905
+ const doc = workspace2.getDocument();
17906
+ const catalogs = {
17907
+ default: doc.getIn(["catalog"])
17908
+ };
17909
+ for (const item of doc.getIn(["catalogs"])?.items || [])
17910
+ catalogs[String(item.key)] = item.value;
17911
+ for (const [catalog, map] of Object.entries(catalogs)) {
17912
+ if (!map)
17913
+ continue;
17914
+ for (const item of map.items) {
17915
+ entries.set(`${String(item.key)}:${catalog}`, item);
17916
+ }
17917
+ }
17918
+ if (entries.size === 0)
17919
+ return {};
17920
+ const dirs = parsed.packages ? globSync(parsed.packages, {
17921
+ cwd: root,
17922
+ dot: false,
17923
+ ignore: [
17924
+ "**/node_modules/**",
17925
+ "**/dist/**",
17926
+ "**/build/**",
17927
+ "**/dist/**",
17928
+ "**/dist/**"
17929
+ ],
17930
+ absolute: true,
17931
+ expandDirectories: false,
17932
+ onlyDirectories: true
17933
+ }) : [];
17934
+ dirs.push(root);
17935
+ const packages = dirs.map((dir) => resolve$1(dir, "package.json")).filter((x) => existsSync(x)).sort();
17936
+ const FIELDS = [
17937
+ "dependencies",
17938
+ "devDependencies",
17939
+ "peerDependencies",
17940
+ "optionalDependencies",
17941
+ "overrides",
17942
+ "resolutions",
17943
+ "pnpm.overrides"
17944
+ ];
17945
+ for (const path23 of packages) {
17946
+ const pkg = JSON.parse(readFileSync(path23, "utf-8"));
17947
+ for (const field of FIELDS) {
17948
+ const map = getObjectPath(pkg, field.split("."));
17949
+ if (!map)
17950
+ continue;
17951
+ for (const [name3, value] of Object.entries(map)) {
17952
+ if (!value.startsWith("catalog:"))
17953
+ continue;
17954
+ const catalog = value.slice(8) || "default";
17955
+ const key = `${name3}:${catalog}`;
17956
+ entries.delete(key);
17957
+ }
17958
+ }
17959
+ }
17960
+ if (entries.size > 0) {
17961
+ for (const [key, value] of Array.from(entries.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
17962
+ const start = context.sourceCode.getLocFromIndex(value.key.range[0]);
17963
+ const end = context.sourceCode.getLocFromIndex(value.value.range.at(-1));
17964
+ context.report({
17965
+ loc: {
17966
+ start,
17967
+ end
17968
+ },
17969
+ messageId: "unusedCatalogItem",
17970
+ data: { catalogItem: key }
17971
+ });
17972
+ }
17973
+ }
17974
+ return {};
17975
+ }
17976
+ });
17977
+ function getObjectPath(obj, path23) {
17978
+ let current = obj;
17979
+ for (const key of path23) {
17980
+ current = current[key];
17981
+ if (!current)
17982
+ return void 0;
17983
+ }
17984
+ return current;
17985
+ }
17986
+ var rules$1 = {
17987
+ "yaml-no-unused-catalog-item": noUnusedCatalogItem,
17988
+ "yaml-no-duplicate-catalog-item": noDuplicateCatalogItem
17989
+ };
17990
+ var rules3 = {
17991
+ ...rules$2,
17992
+ ...rules$1
17993
+ };
17994
+ var plugin3 = {
17995
+ meta: {
17996
+ name: name2,
17997
+ version: version3
17998
+ },
17999
+ rules: rules3
18000
+ };
18001
+ var configsJson = [
18002
+ {
18003
+ name: "pnpm/package.json",
18004
+ files: [
18005
+ "package.json",
18006
+ "**/package.json"
18007
+ ],
18008
+ languageOptions: {
18009
+ parser: jsoncParser
18010
+ },
18011
+ plugins: {
18012
+ pnpm: plugin3
18013
+ },
18014
+ rules: {
18015
+ "pnpm/json-enforce-catalog": "error",
18016
+ "pnpm/json-valid-catalog": "error",
18017
+ "pnpm/json-prefer-workspace-settings": "error"
18018
+ }
18019
+ }
18020
+ ];
18021
+ var configsYaml = [
18022
+ {
18023
+ name: "pnpm/pnpm-workspace-yaml",
18024
+ files: ["pnpm-workspace.yaml"],
18025
+ languageOptions: {
18026
+ parser: yamlParser
18027
+ },
18028
+ plugins: {
16514
18029
  pnpm: plugin3
18030
+ },
18031
+ rules: {
18032
+ "pnpm/yaml-no-unused-catalog-item": "error",
18033
+ "pnpm/yaml-no-duplicate-catalog-item": "error"
18034
+ }
18035
+ }
18036
+ ];
18037
+ var configs3 = {
18038
+ recommended: [
18039
+ ...configsJson
18040
+ // Yaml support is still experimental
18041
+ // ...configsYaml,
18042
+ ],
18043
+ json: configsJson,
18044
+ yaml: configsYaml
18045
+ };
18046
+ plugin3.configs = configs3;
18047
+
18048
+ // ../eslint-plugin-pnpm/package.json
18049
+ var package_default2 = {
18050
+ version: "0.0.12"};
18051
+
18052
+ // ../eslint-plugin-pnpm/src/plugin.ts
18053
+ var plugin4 = {
18054
+ ...plugin3,
18055
+ meta: {
18056
+ name: "pnpm",
18057
+ version: package_default2.version
18058
+ }
18059
+ };
18060
+
18061
+ // ../eslint-plugin-pnpm/src/configs/recommended.ts
18062
+ var config3 = [
18063
+ {
18064
+ name: "pnpm/recommended/setup",
18065
+ plugins: {
18066
+ pnpm: plugin4
16515
18067
  }
16516
18068
  },
16517
18069
  {
@@ -16519,7 +18071,7 @@ var config3 = [
16519
18071
  ignores: GLOB_EXCLUDE,
16520
18072
  files: ["package.json", "**/package.json"],
16521
18073
  languageOptions: {
16522
- parser: parserJsonc
18074
+ parser: jsoncParser__default
16523
18075
  },
16524
18076
  rules: {
16525
18077
  "pnpm/json-enforce-catalog": [
@@ -16542,7 +18094,7 @@ var config3 = [
16542
18094
  ignores: GLOB_EXCLUDE,
16543
18095
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
16544
18096
  languageOptions: {
16545
- parser: parserYaml
18097
+ parser: yamlParser__default
16546
18098
  },
16547
18099
  rules: {
16548
18100
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -16553,17 +18105,17 @@ var config3 = [
16553
18105
  var recommended_default4 = config3;
16554
18106
 
16555
18107
  // ../eslint-plugin-pnpm/src/configs/index.ts
16556
- var configs3 = {
18108
+ var configs4 = {
16557
18109
  recommended: recommended_default4
16558
18110
  };
16559
18111
 
16560
18112
  // ../eslint-plugin-pnpm/src/index.ts
16561
18113
  var eslintPlugin2 = {
16562
- ...plugin3,
16563
- configs: configs3
18114
+ ...plugin4,
18115
+ configs: configs4
16564
18116
  };
16565
18117
  var src_default2 = eslintPlugin2;
16566
- plugin3.rules;
18118
+ plugin4.rules;
16567
18119
  async function pnpm(options = {}) {
16568
18120
  const {
16569
18121
  overrides = {},
@@ -16662,6 +18214,9 @@ async function pnpm(options = {}) {
16662
18214
  }
16663
18215
  ];
16664
18216
  }
18217
+
18218
+ // src/configs/prettier.ts
18219
+ init_esm_shims();
16665
18220
  async function prettier() {
16666
18221
  return [
16667
18222
  defu(
@@ -16680,6 +18235,9 @@ async function prettier() {
16680
18235
  )
16681
18236
  ];
16682
18237
  }
18238
+
18239
+ // src/configs/react.ts
18240
+ init_esm_shims();
16683
18241
  var ReactRefreshAllowConstantExportPackages = ["vite"];
16684
18242
  var ReactRouterPackages = [
16685
18243
  "@react-router/node",
@@ -16852,6 +18410,7 @@ async function react(options = {}) {
16852
18410
  }
16853
18411
 
16854
18412
  // src/configs/react-native.ts
18413
+ init_esm_shims();
16855
18414
  async function reactNative(options = {}) {
16856
18415
  const { overrides = {} } = options;
16857
18416
  await ensurePackages(["eslint-plugin-react-native"]);
@@ -16870,14 +18429,17 @@ async function reactNative(options = {}) {
16870
18429
  }
16871
18430
  ];
16872
18431
  }
18432
+
18433
+ // src/configs/regexp.ts
18434
+ init_esm_shims();
16873
18435
  async function regexp(options = {}) {
16874
18436
  const config5 = configs$1["flat/recommended"];
16875
- const rules4 = {
18437
+ const rules5 = {
16876
18438
  ...config5.rules
16877
18439
  };
16878
18440
  if (options.level === "warn") {
16879
- for (const key in rules4) {
16880
- if (rules4[key] === "error") rules4[key] = "warn";
18441
+ for (const key in rules5) {
18442
+ if (rules5[key] === "error") rules5[key] = "warn";
16881
18443
  }
16882
18444
  }
16883
18445
  return [
@@ -16885,7 +18447,7 @@ async function regexp(options = {}) {
16885
18447
  ...config5,
16886
18448
  name: "storm/regexp/rules",
16887
18449
  rules: {
16888
- ...rules4,
18450
+ ...rules5,
16889
18451
  "regexp/no-unused-capturing-group": [
16890
18452
  "error",
16891
18453
  {
@@ -16900,6 +18462,7 @@ async function regexp(options = {}) {
16900
18462
  }
16901
18463
 
16902
18464
  // src/configs/secrets.ts
18465
+ init_esm_shims();
16903
18466
  async function secrets(options) {
16904
18467
  const { json = true } = options;
16905
18468
  if (json) {
@@ -16923,6 +18486,7 @@ async function secrets(options) {
16923
18486
  }
16924
18487
 
16925
18488
  // src/configs/sort.ts
18489
+ init_esm_shims();
16926
18490
  async function sortPackageJson() {
16927
18491
  return [
16928
18492
  {
@@ -17148,6 +18712,7 @@ function sortTsconfig() {
17148
18712
  }
17149
18713
 
17150
18714
  // src/configs/storybook.ts
18715
+ init_esm_shims();
17151
18716
  async function storybook(options = {}) {
17152
18717
  const { csf = "loose" } = options;
17153
18718
  await ensurePackages(["eslint-plugin-storybook"]);
@@ -17203,10 +18768,11 @@ async function storybook(options = {}) {
17203
18768
  }
17204
18769
 
17205
18770
  // src/configs/test.ts
17206
- var plugin4;
18771
+ init_esm_shims();
18772
+ var plugin5;
17207
18773
  async function test(options = {}) {
17208
18774
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
17209
- plugin4 = plugin4 || {
18775
+ plugin5 = plugin5 || {
17210
18776
  ...default4,
17211
18777
  rules: {
17212
18778
  ...default4.rules,
@@ -17218,7 +18784,7 @@ async function test(options = {}) {
17218
18784
  {
17219
18785
  name: "storm/test/setup",
17220
18786
  plugins: {
17221
- test: plugin4
18787
+ test: plugin5
17222
18788
  }
17223
18789
  },
17224
18790
  {
@@ -17252,6 +18818,7 @@ async function test(options = {}) {
17252
18818
  }
17253
18819
 
17254
18820
  // src/configs/toml.ts
18821
+ init_esm_shims();
17255
18822
  async function toml(options = {}) {
17256
18823
  const { files = [GLOB_TOML], overrides = {}, stylistic: stylistic2 = true } = options;
17257
18824
  const { indent = 2 } = typeof stylistic2 === "boolean" ? {} : stylistic2;
@@ -17300,6 +18867,10 @@ async function toml(options = {}) {
17300
18867
  }
17301
18868
  ];
17302
18869
  }
18870
+
18871
+ // src/configs/tsdoc.ts
18872
+ init_esm_shims();
18873
+ var import_eslint_plugin_tsdoc = __toESM(require_lib(), 1);
17303
18874
  async function tsdoc(options = {}) {
17304
18875
  const {
17305
18876
  severity = "error",
@@ -17312,7 +18883,7 @@ async function tsdoc(options = {}) {
17312
18883
  files,
17313
18884
  name: "storm/tsdoc/rules",
17314
18885
  plugins: {
17315
- tsdoc: pluginTsdoc
18886
+ tsdoc: import_eslint_plugin_tsdoc.default
17316
18887
  },
17317
18888
  rules: {
17318
18889
  "tsdoc/syntax": [severity, { type, configFile }]
@@ -17322,6 +18893,7 @@ async function tsdoc(options = {}) {
17322
18893
  }
17323
18894
 
17324
18895
  // src/configs/typescript.ts
18896
+ init_esm_shims();
17325
18897
  async function typescript(options = {}) {
17326
18898
  const {
17327
18899
  componentExts = [],
@@ -17595,6 +19167,7 @@ async function typescript(options = {}) {
17595
19167
  }
17596
19168
 
17597
19169
  // src/configs/unicorn.ts
19170
+ init_esm_shims();
17598
19171
  async function unicorn(options = {}) {
17599
19172
  return [
17600
19173
  {
@@ -17645,6 +19218,7 @@ async function unicorn(options = {}) {
17645
19218
  }
17646
19219
 
17647
19220
  // src/configs/unocss.ts
19221
+ init_esm_shims();
17648
19222
  async function unocss(options = {}) {
17649
19223
  const { attributify = true, strict = false } = options;
17650
19224
  await ensurePackages(["@unocss/eslint-plugin"]);
@@ -17671,6 +19245,7 @@ async function unocss(options = {}) {
17671
19245
  }
17672
19246
 
17673
19247
  // src/configs/yaml.ts
19248
+ init_esm_shims();
17674
19249
  async function yaml(options = {}) {
17675
19250
  const { files = [GLOB_YAML], overrides = {}, stylistic: stylistic2 = true } = options;
17676
19251
  const { indent = 2, quotes = "single" } = typeof stylistic2 === "boolean" ? {} : stylistic2;
@@ -17729,6 +19304,7 @@ async function yaml(options = {}) {
17729
19304
  }
17730
19305
 
17731
19306
  // src/configs/zod.ts
19307
+ init_esm_shims();
17732
19308
  async function zod(options = {}) {
17733
19309
  const { overrides = {} } = options;
17734
19310
  return [
@@ -17777,7 +19353,7 @@ function getOverrides(options, key) {
17777
19353
  }
17778
19354
  function getStormConfig(options, ...userConfigs) {
17779
19355
  const {
17780
- name: name2,
19356
+ name: name3,
17781
19357
  globals = {},
17782
19358
  banner: enableBanner = true,
17783
19359
  astro: enableAstro = false,
@@ -17813,10 +19389,10 @@ function getStormConfig(options, ...userConfigs) {
17813
19389
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
17814
19390
  stylisticOptions.jsx = enableJsx;
17815
19391
  }
17816
- const configs5 = [];
19392
+ const configs6 = [];
17817
19393
  if (enableGitignore) {
17818
19394
  if (typeof enableGitignore !== "boolean") {
17819
- configs5.push(
19395
+ configs6.push(
17820
19396
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
17821
19397
  r({
17822
19398
  name: "storm/gitignore",
@@ -17825,7 +19401,7 @@ function getStormConfig(options, ...userConfigs) {
17825
19401
  ])
17826
19402
  );
17827
19403
  } else {
17828
- configs5.push(
19404
+ configs6.push(
17829
19405
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
17830
19406
  r({
17831
19407
  name: "storm/gitignore",
@@ -17836,7 +19412,7 @@ function getStormConfig(options, ...userConfigs) {
17836
19412
  }
17837
19413
  }
17838
19414
  const typescriptOptions = resolveSubOptions(options, "typescript");
17839
- configs5.push(
19415
+ configs6.push(
17840
19416
  ignores(options.ignores),
17841
19417
  javascript({
17842
19418
  globals,
@@ -17851,25 +19427,25 @@ function getStormConfig(options, ...userConfigs) {
17851
19427
  secrets({ json: options.jsonc !== false })
17852
19428
  );
17853
19429
  if (enableBanner) {
17854
- configs5.push(
19430
+ configs6.push(
17855
19431
  banner({
17856
19432
  ...resolveSubOptions(options, "banner"),
17857
- name: name2,
19433
+ name: name3,
17858
19434
  overrides: getOverrides(options, "banner")
17859
19435
  })
17860
19436
  );
17861
19437
  }
17862
19438
  if (!stylisticOptions) {
17863
- configs5.push(prettier());
19439
+ configs6.push(prettier());
17864
19440
  }
17865
19441
  if (enableCSpell) {
17866
- configs5.push(cspell(resolveSubOptions(options, "cspell")));
19442
+ configs6.push(cspell(resolveSubOptions(options, "cspell")));
17867
19443
  }
17868
19444
  if (enableUnicorn) {
17869
- configs5.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
19445
+ configs6.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
17870
19446
  }
17871
19447
  if (enableJSDoc) {
17872
- configs5.push(
19448
+ configs6.push(
17873
19449
  jsdoc({
17874
19450
  ...resolveSubOptions(options, "jsdoc"),
17875
19451
  overrides: getOverrides(options, "jsdoc")
@@ -17877,7 +19453,7 @@ function getStormConfig(options, ...userConfigs) {
17877
19453
  );
17878
19454
  }
17879
19455
  if (enableTSDoc) {
17880
- configs5.push(
19456
+ configs6.push(
17881
19457
  tsdoc({
17882
19458
  ...resolveSubOptions(options, "tsdoc"),
17883
19459
  overrides: getOverrides(options, "tsdoc")
@@ -17885,10 +19461,10 @@ function getStormConfig(options, ...userConfigs) {
17885
19461
  );
17886
19462
  }
17887
19463
  if (enableJsx) {
17888
- configs5.push(jsx());
19464
+ configs6.push(jsx());
17889
19465
  }
17890
19466
  if (enableTypeScript) {
17891
- configs5.push(
19467
+ configs6.push(
17892
19468
  typescript({
17893
19469
  ...typescriptOptions,
17894
19470
  componentExts,
@@ -17898,14 +19474,14 @@ function getStormConfig(options, ...userConfigs) {
17898
19474
  );
17899
19475
  }
17900
19476
  if (enableZod) {
17901
- configs5.push(
19477
+ configs6.push(
17902
19478
  zod({
17903
19479
  overrides: getOverrides(options, "zod")
17904
19480
  })
17905
19481
  );
17906
19482
  }
17907
19483
  if (stylisticOptions) {
17908
- configs5.push(
19484
+ configs6.push(
17909
19485
  stylistic({
17910
19486
  ...stylisticOptions,
17911
19487
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -17915,10 +19491,10 @@ function getStormConfig(options, ...userConfigs) {
17915
19491
  );
17916
19492
  }
17917
19493
  if (enableRegexp) {
17918
- configs5.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
19494
+ configs6.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
17919
19495
  }
17920
19496
  if (enableTest) {
17921
- configs5.push(
19497
+ configs6.push(
17922
19498
  test({
17923
19499
  isInEditor,
17924
19500
  overrides: getOverrides(options, "test")
@@ -17926,10 +19502,10 @@ function getStormConfig(options, ...userConfigs) {
17926
19502
  );
17927
19503
  }
17928
19504
  if (enableGraphQL) {
17929
- configs5.push(graphql(resolveSubOptions(options, "graphql")));
19505
+ configs6.push(graphql(resolveSubOptions(options, "graphql")));
17930
19506
  }
17931
19507
  if (enableReact) {
17932
- configs5.push(
19508
+ configs6.push(
17933
19509
  react({
17934
19510
  ...typescriptOptions,
17935
19511
  overrides: getOverrides(options, "react"),
@@ -17938,7 +19514,7 @@ function getStormConfig(options, ...userConfigs) {
17938
19514
  );
17939
19515
  }
17940
19516
  if (enableReactNative) {
17941
- configs5.push(
19517
+ configs6.push(
17942
19518
  reactNative({
17943
19519
  ...resolveSubOptions(options, "react-native"),
17944
19520
  overrides: getOverrides(options, "react-native")
@@ -17946,13 +19522,13 @@ function getStormConfig(options, ...userConfigs) {
17946
19522
  );
17947
19523
  }
17948
19524
  if (enableNext) {
17949
- configs5.push(next(resolveSubOptions(options, "next")));
19525
+ configs6.push(next(resolveSubOptions(options, "next")));
17950
19526
  }
17951
19527
  if (enableStorybook) {
17952
- configs5.push(storybook(resolveSubOptions(options, "storybook")));
19528
+ configs6.push(storybook(resolveSubOptions(options, "storybook")));
17953
19529
  }
17954
19530
  if (enableUnoCSS) {
17955
- configs5.push(
19531
+ configs6.push(
17956
19532
  unocss({
17957
19533
  ...resolveSubOptions(options, "unocss"),
17958
19534
  overrides: getOverrides(options, "unocss")
@@ -17960,7 +19536,7 @@ function getStormConfig(options, ...userConfigs) {
17960
19536
  );
17961
19537
  }
17962
19538
  if (enableAstro) {
17963
- configs5.push(
19539
+ configs6.push(
17964
19540
  astro({
17965
19541
  overrides: getOverrides(options, "astro"),
17966
19542
  stylistic: stylisticOptions
@@ -17968,7 +19544,7 @@ function getStormConfig(options, ...userConfigs) {
17968
19544
  );
17969
19545
  }
17970
19546
  if (options.pnpm ?? true) {
17971
- configs5.push(
19547
+ configs6.push(
17972
19548
  pnpm({
17973
19549
  overrides: getOverrides(options, "pnpm"),
17974
19550
  ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
@@ -17976,7 +19552,7 @@ function getStormConfig(options, ...userConfigs) {
17976
19552
  );
17977
19553
  }
17978
19554
  if (options.jsonc ?? true) {
17979
- configs5.push(
19555
+ configs6.push(
17980
19556
  jsonc({
17981
19557
  overrides: getOverrides(options, "jsonc"),
17982
19558
  stylistic: stylisticOptions
@@ -17984,11 +19560,11 @@ function getStormConfig(options, ...userConfigs) {
17984
19560
  sortTsconfig()
17985
19561
  );
17986
19562
  if (stylisticOptions) {
17987
- configs5.push(sortPackageJson());
19563
+ configs6.push(sortPackageJson());
17988
19564
  }
17989
19565
  }
17990
19566
  if (options.yaml ?? true) {
17991
- configs5.push(
19567
+ configs6.push(
17992
19568
  yaml({
17993
19569
  overrides: getOverrides(options, "yaml"),
17994
19570
  stylistic: stylisticOptions
@@ -17996,7 +19572,7 @@ function getStormConfig(options, ...userConfigs) {
17996
19572
  );
17997
19573
  }
17998
19574
  if (options.toml ?? true) {
17999
- configs5.push(
19575
+ configs6.push(
18000
19576
  toml({
18001
19577
  overrides: getOverrides(options, "toml"),
18002
19578
  stylistic: stylisticOptions
@@ -18004,28 +19580,28 @@ function getStormConfig(options, ...userConfigs) {
18004
19580
  );
18005
19581
  }
18006
19582
  if (options.markdown === true) {
18007
- configs5.push(
19583
+ configs6.push(
18008
19584
  markdown({
18009
19585
  overrides: getOverrides(options, "markdown")
18010
19586
  })
18011
19587
  );
18012
19588
  }
18013
19589
  if (options.mdx ?? true) {
18014
- configs5.push(
19590
+ configs6.push(
18015
19591
  mdx({
18016
19592
  overrides: getOverrides(options, "mdx")
18017
19593
  })
18018
19594
  );
18019
19595
  }
18020
19596
  if (options.formatters) {
18021
- configs5.push(
19597
+ configs6.push(
18022
19598
  formatters(
18023
19599
  options.formatters,
18024
19600
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
18025
19601
  )
18026
19602
  );
18027
19603
  }
18028
- configs5.push(disables());
19604
+ configs6.push(disables());
18029
19605
  if ("files" in options) {
18030
19606
  throw new Error(
18031
19607
  '[@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.'
@@ -18037,10 +19613,10 @@ function getStormConfig(options, ...userConfigs) {
18037
19613
  }
18038
19614
  return acc;
18039
19615
  }, {});
18040
- if (Object.keys(fusedConfig).length) configs5.push([fusedConfig]);
19616
+ if (Object.keys(fusedConfig).length) configs6.push([fusedConfig]);
18041
19617
  let composer = new FlatConfigComposer();
18042
19618
  composer = composer.append(
18043
- ...configs5,
19619
+ ...configs6,
18044
19620
  ...userConfigs
18045
19621
  );
18046
19622
  if (autoRenamePlugins) {