@icebreakers/eslint-config 1.1.0 → 1.1.2

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/index.cjs CHANGED
@@ -31,20 +31,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  ));
32
32
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
33
 
34
- // ../../node_modules/.pnpm/tsup@8.4.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.3_typescript@5.8.2_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js
34
+ // ../../node_modules/.pnpm/tsup@8.4.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.3_typescript@5.8.3_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js
35
35
  var getImportMetaUrl, importMetaUrl;
36
36
  var init_cjs_shims = __esm({
37
- "../../node_modules/.pnpm/tsup@8.4.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.3_typescript@5.8.2_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js"() {
37
+ "../../node_modules/.pnpm/tsup@8.4.0_jiti@2.4.2_postcss@8.5.3_tsx@4.19.3_typescript@5.8.3_yaml@2.7.1/node_modules/tsup/assets/cjs_shims.js"() {
38
38
  "use strict";
39
39
  getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
40
40
  importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
41
41
  }
42
42
  });
43
43
 
44
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/base.js
44
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/base.js
45
45
  var base;
46
46
  var init_base = __esm({
47
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/base.js"() {
47
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/base.js"() {
48
48
  "use strict";
49
49
  init_cjs_shims();
50
50
  base = {
@@ -63,10 +63,10 @@ var init_base = __esm({
63
63
  }
64
64
  });
65
65
 
66
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/code-blocks.js
66
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/code-blocks.js
67
67
  var codeBlocks;
68
68
  var init_code_blocks = __esm({
69
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/code-blocks.js"() {
69
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/code-blocks.js"() {
70
70
  "use strict";
71
71
  init_cjs_shims();
72
72
  codeBlocks = {
@@ -89,16 +89,15 @@ var init_code_blocks = __esm({
89
89
  }
90
90
  });
91
91
 
92
- // ../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/helpers.js
93
- var import_node_fs, import_node_module, import_node_path, last, arrayify, getPhysicalFilename, loadEsmModule, getPositionAtFactory, normalizePosition, prevCharOffsetFactory, nextCharOffsetFactory, cjsRequire;
92
+ // ../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/helpers.js
93
+ var import_node_fs, import_node_module, import_node_path, arrayify, getPhysicalFilename, getPositionAtFactory, normalizePosition, prevCharOffsetFactory, nextCharOffsetFactory, cjsRequire;
94
94
  var init_helpers = __esm({
95
- "../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/helpers.js"() {
95
+ "../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/helpers.js"() {
96
96
  "use strict";
97
97
  init_cjs_shims();
98
98
  import_node_fs = __toESM(require("fs"), 1);
99
99
  import_node_module = require("module");
100
100
  import_node_path = __toESM(require("path"), 1);
101
- last = (items) => items && items[items.length - 1];
102
101
  arrayify = (...args) => args.reduce((arr, curr) => {
103
102
  arr.push(...Array.isArray(curr) ? curr : curr == null ? [] : [curr]);
104
103
  return arr;
@@ -116,9 +115,8 @@ var init_helpers = __esm({
116
115
  }
117
116
  return filename;
118
117
  };
119
- loadEsmModule = (modulePath) => new Function("modulePath", `return import(modulePath);`)(modulePath);
120
- getPositionAtFactory = (text) => {
121
- const lines = text.split("\n");
118
+ getPositionAtFactory = (code) => {
119
+ const lines = code.split("\n");
122
120
  return (offset) => {
123
121
  let currOffset = 0;
124
122
  for (const [index, line_] of lines.entries()) {
@@ -134,11 +132,11 @@ var init_helpers = __esm({
134
132
  }
135
133
  };
136
134
  };
137
- normalizePosition = ({ start, end, text }) => {
135
+ normalizePosition = ({ start, end, code }) => {
138
136
  const startOffset = start.offset;
139
137
  const endOffset = end.offset;
140
138
  const range = [startOffset, endOffset];
141
- const getPositionAt = text == null ? null : getPositionAtFactory(text);
139
+ const getPositionAt = code == null ? null : getPositionAtFactory(code);
142
140
  return {
143
141
  start: startOffset,
144
142
  end: endOffset,
@@ -149,9 +147,9 @@ var init_helpers = __esm({
149
147
  range
150
148
  };
151
149
  };
152
- prevCharOffsetFactory = (text) => (offset) => {
150
+ prevCharOffsetFactory = (code) => (offset) => {
153
151
  for (let i = offset; i >= 0; i--) {
154
- const char = text[i];
152
+ const char = code[i];
155
153
  if (/^\S$/.test(char)) {
156
154
  return i;
157
155
  }
@@ -168,14 +166,14 @@ var init_helpers = __esm({
168
166
  }
169
167
  };
170
168
  };
171
- cjsRequire = typeof require === "undefined" ? (0, import_node_module.createRequire)(importMetaUrl) : require;
169
+ cjsRequire = importMetaUrl ? (0, import_node_module.createRequire)(importMetaUrl) : require;
172
170
  }
173
171
  });
174
172
 
175
- // ../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/meta.js
173
+ // ../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/meta.js
176
174
  var pkg, meta;
177
175
  var init_meta = __esm({
178
- "../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/meta.js"() {
176
+ "../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/meta.js"() {
179
177
  "use strict";
180
178
  init_cjs_shims();
181
179
  init_helpers();
@@ -203,10 +201,97 @@ var init_tslib_es6 = __esm({
203
201
  }
204
202
  });
205
203
 
206
- // ../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/constants.js
207
- var import_node_module2, CWD, cjsRequire2, EXTENSIONS;
204
+ // ../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/common.js
205
+ var _a, NODE_OPTIONS, hasFlag, parseVersion, compareVersion, NODE_VERSION, compareNodeVersion;
206
+ var init_common = __esm({
207
+ "../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/common.js"() {
208
+ "use strict";
209
+ init_cjs_shims();
210
+ NODE_OPTIONS = (_a = process.env.NODE_OPTIONS) === null || _a === void 0 ? void 0 : _a.split(/\s+/);
211
+ hasFlag = (flag) => (NODE_OPTIONS === null || NODE_OPTIONS === void 0 ? void 0 : NODE_OPTIONS.includes(flag)) || process.argv.includes(flag);
212
+ parseVersion = (version) => version.split(".").map(Number.parseFloat);
213
+ compareVersion = (version1, version2) => {
214
+ const versions1 = parseVersion(version1);
215
+ const versions2 = parseVersion(version2);
216
+ const length = Math.max(versions1.length, versions2.length);
217
+ for (let i = 0; i < length; i++) {
218
+ const v1 = versions1[i] || 0;
219
+ const v2 = versions2[i] || 0;
220
+ if (v1 > v2) {
221
+ return 1;
222
+ }
223
+ if (v1 < v2) {
224
+ return -1;
225
+ }
226
+ }
227
+ return 0;
228
+ };
229
+ NODE_VERSION = process.versions.node;
230
+ compareNodeVersion = (version) => compareVersion(NODE_VERSION, version);
231
+ }
232
+ });
233
+
234
+ // ../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/constants.js
235
+ var TsRunner, NODE_OPTIONS_, SYNCKIT_EXEC_ARGV, SYNCKIT_GLOBAL_SHIMS, SYNCKIT_TIMEOUT, SYNCKIT_TS_RUNNER, TS_ESM_PARTIAL_SUPPORTED, MTS_SUPPORTED, MODULE_REGISTER_SUPPORTED, STRIP_TYPES_NODE_VERSION, TRANSFORM_TYPES_NODE_VERSION, FEATURE_TYPESCRIPT_NODE_VERSION, DEFAULT_TYPES_NODE_VERSION, STRIP_TYPES_FLAG, TRANSFORM_TYPES_FLAG, NO_STRIP_TYPES_FLAG, NODE_OPTIONS2, NO_STRIP_TYPES, DEFAULT_TIMEOUT, DEFAULT_EXEC_ARGV, DEFAULT_TS_RUNNER, DEFAULT_GLOBAL_SHIMS, DEFAULT_GLOBAL_SHIMS_PRESET, IMPORT_FLAG, REQUIRE_FLAG, REQUIRE_ABBR_FLAG, REQUIRE_FLAGS, LOADER_FLAG, EXPERIMENTAL_LOADER_FLAG, LOADER_FLAGS, IMPORT_FLAG_SUPPORTED, INT32_BYTES;
208
236
  var init_constants = __esm({
209
- "../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/constants.js"() {
237
+ "../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/constants.js"() {
238
+ "use strict";
239
+ init_cjs_shims();
240
+ init_common();
241
+ TsRunner = {
242
+ Node: "node",
243
+ Bun: "bun",
244
+ TsNode: "ts-node",
245
+ EsbuildRegister: "esbuild-register",
246
+ EsbuildRunner: "esbuild-runner",
247
+ OXC: "oxc",
248
+ SWC: "swc",
249
+ TSX: "tsx"
250
+ };
251
+ ({ NODE_OPTIONS: NODE_OPTIONS_ = "", SYNCKIT_EXEC_ARGV = "", SYNCKIT_GLOBAL_SHIMS, SYNCKIT_TIMEOUT, SYNCKIT_TS_RUNNER } = process.env);
252
+ TS_ESM_PARTIAL_SUPPORTED = compareNodeVersion("16") >= 0 && compareNodeVersion("18.19") < 0;
253
+ MTS_SUPPORTED = compareNodeVersion("20.8") >= 0;
254
+ MODULE_REGISTER_SUPPORTED = MTS_SUPPORTED || compareNodeVersion("18.19") >= 0;
255
+ STRIP_TYPES_NODE_VERSION = "22.6";
256
+ TRANSFORM_TYPES_NODE_VERSION = "22.7";
257
+ FEATURE_TYPESCRIPT_NODE_VERSION = "22.10";
258
+ DEFAULT_TYPES_NODE_VERSION = "23.6";
259
+ STRIP_TYPES_FLAG = "--experimental-strip-types";
260
+ TRANSFORM_TYPES_FLAG = "--experimental-transform-types";
261
+ NO_STRIP_TYPES_FLAG = "--no-experimental-strip-types";
262
+ NODE_OPTIONS2 = NODE_OPTIONS_.split(/\s+/);
263
+ NO_STRIP_TYPES = hasFlag(NO_STRIP_TYPES_FLAG) && (compareNodeVersion(FEATURE_TYPESCRIPT_NODE_VERSION) >= 0 ? process.features.typescript === false : !hasFlag(STRIP_TYPES_FLAG) && !hasFlag(TRANSFORM_TYPES_FLAG));
264
+ DEFAULT_TIMEOUT = SYNCKIT_TIMEOUT ? +SYNCKIT_TIMEOUT : void 0;
265
+ DEFAULT_EXEC_ARGV = SYNCKIT_EXEC_ARGV.split(",");
266
+ DEFAULT_TS_RUNNER = SYNCKIT_TS_RUNNER;
267
+ DEFAULT_GLOBAL_SHIMS = ["1", "true"].includes(SYNCKIT_GLOBAL_SHIMS);
268
+ DEFAULT_GLOBAL_SHIMS_PRESET = [
269
+ {
270
+ moduleName: "node-fetch",
271
+ globalName: "fetch"
272
+ },
273
+ {
274
+ moduleName: "node:perf_hooks",
275
+ globalName: "performance",
276
+ named: "performance"
277
+ }
278
+ ];
279
+ IMPORT_FLAG = "--import";
280
+ REQUIRE_FLAG = "--require";
281
+ REQUIRE_ABBR_FLAG = "-r";
282
+ REQUIRE_FLAGS = /* @__PURE__ */ new Set([REQUIRE_FLAG, REQUIRE_ABBR_FLAG]);
283
+ LOADER_FLAG = "--loader";
284
+ EXPERIMENTAL_LOADER_FLAG = "--experimental-loader";
285
+ LOADER_FLAGS = /* @__PURE__ */ new Set([LOADER_FLAG, EXPERIMENTAL_LOADER_FLAG]);
286
+ IMPORT_FLAG_SUPPORTED = compareNodeVersion("20.6") >= 0;
287
+ INT32_BYTES = 4;
288
+ }
289
+ });
290
+
291
+ // ../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/constants.js
292
+ var import_node_module2, CWD, cjsRequire2, EXTENSIONS;
293
+ var init_constants2 = __esm({
294
+ "../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/constants.js"() {
210
295
  "use strict";
211
296
  init_cjs_shims();
212
297
  import_node_module2 = require("module");
@@ -216,19 +301,19 @@ var init_constants = __esm({
216
301
  }
217
302
  });
218
303
 
219
- // ../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/helpers.js
304
+ // ../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/helpers.js
220
305
  var import_node_fs2, import_node_path2, tryPkg, isPkgAvailable, tryFile, tryExtensions, findUp;
221
306
  var init_helpers2 = __esm({
222
- "../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/helpers.js"() {
307
+ "../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/helpers.js"() {
223
308
  "use strict";
224
309
  init_cjs_shims();
225
310
  import_node_fs2 = __toESM(require("fs"), 1);
226
311
  import_node_path2 = __toESM(require("path"), 1);
227
- init_constants();
312
+ init_constants2();
228
313
  tryPkg = (pkg3) => {
229
314
  try {
230
315
  return cjsRequire2.resolve(pkg3);
231
- } catch (_a) {
316
+ } catch {
232
317
  }
233
318
  };
234
319
  isPkgAvailable = (pkg3) => !!tryPkg(pkg3);
@@ -237,7 +322,7 @@ var init_helpers2 = __esm({
237
322
  const filepath = import_node_path2.default.resolve(base2, filename);
238
323
  return import_node_fs2.default.existsSync(filepath) && (includeDir || import_node_fs2.default.statSync(filepath).isFile()) ? filepath : "";
239
324
  }
240
- for (const file of filename !== null && filename !== void 0 ? filename : []) {
325
+ for (const file of filename ?? []) {
241
326
  const filepath = tryFile(file, includeDir, base2);
242
327
  if (filepath) {
243
328
  return filepath;
@@ -269,56 +354,35 @@ var init_helpers2 = __esm({
269
354
  }
270
355
  });
271
356
 
272
- // ../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/index.js
357
+ // ../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/index.js
273
358
  var init_lib = __esm({
274
- "../../node_modules/.pnpm/@pkgr+core@0.2.0/node_modules/@pkgr/core/lib/index.js"() {
359
+ "../../node_modules/.pnpm/@pkgr+core@0.2.4/node_modules/@pkgr/core/lib/index.js"() {
275
360
  "use strict";
276
361
  init_cjs_shims();
277
- init_constants();
362
+ init_constants2();
278
363
  init_helpers2();
279
364
  }
280
365
  });
281
366
 
282
- // ../../node_modules/.pnpm/synckit@0.10.3/node_modules/synckit/lib/types.js
283
- var init_types = __esm({
284
- "../../node_modules/.pnpm/synckit@0.10.3/node_modules/synckit/lib/types.js"() {
285
- "use strict";
286
- init_cjs_shims();
287
- }
288
- });
289
-
290
- // ../../node_modules/.pnpm/synckit@0.10.3/node_modules/synckit/lib/index.js
291
- function createSyncFn(workerPath, timeoutOrOptions) {
292
- syncFnCache !== null && syncFnCache !== void 0 ? syncFnCache : syncFnCache = /* @__PURE__ */ new Map();
293
- if (typeof workerPath !== "string" || workerPath.startsWith("file://")) {
294
- workerPath = (0, import_node_url.fileURLToPath)(workerPath);
295
- }
296
- const cachedSyncFn = syncFnCache.get(workerPath);
297
- if (cachedSyncFn) {
298
- return cachedSyncFn;
299
- }
300
- if (!import_node_path3.default.isAbsolute(workerPath)) {
301
- throw new Error("`workerPath` must be absolute");
302
- }
303
- const syncFn = startWorkerThread(workerPath, typeof timeoutOrOptions === "number" ? { timeout: timeoutOrOptions } : timeoutOrOptions);
304
- syncFnCache.set(workerPath, syncFn);
305
- return syncFn;
306
- }
367
+ // ../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/helpers.js
307
368
  function startWorkerThread(workerPath, { timeout = DEFAULT_TIMEOUT, execArgv = DEFAULT_EXEC_ARGV, tsRunner = DEFAULT_TS_RUNNER, transferList = [], globalShims = DEFAULT_GLOBAL_SHIMS } = {}) {
308
369
  const { port1: mainPort, port2: workerPort } = new import_node_worker_threads.MessageChannel();
309
370
  const { isTs, ext, jsUseEsm, tsUseEsm, tsRunner: finalTsRunner, workerPath: finalWorkerPath, pnpLoaderPath, execArgv: finalExecArgv } = setupTsRunner(workerPath, { execArgv, tsRunner });
310
371
  const workerPathUrl = (0, import_node_url.pathToFileURL)(finalWorkerPath);
311
372
  if (/\.[cm]ts$/.test(finalWorkerPath)) {
312
- const isTsxSupported = !tsUseEsm || compareVersion(NODE_VERSION, MTS_SUPPORTED_NODE_VERSION) >= 0;
373
+ const isTsxSupported = !tsUseEsm || TS_ESM_PARTIAL_SUPPORTED;
313
374
  if (!finalTsRunner) {
314
375
  throw new Error("No ts runner specified, ts worker path is not supported");
315
376
  } else if ([
316
377
  TsRunner.EsbuildRegister,
317
378
  TsRunner.EsbuildRunner,
318
- TsRunner.SWC,
379
+ ...TS_ESM_PARTIAL_SUPPORTED ? [
380
+ TsRunner.OXC,
381
+ TsRunner.SWC
382
+ ] : [],
319
383
  ...isTsxSupported ? [] : [TsRunner.TSX]
320
384
  ].includes(finalTsRunner)) {
321
- throw new Error(`${finalTsRunner} is not supported for ${ext} files yet` + (isTsxSupported ? ", you can try [tsx](https://github.com/esbuild-kit/tsx) instead" : ""));
385
+ throw new Error(`${finalTsRunner} is not supported for ${ext} files yet` + (isTsxSupported ? ", you can try [tsx](https://github.com/esbuild-kit/tsx) instead" : MTS_SUPPORTED ? ", you can try [oxc](https://github.com/oxc-project/oxc-node) or [swc](https://github.com/swc-project/swc-node/tree/master/packages/register) instead" : ""));
322
386
  }
323
387
  }
324
388
  const finalGlobalShims = (globalShims === true ? DEFAULT_GLOBAL_SHIMS_PRESET : Array.isArray(globalShims) ? globalShims : []).filter(({ moduleName }) => isPkgAvailable(moduleName));
@@ -344,7 +408,7 @@ function startWorkerThread(workerPath, { timeout = DEFAULT_TIMEOUT, execArgv = D
344
408
  port.postMessage(abortMsg);
345
409
  throw new Error("Internal error: Atomics.wait() failed: " + status);
346
410
  }
347
- const _a = (0, import_node_worker_threads.receiveMessageOnPort)(mainPort).message, { id } = _a, message = __rest(_a, ["id"]);
411
+ const _a2 = (0, import_node_worker_threads.receiveMessageOnPort)(mainPort).message, { id } = _a2, message = __rest(_a2, ["id"]);
348
412
  if (id < expectedId) {
349
413
  const waitingTime = Date.now() - start;
350
414
  return receiveMessageWithId(port, expectedId, waitingTimeout ? waitingTimeout - waitingTime : void 0);
@@ -370,86 +434,33 @@ function startWorkerThread(workerPath, { timeout = DEFAULT_TIMEOUT, execArgv = D
370
434
  worker.unref();
371
435
  return syncFn;
372
436
  }
373
- var import_node_crypto, import_node_fs3, import_node_module3, import_node_path3, import_node_url, import_node_worker_threads, INT32_BYTES, TsRunner, NODE_OPTIONS_, SYNCKIT_EXEC_ARGV, SYNCKIT_GLOBAL_SHIMS, SYNCKIT_TIMEOUT, SYNCKIT_TS_RUNNER, MTS_SUPPORTED_NODE_VERSION, LOADER_SUPPORTED_NODE_VERSION, STRIP_TYPES_NODE_VERSION, TRANSFORM_TYPES_NODE_VERSION, FEATURE_TYPESCRIPT_NODE_VERSION, DEFAULT_TYPES_NODE_VERSION, STRIP_TYPES_FLAG, TRANSFORM_TYPES_FLAG, NO_STRIP_TYPES_FLAG, NODE_OPTIONS, hasFlag, parseVersion, compareVersion, NODE_VERSION, NO_STRIP_TYPES, DEFAULT_TIMEOUT, DEFAULT_EXEC_ARGV, DEFAULT_TS_RUNNER, DEFAULT_GLOBAL_SHIMS, DEFAULT_GLOBAL_SHIMS_PRESET, syncFnCache, dataUrl, isFile, setupTsRunner, md5Hash, encodeImportModule, _generateGlobals, globalsCache, tmpdir, _dirname, sharedBuffer, sharedBufferView, generateGlobals;
374
- var init_lib2 = __esm({
375
- "../../node_modules/.pnpm/synckit@0.10.3/node_modules/synckit/lib/index.js"() {
437
+ var import_node_crypto, import_node_fs3, import_node_path3, import_node_url, import_node_worker_threads, isFile, dataUrl, hasRequireFlag, hasImportFlag, hasLoaderFlag, setupTsRunner, md5Hash, encodeImportModule, _generateGlobals, globalsCache, tmpdir, _dirname, generateGlobals, sharedBuffer, sharedBufferView;
438
+ var init_helpers3 = __esm({
439
+ "../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/helpers.js"() {
376
440
  "use strict";
377
441
  init_cjs_shims();
378
442
  init_tslib_es6();
379
443
  import_node_crypto = require("crypto");
380
444
  import_node_fs3 = __toESM(require("fs"), 1);
381
- import_node_module3 = __toESM(require("module"), 1);
382
445
  import_node_path3 = __toESM(require("path"), 1);
383
446
  import_node_url = require("url");
384
447
  import_node_worker_threads = require("worker_threads");
385
448
  init_lib();
386
- init_types();
387
- INT32_BYTES = 4;
388
- TsRunner = {
389
- Node: "node",
390
- Bun: "bun",
391
- TsNode: "ts-node",
392
- EsbuildRegister: "esbuild-register",
393
- EsbuildRunner: "esbuild-runner",
394
- SWC: "swc",
395
- TSX: "tsx"
396
- };
397
- ({ NODE_OPTIONS: NODE_OPTIONS_ = "", SYNCKIT_EXEC_ARGV = "", SYNCKIT_GLOBAL_SHIMS, SYNCKIT_TIMEOUT, SYNCKIT_TS_RUNNER } = process.env);
398
- MTS_SUPPORTED_NODE_VERSION = "16";
399
- LOADER_SUPPORTED_NODE_VERSION = "20";
400
- STRIP_TYPES_NODE_VERSION = "22.6";
401
- TRANSFORM_TYPES_NODE_VERSION = "22.7";
402
- FEATURE_TYPESCRIPT_NODE_VERSION = "22.10";
403
- DEFAULT_TYPES_NODE_VERSION = "23.6";
404
- STRIP_TYPES_FLAG = "--experimental-strip-types";
405
- TRANSFORM_TYPES_FLAG = "--experimental-transform-types";
406
- NO_STRIP_TYPES_FLAG = "--no-experimental-strip-types";
407
- NODE_OPTIONS = NODE_OPTIONS_.split(/\s+/);
408
- hasFlag = (flag) => NODE_OPTIONS.includes(flag) || process.argv.includes(flag);
409
- parseVersion = (version) => version.split(".").map(Number.parseFloat);
410
- compareVersion = (version1, version2) => {
411
- const versions1 = parseVersion(version1);
412
- const versions2 = parseVersion(version2);
413
- const length = Math.max(versions1.length, versions2.length);
414
- for (let i = 0; i < length; i++) {
415
- const v1 = versions1[i] || 0;
416
- const v2 = versions2[i] || 0;
417
- if (v1 > v2) {
418
- return 1;
419
- }
420
- if (v1 < v2) {
421
- return -1;
422
- }
423
- }
424
- return 0;
425
- };
426
- NODE_VERSION = process.versions.node;
427
- NO_STRIP_TYPES = compareVersion(NODE_VERSION, FEATURE_TYPESCRIPT_NODE_VERSION) >= 0 ? process.features.typescript === false : hasFlag(NO_STRIP_TYPES_FLAG) && !hasFlag(STRIP_TYPES_FLAG) && !hasFlag(TRANSFORM_TYPES_FLAG);
428
- DEFAULT_TIMEOUT = SYNCKIT_TIMEOUT ? +SYNCKIT_TIMEOUT : void 0;
429
- DEFAULT_EXEC_ARGV = SYNCKIT_EXEC_ARGV.split(",");
430
- DEFAULT_TS_RUNNER = SYNCKIT_TS_RUNNER;
431
- DEFAULT_GLOBAL_SHIMS = ["1", "true"].includes(SYNCKIT_GLOBAL_SHIMS);
432
- DEFAULT_GLOBAL_SHIMS_PRESET = [
433
- {
434
- moduleName: "node-fetch",
435
- globalName: "fetch"
436
- },
437
- {
438
- moduleName: "node:perf_hooks",
439
- globalName: "performance",
440
- named: "performance"
441
- }
442
- ];
443
- dataUrl = (code) => new URL(`data:text/javascript,${encodeURIComponent(code)}`);
444
- isFile = (path6) => {
445
- var _a;
449
+ init_common();
450
+ init_constants();
451
+ isFile = (path7) => {
452
+ var _a2;
446
453
  try {
447
- return !!((_a = import_node_fs3.default.statSync(path6, { throwIfNoEntry: false })) === null || _a === void 0 ? void 0 : _a.isFile());
454
+ return !!((_a2 = import_node_fs3.default.statSync(path7, { throwIfNoEntry: false })) === null || _a2 === void 0 ? void 0 : _a2.isFile());
448
455
  } catch (_b) {
449
456
  return false;
450
457
  }
451
458
  };
452
- setupTsRunner = (workerPath, { execArgv, tsRunner }) => {
459
+ dataUrl = (code) => new URL(`data:text/javascript,${encodeURIComponent(code)}`);
460
+ hasRequireFlag = (execArgv) => execArgv.some((execArg) => REQUIRE_FLAGS.has(execArg));
461
+ hasImportFlag = (execArgv) => execArgv.includes(IMPORT_FLAG);
462
+ hasLoaderFlag = (execArgv) => execArgv.some((execArg) => LOADER_FLAGS.has(execArg));
463
+ setupTsRunner = (workerPath, { execArgv = DEFAULT_EXEC_ARGV, tsRunner } = {}) => {
453
464
  let ext = import_node_path3.default.extname(workerPath);
454
465
  if (!/([/\\])node_modules\1/.test(workerPath) && (!ext || /^\.[cm]?js$/.test(ext))) {
455
466
  const workPathWithoutExt = ext ? workerPath.slice(0, -ext.length) : workerPath;
@@ -478,10 +489,10 @@ var init_lib2 = __esm({
478
489
  }
479
490
  }
480
491
  const isTs = /\.[cm]?ts$/.test(workerPath);
481
- let jsUseEsm = workerPath.endsWith(".mjs");
482
- let tsUseEsm = workerPath.endsWith(".mts");
492
+ let jsUseEsm = ext === ".mjs";
493
+ let tsUseEsm = ext === ".mts";
483
494
  if (isTs) {
484
- if (!tsUseEsm) {
495
+ if (!tsUseEsm && ext !== ".cts") {
485
496
  const pkg3 = findUp(workerPath);
486
497
  if (pkg3) {
487
498
  tsUseEsm = cjsRequire2(pkg3).type === "module";
@@ -495,7 +506,7 @@ var init_lib2 = __esm({
495
506
  if (tsRunner == null) {
496
507
  if (process.versions.bun) {
497
508
  tsRunner = TsRunner.Bun;
498
- } else if (!noStripTypes && compareVersion(NODE_VERSION, STRIP_TYPES_NODE_VERSION) >= 0) {
509
+ } else if (!noStripTypes && compareNodeVersion(STRIP_TYPES_NODE_VERSION) >= 0) {
499
510
  tsRunner = TsRunner.Node;
500
511
  } else if (isPkgAvailable(TsRunner.TsNode)) {
501
512
  tsRunner = TsRunner.TsNode;
@@ -506,53 +517,103 @@ var init_lib2 = __esm({
506
517
  break;
507
518
  }
508
519
  case TsRunner.Node: {
509
- if (compareVersion(NODE_VERSION, STRIP_TYPES_NODE_VERSION) < 0) {
520
+ if (compareNodeVersion(STRIP_TYPES_NODE_VERSION) < 0) {
510
521
  throw new Error("type stripping is not supported in this node version");
511
522
  }
512
523
  if (noStripTypes) {
513
524
  throw new Error("type stripping is disabled explicitly");
514
525
  }
515
- if (compareVersion(NODE_VERSION, DEFAULT_TYPES_NODE_VERSION) >= 0) {
526
+ if (compareNodeVersion(DEFAULT_TYPES_NODE_VERSION) >= 0) {
516
527
  break;
517
528
  }
518
- if (compareVersion(NODE_VERSION, TRANSFORM_TYPES_NODE_VERSION) >= 0 && !execArgv.includes(TRANSFORM_TYPES_FLAG)) {
529
+ if (compareNodeVersion(TRANSFORM_TYPES_NODE_VERSION) >= 0 && !execArgv.includes(TRANSFORM_TYPES_FLAG)) {
519
530
  execArgv = [TRANSFORM_TYPES_FLAG, ...execArgv];
520
- } else if (compareVersion(NODE_VERSION, STRIP_TYPES_NODE_VERSION) >= 0 && !execArgv.includes(STRIP_TYPES_FLAG)) {
531
+ } else if (compareNodeVersion(STRIP_TYPES_NODE_VERSION) >= 0 && !execArgv.includes(STRIP_TYPES_FLAG)) {
521
532
  execArgv = [STRIP_TYPES_FLAG, ...execArgv];
522
533
  }
523
534
  break;
524
535
  }
525
536
  case TsRunner.TsNode: {
526
537
  if (tsUseEsm) {
527
- if (!execArgv.includes("--loader")) {
528
- execArgv = ["--loader", `${TsRunner.TsNode}/esm`, ...execArgv];
538
+ if (!execArgv.includes(LOADER_FLAG)) {
539
+ execArgv = [LOADER_FLAG, `${TsRunner.TsNode}/esm`, ...execArgv];
529
540
  }
530
- } else if (!execArgv.includes("-r")) {
531
- execArgv = ["-r", `${TsRunner.TsNode}/register`, ...execArgv];
541
+ } else if (!hasRequireFlag(execArgv)) {
542
+ execArgv = [
543
+ REQUIRE_ABBR_FLAG,
544
+ `${TsRunner.TsNode}/register`,
545
+ ...execArgv
546
+ ];
532
547
  }
533
548
  break;
534
549
  }
535
550
  case TsRunner.EsbuildRegister: {
536
- if (!execArgv.includes("-r")) {
537
- execArgv = ["-r", TsRunner.EsbuildRegister, ...execArgv];
551
+ if (tsUseEsm) {
552
+ if (!hasLoaderFlag(execArgv)) {
553
+ execArgv = [
554
+ LOADER_FLAG,
555
+ `${TsRunner.EsbuildRegister}/loader`,
556
+ ...execArgv
557
+ ];
558
+ }
559
+ } else if (!hasRequireFlag(execArgv)) {
560
+ execArgv = [REQUIRE_ABBR_FLAG, TsRunner.EsbuildRegister, ...execArgv];
538
561
  }
539
562
  break;
540
563
  }
541
564
  case TsRunner.EsbuildRunner: {
542
- if (!execArgv.includes("-r")) {
543
- execArgv = ["-r", `${TsRunner.EsbuildRunner}/register`, ...execArgv];
565
+ if (!hasRequireFlag(execArgv)) {
566
+ execArgv = [
567
+ REQUIRE_ABBR_FLAG,
568
+ `${TsRunner.EsbuildRunner}/register`,
569
+ ...execArgv
570
+ ];
571
+ }
572
+ break;
573
+ }
574
+ case TsRunner.OXC: {
575
+ if (!execArgv.includes(IMPORT_FLAG)) {
576
+ execArgv = [
577
+ IMPORT_FLAG,
578
+ `@${TsRunner.OXC}-node/core/register`,
579
+ ...execArgv
580
+ ];
544
581
  }
545
582
  break;
546
583
  }
547
584
  case TsRunner.SWC: {
548
- if (!execArgv.includes("-r")) {
549
- execArgv = ["-r", `@${TsRunner.SWC}-node/register`, ...execArgv];
585
+ if (tsUseEsm) {
586
+ if (IMPORT_FLAG_SUPPORTED) {
587
+ if (!hasImportFlag(execArgv)) {
588
+ execArgv = [
589
+ IMPORT_FLAG,
590
+ `@${TsRunner.SWC}-node/register/esm-register`,
591
+ ...execArgv
592
+ ];
593
+ }
594
+ } else if (!hasLoaderFlag(execArgv)) {
595
+ execArgv = [
596
+ LOADER_FLAG,
597
+ `@${TsRunner.SWC}-node/register/esm`,
598
+ ...execArgv
599
+ ];
600
+ }
601
+ } else if (!hasRequireFlag(execArgv)) {
602
+ execArgv = [
603
+ REQUIRE_ABBR_FLAG,
604
+ `@${TsRunner.SWC}-node/register`,
605
+ ...execArgv
606
+ ];
550
607
  }
551
608
  break;
552
609
  }
553
610
  case TsRunner.TSX: {
554
- if (!execArgv.includes("--loader")) {
555
- execArgv = ["--loader", TsRunner.TSX, ...execArgv];
611
+ if (IMPORT_FLAG_SUPPORTED) {
612
+ if (!execArgv.includes(IMPORT_FLAG)) {
613
+ execArgv = [IMPORT_FLAG, TsRunner.TSX, ...execArgv];
614
+ }
615
+ } else if (!execArgv.includes(LOADER_FLAG)) {
616
+ execArgv = [LOADER_FLAG, TsRunner.TSX, ...execArgv];
556
617
  }
557
618
  break;
558
619
  }
@@ -560,7 +621,7 @@ var init_lib2 = __esm({
560
621
  throw new Error(`Unknown ts runner: ${String(tsRunner)}`);
561
622
  }
562
623
  }
563
- } else if (!jsUseEsm) {
624
+ } else if (!jsUseEsm && ext !== ".cjs") {
564
625
  const pkg3 = findUp(workerPath);
565
626
  if (pkg3) {
566
627
  jsUseEsm = cjsRequire2(pkg3).type === "module";
@@ -571,19 +632,15 @@ var init_lib2 = __esm({
571
632
  let pnpApiPath;
572
633
  try {
573
634
  pnpApiPath = cjsRequire2.resolve("pnpapi");
574
- } catch (_a) {
635
+ } catch (_a2) {
575
636
  }
576
- if (pnpApiPath && !NODE_OPTIONS.some((option, index) => ["-r", "--require"].includes(option) && pnpApiPath === cjsRequire2.resolve(NODE_OPTIONS[index + 1])) && !execArgv.includes(pnpApiPath)) {
577
- execArgv = ["-r", pnpApiPath, ...execArgv];
637
+ if (pnpApiPath && !NODE_OPTIONS2.some((option, index) => REQUIRE_FLAGS.has(option) && pnpApiPath === cjsRequire2.resolve(NODE_OPTIONS2[index + 1])) && !execArgv.includes(pnpApiPath)) {
638
+ execArgv = [REQUIRE_ABBR_FLAG, pnpApiPath, ...execArgv];
578
639
  const pnpLoaderPath = import_node_path3.default.resolve(pnpApiPath, "../.pnp.loader.mjs");
579
640
  if (isFile(pnpLoaderPath)) {
580
- resolvedPnpLoaderPath = (0, import_node_url.pathToFileURL)(pnpLoaderPath).toString();
581
- if (compareVersion(NODE_VERSION, LOADER_SUPPORTED_NODE_VERSION) < 0) {
582
- execArgv = [
583
- "--experimental-loader",
584
- resolvedPnpLoaderPath,
585
- ...execArgv
586
- ];
641
+ resolvedPnpLoaderPath = (0, import_node_url.pathToFileURL)(pnpLoaderPath).href;
642
+ if (!MODULE_REGISTER_SUPPORTED) {
643
+ execArgv = [LOADER_FLAG, resolvedPnpLoaderPath, ...execArgv];
587
644
  }
588
645
  }
589
646
  }
@@ -641,10 +698,53 @@ var init_lib2 = __esm({
641
698
  }
642
699
  });
643
700
 
644
- // ../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/sync.js
701
+ // ../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/types.js
702
+ var init_types = __esm({
703
+ "../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/types.js"() {
704
+ "use strict";
705
+ init_cjs_shims();
706
+ }
707
+ });
708
+
709
+ // ../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/index.js
710
+ function createSyncFn(workerPath, timeoutOrOptions) {
711
+ syncFnCache !== null && syncFnCache !== void 0 ? syncFnCache : syncFnCache = /* @__PURE__ */ new Map();
712
+ if (typeof workerPath !== "string" || workerPath.startsWith("file://")) {
713
+ workerPath = (0, import_node_url2.fileURLToPath)(workerPath);
714
+ }
715
+ const cachedSyncFn = syncFnCache.get(workerPath);
716
+ if (cachedSyncFn) {
717
+ return cachedSyncFn;
718
+ }
719
+ if (!import_node_path4.default.isAbsolute(workerPath)) {
720
+ throw new Error("`workerPath` must be absolute");
721
+ }
722
+ const syncFn = startWorkerThread(workerPath, typeof timeoutOrOptions === "number" ? { timeout: timeoutOrOptions } : timeoutOrOptions);
723
+ syncFnCache.set(workerPath, syncFn);
724
+ return syncFn;
725
+ }
726
+ var import_node_module3, import_node_path4, import_node_url2, import_node_worker_threads2, syncFnCache;
727
+ var init_lib2 = __esm({
728
+ "../../node_modules/.pnpm/synckit@0.11.4/node_modules/synckit/lib/index.js"() {
729
+ "use strict";
730
+ init_cjs_shims();
731
+ import_node_module3 = __toESM(require("module"), 1);
732
+ import_node_path4 = __toESM(require("path"), 1);
733
+ import_node_url2 = require("url");
734
+ import_node_worker_threads2 = require("worker_threads");
735
+ init_constants();
736
+ init_helpers3();
737
+ init_common();
738
+ init_constants();
739
+ init_helpers3();
740
+ init_types();
741
+ }
742
+ });
743
+
744
+ // ../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/sync.js
645
745
  var performSyncWork;
646
746
  var init_sync = __esm({
647
- "../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/sync.js"() {
747
+ "../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/sync.js"() {
648
748
  "use strict";
649
749
  init_cjs_shims();
650
750
  init_lib2();
@@ -653,13 +753,13 @@ var init_sync = __esm({
653
753
  }
654
754
  });
655
755
 
656
- // ../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/parser.js
657
- var import_node_path4, DEFAULT_EXTENSIONS, MARKDOWN_EXTENSIONS, Parser, parser, parse, parseForESLint;
756
+ // ../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/parser.js
757
+ var import_node_path5, DEFAULT_EXTENSIONS, MARKDOWN_EXTENSIONS, Parser, parser, parse, parseForESLint;
658
758
  var init_parser = __esm({
659
- "../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/parser.js"() {
759
+ "../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/parser.js"() {
660
760
  "use strict";
661
761
  init_cjs_shims();
662
- import_node_path4 = __toESM(require("path"), 1);
762
+ import_node_path5 = __toESM(require("path"), 1);
663
763
  init_helpers();
664
764
  init_sync();
665
765
  DEFAULT_EXTENSIONS = [".mdx"];
@@ -673,7 +773,7 @@ var init_parser = __esm({
673
773
  return this.parseForESLint(code, options).ast;
674
774
  }
675
775
  parseForESLint(code, { filePath, sourceType, ignoreRemarkConfig, extensions, markdownExtensions }) {
676
- const extname = import_node_path4.default.extname(filePath);
776
+ const extname = import_node_path5.default.extname(filePath);
677
777
  const isMdx = [...DEFAULT_EXTENSIONS, ...arrayify(extensions)].includes(extname);
678
778
  const isMarkdown = [
679
779
  ...MARKDOWN_EXTENSIONS,
@@ -682,15 +782,11 @@ var init_parser = __esm({
682
782
  if (!isMdx && !isMarkdown) {
683
783
  throw new Error("Unsupported file extension, make sure setting the `extensions` or `markdownExtensions` option correctly.");
684
784
  }
685
- const physicalFilename = getPhysicalFilename(filePath);
686
785
  let result;
687
786
  try {
688
787
  result = performSyncWork({
689
- fileOptions: {
690
- path: physicalFilename,
691
- value: code
692
- },
693
- physicalFilename,
788
+ filePath: getPhysicalFilename(filePath),
789
+ code,
694
790
  isMdx,
695
791
  ignoreRemarkConfig
696
792
  });
@@ -726,7 +822,7 @@ var init_parser = __esm({
726
822
  }
727
823
  });
728
824
 
729
- // ../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/index.js
825
+ // ../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/index.js
730
826
  var lib_exports = {};
731
827
  __export(lib_exports, {
732
828
  DEFAULT_EXTENSIONS: () => DEFAULT_EXTENSIONS,
@@ -736,8 +832,6 @@ __export(lib_exports, {
736
832
  cjsRequire: () => cjsRequire,
737
833
  getPhysicalFilename: () => getPhysicalFilename,
738
834
  getPositionAtFactory: () => getPositionAtFactory,
739
- last: () => last,
740
- loadEsmModule: () => loadEsmModule,
741
835
  meta: () => meta,
742
836
  nextCharOffsetFactory: () => nextCharOffsetFactory,
743
837
  normalizePosition: () => normalizePosition,
@@ -748,7 +842,7 @@ __export(lib_exports, {
748
842
  prevCharOffsetFactory: () => prevCharOffsetFactory
749
843
  });
750
844
  var init_lib3 = __esm({
751
- "../../node_modules/.pnpm/eslint-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-mdx/lib/index.js"() {
845
+ "../../node_modules/.pnpm/eslint-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-mdx/lib/index.js"() {
752
846
  "use strict";
753
847
  init_cjs_shims();
754
848
  init_helpers();
@@ -758,10 +852,10 @@ var init_lib3 = __esm({
758
852
  }
759
853
  });
760
854
 
761
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/flat.js
855
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/flat.js
762
856
  var flat, parserOptions, restConfig, flatCodeBlocks;
763
857
  var init_flat = __esm({
764
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/flat.js"() {
858
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/flat.js"() {
765
859
  "use strict";
766
860
  init_cjs_shims();
767
861
  init_lib3();
@@ -797,28 +891,28 @@ var init_flat = __esm({
797
891
  }
798
892
  });
799
893
 
800
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/helpers.js
894
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/helpers.js
801
895
  var import_node_module4, getGlobals, cjsRequire3;
802
- var init_helpers3 = __esm({
803
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/helpers.js"() {
896
+ var init_helpers4 = __esm({
897
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/helpers.js"() {
804
898
  "use strict";
805
899
  init_cjs_shims();
806
900
  import_node_module4 = require("module");
807
901
  getGlobals = (sources, initialGlobals = {}) => (Array.isArray(sources) ? sources : Object.keys(sources)).reduce((globals, source) => Object.assign(globals, {
808
902
  [source]: false
809
903
  }), initialGlobals);
810
- cjsRequire3 = typeof require === "undefined" ? (0, import_node_module4.createRequire)(importMetaUrl) : require;
904
+ cjsRequire3 = importMetaUrl ? (0, import_node_module4.createRequire)(importMetaUrl) : require;
811
905
  }
812
906
  });
813
907
 
814
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/overrides.js
908
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/overrides.js
815
909
  var isReactPluginAvailable, overrides;
816
910
  var init_overrides = __esm({
817
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/overrides.js"() {
911
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/overrides.js"() {
818
912
  "use strict";
819
913
  init_cjs_shims();
820
914
  init_lib3();
821
- init_helpers3();
915
+ init_helpers4();
822
916
  init_base();
823
917
  isReactPluginAvailable = false;
824
918
  try {
@@ -845,13 +939,13 @@ var init_overrides = __esm({
845
939
  }
846
940
  });
847
941
 
848
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/recommended.js
942
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/recommended.js
849
943
  var overrides2, recommended, addPrettierRules;
850
944
  var init_recommended = __esm({
851
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/recommended.js"() {
945
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/recommended.js"() {
852
946
  "use strict";
853
947
  init_cjs_shims();
854
- init_helpers3();
948
+ init_helpers4();
855
949
  init_base();
856
950
  overrides2 = [
857
951
  {
@@ -904,10 +998,10 @@ var init_recommended = __esm({
904
998
  }
905
999
  });
906
1000
 
907
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/index.js
1001
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/index.js
908
1002
  var configs;
909
1003
  var init_configs = __esm({
910
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/index.js"() {
1004
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/configs/index.js"() {
911
1005
  "use strict";
912
1006
  init_cjs_shims();
913
1007
  init_base();
@@ -927,59 +1021,65 @@ var init_configs = __esm({
927
1021
  }
928
1022
  });
929
1023
 
930
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/meta.js
1024
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/meta.js
931
1025
  var pkg2, meta2;
932
1026
  var init_meta2 = __esm({
933
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/meta.js"() {
1027
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/meta.js"() {
934
1028
  "use strict";
935
1029
  init_cjs_shims();
936
- init_helpers3();
1030
+ init_helpers4();
937
1031
  pkg2 = cjsRequire3("../package.json");
938
1032
  meta2 = { name: pkg2.name, version: pkg2.version };
939
1033
  }
940
1034
  });
941
1035
 
942
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/helpers.js
1036
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/helpers.js
943
1037
  function getShortLang(filename, languageMapper) {
944
- const language = last(filename.split("."));
1038
+ const language = filename.split(".").at(-1);
945
1039
  if (languageMapper === false) {
946
1040
  return language;
947
1041
  }
948
- languageMapper = { ...DEFAULT_LANGUAGE_MAPPER, ...languageMapper };
1042
+ languageMapper = languageMapper ? { ...DEFAULT_LANGUAGE_MAPPER, ...languageMapper } : DEFAULT_LANGUAGE_MAPPER;
1043
+ const mapped = languageMapper[language];
1044
+ if (mapped) {
1045
+ return mapped;
1046
+ }
949
1047
  const lang = language.toLowerCase();
950
- return languageMapper[language] || languageMapper[lang] || lang;
1048
+ return languageMapper[lang] || lang;
951
1049
  }
952
1050
  var DEFAULT_LANGUAGE_MAPPER;
953
- var init_helpers4 = __esm({
954
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/helpers.js"() {
1051
+ var init_helpers5 = __esm({
1052
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/helpers.js"() {
955
1053
  "use strict";
956
1054
  init_cjs_shims();
957
- init_lib3();
958
1055
  DEFAULT_LANGUAGE_MAPPER = {
1056
+ ecmascript: "js",
959
1057
  javascript: "js",
960
1058
  javascriptreact: "jsx",
961
1059
  typescript: "ts",
962
1060
  typescriptreact: "tsx",
963
1061
  markdown: "md",
1062
+ markdownjsx: "mdx",
1063
+ markdownreact: "mdx",
964
1064
  mdown: "md",
965
1065
  mkdn: "md"
966
1066
  };
967
1067
  }
968
1068
  });
969
1069
 
970
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/from-markdown.js
1070
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/from-markdown.js
971
1071
  var fromMarkdown;
972
1072
  var init_from_markdown = __esm({
973
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/from-markdown.js"() {
1073
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/from-markdown.js"() {
974
1074
  "use strict";
975
1075
  init_cjs_shims();
976
1076
  init_lib2();
977
- init_helpers3();
1077
+ init_helpers4();
978
1078
  fromMarkdown = createSyncFn(cjsRequire3.resolve("./worker.js"));
979
1079
  }
980
1080
  });
981
1081
 
982
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/markdown.js
1082
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/markdown.js
983
1083
  function traverse(node, callbacks) {
984
1084
  if (callbacks[node.type]) {
985
1085
  callbacks[node.type](node);
@@ -993,15 +1093,15 @@ function traverse(node, callbacks) {
993
1093
  }
994
1094
  }
995
1095
  }
996
- function getComment(html) {
997
- const commentStart = "<!--";
998
- const commentEnd = "-->";
999
- const regex = /^(?:eslint\b|global\s)/u;
1000
- if (!html.startsWith(commentStart) || !html.endsWith(commentEnd)) {
1096
+ function getComment(value, isMdx = false) {
1097
+ const [commentStart, commentEnd] = COMMENTS[+isMdx];
1098
+ const commentStartMatched = commentStart.exec(value);
1099
+ const commentEndMatched = commentEnd.exec(value);
1100
+ if (commentStartMatched == null || commentEndMatched == null) {
1001
1101
  return "";
1002
1102
  }
1003
- const comment = html.slice(commentStart.length, -commentEnd.length);
1004
- if (!regex.test(comment.trim())) {
1103
+ const comment = value.slice(commentStartMatched[0].length, -commentEndMatched[0].length).trim();
1104
+ if (!eslintCommentRegex.test(comment)) {
1005
1105
  return "";
1006
1106
  }
1007
1107
  return comment;
@@ -1046,47 +1146,57 @@ function fileNameFromMeta(block) {
1046
1146
  }
1047
1147
  function preprocess(sourceText, filename) {
1048
1148
  const text = sourceText.startsWith(BOM) ? sourceText.slice(1) : sourceText;
1049
- const ast = fromMarkdown(text);
1149
+ const ast = fromMarkdown(text, filename.endsWith(".mdx"));
1050
1150
  const blocks = [];
1051
1151
  blocksCache.set(filename, blocks);
1052
- let htmlComments = [];
1152
+ let allComments = [];
1153
+ function mdxExpression(node) {
1154
+ const comment = getComment(node.value, true);
1155
+ if (comment) {
1156
+ allComments.push(comment);
1157
+ } else {
1158
+ allComments = [];
1159
+ }
1160
+ }
1053
1161
  traverse(ast, {
1054
1162
  "*"() {
1055
- htmlComments = [];
1163
+ allComments = [];
1056
1164
  },
1057
1165
  code(node) {
1058
- if (node.lang) {
1059
- const comments = [];
1060
- for (const comment of htmlComments) {
1061
- if (comment.trim() === "eslint-skip") {
1062
- htmlComments = [];
1063
- return;
1064
- }
1065
- comments.push(`/*${comment}*/`);
1166
+ if (!node.lang) {
1167
+ return;
1168
+ }
1169
+ const comments = [];
1170
+ for (const comment of allComments) {
1171
+ if (comment === "eslint-skip") {
1172
+ allComments = [];
1173
+ return;
1066
1174
  }
1067
- htmlComments = [];
1068
- blocks.push({
1069
- ...node,
1070
- baseIndentText: getIndentText(text, node),
1071
- comments,
1072
- rangeMap: getBlockRangeMap(text, node, comments)
1073
- });
1175
+ comments.push(`/* ${comment} */`);
1074
1176
  }
1177
+ allComments = [];
1178
+ blocks.push({
1179
+ ...node,
1180
+ baseIndentText: getIndentText(text, node),
1181
+ comments,
1182
+ rangeMap: getBlockRangeMap(text, node, comments)
1183
+ });
1075
1184
  },
1076
1185
  html(node) {
1077
1186
  const comment = getComment(node.value);
1078
1187
  if (comment) {
1079
- htmlComments.push(comment);
1188
+ allComments.push(comment);
1080
1189
  } else {
1081
- htmlComments = [];
1190
+ allComments = [];
1082
1191
  }
1083
- }
1192
+ },
1193
+ mdxFlowExpression: mdxExpression,
1194
+ mdxTextExpression: mdxExpression
1084
1195
  });
1085
1196
  return blocks.map((block, index) => {
1086
1197
  const [language] = block.lang.trim().split(" ");
1087
- const fileExtension = Object.hasOwn(languageToFileExtension, language) ? languageToFileExtension[language] : language;
1088
1198
  return {
1089
- filename: fileNameFromMeta(block) ?? `${index}.${fileExtension}`,
1199
+ filename: fileNameFromMeta(block) ?? `${index}.${language}`,
1090
1200
  text: [...block.comments, block.value, ""].join("\n")
1091
1201
  };
1092
1202
  });
@@ -1150,12 +1260,13 @@ function postprocess(messages, filename) {
1150
1260
  return group.map(adjust).filter(excludeUnsatisfiableRules);
1151
1261
  });
1152
1262
  }
1153
- var UNSATISFIABLE_RULES, SUPPORTS_AUTOFIX, BOM, blocksCache, leadingWhitespaceRegex, codeBlockFileNameRegex, languageToFileExtension, markdownProcessor;
1263
+ var UNSATISFIABLE_RULES, SUPPORTS_AUTOFIX, BOM, blocksCache, COMMENTS, eslintCommentRegex, leadingWhitespaceRegex, codeBlockFileNameRegex, markdownProcessor;
1154
1264
  var init_markdown = __esm({
1155
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/markdown.js"() {
1265
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/markdown.js"() {
1156
1266
  "use strict";
1157
1267
  init_cjs_shims();
1158
1268
  init_from_markdown();
1269
+ init_meta2();
1159
1270
  UNSATISFIABLE_RULES = /* @__PURE__ */ new Set([
1160
1271
  "eol-last",
1161
1272
  "unicode-bom"
@@ -1163,18 +1274,23 @@ var init_markdown = __esm({
1163
1274
  SUPPORTS_AUTOFIX = true;
1164
1275
  BOM = "\uFEFF";
1165
1276
  blocksCache = /* @__PURE__ */ new Map();
1277
+ COMMENTS = [
1278
+ [
1279
+ /^<!-{2,}/,
1280
+ /-{2,}>$/
1281
+ ],
1282
+ [
1283
+ /^\/\*+/,
1284
+ /\*+\/$/
1285
+ ]
1286
+ ];
1287
+ eslintCommentRegex = /^(?:eslint\b|global\s)/u;
1166
1288
  leadingWhitespaceRegex = /^[>\s]*/u;
1167
- codeBlockFileNameRegex = /filename=(["']).*?\1/u;
1168
- languageToFileExtension = {
1169
- javascript: "js",
1170
- ecmascript: "js",
1171
- typescript: "ts",
1172
- markdown: "md"
1173
- };
1289
+ codeBlockFileNameRegex = /filename=(?<quote>["'])(?<filename>.*?)\k<quote>/u;
1174
1290
  markdownProcessor = {
1175
1291
  meta: {
1176
- name: "@eslint/markdown/markdown",
1177
- version: "6.3.0"
1292
+ name: "mdx/markdown",
1293
+ version: meta2.version
1178
1294
  },
1179
1295
  preprocess,
1180
1296
  postprocess,
@@ -1183,15 +1299,15 @@ var init_markdown = __esm({
1183
1299
  }
1184
1300
  });
1185
1301
 
1186
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/options.js
1302
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/options.js
1187
1303
  var processorOptions, linterPath, ESLinter, verify;
1188
1304
  var init_options = __esm({
1189
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/options.js"() {
1305
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/options.js"() {
1190
1306
  "use strict";
1191
1307
  init_cjs_shims();
1192
- init_helpers3();
1308
+ init_helpers4();
1193
1309
  processorOptions = {};
1194
- linterPath = Object.keys(cjsRequire3.cache).find((path6) => /([/\\])eslint\1lib(?:\1linter){2}\.js$/.test(path6));
1310
+ linterPath = Object.keys(cjsRequire3.cache).find((path7) => /([/\\])eslint\1lib(?:\1linter){2}\.js$/.test(path7));
1195
1311
  if (!linterPath) {
1196
1312
  throw new Error("Could not find ESLint Linter in require cache");
1197
1313
  }
@@ -1206,14 +1322,14 @@ var init_options = __esm({
1206
1322
  }
1207
1323
  });
1208
1324
 
1209
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/remark.js
1325
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/remark.js
1210
1326
  var createRemarkProcessor, remark;
1211
1327
  var init_remark = __esm({
1212
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/remark.js"() {
1328
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/remark.js"() {
1213
1329
  "use strict";
1214
1330
  init_cjs_shims();
1215
1331
  init_meta2();
1216
- init_helpers4();
1332
+ init_helpers5();
1217
1333
  init_markdown();
1218
1334
  init_options();
1219
1335
  createRemarkProcessor = (processorOptions2 = processorOptions) => ({
@@ -1257,27 +1373,27 @@ var init_remark = __esm({
1257
1373
  }
1258
1374
  });
1259
1375
 
1260
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/index.js
1376
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/index.js
1261
1377
  var processors;
1262
1378
  var init_processors = __esm({
1263
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/index.js"() {
1379
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/processors/index.js"() {
1264
1380
  "use strict";
1265
1381
  init_cjs_shims();
1266
1382
  init_remark();
1267
- init_helpers4();
1383
+ init_helpers5();
1268
1384
  init_options();
1269
1385
  init_remark();
1270
1386
  processors = { remark };
1271
1387
  }
1272
1388
  });
1273
1389
 
1274
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/remark.js
1275
- var import_node_path5, remark2;
1390
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/remark.js
1391
+ var import_node_path6, remark2;
1276
1392
  var init_remark2 = __esm({
1277
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/remark.js"() {
1393
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/remark.js"() {
1278
1394
  "use strict";
1279
1395
  init_cjs_shims();
1280
- import_node_path5 = __toESM(require("path"), 1);
1396
+ import_node_path6 = __toESM(require("path"), 1);
1281
1397
  init_lib3();
1282
1398
  remark2 = {
1283
1399
  meta: {
@@ -1291,7 +1407,7 @@ var init_remark2 = __esm({
1291
1407
  },
1292
1408
  create(context) {
1293
1409
  const filename = context.getFilename();
1294
- const extname = import_node_path5.default.extname(filename);
1410
+ const extname = import_node_path6.default.extname(filename);
1295
1411
  const sourceCode = context.getSourceCode();
1296
1412
  const options = context.parserOptions;
1297
1413
  const isMdx = [
@@ -1308,15 +1424,11 @@ var init_remark2 = __esm({
1308
1424
  return;
1309
1425
  }
1310
1426
  const ignoreRemarkConfig = Boolean(options.ignoreRemarkConfig);
1311
- const physicalFilename = getPhysicalFilename(filename);
1312
1427
  const sourceText = sourceCode.getText(node);
1313
1428
  const { messages, content: fixedText } = performSyncWork({
1314
- fileOptions: {
1315
- path: physicalFilename,
1316
- value: sourceText,
1317
- cwd: context.getCwd()
1318
- },
1319
- physicalFilename,
1429
+ filePath: getPhysicalFilename(filename),
1430
+ code: sourceText,
1431
+ cwd: context.getCwd(),
1320
1432
  isMdx,
1321
1433
  process: true,
1322
1434
  ignoreRemarkConfig
@@ -1345,7 +1457,7 @@ var init_remark2 = __esm({
1345
1457
  end: { ...place.end, column: place.end.column - 1 }
1346
1458
  } : point,
1347
1459
  node,
1348
- fix: fixedText === sourceText ? null : () => fixed++ ? null : {
1460
+ fix: fixedText == null || fixedText === sourceText ? null : () => fixed++ ? null : {
1349
1461
  range: [0, sourceText.length],
1350
1462
  text: fixedText
1351
1463
  }
@@ -1358,10 +1470,10 @@ var init_remark2 = __esm({
1358
1470
  }
1359
1471
  });
1360
1472
 
1361
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/index.js
1473
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/index.js
1362
1474
  var rules;
1363
1475
  var init_rules = __esm({
1364
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/index.js"() {
1476
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/rules/index.js"() {
1365
1477
  "use strict";
1366
1478
  init_cjs_shims();
1367
1479
  init_remark2();
@@ -1369,7 +1481,7 @@ var init_rules = __esm({
1369
1481
  }
1370
1482
  });
1371
1483
 
1372
- // ../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/index.js
1484
+ // ../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/index.js
1373
1485
  var lib_exports2 = {};
1374
1486
  __export(lib_exports2, {
1375
1487
  DEFAULT_LANGUAGE_MAPPER: () => DEFAULT_LANGUAGE_MAPPER,
@@ -1391,11 +1503,11 @@ __export(lib_exports2, {
1391
1503
  rules: () => rules
1392
1504
  });
1393
1505
  var init_lib4 = __esm({
1394
- "../../node_modules/.pnpm/eslint-plugin-mdx@3.3.1_eslint@9.23.0_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/index.js"() {
1506
+ "../../node_modules/.pnpm/eslint-plugin-mdx@3.4.1_eslint@9.25.1_jiti@2.4.2_/node_modules/eslint-plugin-mdx/lib/index.js"() {
1395
1507
  "use strict";
1396
1508
  init_cjs_shims();
1397
1509
  init_configs();
1398
- init_helpers3();
1510
+ init_helpers4();
1399
1511
  init_meta2();
1400
1512
  init_processors();
1401
1513
  init_rules();
@@ -1495,7 +1607,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
1495
1607
  // src/defaults.ts
1496
1608
  init_cjs_shims();
1497
1609
 
1498
- // ../../node_modules/.pnpm/eslint-plugin-vue@10.0.0_eslint@9.23.0_jiti@2.4.2__vue-eslint-parser@10.1.1_eslint@9.23.0_jiti@2.4.2__/node_modules/eslint-plugin-vue/lib/utils/inline-non-void-elements.json
1610
+ // ../../node_modules/.pnpm/eslint-plugin-vue@10.0.0_eslint@9.25.1_jiti@2.4.2__vue-eslint-parser@10.1.3_eslint@9.25.1_jiti@2.4.2__/node_modules/eslint-plugin-vue/lib/utils/inline-non-void-elements.json
1499
1611
  var inline_non_void_elements_default = [
1500
1612
  "a",
1501
1613
  "abbr",
@@ -1638,7 +1750,8 @@ function getPresets(options, mode) {
1638
1750
  // 问题在于 auto fix 的时候,会直接 remove 整个 import ,而我们想让用户自己去 remove
1639
1751
  // 'unused-imports/no-unused-imports': 'error',
1640
1752
  // https://typescript-eslint.io/rules/no-unused-vars/
1641
- "no-unused-vars": "off"
1753
+ "no-unused-vars": "off",
1754
+ "prefer-const": "off"
1642
1755
  }
1643
1756
  }
1644
1757
  });