@storm-software/eslint 0.170.146 → 0.170.148

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.
@@ -1,19 +1,21 @@
1
- import { getTsConfigPath } from './chunk-EEYALP2Y.js';
2
- import { GLOB_ASTRO, GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_GRAPHQL, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_TSX, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_TS, GLOB_SRC_FILE, GLOB_TESTS, GLOB_TOML, GLOB_YAML } from './chunk-BMVXVU4C.js';
3
- import { findWorkspaceRoot } from './chunk-E2NGV25P.js';
4
- import { joinPaths } from './chunk-AQ6O65DK.js';
5
- import { interopDefault, isPackageInScope, ensurePackages, parserPlain, renameRules, isInEditorEnv } from './chunk-3TEXQ75B.js';
6
- import { __commonJS, init_esm_shims, __toESM, __require, __filename as __filename$1 } from './chunk-KKSKXDKN.js';
1
+ import { detectPackageManager } from './chunk-YQLFHRZH.js';
2
+ import { getTsConfigPath } from './chunk-IANE44ON.js';
3
+ import { GLOB_ASTRO, GLOB_EXCLUDE, GLOB_SRC, GLOB_SRC_EXT, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_GRAPHQL, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_TSX, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_TS, GLOB_SRC_FILE, GLOB_TESTS, GLOB_TOML, GLOB_YAML } from './chunk-23MHL5A5.js';
4
+ import { findWorkspaceRoot } from './chunk-TXQW75XG.js';
5
+ import { joinPaths } from './chunk-2GBBEPXG.js';
6
+ import { interopDefault, ensurePackages, isPackageInScope, parserPlain, renameRules, isInEditorEnv } from './chunk-S3KJ56KD.js';
7
+ import { __commonJS, init_esm_shims, __toESM, __require, __filename as __filename$1 } from './chunk-V2FABXKB.js';
7
8
  import * as __import_util from 'util';
8
9
  import { FlatConfigComposer } from 'eslint-flat-config-utils';
9
10
  import { isPackageExists } from 'local-pkg';
10
11
  import { loadConfig } from 'c12';
11
12
  import defu from 'defu';
12
13
  import chalk from 'chalk';
13
- import fs3, { existsSync, readFileSync } from 'node:fs';
14
+ import fs3, { existsSync } from 'node:fs';
14
15
  import path16, { join } from 'node:path';
15
16
  import { readFile } from 'node:fs/promises';
16
17
  import { EOL } from 'node:os';
18
+ import { readCachedProjectGraph, createProjectGraphAsync } from '@nx/devkit';
17
19
  import cspellConfig from '@cspell/eslint-plugin/recommended';
18
20
  import '@cspell/eslint-plugin';
19
21
  import default3 from '@nx/eslint-plugin/nx';
@@ -42,17 +44,7 @@ import default11 from 'eslint-plugin-unused-imports';
42
44
  import globalsLib from 'globals';
43
45
  import markdownlint from 'eslint-plugin-markdownlint';
44
46
  import markdownlintParser from 'eslint-plugin-markdownlint/parser';
45
- import { readCachedProjectGraph, createProjectGraphAsync } from '@nx/devkit';
46
- import * as jsoncParser from 'jsonc-eslint-parser';
47
- import jsoncParser__default from 'jsonc-eslint-parser';
48
- import * as yamlParser from 'yaml-eslint-parser';
49
- import yamlParser__default from 'yaml-eslint-parser';
50
- import process2 from 'node:process';
51
- import { findUpSync } from 'find-up-simple';
52
- import { parsePnpmWorkspaceYaml } from 'pnpm-workspace-yaml';
53
- import { basename, normalize as normalize$1, resolve as resolve$1, dirname } from 'pathe';
54
- import { globSync } from 'tinyglobby';
55
- import config4 from 'eslint-plugin-prettier/recommended';
47
+ import config3 from 'eslint-plugin-prettier/recommended';
56
48
  import { configs as configs$1 } from 'eslint-plugin-regexp';
57
49
 
58
50
  // ../../node_modules/.pnpm/eslint-plugin-react-native@5.0.0_patch_hash=697a1cfd3f9a70758c1743e394cb6f0b089088d1388_e65fed7009d5f84f4f251107085bb038/node_modules/eslint-plugin-react-native/lib/util/Components.js
@@ -623,9 +615,9 @@ var require_stylesheet = __commonJS({
623
615
  },
624
616
  getStyleReferenceFromExpression: function(node2) {
625
617
  const result = [];
626
- const name3 = astHelpers.getObjectName(node2);
627
- if (name3) {
628
- result.push(name3);
618
+ const name2 = astHelpers.getObjectName(node2);
619
+ if (name2) {
620
+ result.push(name2);
629
621
  }
630
622
  const property = astHelpers.getPropertyName(node2);
631
623
  if (property) {
@@ -1024,10 +1016,10 @@ var require_split_platform_components = __commonJS({
1024
1016
  return node2.name;
1025
1017
  }
1026
1018
  }
1027
- function hasNodeWithName(nodes, name3) {
1019
+ function hasNodeWithName(nodes, name2) {
1028
1020
  return nodes.some((node2) => {
1029
1021
  const nodeName = getName(node2);
1030
- return nodeName && nodeName.includes(name3);
1022
+ return nodeName && nodeName.includes(name2);
1031
1023
  });
1032
1024
  }
1033
1025
  function reportErrors(components, filename) {
@@ -1109,8 +1101,8 @@ var require_no_raw_text = __commonJS({
1109
1101
  let curNode = parent;
1110
1102
  while (curNode) {
1111
1103
  if (curNode.type === "JSXElement") {
1112
- const name3 = elementName(curNode);
1113
- if (allowedElements.includes(name3)) {
1104
+ const name2 = elementName(curNode);
1105
+ if (allowedElements.includes(name2)) {
1114
1106
  return true;
1115
1107
  }
1116
1108
  }
@@ -1290,10 +1282,10 @@ var require_eslint_plugin_react_native = __commonJS({
1290
1282
  "no-raw-text": __import___lib_rules_noRawText,
1291
1283
  "no-single-element-style-arrays": __import___lib_rules_noSingleElementStyleArrays
1292
1284
  };
1293
- function configureAsError(rules5) {
1285
+ function configureAsError(rules3) {
1294
1286
  const result = {};
1295
- for (const key in rules5) {
1296
- if (!rules5.hasOwnProperty(key)) {
1287
+ for (const key in rules3) {
1288
+ if (!rules3.hasOwnProperty(key)) {
1297
1289
  continue;
1298
1290
  }
1299
1291
  result["react-native/" + key] = 2;
@@ -1567,14 +1559,14 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
1567
1559
  };
1568
1560
 
1569
1561
  // ../config-tools/src/logger/console.ts
1570
- var getLogFn = (logLevel = LogLevel.INFO, config5 = {}, options = {}) => {
1562
+ var getLogFn = (logLevel = LogLevel.INFO, config4 = {}, options = {}) => {
1571
1563
  const {
1572
1564
  chalk: _chalk = getChalk(),
1573
1565
  fullDateTime = false,
1574
1566
  hideDateTime = false
1575
1567
  } = options;
1576
- const colors = !config5.colors?.dark && !config5.colors?.["base"] && !config5.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config5.colors?.dark && typeof config5.colors.dark === "string" ? config5.colors : config5.colors?.["base"]?.dark && typeof config5.colors["base"].dark === "string" ? config5.colors["base"].dark : config5.colors?.["base"] ? config5.colors?.["base"] : DEFAULT_COLOR_CONFIG;
1577
- const configLogLevel = config5.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
1568
+ const colors = !config4.colors?.dark && !config4.colors?.["base"] && !config4.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config4.colors?.dark && typeof config4.colors.dark === "string" ? config4.colors : config4.colors?.["base"]?.dark && typeof config4.colors["base"].dark === "string" ? config4.colors["base"].dark : config4.colors?.["base"] ? config4.colors?.["base"] : DEFAULT_COLOR_CONFIG;
1569
+ const configLogLevel = config4.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
1578
1570
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
1579
1571
  return (_) => {
1580
1572
  };
@@ -1677,8 +1669,8 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
1677
1669
  );
1678
1670
  };
1679
1671
  };
1680
- var writeWarning = (message2, config5) => getLogFn(LogLevel.WARN, config5)(message2);
1681
- var writeTrace = (message2, config5) => getLogFn(LogLevel.TRACE, config5)(message2);
1672
+ var writeWarning = (message2, config4) => getLogFn(LogLevel.WARN, config4)(message2);
1673
+ var writeTrace = (message2, config4) => getLogFn(LogLevel.TRACE, config4)(message2);
1682
1674
  var MAX_DEPTH = 10;
1683
1675
  var formatLogMessage = (message2, options = {}, depth2 = 0) => {
1684
1676
  if (depth2 > MAX_DEPTH) {
@@ -1969,7 +1961,7 @@ init_esm_shims();
1969
1961
  init_esm_shims();
1970
1962
  var _a;
1971
1963
  // @__NO_SIDE_EFFECTS__
1972
- function $constructor(name3, initializer2, params) {
1964
+ function $constructor(name2, initializer2, params) {
1973
1965
  function init(inst, def) {
1974
1966
  if (!inst._zod) {
1975
1967
  Object.defineProperty(inst, "_zod", {
@@ -1981,10 +1973,10 @@ function $constructor(name3, initializer2, params) {
1981
1973
  enumerable: false
1982
1974
  });
1983
1975
  }
1984
- if (inst._zod.traits.has(name3)) {
1976
+ if (inst._zod.traits.has(name2)) {
1985
1977
  return;
1986
1978
  }
1987
- inst._zod.traits.add(name3);
1979
+ inst._zod.traits.add(name2);
1988
1980
  initializer2(inst, def);
1989
1981
  const proto = _.prototype;
1990
1982
  const keys = Object.keys(proto);
@@ -1998,7 +1990,7 @@ function $constructor(name3, initializer2, params) {
1998
1990
  const Parent = params?.Parent ?? Object;
1999
1991
  class Definition extends Parent {
2000
1992
  }
2001
- Object.defineProperty(Definition, "name", { value: name3 });
1993
+ Object.defineProperty(Definition, "name", { value: name2 });
2002
1994
  function _(def) {
2003
1995
  var _a4;
2004
1996
  const inst = params?.Parent ? new Definition() : this;
@@ -2014,10 +2006,10 @@ function $constructor(name3, initializer2, params) {
2014
2006
  value: (inst) => {
2015
2007
  if (params?.Parent && inst instanceof params.Parent)
2016
2008
  return true;
2017
- return inst?._zod?.traits?.has(name3);
2009
+ return inst?._zod?.traits?.has(name2);
2018
2010
  }
2019
2011
  });
2020
- Object.defineProperty(_, "name", { value: name3 });
2012
+ Object.defineProperty(_, "name", { value: name2 });
2021
2013
  return _;
2022
2014
  }
2023
2015
  var $ZodAsyncError = class extends Error {
@@ -2185,8 +2177,8 @@ function prefixIssues(path23, issues) {
2185
2177
  function unwrapMessage(message2) {
2186
2178
  return typeof message2 === "string" ? message2 : message2?.message;
2187
2179
  }
2188
- function finalizeIssue(iss, ctx, config5) {
2189
- const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config5.customError?.(iss)) ?? unwrapMessage(config5.localeError?.(iss)) ?? "Invalid input";
2180
+ function finalizeIssue(iss, ctx, config4) {
2181
+ const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config4.customError?.(iss)) ?? unwrapMessage(config4.localeError?.(iss)) ?? "Invalid input";
2190
2182
  const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
2191
2183
  rest.path ?? (rest.path = []);
2192
2184
  rest.message = message2;
@@ -4007,7 +3999,7 @@ async function getPackageJsonConfig(root) {
4007
3999
  let license = STORM_DEFAULT_LICENSE;
4008
4000
  let homepage = void 0;
4009
4001
  let support = void 0;
4010
- let name3 = void 0;
4002
+ let name2 = void 0;
4011
4003
  let namespace = void 0;
4012
4004
  let repository = void 0;
4013
4005
  const workspaceRoot = findWorkspaceRoot2(root);
@@ -4019,7 +4011,7 @@ async function getPackageJsonConfig(root) {
4019
4011
  if (file) {
4020
4012
  const packageJson = JSON.parse(file);
4021
4013
  if (packageJson.name) {
4022
- name3 = packageJson.name;
4014
+ name2 = packageJson.name;
4023
4015
  }
4024
4016
  if (packageJson.namespace) {
4025
4017
  namespace = packageJson.namespace;
@@ -4048,7 +4040,7 @@ async function getPackageJsonConfig(root) {
4048
4040
  }
4049
4041
  return {
4050
4042
  workspaceRoot,
4051
- name: name3,
4043
+ name: name2,
4052
4044
  namespace,
4053
4045
  repository,
4054
4046
  license,
@@ -4056,40 +4048,40 @@ async function getPackageJsonConfig(root) {
4056
4048
  support
4057
4049
  };
4058
4050
  }
4059
- function applyDefaultConfig(config5) {
4060
- if (!config5.support && config5.contact) {
4061
- config5.support = config5.contact;
4051
+ function applyDefaultConfig(config4) {
4052
+ if (!config4.support && config4.contact) {
4053
+ config4.support = config4.contact;
4062
4054
  }
4063
- if (!config5.contact && config5.support) {
4064
- config5.contact = config5.support;
4055
+ if (!config4.contact && config4.support) {
4056
+ config4.contact = config4.support;
4065
4057
  }
4066
- if (config5.homepage) {
4067
- if (!config5.docs) {
4068
- config5.docs = `${config5.homepage}/docs`;
4058
+ if (config4.homepage) {
4059
+ if (!config4.docs) {
4060
+ config4.docs = `${config4.homepage}/docs`;
4069
4061
  }
4070
- if (!config5.license) {
4071
- config5.license = `${config5.homepage}/license`;
4062
+ if (!config4.license) {
4063
+ config4.license = `${config4.homepage}/license`;
4072
4064
  }
4073
- if (!config5.support) {
4074
- config5.support = `${config5.homepage}/support`;
4065
+ if (!config4.support) {
4066
+ config4.support = `${config4.homepage}/support`;
4075
4067
  }
4076
- if (!config5.contact) {
4077
- config5.contact = `${config5.homepage}/contact`;
4068
+ if (!config4.contact) {
4069
+ config4.contact = `${config4.homepage}/contact`;
4078
4070
  }
4079
- if (!config5.error?.codesFile || !config5?.error?.url) {
4080
- config5.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
4081
- if (config5.homepage) {
4082
- config5.error.url ??= `${config5.homepage}/errors`;
4071
+ if (!config4.error?.codesFile || !config4?.error?.url) {
4072
+ config4.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
4073
+ if (config4.homepage) {
4074
+ config4.error.url ??= `${config4.homepage}/errors`;
4083
4075
  }
4084
4076
  }
4085
4077
  }
4086
- return config5;
4078
+ return config4;
4087
4079
  }
4088
4080
 
4089
4081
  // ../config-tools/src/config-file/get-config-file.ts
4090
4082
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
4091
4083
  const workspacePath = filePath || findWorkspaceRoot2(filePath);
4092
- const configs6 = await Promise.all([
4084
+ const configs4 = await Promise.all([
4093
4085
  loadConfig({
4094
4086
  cwd: workspacePath,
4095
4087
  packageJson: true,
@@ -4120,14 +4112,14 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
4120
4112
  ...options
4121
4113
  })
4122
4114
  ]);
4123
- return defu(configs6[0] ?? {}, configs6[1] ?? {});
4115
+ return defu(configs4[0] ?? {}, configs4[1] ?? {});
4124
4116
  };
4125
4117
  var getConfigFile = async (filePath, additionalFileNames = []) => {
4126
4118
  const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
4127
4119
  const result = await getConfigFileByName("storm-workspace", workspacePath);
4128
- let config5 = result.config;
4120
+ let config4 = result.config;
4129
4121
  const configFile = result.configFile;
4130
- if (config5 && configFile && Object.keys(config5).length > 0 && !config5.skipConfigLogging) {
4122
+ if (config4 && configFile && Object.keys(config4).length > 0 && !config4.skipConfigLogging) {
4131
4123
  writeTrace(
4132
4124
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
4133
4125
  {
@@ -4143,7 +4135,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
4143
4135
  );
4144
4136
  for (const result2 of results) {
4145
4137
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
4146
- if (!config5.skipConfigLogging && !result2.config.skipConfigLogging) {
4138
+ if (!config4.skipConfigLogging && !result2.config.skipConfigLogging) {
4147
4139
  writeTrace(
4148
4140
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
4149
4141
  {
@@ -4151,15 +4143,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
4151
4143
  }
4152
4144
  );
4153
4145
  }
4154
- config5 = defu(result2.config ?? {}, config5 ?? {});
4146
+ config4 = defu(result2.config ?? {}, config4 ?? {});
4155
4147
  }
4156
4148
  }
4157
4149
  }
4158
- if (!config5 || Object.keys(config5).length === 0) {
4150
+ if (!config4 || Object.keys(config4).length === 0) {
4159
4151
  return void 0;
4160
4152
  }
4161
- config5.configFile = configFile;
4162
- return config5;
4153
+ config4.configFile = configFile;
4154
+ return config4;
4163
4155
  };
4164
4156
 
4165
4157
  // ../config-tools/src/create-storm-config.ts
@@ -4169,7 +4161,7 @@ init_esm_shims();
4169
4161
  init_esm_shims();
4170
4162
  var getConfigEnv = () => {
4171
4163
  const prefix = "STORM_";
4172
- let config5 = {
4164
+ let config4 = {
4173
4165
  extends: process.env[`${prefix}EXTENDS`] || void 0,
4174
4166
  name: process.env[`${prefix}NAME`] || void 0,
4175
4167
  variant: process.env[`${prefix}VARIANT`] || void 0,
@@ -4258,38 +4250,38 @@ var getConfigEnv = () => {
4258
4250
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
4259
4251
  )
4260
4252
  );
4261
- config5.colors = themeNames.length > 0 ? themeNames.reduce(
4253
+ config4.colors = themeNames.length > 0 ? themeNames.reduce(
4262
4254
  (ret, themeName) => {
4263
4255
  ret[themeName] = getThemeColorsEnv(prefix, themeName);
4264
4256
  return ret;
4265
4257
  },
4266
4258
  {}
4267
4259
  ) : getThemeColorsEnv(prefix);
4268
- if (config5.docs === STORM_DEFAULT_DOCS) {
4269
- if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
4270
- config5.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/docs`;
4260
+ if (config4.docs === STORM_DEFAULT_DOCS) {
4261
+ if (config4.homepage === STORM_DEFAULT_HOMEPAGE) {
4262
+ config4.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config4.name}/docs`;
4271
4263
  } else {
4272
- config5.docs = `${config5.homepage}/docs`;
4264
+ config4.docs = `${config4.homepage}/docs`;
4273
4265
  }
4274
4266
  }
4275
- if (config5.licensing === STORM_DEFAULT_LICENSING) {
4276
- if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
4277
- config5.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/licensing`;
4267
+ if (config4.licensing === STORM_DEFAULT_LICENSING) {
4268
+ if (config4.homepage === STORM_DEFAULT_HOMEPAGE) {
4269
+ config4.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config4.name}/licensing`;
4278
4270
  } else {
4279
- config5.licensing = `${config5.homepage}/docs`;
4271
+ config4.licensing = `${config4.homepage}/docs`;
4280
4272
  }
4281
4273
  }
4282
4274
  const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
4283
4275
  if (serializedConfig) {
4284
4276
  const parsed = JSON.parse(serializedConfig);
4285
- config5 = {
4286
- ...config5,
4277
+ config4 = {
4278
+ ...config4,
4287
4279
  ...parsed,
4288
- colors: { ...config5.colors, ...parsed.colors },
4289
- extensions: { ...config5.extensions, ...parsed.extensions }
4280
+ colors: { ...config4.colors, ...parsed.colors },
4281
+ extensions: { ...config4.extensions, ...parsed.extensions }
4290
4282
  };
4291
4283
  }
4292
- return config5;
4284
+ return config4;
4293
4285
  };
4294
4286
  var getThemeColorsEnv = (prefix, theme) => {
4295
4287
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
@@ -4394,360 +4386,360 @@ var setExtensionEnv = (extensionName, extension) => {
4394
4386
  }
4395
4387
  }
4396
4388
  };
4397
- var setConfigEnv = (config5) => {
4389
+ var setConfigEnv = (config4) => {
4398
4390
  const prefix = "STORM_";
4399
- if (config5.extends) {
4400
- process.env[`${prefix}EXTENDS`] = Array.isArray(config5.extends) ? JSON.stringify(config5.extends) : config5.extends;
4391
+ if (config4.extends) {
4392
+ process.env[`${prefix}EXTENDS`] = Array.isArray(config4.extends) ? JSON.stringify(config4.extends) : config4.extends;
4401
4393
  }
4402
- if (config5.name) {
4403
- process.env[`${prefix}NAME`] = config5.name;
4394
+ if (config4.name) {
4395
+ process.env[`${prefix}NAME`] = config4.name;
4404
4396
  }
4405
- if (config5.variant) {
4406
- process.env[`${prefix}VARIANT`] = config5.variant;
4397
+ if (config4.variant) {
4398
+ process.env[`${prefix}VARIANT`] = config4.variant;
4407
4399
  }
4408
- if (config5.namespace) {
4409
- process.env[`${prefix}NAMESPACE`] = config5.namespace;
4400
+ if (config4.namespace) {
4401
+ process.env[`${prefix}NAMESPACE`] = config4.namespace;
4410
4402
  }
4411
- if (config5.owner) {
4412
- process.env[`${prefix}OWNER`] = config5.owner;
4403
+ if (config4.owner) {
4404
+ process.env[`${prefix}OWNER`] = config4.owner;
4413
4405
  }
4414
- if (config5.bot) {
4415
- process.env[`${prefix}BOT_NAME`] = config5.bot.name;
4416
- process.env[`${prefix}BOT_EMAIL`] = config5.bot.email;
4406
+ if (config4.bot) {
4407
+ process.env[`${prefix}BOT_NAME`] = config4.bot.name;
4408
+ process.env[`${prefix}BOT_EMAIL`] = config4.bot.email;
4417
4409
  }
4418
- if (config5.error) {
4419
- process.env[`${prefix}ERROR_CODES_FILE`] = config5.error.codesFile;
4420
- process.env[`${prefix}ERROR_URL`] = config5.error.url;
4410
+ if (config4.error) {
4411
+ process.env[`${prefix}ERROR_CODES_FILE`] = config4.error.codesFile;
4412
+ process.env[`${prefix}ERROR_URL`] = config4.error.url;
4421
4413
  }
4422
- if (config5.release) {
4423
- if (config5.release.banner) {
4424
- if (typeof config5.release.banner === "string") {
4425
- process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner;
4426
- process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner;
4414
+ if (config4.release) {
4415
+ if (config4.release.banner) {
4416
+ if (typeof config4.release.banner === "string") {
4417
+ process.env[`${prefix}RELEASE_BANNER`] = config4.release.banner;
4418
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config4.release.banner;
4427
4419
  } else {
4428
- process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner.url;
4429
- process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner.url;
4430
- process.env[`${prefix}RELEASE_BANNER_ALT`] = config5.release.banner.alt;
4420
+ process.env[`${prefix}RELEASE_BANNER`] = config4.release.banner.url;
4421
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config4.release.banner.url;
4422
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config4.release.banner.alt;
4431
4423
  }
4432
4424
  }
4433
- process.env[`${prefix}RELEASE_HEADER`] = config5.release.header;
4434
- process.env[`${prefix}RELEASE_FOOTER`] = config5.release.footer;
4425
+ process.env[`${prefix}RELEASE_HEADER`] = config4.release.header;
4426
+ process.env[`${prefix}RELEASE_FOOTER`] = config4.release.footer;
4435
4427
  }
4436
- if (config5.socials) {
4437
- if (config5.socials.twitter) {
4438
- process.env[`${prefix}SOCIAL_TWITTER`] = config5.socials.twitter;
4428
+ if (config4.socials) {
4429
+ if (config4.socials.twitter) {
4430
+ process.env[`${prefix}SOCIAL_TWITTER`] = config4.socials.twitter;
4439
4431
  }
4440
- if (config5.socials.discord) {
4441
- process.env[`${prefix}SOCIAL_DISCORD`] = config5.socials.discord;
4432
+ if (config4.socials.discord) {
4433
+ process.env[`${prefix}SOCIAL_DISCORD`] = config4.socials.discord;
4442
4434
  }
4443
- if (config5.socials.telegram) {
4444
- process.env[`${prefix}SOCIAL_TELEGRAM`] = config5.socials.telegram;
4435
+ if (config4.socials.telegram) {
4436
+ process.env[`${prefix}SOCIAL_TELEGRAM`] = config4.socials.telegram;
4445
4437
  }
4446
- if (config5.socials.slack) {
4447
- process.env[`${prefix}SOCIAL_SLACK`] = config5.socials.slack;
4438
+ if (config4.socials.slack) {
4439
+ process.env[`${prefix}SOCIAL_SLACK`] = config4.socials.slack;
4448
4440
  }
4449
- if (config5.socials.medium) {
4450
- process.env[`${prefix}SOCIAL_MEDIUM`] = config5.socials.medium;
4441
+ if (config4.socials.medium) {
4442
+ process.env[`${prefix}SOCIAL_MEDIUM`] = config4.socials.medium;
4451
4443
  }
4452
- if (config5.socials.github) {
4453
- process.env[`${prefix}SOCIAL_GITHUB`] = config5.socials.github;
4444
+ if (config4.socials.github) {
4445
+ process.env[`${prefix}SOCIAL_GITHUB`] = config4.socials.github;
4454
4446
  }
4455
4447
  }
4456
- if (config5.organization) {
4457
- if (typeof config5.organization === "string") {
4458
- process.env[`${prefix}ORG`] = config5.organization;
4459
- process.env[`${prefix}ORG_NAME`] = config5.organization;
4460
- process.env[`${prefix}ORGANIZATION`] = config5.organization;
4461
- process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization;
4448
+ if (config4.organization) {
4449
+ if (typeof config4.organization === "string") {
4450
+ process.env[`${prefix}ORG`] = config4.organization;
4451
+ process.env[`${prefix}ORG_NAME`] = config4.organization;
4452
+ process.env[`${prefix}ORGANIZATION`] = config4.organization;
4453
+ process.env[`${prefix}ORGANIZATION_NAME`] = config4.organization;
4462
4454
  } else {
4463
- process.env[`${prefix}ORG`] = config5.organization.name;
4464
- process.env[`${prefix}ORG_NAME`] = config5.organization.name;
4465
- process.env[`${prefix}ORGANIZATION`] = config5.organization.name;
4466
- process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization.name;
4467
- if (config5.organization.url) {
4468
- process.env[`${prefix}ORG_URL`] = config5.organization.url;
4469
- process.env[`${prefix}ORGANIZATION_URL`] = config5.organization.url;
4455
+ process.env[`${prefix}ORG`] = config4.organization.name;
4456
+ process.env[`${prefix}ORG_NAME`] = config4.organization.name;
4457
+ process.env[`${prefix}ORGANIZATION`] = config4.organization.name;
4458
+ process.env[`${prefix}ORGANIZATION_NAME`] = config4.organization.name;
4459
+ if (config4.organization.url) {
4460
+ process.env[`${prefix}ORG_URL`] = config4.organization.url;
4461
+ process.env[`${prefix}ORGANIZATION_URL`] = config4.organization.url;
4470
4462
  }
4471
- if (config5.organization.description) {
4472
- process.env[`${prefix}ORG_DESCRIPTION`] = config5.organization.description;
4473
- process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config5.organization.description;
4463
+ if (config4.organization.description) {
4464
+ process.env[`${prefix}ORG_DESCRIPTION`] = config4.organization.description;
4465
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config4.organization.description;
4474
4466
  }
4475
- if (config5.organization.logo) {
4476
- process.env[`${prefix}ORG_LOGO`] = config5.organization.logo;
4477
- process.env[`${prefix}ORGANIZATION_LOGO`] = config5.organization.logo;
4467
+ if (config4.organization.logo) {
4468
+ process.env[`${prefix}ORG_LOGO`] = config4.organization.logo;
4469
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config4.organization.logo;
4478
4470
  }
4479
- if (config5.organization.icon) {
4480
- process.env[`${prefix}ORG_ICON`] = config5.organization.icon;
4481
- process.env[`${prefix}ORGANIZATION_ICON`] = config5.organization.icon;
4471
+ if (config4.organization.icon) {
4472
+ process.env[`${prefix}ORG_ICON`] = config4.organization.icon;
4473
+ process.env[`${prefix}ORGANIZATION_ICON`] = config4.organization.icon;
4482
4474
  }
4483
4475
  }
4484
4476
  }
4485
- if (config5.packageManager) {
4486
- process.env[`${prefix}PACKAGE_MANAGER`] = config5.packageManager;
4477
+ if (config4.packageManager) {
4478
+ process.env[`${prefix}PACKAGE_MANAGER`] = config4.packageManager;
4487
4479
  }
4488
- if (config5.license) {
4489
- process.env[`${prefix}LICENSE`] = config5.license;
4480
+ if (config4.license) {
4481
+ process.env[`${prefix}LICENSE`] = config4.license;
4490
4482
  }
4491
- if (config5.homepage) {
4492
- process.env[`${prefix}HOMEPAGE`] = config5.homepage;
4483
+ if (config4.homepage) {
4484
+ process.env[`${prefix}HOMEPAGE`] = config4.homepage;
4493
4485
  }
4494
- if (config5.docs) {
4495
- process.env[`${prefix}DOCS`] = config5.docs;
4486
+ if (config4.docs) {
4487
+ process.env[`${prefix}DOCS`] = config4.docs;
4496
4488
  }
4497
- if (config5.portal) {
4498
- process.env[`${prefix}PORTAL`] = config5.portal;
4489
+ if (config4.portal) {
4490
+ process.env[`${prefix}PORTAL`] = config4.portal;
4499
4491
  }
4500
- if (config5.licensing) {
4501
- process.env[`${prefix}LICENSING`] = config5.licensing;
4492
+ if (config4.licensing) {
4493
+ process.env[`${prefix}LICENSING`] = config4.licensing;
4502
4494
  }
4503
- if (config5.contact) {
4504
- process.env[`${prefix}CONTACT`] = config5.contact;
4495
+ if (config4.contact) {
4496
+ process.env[`${prefix}CONTACT`] = config4.contact;
4505
4497
  }
4506
- if (config5.support) {
4507
- process.env[`${prefix}SUPPORT`] = config5.support;
4498
+ if (config4.support) {
4499
+ process.env[`${prefix}SUPPORT`] = config4.support;
4508
4500
  }
4509
- if (config5.timezone) {
4510
- process.env[`${prefix}TIMEZONE`] = config5.timezone;
4511
- process.env.TZ = config5.timezone;
4512
- process.env.DEFAULT_TIMEZONE = config5.timezone;
4513
- process.env.TIMEZONE = config5.timezone;
4501
+ if (config4.timezone) {
4502
+ process.env[`${prefix}TIMEZONE`] = config4.timezone;
4503
+ process.env.TZ = config4.timezone;
4504
+ process.env.DEFAULT_TIMEZONE = config4.timezone;
4505
+ process.env.TIMEZONE = config4.timezone;
4514
4506
  }
4515
- if (config5.locale) {
4516
- process.env[`${prefix}LOCALE`] = config5.locale;
4517
- process.env.DEFAULT_LOCALE = config5.locale;
4518
- process.env.LOCALE = config5.locale;
4519
- process.env.LANG = config5.locale ? `${config5.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
4507
+ if (config4.locale) {
4508
+ process.env[`${prefix}LOCALE`] = config4.locale;
4509
+ process.env.DEFAULT_LOCALE = config4.locale;
4510
+ process.env.LOCALE = config4.locale;
4511
+ process.env.LANG = config4.locale ? `${config4.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
4520
4512
  }
4521
- if (config5.configFile) {
4513
+ if (config4.configFile) {
4522
4514
  process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
4523
- config5.configFile
4515
+ config4.configFile
4524
4516
  );
4525
4517
  }
4526
- if (config5.workspaceRoot) {
4527
- process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config5.workspaceRoot);
4528
- process.env.NX_WORKSPACE_ROOT = correctPaths(config5.workspaceRoot);
4529
- process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config5.workspaceRoot);
4518
+ if (config4.workspaceRoot) {
4519
+ process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config4.workspaceRoot);
4520
+ process.env.NX_WORKSPACE_ROOT = correctPaths(config4.workspaceRoot);
4521
+ process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config4.workspaceRoot);
4530
4522
  }
4531
- if (config5.directories) {
4532
- if (!config5.skipCache && config5.directories.cache) {
4523
+ if (config4.directories) {
4524
+ if (!config4.skipCache && config4.directories.cache) {
4533
4525
  process.env[`${prefix}CACHE_DIR`] = correctPaths(
4534
- config5.directories.cache
4526
+ config4.directories.cache
4535
4527
  );
4536
4528
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
4537
4529
  }
4538
- if (config5.directories.data) {
4539
- process.env[`${prefix}DATA_DIR`] = correctPaths(config5.directories.data);
4530
+ if (config4.directories.data) {
4531
+ process.env[`${prefix}DATA_DIR`] = correctPaths(config4.directories.data);
4540
4532
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
4541
4533
  }
4542
- if (config5.directories.config) {
4534
+ if (config4.directories.config) {
4543
4535
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(
4544
- config5.directories.config
4536
+ config4.directories.config
4545
4537
  );
4546
4538
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
4547
4539
  }
4548
- if (config5.directories.temp) {
4549
- process.env[`${prefix}TEMP_DIR`] = correctPaths(config5.directories.temp);
4540
+ if (config4.directories.temp) {
4541
+ process.env[`${prefix}TEMP_DIR`] = correctPaths(config4.directories.temp);
4550
4542
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
4551
4543
  }
4552
- if (config5.directories.log) {
4553
- process.env[`${prefix}LOG_DIR`] = correctPaths(config5.directories.log);
4544
+ if (config4.directories.log) {
4545
+ process.env[`${prefix}LOG_DIR`] = correctPaths(config4.directories.log);
4554
4546
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
4555
4547
  }
4556
- if (config5.directories.build) {
4548
+ if (config4.directories.build) {
4557
4549
  process.env[`${prefix}BUILD_DIR`] = correctPaths(
4558
- config5.directories.build
4550
+ config4.directories.build
4559
4551
  );
4560
4552
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
4561
4553
  }
4562
4554
  }
4563
- if (config5.skipCache !== void 0) {
4564
- process.env[`${prefix}SKIP_CACHE`] = String(config5.skipCache);
4565
- if (config5.skipCache) {
4566
- process.env.NX_SKIP_NX_CACHE ??= String(config5.skipCache);
4567
- process.env.NX_CACHE_PROJECT_GRAPH ??= String(config5.skipCache);
4555
+ if (config4.skipCache !== void 0) {
4556
+ process.env[`${prefix}SKIP_CACHE`] = String(config4.skipCache);
4557
+ if (config4.skipCache) {
4558
+ process.env.NX_SKIP_NX_CACHE ??= String(config4.skipCache);
4559
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config4.skipCache);
4568
4560
  }
4569
4561
  }
4570
- if (config5.mode) {
4571
- process.env[`${prefix}MODE`] = config5.mode;
4572
- process.env.NODE_ENV = config5.mode;
4573
- process.env.ENVIRONMENT = config5.mode;
4562
+ if (config4.mode) {
4563
+ process.env[`${prefix}MODE`] = config4.mode;
4564
+ process.env.NODE_ENV = config4.mode;
4565
+ process.env.ENVIRONMENT = config4.mode;
4574
4566
  }
4575
- if (config5.colors?.base?.light || config5.colors?.base?.dark) {
4576
- for (const key of Object.keys(config5.colors)) {
4577
- setThemeColorsEnv(`${prefix}COLOR_${key}_`, config5.colors[key]);
4567
+ if (config4.colors?.base?.light || config4.colors?.base?.dark) {
4568
+ for (const key of Object.keys(config4.colors)) {
4569
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config4.colors[key]);
4578
4570
  }
4579
4571
  } else {
4580
4572
  setThemeColorsEnv(
4581
4573
  `${prefix}COLOR_`,
4582
- config5.colors
4574
+ config4.colors
4583
4575
  );
4584
4576
  }
4585
- if (config5.repository) {
4586
- process.env[`${prefix}REPOSITORY`] = config5.repository;
4577
+ if (config4.repository) {
4578
+ process.env[`${prefix}REPOSITORY`] = config4.repository;
4587
4579
  }
4588
- if (config5.branch) {
4589
- process.env[`${prefix}BRANCH`] = config5.branch;
4580
+ if (config4.branch) {
4581
+ process.env[`${prefix}BRANCH`] = config4.branch;
4590
4582
  }
4591
- if (config5.preid) {
4592
- process.env[`${prefix}PRE_ID`] = String(config5.preid);
4583
+ if (config4.preid) {
4584
+ process.env[`${prefix}PRE_ID`] = String(config4.preid);
4593
4585
  }
4594
- if (config5.registry) {
4595
- if (config5.registry.github) {
4596
- process.env[`${prefix}REGISTRY_GITHUB`] = String(config5.registry.github);
4586
+ if (config4.registry) {
4587
+ if (config4.registry.github) {
4588
+ process.env[`${prefix}REGISTRY_GITHUB`] = String(config4.registry.github);
4597
4589
  }
4598
- if (config5.registry.npm) {
4599
- process.env[`${prefix}REGISTRY_NPM`] = String(config5.registry.npm);
4590
+ if (config4.registry.npm) {
4591
+ process.env[`${prefix}REGISTRY_NPM`] = String(config4.registry.npm);
4600
4592
  }
4601
- if (config5.registry.cargo) {
4602
- process.env[`${prefix}REGISTRY_CARGO`] = String(config5.registry.cargo);
4593
+ if (config4.registry.cargo) {
4594
+ process.env[`${prefix}REGISTRY_CARGO`] = String(config4.registry.cargo);
4603
4595
  }
4604
- if (config5.registry.cyclone) {
4596
+ if (config4.registry.cyclone) {
4605
4597
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(
4606
- config5.registry.cyclone
4598
+ config4.registry.cyclone
4607
4599
  );
4608
4600
  }
4609
- if (config5.registry.container) {
4601
+ if (config4.registry.container) {
4610
4602
  process.env[`${prefix}REGISTRY_CONTAINER`] = String(
4611
- config5.registry.container
4603
+ config4.registry.container
4612
4604
  );
4613
4605
  }
4614
4606
  }
4615
- if (config5.logLevel) {
4616
- process.env[`${prefix}LOG_LEVEL`] = String(config5.logLevel);
4617
- process.env.LOG_LEVEL = String(config5.logLevel);
4607
+ if (config4.logLevel) {
4608
+ process.env[`${prefix}LOG_LEVEL`] = String(config4.logLevel);
4609
+ process.env.LOG_LEVEL = String(config4.logLevel);
4618
4610
  process.env.NX_VERBOSE_LOGGING = String(
4619
- getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? true : false
4611
+ getLogLevel(config4.logLevel) >= LogLevel.DEBUG ? true : false
4620
4612
  );
4621
- process.env.RUST_BACKTRACE = getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? "full" : "none";
4613
+ process.env.RUST_BACKTRACE = getLogLevel(config4.logLevel) >= LogLevel.DEBUG ? "full" : "none";
4622
4614
  }
4623
- if (config5.skipConfigLogging !== void 0) {
4615
+ if (config4.skipConfigLogging !== void 0) {
4624
4616
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
4625
- config5.skipConfigLogging
4617
+ config4.skipConfigLogging
4626
4618
  );
4627
4619
  }
4628
- process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config5);
4629
- for (const key of Object.keys(config5.extensions ?? {})) {
4630
- if (config5.extensions[key] && Object.keys(config5.extensions[key])) {
4631
- setExtensionEnv(key, config5.extensions[key]);
4620
+ process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config4);
4621
+ for (const key of Object.keys(config4.extensions ?? {})) {
4622
+ if (config4.extensions[key] && Object.keys(config4.extensions[key])) {
4623
+ setExtensionEnv(key, config4.extensions[key]);
4632
4624
  }
4633
4625
  }
4634
4626
  };
4635
- var setThemeColorsEnv = (prefix, config5) => {
4636
- return config5?.light?.brand || config5?.dark?.brand ? setMultiThemeColorsEnv(prefix, config5) : setSingleThemeColorsEnv(prefix, config5);
4627
+ var setThemeColorsEnv = (prefix, config4) => {
4628
+ return config4?.light?.brand || config4?.dark?.brand ? setMultiThemeColorsEnv(prefix, config4) : setSingleThemeColorsEnv(prefix, config4);
4637
4629
  };
4638
- var setSingleThemeColorsEnv = (prefix, config5) => {
4639
- if (config5.dark) {
4640
- process.env[`${prefix}DARK`] = config5.dark;
4630
+ var setSingleThemeColorsEnv = (prefix, config4) => {
4631
+ if (config4.dark) {
4632
+ process.env[`${prefix}DARK`] = config4.dark;
4641
4633
  }
4642
- if (config5.light) {
4643
- process.env[`${prefix}LIGHT`] = config5.light;
4634
+ if (config4.light) {
4635
+ process.env[`${prefix}LIGHT`] = config4.light;
4644
4636
  }
4645
- if (config5.brand) {
4646
- process.env[`${prefix}BRAND`] = config5.brand;
4637
+ if (config4.brand) {
4638
+ process.env[`${prefix}BRAND`] = config4.brand;
4647
4639
  }
4648
- if (config5.alternate) {
4649
- process.env[`${prefix}ALTERNATE`] = config5.alternate;
4640
+ if (config4.alternate) {
4641
+ process.env[`${prefix}ALTERNATE`] = config4.alternate;
4650
4642
  }
4651
- if (config5.accent) {
4652
- process.env[`${prefix}ACCENT`] = config5.accent;
4643
+ if (config4.accent) {
4644
+ process.env[`${prefix}ACCENT`] = config4.accent;
4653
4645
  }
4654
- if (config5.link) {
4655
- process.env[`${prefix}LINK`] = config5.link;
4646
+ if (config4.link) {
4647
+ process.env[`${prefix}LINK`] = config4.link;
4656
4648
  }
4657
- if (config5.discovery) {
4658
- process.env[`${prefix}DISCOVERY`] = config5.discovery;
4649
+ if (config4.discovery) {
4650
+ process.env[`${prefix}DISCOVERY`] = config4.discovery;
4659
4651
  }
4660
- if (config5.success) {
4661
- process.env[`${prefix}SUCCESS`] = config5.success;
4652
+ if (config4.success) {
4653
+ process.env[`${prefix}SUCCESS`] = config4.success;
4662
4654
  }
4663
- if (config5.info) {
4664
- process.env[`${prefix}INFO`] = config5.info;
4655
+ if (config4.info) {
4656
+ process.env[`${prefix}INFO`] = config4.info;
4665
4657
  }
4666
- if (config5.debug) {
4667
- process.env[`${prefix}DEBUG`] = config5.debug;
4658
+ if (config4.debug) {
4659
+ process.env[`${prefix}DEBUG`] = config4.debug;
4668
4660
  }
4669
- if (config5.warning) {
4670
- process.env[`${prefix}WARNING`] = config5.warning;
4661
+ if (config4.warning) {
4662
+ process.env[`${prefix}WARNING`] = config4.warning;
4671
4663
  }
4672
- if (config5.danger) {
4673
- process.env[`${prefix}DANGER`] = config5.danger;
4664
+ if (config4.danger) {
4665
+ process.env[`${prefix}DANGER`] = config4.danger;
4674
4666
  }
4675
- if (config5.fatal) {
4676
- process.env[`${prefix}FATAL`] = config5.fatal;
4667
+ if (config4.fatal) {
4668
+ process.env[`${prefix}FATAL`] = config4.fatal;
4677
4669
  }
4678
- if (config5.performance) {
4679
- process.env[`${prefix}PERFORMANCE`] = config5.performance;
4670
+ if (config4.performance) {
4671
+ process.env[`${prefix}PERFORMANCE`] = config4.performance;
4680
4672
  }
4681
- if (config5.positive) {
4682
- process.env[`${prefix}POSITIVE`] = config5.positive;
4673
+ if (config4.positive) {
4674
+ process.env[`${prefix}POSITIVE`] = config4.positive;
4683
4675
  }
4684
- if (config5.negative) {
4685
- process.env[`${prefix}NEGATIVE`] = config5.negative;
4676
+ if (config4.negative) {
4677
+ process.env[`${prefix}NEGATIVE`] = config4.negative;
4686
4678
  }
4687
- if (config5.gradient) {
4688
- for (let i = 0; i < config5.gradient.length; i++) {
4689
- process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
4679
+ if (config4.gradient) {
4680
+ for (let i = 0; i < config4.gradient.length; i++) {
4681
+ process.env[`${prefix}GRADIENT_${i}`] = config4.gradient[i];
4690
4682
  }
4691
4683
  }
4692
4684
  };
4693
- var setMultiThemeColorsEnv = (prefix, config5) => {
4685
+ var setMultiThemeColorsEnv = (prefix, config4) => {
4694
4686
  return {
4695
- light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config5.light),
4696
- dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config5.dark)
4687
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config4.light),
4688
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config4.dark)
4697
4689
  };
4698
4690
  };
4699
- var setBaseThemeColorsEnv = (prefix, config5) => {
4700
- if (config5.foreground) {
4701
- process.env[`${prefix}FOREGROUND`] = config5.foreground;
4691
+ var setBaseThemeColorsEnv = (prefix, config4) => {
4692
+ if (config4.foreground) {
4693
+ process.env[`${prefix}FOREGROUND`] = config4.foreground;
4702
4694
  }
4703
- if (config5.background) {
4704
- process.env[`${prefix}BACKGROUND`] = config5.background;
4695
+ if (config4.background) {
4696
+ process.env[`${prefix}BACKGROUND`] = config4.background;
4705
4697
  }
4706
- if (config5.brand) {
4707
- process.env[`${prefix}BRAND`] = config5.brand;
4698
+ if (config4.brand) {
4699
+ process.env[`${prefix}BRAND`] = config4.brand;
4708
4700
  }
4709
- if (config5.alternate) {
4710
- process.env[`${prefix}ALTERNATE`] = config5.alternate;
4701
+ if (config4.alternate) {
4702
+ process.env[`${prefix}ALTERNATE`] = config4.alternate;
4711
4703
  }
4712
- if (config5.accent) {
4713
- process.env[`${prefix}ACCENT`] = config5.accent;
4704
+ if (config4.accent) {
4705
+ process.env[`${prefix}ACCENT`] = config4.accent;
4714
4706
  }
4715
- if (config5.link) {
4716
- process.env[`${prefix}LINK`] = config5.link;
4707
+ if (config4.link) {
4708
+ process.env[`${prefix}LINK`] = config4.link;
4717
4709
  }
4718
- if (config5.discovery) {
4719
- process.env[`${prefix}DISCOVERY`] = config5.discovery;
4710
+ if (config4.discovery) {
4711
+ process.env[`${prefix}DISCOVERY`] = config4.discovery;
4720
4712
  }
4721
- if (config5.success) {
4722
- process.env[`${prefix}SUCCESS`] = config5.success;
4713
+ if (config4.success) {
4714
+ process.env[`${prefix}SUCCESS`] = config4.success;
4723
4715
  }
4724
- if (config5.info) {
4725
- process.env[`${prefix}INFO`] = config5.info;
4716
+ if (config4.info) {
4717
+ process.env[`${prefix}INFO`] = config4.info;
4726
4718
  }
4727
- if (config5.debug) {
4728
- process.env[`${prefix}DEBUG`] = config5.debug;
4719
+ if (config4.debug) {
4720
+ process.env[`${prefix}DEBUG`] = config4.debug;
4729
4721
  }
4730
- if (config5.warning) {
4731
- process.env[`${prefix}WARNING`] = config5.warning;
4722
+ if (config4.warning) {
4723
+ process.env[`${prefix}WARNING`] = config4.warning;
4732
4724
  }
4733
- if (config5.danger) {
4734
- process.env[`${prefix}DANGER`] = config5.danger;
4725
+ if (config4.danger) {
4726
+ process.env[`${prefix}DANGER`] = config4.danger;
4735
4727
  }
4736
- if (config5.fatal) {
4737
- process.env[`${prefix}FATAL`] = config5.fatal;
4728
+ if (config4.fatal) {
4729
+ process.env[`${prefix}FATAL`] = config4.fatal;
4738
4730
  }
4739
- if (config5.performance) {
4740
- process.env[`${prefix}PERFORMANCE`] = config5.performance;
4731
+ if (config4.performance) {
4732
+ process.env[`${prefix}PERFORMANCE`] = config4.performance;
4741
4733
  }
4742
- if (config5.positive) {
4743
- process.env[`${prefix}POSITIVE`] = config5.positive;
4734
+ if (config4.positive) {
4735
+ process.env[`${prefix}POSITIVE`] = config4.positive;
4744
4736
  }
4745
- if (config5.negative) {
4746
- process.env[`${prefix}NEGATIVE`] = config5.negative;
4737
+ if (config4.negative) {
4738
+ process.env[`${prefix}NEGATIVE`] = config4.negative;
4747
4739
  }
4748
- if (config5.gradient) {
4749
- for (let i = 0; i < config5.gradient.length; i++) {
4750
- process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
4740
+ if (config4.gradient) {
4741
+ for (let i = 0; i < config4.gradient.length; i++) {
4742
+ process.env[`${prefix}GRADIENT_${i}`] = config4.gradient[i];
4751
4743
  }
4752
4744
  }
4753
4745
  };
@@ -4813,25 +4805,25 @@ Please ensure your configuration file is valid JSON and matches the expected sch
4813
4805
  };
4814
4806
  var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
4815
4807
  try {
4816
- const config5 = await createStormWorkspaceConfig(
4808
+ const config4 = await createStormWorkspaceConfig(
4817
4809
  void 0,
4818
4810
  void 0,
4819
4811
  workspaceRoot,
4820
4812
  skipLogs,
4821
4813
  useDefault
4822
4814
  );
4823
- if (!config5) {
4815
+ if (!config4) {
4824
4816
  return void 0;
4825
4817
  }
4826
- setConfigEnv(config5);
4827
- if (!skipLogs && !config5.skipConfigLogging) {
4818
+ setConfigEnv(config4);
4819
+ if (!skipLogs && !config4.skipConfigLogging) {
4828
4820
  writeTrace(
4829
4821
  `\u2699\uFE0F Using Storm Workspace configuration:
4830
- ${formatLogMessage(config5)}`,
4831
- config5
4822
+ ${formatLogMessage(config4)}`,
4823
+ config4
4832
4824
  );
4833
4825
  }
4834
- return config5;
4826
+ return config4;
4835
4827
  } catch (error) {
4836
4828
  if (!skipLogs) {
4837
4829
  writeWarning(
@@ -4875,7 +4867,7 @@ init_esm_shims();
4875
4867
 
4876
4868
  // ../eslint-plugin-banner/package.json
4877
4869
  var package_default = {
4878
- version: "0.0.76"};
4870
+ version: "0.0.78"};
4879
4871
 
4880
4872
  // ../eslint-plugin-banner/src/rules/banner.ts
4881
4873
  init_esm_shims();
@@ -4884,7 +4876,7 @@ init_esm_shims();
4884
4876
  init_esm_shims();
4885
4877
  function RuleCreator(urlCreator) {
4886
4878
  return function createNamedRule({
4887
- name: name3,
4879
+ name: name2,
4888
4880
  meta: meta3,
4889
4881
  ...rule
4890
4882
  }) {
@@ -4893,7 +4885,7 @@ function RuleCreator(urlCreator) {
4893
4885
  ...meta3,
4894
4886
  docs: {
4895
4887
  ...meta3.docs,
4896
- url: urlCreator(name3)
4888
+ url: urlCreator(name2)
4897
4889
  }
4898
4890
  },
4899
4891
  ...rule
@@ -4969,12 +4961,12 @@ var ACRONYMS_LIST = [
4969
4961
 
4970
4962
  // ../eslint-plugin-banner/src/helpers/get-banner.ts
4971
4963
  function getBanner(options) {
4972
- const { name: name3 } = options;
4964
+ const { name: name2 } = options;
4973
4965
  let padding = " ";
4974
- for (let i = 0; i < name3.length + 2 && padding.length > 4; i++) {
4966
+ for (let i = 0; i < name2.length + 2 && padding.length > 4; i++) {
4975
4967
  padding = padding.slice(0, -1);
4976
4968
  }
4977
- let titleName = name3;
4969
+ let titleName = name2;
4978
4970
  if (titleName) {
4979
4971
  if (titleName?.startsWith("@")) {
4980
4972
  titleName = titleName.slice(1);
@@ -4990,8 +4982,8 @@ function getBanner(options) {
4990
4982
  const organization = options.organization || "storm-software";
4991
4983
  const licensing = options.licensing?.replace(/\/$/, "") || "https://stormsoftware.com/licenses";
4992
4984
  const homepage = options.homepage || "https://stormsoftware.com";
4993
- const repository = options.repository || `https://github.com/${organization}${name3 ? `/${name3}` : ""}`;
4994
- const docs = options.docs || `https://docs.stormsoftware.com${name3 ? `/projects/${name3}` : ""}`;
4985
+ const repository = options.repository || `https://github.com/${organization}${name2 ? `/${name2}` : ""}`;
4986
+ const docs = options.docs || `https://docs.stormsoftware.com${name2 ? `/projects/${name2}` : ""}`;
4995
4987
  const formattedOrganization = (organization.charAt(0).toUpperCase() + organization.slice(1)).split("-").filter((word) => word && word.length > 0).map((word) => {
4996
4988
  if (ACRONYMS_LIST.includes(word.toUpperCase())) {
4997
4989
  return word.toUpperCase();
@@ -5006,7 +4998,7 @@ ${padding}\u{1F5F2} ${formattedOrganization} ${titleName ? `- ${titleName}` : ""
5006
4998
  This code was released as part of ${titleName ? `the ${titleName}` : `a ${formattedOrganization}`} project. ${titleName ? titleName : "The project"}
5007
4999
  is maintained by ${formattedOrganization} under the ${license} license, and is
5008
5000
  free for commercial and private use. For more information, please visit
5009
- our licensing page at ${licensing}/${name3 ? `projects/${name3}` : ""}.
5001
+ our licensing page at ${licensing}/${name2 ? `projects/${name2}` : ""}.
5010
5002
 
5011
5003
  Website: ${homepage}
5012
5004
  Repository: ${repository}
@@ -5206,7 +5198,7 @@ var banner_default = createRule({
5206
5198
  ],
5207
5199
  create: (context) => {
5208
5200
  const {
5209
- name: name3,
5201
+ name: name2,
5210
5202
  license,
5211
5203
  organization,
5212
5204
  licensing,
@@ -5218,7 +5210,7 @@ var banner_default = createRule({
5218
5210
  lineEndings
5219
5211
  } = context.options[0];
5220
5212
  const banner2 = getBanner({
5221
- name: name3,
5213
+ name: name2,
5222
5214
  license,
5223
5215
  organization,
5224
5216
  licensing,
@@ -5490,6 +5482,94 @@ async function banner(options = {}) {
5490
5482
  ];
5491
5483
  }
5492
5484
 
5485
+ // src/configs/bun.ts
5486
+ init_esm_shims();
5487
+ async function bun(options = {}) {
5488
+ const {
5489
+ overrides = {},
5490
+ ignore: ignore2 = ["typescript"],
5491
+ ignoreWorkspaceDeps = true
5492
+ } = options;
5493
+ const workspaceRoot = findWorkspaceRoot();
5494
+ await ensurePackages([
5495
+ "@storm-software/eslint-plugin-bun",
5496
+ "jsonc-eslint-parser"
5497
+ ]);
5498
+ const [plugin5, parserJsonc] = await Promise.all([
5499
+ interopDefault(import('./src-PMVM4MJ3.js')),
5500
+ interopDefault(import('jsonc-eslint-parser'))
5501
+ ]);
5502
+ if (ignoreWorkspaceDeps !== false) {
5503
+ let projectGraph;
5504
+ try {
5505
+ projectGraph = readCachedProjectGraph();
5506
+ } catch {
5507
+ await createProjectGraphAsync();
5508
+ projectGraph = readCachedProjectGraph();
5509
+ }
5510
+ const localPackages = [];
5511
+ if (projectGraph) {
5512
+ await Promise.all(
5513
+ Object.keys(projectGraph.nodes).map(async (node2) => {
5514
+ const projectNode = projectGraph.nodes[node2];
5515
+ if (projectNode?.data.root) {
5516
+ const projectPackageJsonPath = joinPaths(
5517
+ workspaceRoot,
5518
+ projectNode.data.root,
5519
+ "package.json"
5520
+ );
5521
+ if (existsSync(projectPackageJsonPath)) {
5522
+ const projectPackageJsonContent = await readFile(
5523
+ projectPackageJsonPath,
5524
+ "utf8"
5525
+ );
5526
+ const projectPackageJson = JSON.parse(projectPackageJsonContent);
5527
+ if (projectPackageJson.private !== true) {
5528
+ localPackages.push(projectPackageJson.name);
5529
+ }
5530
+ }
5531
+ }
5532
+ })
5533
+ );
5534
+ }
5535
+ localPackages.forEach((pkg) => {
5536
+ if (!ignore2.includes(pkg)) {
5537
+ ignore2.push(pkg);
5538
+ }
5539
+ });
5540
+ }
5541
+ const configs4 = (Array.isArray(plugin5.configs?.recommended) ? plugin5.configs.recommended : [plugin5.configs?.recommended]).filter(
5542
+ (config4) => config4 && typeof config4 === "object" && "name" in config4 && !config4.name?.endsWith("setup")
5543
+ );
5544
+ const packageJsonConfig = configs4.find(
5545
+ (config4) => config4.name?.endsWith("package-json") ?? false
5546
+ );
5547
+ return [
5548
+ {
5549
+ name: "storm/bun/setup",
5550
+ plugins: {
5551
+ bun: plugin5
5552
+ }
5553
+ },
5554
+ ...configs4.map((config4) => ({
5555
+ name: config4.name,
5556
+ ...config4
5557
+ })),
5558
+ {
5559
+ name: "storm/bun/package-json",
5560
+ ...packageJsonConfig,
5561
+ languageOptions: {
5562
+ ...packageJsonConfig?.languageOptions,
5563
+ parser: parserJsonc
5564
+ },
5565
+ rules: {
5566
+ ...packageJsonConfig?.rules,
5567
+ ...overrides
5568
+ }
5569
+ }
5570
+ ];
5571
+ }
5572
+
5493
5573
  // src/configs/cspell.ts
5494
5574
  init_esm_shims();
5495
5575
  async function cspell(options = {}) {
@@ -5588,7 +5668,7 @@ async function stylistic(options = {}) {
5588
5668
  const pluginStylistic = await interopDefault(
5589
5669
  import('@stylistic/eslint-plugin')
5590
5670
  );
5591
- const config5 = pluginStylistic.configs.customize({
5671
+ const config4 = pluginStylistic.configs.customize({
5592
5672
  indent,
5593
5673
  jsx: jsx2,
5594
5674
  pluginName: "style",
@@ -5602,7 +5682,7 @@ async function stylistic(options = {}) {
5602
5682
  style: pluginStylistic
5603
5683
  },
5604
5684
  rules: {
5605
- ...config5.rules,
5685
+ ...config4.rules,
5606
5686
  "style/lines-around-comment": "off",
5607
5687
  "style/linebreak-style": ["error", lineEndings],
5608
5688
  "style/comma-dangle": ["error", "never"],
@@ -5693,7 +5773,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5693
5773
  options.dprintOptions ?? {}
5694
5774
  );
5695
5775
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
5696
- const configs6 = [
5776
+ const configs4 = [
5697
5777
  {
5698
5778
  name: "storm/formatter/setup",
5699
5779
  plugins: {
@@ -5702,7 +5782,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5702
5782
  }
5703
5783
  ];
5704
5784
  if (options.css) {
5705
- configs6.push(
5785
+ configs4.push(
5706
5786
  {
5707
5787
  files: [GLOB_CSS, GLOB_POSTCSS],
5708
5788
  languageOptions: {
@@ -5751,7 +5831,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5751
5831
  );
5752
5832
  }
5753
5833
  if (options.html) {
5754
- configs6.push({
5834
+ configs4.push({
5755
5835
  files: [GLOB_HTML],
5756
5836
  languageOptions: {
5757
5837
  parser: parserPlain
@@ -5768,7 +5848,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5768
5848
  });
5769
5849
  }
5770
5850
  if (options.xml) {
5771
- configs6.push({
5851
+ configs4.push({
5772
5852
  files: [GLOB_XML],
5773
5853
  languageOptions: {
5774
5854
  parser: parserPlain
@@ -5789,7 +5869,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5789
5869
  });
5790
5870
  }
5791
5871
  if (options.svg) {
5792
- configs6.push({
5872
+ configs4.push({
5793
5873
  files: [GLOB_SVG],
5794
5874
  languageOptions: {
5795
5875
  parser: parserPlain
@@ -5811,7 +5891,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5811
5891
  }
5812
5892
  if (options.markdown) {
5813
5893
  const formater = options.markdown === true ? "prettier" : options.markdown;
5814
- configs6.push({
5894
+ configs4.push({
5815
5895
  files: [GLOB_MARKDOWN],
5816
5896
  languageOptions: {
5817
5897
  parser: parserPlain
@@ -5832,7 +5912,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5832
5912
  });
5833
5913
  }
5834
5914
  if (options.astro) {
5835
- configs6.push({
5915
+ configs4.push({
5836
5916
  files: [GLOB_ASTRO],
5837
5917
  languageOptions: {
5838
5918
  parser: parserPlain
@@ -5848,7 +5928,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5848
5928
  ]
5849
5929
  }
5850
5930
  });
5851
- configs6.push({
5931
+ configs4.push({
5852
5932
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
5853
5933
  name: "storm/formatter/astro/disables",
5854
5934
  rules: {
@@ -5863,7 +5943,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5863
5943
  });
5864
5944
  }
5865
5945
  if (options.graphql) {
5866
- configs6.push({
5946
+ configs4.push({
5867
5947
  files: [GLOB_GRAPHQL],
5868
5948
  languageOptions: {
5869
5949
  parser: parserPlain
@@ -5879,7 +5959,7 @@ async function formatters(options = {}, stylistic2 = {}) {
5879
5959
  }
5880
5960
  });
5881
5961
  }
5882
- return configs6;
5962
+ return configs4;
5883
5963
  }
5884
5964
 
5885
5965
  // src/configs/graphql.ts
@@ -6406,13 +6486,13 @@ var docsUrl = (ruleName, commitish = `v${version2}`) => `${repoUrl}/blob/${commi
6406
6486
 
6407
6487
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/create-rule.js
6408
6488
  function RuleCreator2(urlCreator) {
6409
- return function createNamedRule({ meta: meta3, name: name3, ...rule }) {
6489
+ return function createNamedRule({ meta: meta3, name: name2, ...rule }) {
6410
6490
  return createRule_({
6411
6491
  meta: {
6412
6492
  ...meta3,
6413
6493
  docs: {
6414
6494
  ...meta3.docs,
6415
- url: urlCreator(name3)
6495
+ url: urlCreator(name2)
6416
6496
  }
6417
6497
  },
6418
6498
  ...rule
@@ -6433,9 +6513,9 @@ var createRule2 = RuleCreator2(docsUrl);
6433
6513
 
6434
6514
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/declared-scope.js
6435
6515
  init_esm_shims();
6436
- function declaredScope(context, node2, name3) {
6516
+ function declaredScope(context, node2, name2) {
6437
6517
  const references = context.sourceCode.getScope(node2).references;
6438
- const reference = references.find((x) => x.identifier.name === name3);
6518
+ const reference = references.find((x) => x.identifier.name === name2);
6439
6519
  return reference?.resolved?.scope.type;
6440
6520
  }
6441
6521
 
@@ -6730,49 +6810,49 @@ function getFilePackageName(filename) {
6730
6810
  }
6731
6811
 
6732
6812
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/import-type.js
6733
- function baseModule(name3) {
6734
- if (isScoped(name3)) {
6735
- const [scope, pkg2] = name3.split("/");
6813
+ function baseModule(name2) {
6814
+ if (isScoped(name2)) {
6815
+ const [scope, pkg2] = name2.split("/");
6736
6816
  return `${scope}/${pkg2}`;
6737
6817
  }
6738
- const [pkg] = name3.split("/");
6818
+ const [pkg] = name2.split("/");
6739
6819
  return pkg;
6740
6820
  }
6741
- function isInternalRegexMatch(name3, settings) {
6821
+ function isInternalRegexMatch(name2, settings) {
6742
6822
  const internalScope = settings?.["import-x/internal-regex"];
6743
- return internalScope && new RegExp(internalScope).test(name3);
6823
+ return internalScope && new RegExp(internalScope).test(name2);
6744
6824
  }
6745
- function isAbsolute2(name3) {
6746
- return typeof name3 === "string" && path16.isAbsolute(name3);
6825
+ function isAbsolute2(name2) {
6826
+ return typeof name2 === "string" && path16.isAbsolute(name2);
6747
6827
  }
6748
- function isBuiltIn(name3, settings, modulePath) {
6749
- if (modulePath || !name3) {
6828
+ function isBuiltIn(name2, settings, modulePath) {
6829
+ if (modulePath || !name2) {
6750
6830
  return false;
6751
6831
  }
6752
- const base = baseModule(name3);
6832
+ const base = baseModule(name2);
6753
6833
  const extras = settings && settings["import-x/core-modules"] || [];
6754
6834
  return isBuiltin(base) || extras.includes(base);
6755
6835
  }
6756
- function isExternalModule(name3, modulePath, context) {
6757
- return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
6836
+ function isExternalModule(name2, modulePath, context) {
6837
+ return (isModule(name2) || isScoped(name2)) && typeTest(name2, context, modulePath) === "external";
6758
6838
  }
6759
6839
  var moduleRegExp = /^\w/;
6760
- function isModule(name3) {
6761
- return !!name3 && moduleRegExp.test(name3);
6840
+ function isModule(name2) {
6841
+ return !!name2 && moduleRegExp.test(name2);
6762
6842
  }
6763
6843
  var scopedRegExp = /^@[^/]+\/?[^/]+/;
6764
- function isScoped(name3) {
6765
- return !!name3 && scopedRegExp.test(name3);
6844
+ function isScoped(name2) {
6845
+ return !!name2 && scopedRegExp.test(name2);
6766
6846
  }
6767
- function isRelativeToParent(name3) {
6768
- return /^\.\.$|^\.\.[/\\]/.test(name3);
6847
+ function isRelativeToParent(name2) {
6848
+ return /^\.\.$|^\.\.[/\\]/.test(name2);
6769
6849
  }
6770
6850
  var indexFiles = /* @__PURE__ */ new Set([".", "./", "./index", "./index.js"]);
6771
- function isIndex(name3) {
6772
- return indexFiles.has(name3);
6851
+ function isIndex(name2) {
6852
+ return indexFiles.has(name2);
6773
6853
  }
6774
- function isRelativeToSibling(name3) {
6775
- return /^\.[/\\]/.test(name3);
6854
+ function isRelativeToSibling(name2) {
6855
+ return /^\.[/\\]/.test(name2);
6776
6856
  }
6777
6857
  function isExternalPath(filepath, context) {
6778
6858
  if (!filepath) {
@@ -6799,28 +6879,28 @@ function isInternalPath(filepath, context) {
6799
6879
  const packagePath = getContextPackagePath(context);
6800
6880
  return !path16.relative(packagePath, filepath).startsWith("../");
6801
6881
  }
6802
- function isExternalLookingName(name3) {
6803
- return isModule(name3) || isScoped(name3);
6882
+ function isExternalLookingName(name2) {
6883
+ return isModule(name2) || isScoped(name2);
6804
6884
  }
6805
- function typeTest(name3, context, path23) {
6885
+ function typeTest(name2, context, path23) {
6806
6886
  const { settings } = context;
6807
- if (typeof name3 === "string") {
6808
- if (isInternalRegexMatch(name3, settings)) {
6887
+ if (typeof name2 === "string") {
6888
+ if (isInternalRegexMatch(name2, settings)) {
6809
6889
  return "internal";
6810
6890
  }
6811
- if (isAbsolute2(name3)) {
6891
+ if (isAbsolute2(name2)) {
6812
6892
  return "absolute";
6813
6893
  }
6814
- if (isBuiltIn(name3, settings, path23)) {
6894
+ if (isBuiltIn(name2, settings, path23)) {
6815
6895
  return "builtin";
6816
6896
  }
6817
- if (isRelativeToParent(name3)) {
6897
+ if (isRelativeToParent(name2)) {
6818
6898
  return "parent";
6819
6899
  }
6820
- if (isIndex(name3)) {
6900
+ if (isIndex(name2)) {
6821
6901
  return "index";
6822
6902
  }
6823
- if (isRelativeToSibling(name3)) {
6903
+ if (isRelativeToSibling(name2)) {
6824
6904
  return "sibling";
6825
6905
  }
6826
6906
  }
@@ -6830,13 +6910,13 @@ function typeTest(name3, context, path23) {
6830
6910
  if (isInternalPath(path23, context)) {
6831
6911
  return "internal";
6832
6912
  }
6833
- if (typeof name3 === "string" && isExternalLookingName(name3)) {
6913
+ if (typeof name2 === "string" && isExternalLookingName(name2)) {
6834
6914
  return "external";
6835
6915
  }
6836
6916
  return "unknown";
6837
6917
  }
6838
- function importType(name3, context) {
6839
- return typeTest(name3, context, typeof name3 === "string" ? resolve(name3, context) : null);
6918
+ function importType(name2, context) {
6919
+ return typeTest(name2, context, typeof name2 === "string" ? resolve(name2, context) : null);
6840
6920
  }
6841
6921
 
6842
6922
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
@@ -6850,12 +6930,12 @@ function pkgDir(cwd) {
6850
6930
  }
6851
6931
 
6852
6932
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.17.1_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_9840712109fb59ffd84be76551e40796/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
6853
- function resolveWithLegacyResolver(resolver, config5, modulePath, sourceFile) {
6933
+ function resolveWithLegacyResolver(resolver, config4, modulePath, sourceFile) {
6854
6934
  if (resolver.interfaceVersion === 2) {
6855
- return resolver.resolve(modulePath, sourceFile, config5);
6935
+ return resolver.resolve(modulePath, sourceFile, config4);
6856
6936
  }
6857
6937
  try {
6858
- const resolved = resolver.resolveImport(modulePath, sourceFile, config5);
6938
+ const resolved = resolver.resolveImport(modulePath, sourceFile, config4);
6859
6939
  if (resolved === void 0) {
6860
6940
  return {
6861
6941
  found: false
@@ -6876,32 +6956,32 @@ function normalizeConfigResolvers(resolvers, sourceFile) {
6876
6956
  const map = /* @__PURE__ */ new Map();
6877
6957
  for (const nameOrRecordOrObject of resolverArray) {
6878
6958
  if (typeof nameOrRecordOrObject === "string") {
6879
- const name3 = nameOrRecordOrObject;
6880
- map.set(name3, {
6881
- name: name3,
6959
+ const name2 = nameOrRecordOrObject;
6960
+ map.set(name2, {
6961
+ name: name2,
6882
6962
  enable: true,
6883
6963
  options: void 0,
6884
- resolver: requireResolver(name3, sourceFile)
6964
+ resolver: requireResolver(name2, sourceFile)
6885
6965
  });
6886
6966
  } else if (typeof nameOrRecordOrObject === "object") {
6887
6967
  if (nameOrRecordOrObject.name && nameOrRecordOrObject.resolver) {
6888
6968
  const object2 = nameOrRecordOrObject;
6889
- const { name: name3, enable = true, options, resolver } = object2;
6890
- map.set(name3, { name: name3, enable, options, resolver });
6969
+ const { name: name2, enable = true, options, resolver } = object2;
6970
+ map.set(name2, { name: name2, enable, options, resolver });
6891
6971
  } else {
6892
6972
  const record2 = nameOrRecordOrObject;
6893
- for (const [name3, enableOrOptions] of Object.entries(record2)) {
6894
- const resolver = requireResolver(name3, sourceFile);
6973
+ for (const [name2, enableOrOptions] of Object.entries(record2)) {
6974
+ const resolver = requireResolver(name2, sourceFile);
6895
6975
  if (typeof enableOrOptions === "boolean") {
6896
- map.set(name3, {
6897
- name: name3,
6976
+ map.set(name2, {
6977
+ name: name2,
6898
6978
  enable: enableOrOptions,
6899
6979
  options: void 0,
6900
6980
  resolver
6901
6981
  });
6902
6982
  } else {
6903
- map.set(name3, {
6904
- name: name3,
6983
+ map.set(name2, {
6984
+ name: name2,
6905
6985
  enable: true,
6906
6986
  options: enableOrOptions,
6907
6987
  resolver
@@ -6925,18 +7005,18 @@ try {
6925
7005
  LEGACY_NODE_RESOLVERS.add(cjsRequire.resolve("eslint-import-resolver-node"));
6926
7006
  } catch {
6927
7007
  }
6928
- function requireResolver(name3, sourceFile) {
6929
- const resolver = tryRequire(`eslint-import-resolver-${name3}`, sourceFile) || tryRequire(name3, sourceFile) || tryRequire(path16.resolve(getBaseDir(sourceFile), name3));
7008
+ function requireResolver(name2, sourceFile) {
7009
+ const resolver = tryRequire(`eslint-import-resolver-${name2}`, sourceFile) || tryRequire(name2, sourceFile) || tryRequire(path16.resolve(getBaseDir(sourceFile), name2));
6930
7010
  if (!resolver) {
6931
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
7011
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
6932
7012
  return void 0;
6933
7013
  }
6934
- const err = new Error(`unable to load resolver "${name3}".`);
7014
+ const err = new Error(`unable to load resolver "${name2}".`);
6935
7015
  err.name = IMPORT_RESOLVE_ERROR_NAME;
6936
7016
  throw err;
6937
7017
  }
6938
7018
  if (!isLegacyResolverValid(resolver)) {
6939
- const err = new Error(`${name3} with invalid interface loaded as resolver`);
7019
+ const err = new Error(`${name2} with invalid interface loaded as resolver`);
6940
7020
  err.name = IMPORT_RESOLVE_ERROR_NAME;
6941
7021
  throw err;
6942
7022
  }
@@ -7190,11 +7270,11 @@ function fullResolve(modulePath, sourceFile, settings, context) {
7190
7270
  };
7191
7271
  const sourceFiles = context.physicalFilename === sourceFile || !isExternalLookingName(modulePath) ? [sourceFile] : [sourceFile, context.physicalFilename];
7192
7272
  for (const sourceFile2 of sourceFiles) {
7193
- for (const { enable, name: name3, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
7273
+ for (const { enable, name: name2, options, resolver } of normalizeConfigResolvers(configResolvers, sourceFile2)) {
7194
7274
  if (!enable) {
7195
7275
  continue;
7196
7276
  }
7197
- if (LEGACY_NODE_RESOLVERS.has(name3)) {
7277
+ if (LEGACY_NODE_RESOLVERS.has(name2)) {
7198
7278
  const resolverOptions = options || {};
7199
7279
  const resolved2 = legacyNodeResolve(resolverOptions, context, modulePath, sourceFile2);
7200
7280
  if (resolved2?.found) {
@@ -7724,44 +7804,44 @@ var ExportMap = class _ExportMap {
7724
7804
  }
7725
7805
  return size;
7726
7806
  }
7727
- has(name3) {
7728
- if (this.namespace.has(name3)) {
7807
+ has(name2) {
7808
+ if (this.namespace.has(name2)) {
7729
7809
  return true;
7730
7810
  }
7731
- if (this.reexports.has(name3)) {
7811
+ if (this.reexports.has(name2)) {
7732
7812
  return true;
7733
7813
  }
7734
- if (name3 !== "default") {
7814
+ if (name2 !== "default") {
7735
7815
  for (const dep of this.dependencies) {
7736
7816
  const innerMap = dep();
7737
7817
  if (!innerMap) {
7738
7818
  continue;
7739
7819
  }
7740
- if (innerMap.has(name3)) {
7820
+ if (innerMap.has(name2)) {
7741
7821
  return true;
7742
7822
  }
7743
7823
  }
7744
7824
  }
7745
7825
  return false;
7746
7826
  }
7747
- hasDeep(name3) {
7748
- if (this.namespace.has(name3)) {
7827
+ hasDeep(name2) {
7828
+ if (this.namespace.has(name2)) {
7749
7829
  return { found: true, path: [this] };
7750
7830
  }
7751
- if (this.reexports.has(name3)) {
7752
- const reexports = this.reexports.get(name3);
7831
+ if (this.reexports.has(name2)) {
7832
+ const reexports = this.reexports.get(name2);
7753
7833
  const imported = reexports.getImport();
7754
7834
  if (imported == null) {
7755
7835
  return { found: true, path: [this] };
7756
7836
  }
7757
- if (imported.path === this.path && reexports.local === name3) {
7837
+ if (imported.path === this.path && reexports.local === name2) {
7758
7838
  return { found: false, path: [this] };
7759
7839
  }
7760
7840
  const deep = imported.hasDeep(reexports.local);
7761
7841
  deep.path.unshift(this);
7762
7842
  return deep;
7763
7843
  }
7764
- if (name3 !== "default") {
7844
+ if (name2 !== "default") {
7765
7845
  for (const dep of this.dependencies) {
7766
7846
  const innerMap = dep();
7767
7847
  if (innerMap == null) {
@@ -7773,7 +7853,7 @@ var ExportMap = class _ExportMap {
7773
7853
  if (innerMap.path === this.path) {
7774
7854
  continue;
7775
7855
  }
7776
- const innerValue = innerMap.hasDeep(name3);
7856
+ const innerValue = innerMap.hasDeep(name2);
7777
7857
  if (innerValue.found) {
7778
7858
  innerValue.path.unshift(this);
7779
7859
  return innerValue;
@@ -7782,22 +7862,22 @@ var ExportMap = class _ExportMap {
7782
7862
  }
7783
7863
  return { found: false, path: [this] };
7784
7864
  }
7785
- get(name3) {
7786
- if (this.namespace.has(name3)) {
7787
- return this.namespace.get(name3);
7865
+ get(name2) {
7866
+ if (this.namespace.has(name2)) {
7867
+ return this.namespace.get(name2);
7788
7868
  }
7789
- if (this.reexports.has(name3)) {
7790
- const reexports = this.reexports.get(name3);
7869
+ if (this.reexports.has(name2)) {
7870
+ const reexports = this.reexports.get(name2);
7791
7871
  const imported = reexports.getImport();
7792
7872
  if (imported == null) {
7793
7873
  return null;
7794
7874
  }
7795
- if (imported.path === this.path && reexports.local === name3) {
7875
+ if (imported.path === this.path && reexports.local === name2) {
7796
7876
  return void 0;
7797
7877
  }
7798
7878
  return imported.get(reexports.local);
7799
7879
  }
7800
- if (name3 !== "default") {
7880
+ if (name2 !== "default") {
7801
7881
  for (const dep of this.dependencies) {
7802
7882
  const innerMap = dep();
7803
7883
  if (!innerMap) {
@@ -7806,7 +7886,7 @@ var ExportMap = class _ExportMap {
7806
7886
  if (innerMap.path === this.path) {
7807
7887
  continue;
7808
7888
  }
7809
- const innerValue = innerMap.get(name3);
7889
+ const innerValue = innerMap.get(name2);
7810
7890
  if (innerValue !== void 0) {
7811
7891
  return innerValue;
7812
7892
  }
@@ -7817,9 +7897,9 @@ var ExportMap = class _ExportMap {
7817
7897
  for (const [n, v] of this.namespace.entries()) {
7818
7898
  callback.call(thisArg, v, n, this);
7819
7899
  }
7820
- for (const [name3, reexports] of this.reexports.entries()) {
7900
+ for (const [name2, reexports] of this.reexports.entries()) {
7821
7901
  const reexported = reexports.getImport();
7822
- callback.call(thisArg, reexported?.get(reexports.local), name3, this);
7902
+ callback.call(thisArg, reexported?.get(reexports.local), name2, this);
7823
7903
  }
7824
7904
  this.dependencies.forEach((dep) => {
7825
7905
  const d = dep();
@@ -8609,12 +8689,12 @@ var export_default = createRule2({
8609
8689
  defaultOptions: [],
8610
8690
  create(context) {
8611
8691
  const namespace = /* @__PURE__ */ new Map([[rootProgram, /* @__PURE__ */ new Map()]]);
8612
- function addNamed(name3, node2, parent, isType) {
8692
+ function addNamed(name2, node2, parent, isType) {
8613
8693
  if (!namespace.has(parent)) {
8614
8694
  namespace.set(parent, /* @__PURE__ */ new Map());
8615
8695
  }
8616
8696
  const named = namespace.get(parent);
8617
- const key = isType ? `${tsTypePrefix}${name3}` : name3;
8697
+ const key = isType ? `${tsTypePrefix}${name2}` : name2;
8618
8698
  let nodes = named.get(key);
8619
8699
  if (nodes == null) {
8620
8700
  nodes = /* @__PURE__ */ new Set();
@@ -8670,10 +8750,10 @@ var export_default = createRule2({
8670
8750
  }
8671
8751
  const parent = getParent(node2);
8672
8752
  let any2 = false;
8673
- remoteExports.$forEach((_, name3) => {
8674
- if (name3 !== "default") {
8753
+ remoteExports.$forEach((_, name2) => {
8754
+ if (name2 !== "default") {
8675
8755
  any2 = true;
8676
- addNamed(name3, node2, parent);
8756
+ addNamed(name2, node2, parent);
8677
8757
  }
8678
8758
  });
8679
8759
  if (!any2) {
@@ -8686,7 +8766,7 @@ var export_default = createRule2({
8686
8766
  },
8687
8767
  "Program:exit"() {
8688
8768
  for (const [, named] of namespace) {
8689
- for (const [name3, nodes] of named) {
8769
+ for (const [name2, nodes] of named) {
8690
8770
  if (nodes.size === 0) {
8691
8771
  continue;
8692
8772
  }
@@ -8701,7 +8781,7 @@ var export_default = createRule2({
8701
8781
  if (shouldSkipTypescriptNamespace(node2, nodes)) {
8702
8782
  continue;
8703
8783
  }
8704
- if (name3 === "default") {
8784
+ if (name2 === "default") {
8705
8785
  context.report({
8706
8786
  node: node2,
8707
8787
  messageId: "multiDefault"
@@ -8711,7 +8791,7 @@ var export_default = createRule2({
8711
8791
  node: node2,
8712
8792
  messageId: "multiNamed",
8713
8793
  data: {
8714
- name: name3.replace(tsTypePrefix, "")
8794
+ name: name2.replace(tsTypePrefix, "")
8715
8795
  }
8716
8796
  });
8717
8797
  }
@@ -11037,8 +11117,8 @@ var named_default = createRule2({
11037
11117
  continue;
11038
11118
  }
11039
11119
  const imNode = im[key];
11040
- const name3 = imNode.name || imNode.value;
11041
- const deepLookup = imports2.hasDeep(name3);
11120
+ const name2 = imNode.name || imNode.value;
11121
+ const deepLookup = imports2.hasDeep(name2);
11042
11122
  if (!deepLookup.found) {
11043
11123
  if (deepLookup.path.length > 1) {
11044
11124
  const deepPath = deepLookup.path.map((i) => path16.relative(path16.dirname(context.physicalFilename), i.path)).join(" -> ");
@@ -11046,7 +11126,7 @@ var named_default = createRule2({
11046
11126
  node: imNode,
11047
11127
  messageId: "notFoundDeep",
11048
11128
  data: {
11049
- name: name3,
11129
+ name: name2,
11050
11130
  deepPath
11051
11131
  }
11052
11132
  });
@@ -11055,7 +11135,7 @@ var named_default = createRule2({
11055
11135
  node: imNode,
11056
11136
  messageId: "notFound",
11057
11137
  data: {
11058
- name: name3,
11138
+ name: name2,
11059
11139
  path: node2.source.value
11060
11140
  }
11061
11141
  });
@@ -11937,7 +12017,7 @@ var no_cycle_default = createRule2({
11937
12017
  }
11938
12018
  const options = context.options[0] || {};
11939
12019
  const maxDepth = typeof options.maxDepth === "number" ? options.maxDepth : Number.POSITIVE_INFINITY;
11940
- const ignoreModule = options.ignoreExternal ? (name3) => isExternalModule(name3, resolve(name3, context), context) : () => false;
12020
+ const ignoreModule = options.ignoreExternal ? (name2) => isExternalModule(name2, resolve(name2, context), context) : () => false;
11941
12021
  return {
11942
12022
  ...moduleVisitor(function checkSourceValue(sourceNode, importer) {
11943
12023
  if (ignoreModule(sourceNode.value)) {
@@ -12767,8 +12847,8 @@ function getDependencies(context, packageDir) {
12767
12847
  }
12768
12848
  }
12769
12849
  }
12770
- function getModuleOriginalName(name3) {
12771
- const [first, second] = name3.split("/");
12850
+ function getModuleOriginalName(name2) {
12851
+ const [first, second] = name2.split("/");
12772
12852
  return first.startsWith("@") ? `${first}/${second}` : first;
12773
12853
  }
12774
12854
  function checkDependencyDeclaration(deps, packageName, declarationStatus) {
@@ -12795,19 +12875,19 @@ function checkDependencyDeclaration(deps, packageName, declarationStatus) {
12795
12875
  isInBundledDeps: result.isInBundledDeps || deps.bundledDependencies.includes(ancestorName)
12796
12876
  }), newDeclarationStatus);
12797
12877
  }
12798
- function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
12878
+ function reportIfMissing(context, deps, depsOptions, node2, name2, whitelist) {
12799
12879
  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")))) {
12800
12880
  return;
12801
12881
  }
12802
- const typeOfImport = importType(name3, context);
12882
+ const typeOfImport = importType(name2, context);
12803
12883
  if (typeOfImport !== "external" && (typeOfImport !== "internal" || !depsOptions.verifyInternalDeps)) {
12804
12884
  return;
12805
12885
  }
12806
- const resolved = resolve(name3, context);
12886
+ const resolved = resolve(name2, context);
12807
12887
  if (!resolved) {
12808
12888
  return;
12809
12889
  }
12810
- const importPackageName = getModuleOriginalName(name3);
12890
+ const importPackageName = getModuleOriginalName(name2);
12811
12891
  let declarationStatus = checkDependencyDeclaration(deps, importPackageName);
12812
12892
  if (declarationStatus.isInDeps || depsOptions.allowDevDeps && declarationStatus.isInDevDeps || depsOptions.allowPeerDeps && declarationStatus.isInPeerDeps || depsOptions.allowOptDeps && declarationStatus.isInOptDeps || depsOptions.allowBundledDeps && declarationStatus.isInBundledDeps) {
12813
12893
  return;
@@ -12851,12 +12931,12 @@ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
12851
12931
  }
12852
12932
  });
12853
12933
  }
12854
- function testConfig(config5, context) {
12855
- if (typeof config5 === "boolean" || config5 === void 0) {
12856
- return config5;
12934
+ function testConfig(config4, context) {
12935
+ if (typeof config4 === "boolean" || config4 === void 0) {
12936
+ return config4;
12857
12937
  }
12858
12938
  const filename = context.physicalFilename;
12859
- return config5.some((c) => minimatch2(filename, c) || minimatch2(filename, path16.resolve(context.cwd, c), {
12939
+ return config4.some((c) => minimatch2(filename, c) || minimatch2(filename, path16.resolve(context.cwd, c), {
12860
12940
  windowsPathsNoEscape: true
12861
12941
  }) || minimatch2(filename, path16.resolve(c), { windowsPathsNoEscape: true }));
12862
12942
  }
@@ -13142,9 +13222,9 @@ var no_mutable_exports_default = createRule2({
13142
13222
  });
13143
13223
  }
13144
13224
  }
13145
- function checkDeclarationsInScope({ variables }, name3) {
13225
+ function checkDeclarationsInScope({ variables }, name2) {
13146
13226
  for (const variable of variables) {
13147
- if (variable.name === name3) {
13227
+ if (variable.name === name2) {
13148
13228
  for (const def of variable.defs) {
13149
13229
  if (def.type === "Variable" && def.parent) {
13150
13230
  checkDeclaration(def.parent);
@@ -13496,21 +13576,21 @@ function getVariableNamesInScope(scopeManager, node2) {
13496
13576
  }
13497
13577
  function generateLocalNames(names, nameConflicts, namespaceName) {
13498
13578
  const localNames = {};
13499
- for (const name3 of names) {
13579
+ for (const name2 of names) {
13500
13580
  let localName;
13501
- if (!nameConflicts[name3].has(name3)) {
13502
- localName = name3;
13503
- } else if (nameConflicts[name3].has(`${namespaceName}_${name3}`)) {
13581
+ if (!nameConflicts[name2].has(name2)) {
13582
+ localName = name2;
13583
+ } else if (nameConflicts[name2].has(`${namespaceName}_${name2}`)) {
13504
13584
  for (let i = 1; i < Number.POSITIVE_INFINITY; i++) {
13505
- if (!nameConflicts[name3].has(`${namespaceName}_${name3}_${i}`)) {
13506
- localName = `${namespaceName}_${name3}_${i}`;
13585
+ if (!nameConflicts[name2].has(`${namespaceName}_${name2}_${i}`)) {
13586
+ localName = `${namespaceName}_${name2}_${i}`;
13507
13587
  break;
13508
13588
  }
13509
13589
  }
13510
13590
  } else {
13511
- localName = `${namespaceName}_${name3}`;
13591
+ localName = `${namespaceName}_${name2}`;
13512
13592
  }
13513
- localNames[name3] = localName;
13593
+ localNames[name2] = localName;
13514
13594
  }
13515
13595
  return localNames;
13516
13596
  }
@@ -14717,8 +14797,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
14717
14797
  }
14718
14798
  }
14719
14799
  }
14720
- forEachDeclarationIdentifier(s.declaration, (name3) => {
14721
- newExportIdentifiers.add(name3);
14800
+ forEachDeclarationIdentifier(s.declaration, (name2) => {
14801
+ newExportIdentifiers.add(name2);
14722
14802
  });
14723
14803
  }
14724
14804
  }
@@ -14793,11 +14873,11 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
14793
14873
  if (astNode.type === AST_NODE_TYPES3.ExportNamedDeclaration && astNode.source) {
14794
14874
  resolvedPath = resolve(astNode.source.raw.replaceAll(/('|")/g, ""), context);
14795
14875
  for (const specifier of astNode.specifiers) {
14796
- const name3 = getValue(specifier.local);
14797
- if (name3 === DEFAULT) {
14876
+ const name2 = getValue(specifier.local);
14877
+ if (name2 === DEFAULT) {
14798
14878
  newDefaultImports.add(resolvedPath);
14799
14879
  } else {
14800
- newImports.set(name3, resolvedPath);
14880
+ newImports.set(name2, resolvedPath);
14801
14881
  }
14802
14882
  }
14803
14883
  }
@@ -14995,8 +15075,8 @@ In the meantime, if you want to keep this rule enabled, you can suppress this wa
14995
15075
  for (const specifier of node2.specifiers) {
14996
15076
  checkUsage(specifier, getValue(specifier.exported), false);
14997
15077
  }
14998
- forEachDeclarationIdentifier(node2.declaration, (name3, isTypeExport) => {
14999
- checkUsage(node2, name3, isTypeExport);
15078
+ forEachDeclarationIdentifier(node2.declaration, (name2, isTypeExport) => {
15079
+ checkUsage(node2, name2, isTypeExport);
15000
15080
  });
15001
15081
  }
15002
15082
  };
@@ -16014,11 +16094,11 @@ var order_default = createRule2({
16014
16094
  return {
16015
16095
  ImportDeclaration(node2) {
16016
16096
  if (node2.specifiers.length > 0 || options.warnOnUnassignedImports) {
16017
- const name3 = node2.source.value;
16097
+ const name2 = node2.source.value;
16018
16098
  registerNode(context, {
16019
16099
  node: node2,
16020
- value: name3,
16021
- displayName: name3,
16100
+ value: name2,
16101
+ displayName: name2,
16022
16102
  type: "import"
16023
16103
  }, ranks, getBlockImports(node2.parent), pathGroupsExcludedImportTypes, isSortingTypesGroup);
16024
16104
  if (named.import) {
@@ -16140,11 +16220,11 @@ var order_default = createRule2({
16140
16220
  } else {
16141
16221
  const nameParts = getNamedCJSExports(context, node2.left);
16142
16222
  if (nameParts && nameParts.length > 0) {
16143
- const name3 = nameParts.join(".");
16223
+ const name2 = nameParts.join(".");
16144
16224
  getBlockExports(node2.parent.parent).push({
16145
16225
  node: node2,
16146
- value: name3,
16147
- displayName: name3,
16226
+ value: name2,
16227
+ displayName: name2,
16148
16228
  type: "export",
16149
16229
  rank: 0
16150
16230
  });
@@ -16506,7 +16586,7 @@ var getImportSource;
16506
16586
  var isAllSameSubmodule;
16507
16587
  var prefer_zod_namespace_default;
16508
16588
  var init_prefer_zod_namespace = __esm({ "src/rules/prefer-zod-namespace.ts"() {
16509
- createRule3 = ESLintUtils.RuleCreator((name3) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name3}.md`);
16589
+ createRule3 = ESLintUtils.RuleCreator((name2) => `https://github.com/samchungy/eslint-plugin-import-zod/blob/main/docs/rules/${name2}.md`);
16510
16590
  getImportSource = (importedName, originalSource) => {
16511
16591
  return importedName === "core" && originalSource === "zod/v4" ? `${originalSource}/${importedName}` : originalSource;
16512
16592
  };
@@ -17575,7 +17655,7 @@ async function jsonc(options = {}) {
17575
17655
  stylistic: stylistic2 = false
17576
17656
  } = options;
17577
17657
  const { indent = 2 } = typeof stylistic2 === "boolean" ? {} : stylistic2;
17578
- const [pluginJsonc, parserJsonc2] = await Promise.all([
17658
+ const [pluginJsonc, parserJsonc] = await Promise.all([
17579
17659
  interopDefault(import('eslint-plugin-jsonc')),
17580
17660
  interopDefault(import('jsonc-eslint-parser'))
17581
17661
  ]);
@@ -17589,7 +17669,7 @@ async function jsonc(options = {}) {
17589
17669
  {
17590
17670
  files,
17591
17671
  languageOptions: {
17592
- parser: parserJsonc2
17672
+ parser: parserJsonc
17593
17673
  },
17594
17674
  name: "storm/jsonc/rules",
17595
17675
  rules: {
@@ -18151,771 +18231,6 @@ async function perfectionist() {
18151
18231
 
18152
18232
  // src/configs/pnpm.ts
18153
18233
  init_esm_shims();
18154
-
18155
- // ../eslint-plugin-pnpm/src/index.ts
18156
- init_esm_shims();
18157
-
18158
- // ../eslint-plugin-pnpm/src/configs/index.ts
18159
- init_esm_shims();
18160
-
18161
- // ../eslint-plugin-pnpm/src/configs/recommended.ts
18162
- init_esm_shims();
18163
-
18164
- // ../eslint-plugin-pnpm/src/plugin.ts
18165
- init_esm_shims();
18166
-
18167
- // ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_f126904b94a1635d882631163ea19421/node_modules/eslint-plugin-pnpm/dist/index.mjs
18168
- init_esm_shims();
18169
- var name2 = "eslint-plugin-pnpm";
18170
- var version3 = "0.3.0";
18171
- var blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
18172
- function RuleCreator3(urlCreator) {
18173
- return function createNamedRule({
18174
- name: name3,
18175
- meta: meta3,
18176
- ...rule
18177
- }) {
18178
- return createRule4({
18179
- meta: {
18180
- ...meta3,
18181
- docs: {
18182
- ...meta3.docs,
18183
- url: urlCreator(name3)
18184
- }
18185
- },
18186
- ...rule
18187
- });
18188
- };
18189
- }
18190
- function createRule4({
18191
- create,
18192
- defaultOptions,
18193
- meta: meta3
18194
- }) {
18195
- return {
18196
- create: (context) => {
18197
- const optionsWithDefault = context.options.map((options, index) => {
18198
- return {
18199
- ...defaultOptions[index] || {},
18200
- ...options || {}
18201
- };
18202
- });
18203
- return create(context, optionsWithDefault);
18204
- },
18205
- defaultOptions,
18206
- meta: meta3
18207
- };
18208
- }
18209
- var createEslintRule = RuleCreator3(
18210
- (ruleName) => `${blobUrl}${ruleName}.test.ts`
18211
- );
18212
- function getPackageJsonRootNode(context) {
18213
- if (!context.filename.endsWith("package.json"))
18214
- return;
18215
- const ast = context.sourceCode.ast;
18216
- const root = ast.body[0];
18217
- if (root.expression.type === "JSONObjectExpression")
18218
- return root.expression;
18219
- }
18220
- function* iterateDependencies(context, fields) {
18221
- const root = getPackageJsonRootNode(context);
18222
- if (!root)
18223
- return;
18224
- for (const fieldName of fields) {
18225
- const path23 = fieldName.split(".");
18226
- let node2 = root;
18227
- for (let i = 0; i < path23.length; i++) {
18228
- const item = node2.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === path23[i]);
18229
- if (!item?.value || item.value.type !== "JSONObjectExpression") {
18230
- node2 = void 0;
18231
- break;
18232
- }
18233
- node2 = item.value;
18234
- }
18235
- if (!node2 || node2 === root)
18236
- continue;
18237
- for (const property of node2.properties) {
18238
- if (property.value.type !== "JSONLiteral" || property.key.type !== "JSONLiteral")
18239
- continue;
18240
- if (typeof property.value.value !== "string")
18241
- continue;
18242
- const packageName = String(property.key.value);
18243
- const specifier = String(property.value.value);
18244
- yield {
18245
- packageName,
18246
- specifier,
18247
- property
18248
- };
18249
- }
18250
- }
18251
- }
18252
- function readPnpmWorkspace() {
18253
- const filepath = findUpSync("pnpm-workspace.yaml", { cwd: process2.cwd() });
18254
- if (!filepath)
18255
- throw new Error("pnpm-workspace.yaml not found");
18256
- const content = fs3.readFileSync(filepath, "utf-8");
18257
- const workspace2 = parsePnpmWorkspaceYaml(content);
18258
- let queueTimer;
18259
- const queue = [];
18260
- const write = () => {
18261
- fs3.writeFileSync(filepath, workspace2.toString());
18262
- };
18263
- const hasQueue = () => queueTimer != null;
18264
- const queueChange = (fn, order) => {
18265
- if (order === "pre")
18266
- queue.unshift(fn);
18267
- else
18268
- queue.push(fn);
18269
- if (queueTimer != null)
18270
- clearTimeout(queueTimer);
18271
- queueTimer = setTimeout(() => {
18272
- queueTimer = void 0;
18273
- const clone2 = [...queue];
18274
- queue.length = 0;
18275
- for (const fn2 of clone2)
18276
- fn2(workspace2);
18277
- if (workspace2.hasChanged())
18278
- write();
18279
- }, 1e3);
18280
- };
18281
- return {
18282
- filepath,
18283
- ...workspace2,
18284
- hasQueue,
18285
- queueChange
18286
- };
18287
- }
18288
- var WORKSPACE_CACHE_TIME = 1e4;
18289
- var workspaceLastRead;
18290
- var workspace;
18291
- function getPnpmWorkspace() {
18292
- if (workspaceLastRead && workspace && !workspace.hasQueue() && Date.now() - workspaceLastRead > WORKSPACE_CACHE_TIME) {
18293
- workspace = void 0;
18294
- }
18295
- if (!workspace) {
18296
- workspace = readPnpmWorkspace();
18297
- workspaceLastRead = Date.now();
18298
- }
18299
- return workspace;
18300
- }
18301
- var RULE_NAME$4 = "json-enforce-catalog";
18302
- var DEFAULT_FIELDS$1 = [
18303
- "dependencies",
18304
- "devDependencies"
18305
- ];
18306
- var IGNORED_DEPENDENCIES = [
18307
- "typescript"
18308
- ];
18309
- var enforceCatalog = createEslintRule({
18310
- name: RULE_NAME$4,
18311
- meta: {
18312
- type: "layout",
18313
- docs: {
18314
- description: 'Enforce using "catalog:" in `package.json`'
18315
- },
18316
- fixable: "code",
18317
- schema: [
18318
- {
18319
- type: "object",
18320
- properties: {
18321
- allowedProtocols: {
18322
- type: "array",
18323
- description: "Allowed protocols in specifier to not be converted to catalog",
18324
- items: {
18325
- type: "string"
18326
- }
18327
- },
18328
- autofix: {
18329
- type: "boolean",
18330
- description: "Whether to autofix the linting error",
18331
- default: true
18332
- },
18333
- defaultCatalog: {
18334
- type: "string",
18335
- description: "Default catalog to use when moving version to catalog with autofix"
18336
- },
18337
- reuseExistingCatalog: {
18338
- type: "boolean",
18339
- description: "Whether to reuse existing catalog when moving version to catalog with autofix",
18340
- default: true
18341
- },
18342
- conflicts: {
18343
- type: "string",
18344
- description: "Strategy to handle conflicts when adding packages to catalogs",
18345
- enum: ["new-catalog", "overrides", "error"],
18346
- default: "new-catalog"
18347
- },
18348
- fields: {
18349
- type: "array",
18350
- description: "Fields to check for catalog",
18351
- items: { type: "string" },
18352
- default: DEFAULT_FIELDS$1
18353
- },
18354
- ignore: {
18355
- type: "array",
18356
- description: "A list of dependencies to ignore",
18357
- items: { type: "string" },
18358
- default: IGNORED_DEPENDENCIES
18359
- }
18360
- },
18361
- additionalProperties: false
18362
- }
18363
- ],
18364
- messages: {
18365
- expectCatalog: 'Expect to use catalog instead of plain specifier, got "{{specifier}}" for package "{{packageName}}".'
18366
- }
18367
- },
18368
- defaultOptions: [{}],
18369
- create(context, [options]) {
18370
- const {
18371
- allowedProtocols = ["workspace", "link", "file"],
18372
- defaultCatalog = "default",
18373
- autofix = true,
18374
- reuseExistingCatalog = true,
18375
- conflicts = "new-catalog",
18376
- fields = DEFAULT_FIELDS$1,
18377
- ignore: ignore2 = IGNORED_DEPENDENCIES
18378
- } = options || {};
18379
- for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
18380
- if (ignore2?.some((i) => i === packageName))
18381
- continue;
18382
- if (specifier.startsWith("catalog:"))
18383
- continue;
18384
- if (allowedProtocols?.some((p) => specifier.startsWith(p)))
18385
- continue;
18386
- const workspace2 = getPnpmWorkspace();
18387
- if (!workspace2)
18388
- return {};
18389
- let targetCatalog = reuseExistingCatalog ? workspace2.getPackageCatalogs(packageName)[0] || defaultCatalog : defaultCatalog;
18390
- const resolvedConflicts = workspace2.hasSpecifierConflicts(
18391
- targetCatalog,
18392
- packageName,
18393
- specifier
18394
- );
18395
- let shouldFix = autofix;
18396
- if (conflicts === "error") {
18397
- if (resolvedConflicts.conflicts) {
18398
- shouldFix = false;
18399
- }
18400
- }
18401
- if (conflicts === "new-catalog" && resolvedConflicts.conflicts) {
18402
- targetCatalog = resolvedConflicts.newCatalogName;
18403
- }
18404
- context.report({
18405
- node: property.value,
18406
- messageId: "expectCatalog",
18407
- data: {
18408
- specifier,
18409
- packageName
18410
- },
18411
- fix: shouldFix ? (fixer) => {
18412
- workspace2.queueChange(() => {
18413
- workspace2.setPackage(targetCatalog, packageName, specifier);
18414
- });
18415
- return fixer.replaceText(
18416
- property.value,
18417
- targetCatalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${targetCatalog}`)
18418
- );
18419
- } : void 0
18420
- });
18421
- }
18422
- return {};
18423
- }
18424
- });
18425
- var RULE_NAME$3 = "json-prefer-workspace-settings";
18426
- var preferWorkspaceSettings = createEslintRule({
18427
- name: RULE_NAME$3,
18428
- meta: {
18429
- type: "layout",
18430
- docs: {
18431
- 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."
18432
- },
18433
- fixable: "code",
18434
- schema: [
18435
- {
18436
- type: "object",
18437
- properties: {
18438
- autofix: {
18439
- type: "boolean",
18440
- description: "Whether to autofix the linting error",
18441
- default: true
18442
- }
18443
- },
18444
- additionalProperties: false
18445
- }
18446
- ],
18447
- messages: {
18448
- unexpectedPnpmSettings: "Unexpected pnpm settings in package.json, should move to pnpm-workspace.yaml"
18449
- }
18450
- },
18451
- defaultOptions: [{}],
18452
- create(context, [options = {}]) {
18453
- const {
18454
- autofix = true
18455
- } = options || {};
18456
- const root = getPackageJsonRootNode(context);
18457
- if (!root)
18458
- return {};
18459
- const pnpmNode = root.properties.find((property) => property.key.type === "JSONLiteral" && property.key.value === "pnpm");
18460
- if (!pnpmNode)
18461
- return {};
18462
- const workspace2 = getPnpmWorkspace();
18463
- if (!workspace2)
18464
- return {};
18465
- context.report({
18466
- node: pnpmNode,
18467
- messageId: "unexpectedPnpmSettings",
18468
- fix: autofix ? (fixer) => {
18469
- const json = JSON.parse(context.sourceCode.text);
18470
- const pnpmSettings = json.pnpm;
18471
- const flatValueParis = [];
18472
- function traverse(value, paths) {
18473
- if (typeof value === "object" && value !== null && !Array.isArray(value)) {
18474
- for (const key in value) {
18475
- traverse(value[key], [...paths, key]);
18476
- }
18477
- } else {
18478
- flatValueParis.push([paths, value]);
18479
- }
18480
- }
18481
- traverse(pnpmSettings, []);
18482
- workspace2.queueChange(() => {
18483
- for (const [paths, value] of flatValueParis) {
18484
- workspace2.setPath(paths, value);
18485
- }
18486
- });
18487
- let start = pnpmNode.range[0];
18488
- let end = pnpmNode.range[1];
18489
- const before = context.sourceCode.getTokenBefore(pnpmNode);
18490
- if (before)
18491
- start = before.range[1];
18492
- const after = context.sourceCode.getTokenAfter(pnpmNode);
18493
- if (after?.type === "Punctuator" && after.value === ",")
18494
- end = after.range[1];
18495
- return fixer.removeRange([start, end]);
18496
- } : void 0
18497
- });
18498
- return {};
18499
- }
18500
- });
18501
- var RULE_NAME$2 = "json-valid-catalog";
18502
- var DEFAULT_FIELDS = [
18503
- "dependencies",
18504
- "devDependencies",
18505
- "optionalDependencies",
18506
- "peerDependencies",
18507
- "resolutions",
18508
- "overrides",
18509
- "pnpm.overrides"
18510
- ];
18511
- var validCatalog = createEslintRule({
18512
- name: RULE_NAME$2,
18513
- meta: {
18514
- type: "layout",
18515
- docs: {
18516
- description: "Enforce using valid catalog in `package.json`"
18517
- },
18518
- fixable: "code",
18519
- schema: [
18520
- {
18521
- type: "object",
18522
- properties: {
18523
- autoInsert: {
18524
- type: "boolean",
18525
- description: "Whether to auto insert to catalog if missing",
18526
- default: true
18527
- },
18528
- autoInsertDefaultSpecifier: {
18529
- type: "string",
18530
- description: "Default specifier to use when auto inserting to catalog",
18531
- default: "^0.0.0"
18532
- },
18533
- autofix: {
18534
- type: "boolean",
18535
- description: "Whether to autofix the linting error",
18536
- default: true
18537
- },
18538
- enforceNoConflict: {
18539
- type: "boolean",
18540
- description: "Whether to enforce no conflicts when adding packages to catalogs (will create version-specific catalogs)",
18541
- default: true
18542
- },
18543
- fields: {
18544
- type: "array",
18545
- description: "Fields to check for catalog",
18546
- default: DEFAULT_FIELDS
18547
- }
18548
- },
18549
- additionalProperties: false
18550
- }
18551
- ],
18552
- messages: {
18553
- invalidCatalog: 'Catalog "{{specifier}}" for package "{{packageName}}" is not defined in `pnpm-workspace.yaml`.'
18554
- }
18555
- },
18556
- defaultOptions: [{}],
18557
- create(context, [options = {}]) {
18558
- const {
18559
- autoInsert = true,
18560
- autofix = true,
18561
- autoInsertDefaultSpecifier = "^0.0.0",
18562
- fields = DEFAULT_FIELDS
18563
- } = options || {};
18564
- for (const { packageName, specifier, property } of iterateDependencies(context, fields)) {
18565
- if (!specifier.startsWith("catalog:"))
18566
- continue;
18567
- const workspace2 = getPnpmWorkspace();
18568
- if (!workspace2)
18569
- return {};
18570
- const currentCatalog = specifier.replace(/^catalog:/, "").trim() || "default";
18571
- const existingCatalogs = workspace2.getPackageCatalogs(packageName);
18572
- if (!existingCatalogs.includes(currentCatalog)) {
18573
- context.report({
18574
- node: property.value,
18575
- messageId: "invalidCatalog",
18576
- data: {
18577
- specifier,
18578
- packageName
18579
- },
18580
- fix: !autofix || !autoInsert && !existingCatalogs.length ? void 0 : (fixer) => {
18581
- let catalog = existingCatalogs[0];
18582
- if (!catalog && autoInsert) {
18583
- catalog = currentCatalog;
18584
- workspace2.queueChange(() => {
18585
- workspace2.setPackage(catalog, packageName, autoInsertDefaultSpecifier);
18586
- }, "pre");
18587
- }
18588
- return fixer.replaceText(
18589
- property.value,
18590
- catalog === "default" ? JSON.stringify("catalog:") : JSON.stringify(`catalog:${catalog}`)
18591
- );
18592
- }
18593
- });
18594
- }
18595
- }
18596
- return {};
18597
- }
18598
- });
18599
- var rules$2 = {
18600
- "json-enforce-catalog": enforceCatalog,
18601
- "json-valid-catalog": validCatalog,
18602
- "json-prefer-workspace-settings": preferWorkspaceSettings
18603
- };
18604
- var RULE_NAME$1 = "yaml-no-duplicate-catalog-item";
18605
- var noDuplicateCatalogItem = createEslintRule({
18606
- name: RULE_NAME$1,
18607
- meta: {
18608
- type: "problem",
18609
- docs: {
18610
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
18611
- },
18612
- fixable: "code",
18613
- schema: [
18614
- {
18615
- type: "object",
18616
- properties: {
18617
- allow: {
18618
- type: "array",
18619
- items: { type: "string" }
18620
- }
18621
- },
18622
- additionalProperties: false
18623
- }
18624
- ],
18625
- messages: {
18626
- duplicateCatalogItem: 'Catalog item "{{name}}" is already defined in the "{{existingCatalog}}" catalog. You may want to remove one of them.'
18627
- }
18628
- },
18629
- defaultOptions: [{}],
18630
- create(context, [options = {}]) {
18631
- if (basename(context.filename) !== "pnpm-workspace.yaml")
18632
- return {};
18633
- const workspace2 = getPnpmWorkspace();
18634
- if (!workspace2 || normalize$1(workspace2.filepath) !== normalize$1(context.filename))
18635
- return {};
18636
- if (workspace2.hasChanged() || workspace2.hasQueue())
18637
- return {};
18638
- const { allow = [] } = options;
18639
- workspace2.setContent(context.sourceCode.text);
18640
- const json = workspace2.toJSON() || {};
18641
- const exists = /* @__PURE__ */ new Map();
18642
- const catalogs = {
18643
- ...json.catalogs,
18644
- default: json.catalog
18645
- };
18646
- const doc = workspace2.getDocument();
18647
- for (const [catalog, object2] of Object.entries(catalogs)) {
18648
- if (!object2)
18649
- continue;
18650
- for (const key of Object.keys(object2)) {
18651
- if (allow.includes(key))
18652
- continue;
18653
- if (exists.has(key)) {
18654
- const existingCatalog = exists.get(key);
18655
- const node2 = doc.getIn(catalog === "default" ? ["catalog", key] : ["catalogs", catalog, key], true);
18656
- const start = context.sourceCode.getLocFromIndex(node2.range[0]);
18657
- const end = context.sourceCode.getLocFromIndex(node2.range[1]);
18658
- context.report({
18659
- loc: {
18660
- start,
18661
- end
18662
- },
18663
- messageId: "duplicateCatalogItem",
18664
- data: {
18665
- name: key,
18666
- currentCatalog: catalog,
18667
- existingCatalog
18668
- }
18669
- });
18670
- } else {
18671
- exists.set(key, catalog);
18672
- }
18673
- }
18674
- }
18675
- return {};
18676
- }
18677
- });
18678
- var RULE_NAME2 = "yaml-no-unused-catalog-item";
18679
- var noUnusedCatalogItem = createEslintRule({
18680
- name: RULE_NAME2,
18681
- meta: {
18682
- type: "problem",
18683
- docs: {
18684
- description: "Disallow unused catalogs in `pnpm-workspace.yaml`"
18685
- },
18686
- fixable: "code",
18687
- schema: [],
18688
- messages: {
18689
- unusedCatalogItem: 'Catalog item "{{catalogItem}}" is not used in any package.json.'
18690
- }
18691
- },
18692
- defaultOptions: [],
18693
- create(context) {
18694
- if (basename(context.filename) !== "pnpm-workspace.yaml")
18695
- return {};
18696
- const workspace2 = getPnpmWorkspace();
18697
- if (!workspace2 || normalize$1(workspace2.filepath) !== normalize$1(context.filename))
18698
- return {};
18699
- if (workspace2.hasChanged() || workspace2.hasQueue())
18700
- return {};
18701
- workspace2.setContent(context.sourceCode.text);
18702
- const parsed = workspace2.toJSON() || {};
18703
- const root = resolve$1(dirname(context.filename));
18704
- const entries = /* @__PURE__ */ new Map();
18705
- const doc = workspace2.getDocument();
18706
- const catalogs = {
18707
- default: doc.getIn(["catalog"])
18708
- };
18709
- for (const item of doc.getIn(["catalogs"])?.items || [])
18710
- catalogs[String(item.key)] = item.value;
18711
- for (const [catalog, map] of Object.entries(catalogs)) {
18712
- if (!map)
18713
- continue;
18714
- for (const item of map.items) {
18715
- entries.set(`${String(item.key)}:${catalog}`, item);
18716
- }
18717
- }
18718
- if (entries.size === 0)
18719
- return {};
18720
- const dirs = parsed.packages ? globSync(parsed.packages, {
18721
- cwd: root,
18722
- dot: false,
18723
- ignore: [
18724
- "**/node_modules/**",
18725
- "**/dist/**",
18726
- "**/build/**",
18727
- "**/dist/**",
18728
- "**/dist/**"
18729
- ],
18730
- absolute: true,
18731
- expandDirectories: false,
18732
- onlyDirectories: true
18733
- }) : [];
18734
- dirs.push(root);
18735
- const packages = dirs.map((dir) => resolve$1(dir, "package.json")).filter((x) => existsSync(x)).sort();
18736
- const FIELDS = [
18737
- "dependencies",
18738
- "devDependencies",
18739
- "peerDependencies",
18740
- "optionalDependencies",
18741
- "overrides",
18742
- "resolutions",
18743
- "pnpm.overrides"
18744
- ];
18745
- for (const path23 of packages) {
18746
- const pkg = JSON.parse(readFileSync(path23, "utf-8"));
18747
- for (const field of FIELDS) {
18748
- const map = getObjectPath(pkg, field.split("."));
18749
- if (!map)
18750
- continue;
18751
- for (const [name3, value] of Object.entries(map)) {
18752
- if (!value.startsWith("catalog:"))
18753
- continue;
18754
- const catalog = value.slice(8) || "default";
18755
- const key = `${name3}:${catalog}`;
18756
- entries.delete(key);
18757
- }
18758
- }
18759
- }
18760
- if (entries.size > 0) {
18761
- for (const [key, value] of Array.from(entries.entries()).sort((a, b) => a[0].localeCompare(b[0]))) {
18762
- const start = context.sourceCode.getLocFromIndex(value.key.range[0]);
18763
- const end = context.sourceCode.getLocFromIndex(value.value.range.at(-1));
18764
- context.report({
18765
- loc: {
18766
- start,
18767
- end
18768
- },
18769
- messageId: "unusedCatalogItem",
18770
- data: { catalogItem: key }
18771
- });
18772
- }
18773
- }
18774
- return {};
18775
- }
18776
- });
18777
- function getObjectPath(obj, path23) {
18778
- let current = obj;
18779
- for (const key of path23) {
18780
- current = current[key];
18781
- if (!current)
18782
- return void 0;
18783
- }
18784
- return current;
18785
- }
18786
- var rules$1 = {
18787
- "yaml-no-unused-catalog-item": noUnusedCatalogItem,
18788
- "yaml-no-duplicate-catalog-item": noDuplicateCatalogItem
18789
- };
18790
- var rules3 = {
18791
- ...rules$2,
18792
- ...rules$1
18793
- };
18794
- var plugin3 = {
18795
- meta: {
18796
- name: name2,
18797
- version: version3
18798
- },
18799
- rules: rules3
18800
- };
18801
- var configsJson = [
18802
- {
18803
- name: "pnpm/package.json",
18804
- files: [
18805
- "package.json",
18806
- "**/package.json"
18807
- ],
18808
- languageOptions: {
18809
- parser: jsoncParser
18810
- },
18811
- plugins: {
18812
- pnpm: plugin3
18813
- },
18814
- rules: {
18815
- "pnpm/json-enforce-catalog": "error",
18816
- "pnpm/json-valid-catalog": "error",
18817
- "pnpm/json-prefer-workspace-settings": "error"
18818
- }
18819
- }
18820
- ];
18821
- var configsYaml = [
18822
- {
18823
- name: "pnpm/pnpm-workspace-yaml",
18824
- files: ["pnpm-workspace.yaml"],
18825
- languageOptions: {
18826
- parser: yamlParser
18827
- },
18828
- plugins: {
18829
- pnpm: plugin3
18830
- },
18831
- rules: {
18832
- "pnpm/yaml-no-unused-catalog-item": "error",
18833
- "pnpm/yaml-no-duplicate-catalog-item": "error"
18834
- }
18835
- }
18836
- ];
18837
- var configs3 = {
18838
- recommended: [
18839
- ...configsJson
18840
- // Yaml support is still experimental
18841
- // ...configsYaml,
18842
- ],
18843
- json: configsJson,
18844
- yaml: configsYaml
18845
- };
18846
- plugin3.configs = configs3;
18847
-
18848
- // ../eslint-plugin-pnpm/package.json
18849
- var package_default2 = {
18850
- version: "0.0.74"};
18851
-
18852
- // ../eslint-plugin-pnpm/src/plugin.ts
18853
- var plugin4 = {
18854
- ...plugin3,
18855
- meta: {
18856
- name: "pnpm",
18857
- version: package_default2.version
18858
- }
18859
- };
18860
-
18861
- // ../eslint-plugin-pnpm/src/configs/recommended.ts
18862
- var config3 = [
18863
- {
18864
- name: "pnpm/recommended/setup",
18865
- plugins: {
18866
- pnpm: plugin4
18867
- }
18868
- },
18869
- {
18870
- name: "pnpm/recommended/package-json",
18871
- ignores: GLOB_EXCLUDE,
18872
- files: ["package.json", "**/package.json"],
18873
- languageOptions: {
18874
- parser: jsoncParser__default
18875
- },
18876
- rules: {
18877
- "pnpm/json-enforce-catalog": [
18878
- "error",
18879
- {
18880
- autofix: true,
18881
- allowedProtocols: ["workspace", "link", "file"],
18882
- defaultCatalog: "default",
18883
- reuseExistingCatalog: true,
18884
- conflicts: "overrides",
18885
- fields: ["dependencies", "devDependencies"]
18886
- }
18887
- ],
18888
- "pnpm/json-valid-catalog": "error",
18889
- "pnpm/json-prefer-workspace-settings": "error"
18890
- }
18891
- },
18892
- {
18893
- name: "pnpm/recommended/pnpm-workspace",
18894
- ignores: GLOB_EXCLUDE,
18895
- files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
18896
- languageOptions: {
18897
- parser: yamlParser__default
18898
- },
18899
- rules: {
18900
- "pnpm/yaml-no-unused-catalog-item": "error",
18901
- "pnpm/yaml-no-duplicate-catalog-item": "error"
18902
- }
18903
- }
18904
- ];
18905
- var recommended_default4 = config3;
18906
-
18907
- // ../eslint-plugin-pnpm/src/configs/index.ts
18908
- var configs4 = {
18909
- recommended: recommended_default4
18910
- };
18911
-
18912
- // ../eslint-plugin-pnpm/src/index.ts
18913
- var eslintPlugin2 = {
18914
- ...plugin4,
18915
- configs: configs4
18916
- };
18917
- var src_default2 = eslintPlugin2;
18918
- plugin4.rules;
18919
18234
  async function pnpm(options = {}) {
18920
18235
  const {
18921
18236
  overrides = {},
@@ -18923,8 +18238,9 @@ async function pnpm(options = {}) {
18923
18238
  ignoreWorkspaceDeps = true
18924
18239
  } = options;
18925
18240
  const workspaceRoot = findWorkspaceRoot();
18926
- await ensurePackages(["jsonc-eslint-parser", "yaml-eslint-parser"]);
18927
- const [parserJsonc2, parserYaml2] = await Promise.all([
18241
+ await ensurePackages(["@storm-software/eslint-plugin-pnpm", "jsonc-eslint-parser", "yaml-eslint-parser"]);
18242
+ const [plugin5, parserJsonc, parserYaml] = await Promise.all([
18243
+ interopDefault(import('./src-UCLM7J4T.js')),
18928
18244
  interopDefault(import('jsonc-eslint-parser')),
18929
18245
  interopDefault(import('yaml-eslint-parser'))
18930
18246
  ]);
@@ -18971,7 +18287,7 @@ async function pnpm(options = {}) {
18971
18287
  {
18972
18288
  name: "storm/pnpm/setup",
18973
18289
  plugins: {
18974
- pnpm: src_default2
18290
+ pnpm: plugin5
18975
18291
  }
18976
18292
  },
18977
18293
  {
@@ -18979,7 +18295,7 @@ async function pnpm(options = {}) {
18979
18295
  ignores: ["**/node_modules/**", "**/dist/**"],
18980
18296
  files: ["package.json", "**/package.json"],
18981
18297
  languageOptions: {
18982
- parser: parserJsonc2
18298
+ parser: parserJsonc
18983
18299
  },
18984
18300
  rules: {
18985
18301
  "pnpm/json-enforce-catalog": [
@@ -19004,7 +18320,7 @@ async function pnpm(options = {}) {
19004
18320
  ignores: ["**/node_modules/**", "**/dist/**"],
19005
18321
  files: ["pnpm-workspace.yaml", "**/pnpm-workspace.yaml"],
19006
18322
  languageOptions: {
19007
- parser: parserYaml2
18323
+ parser: parserYaml
19008
18324
  },
19009
18325
  rules: {
19010
18326
  "pnpm/yaml-no-unused-catalog-item": "error",
@@ -19031,7 +18347,7 @@ async function prettier() {
19031
18347
  "prefer-arrow-callback": "off"
19032
18348
  }
19033
18349
  },
19034
- config4
18350
+ config3
19035
18351
  )
19036
18352
  ];
19037
18353
  }
@@ -19045,9 +18361,9 @@ var ReactRouterPackages = [
19045
18361
  "@react-router/serve",
19046
18362
  "@react-router/dev"
19047
18363
  ];
19048
- function renameRules2(config5) {
18364
+ function renameRules2(config4) {
19049
18365
  const renamedRules = {};
19050
- for (const [ruleName, ruleConfig] of Object.entries(config5.rules || {})) {
18366
+ for (const [ruleName, ruleConfig] of Object.entries(config4.rules || {})) {
19051
18367
  if (ruleName.startsWith("@eslint-react/dom-")) {
19052
18368
  renamedRules[`react-dom/${ruleName.slice("@eslint-react/dom-".length)}`] = ruleConfig;
19053
18369
  } else if (ruleName.startsWith("@eslint-react/web-api-")) {
@@ -19277,21 +18593,21 @@ async function reactNative(options = {}) {
19277
18593
  // src/configs/regexp.ts
19278
18594
  init_esm_shims();
19279
18595
  async function regexp(options = {}) {
19280
- const config5 = configs$1["flat/recommended"];
19281
- const rules5 = {
19282
- ...config5.rules
18596
+ const config4 = configs$1["flat/recommended"];
18597
+ const rules3 = {
18598
+ ...config4.rules
19283
18599
  };
19284
18600
  if (options.level === "warn") {
19285
- for (const key in rules5) {
19286
- if (rules5[key] === "error") rules5[key] = "warn";
18601
+ for (const key in rules3) {
18602
+ if (rules3[key] === "error") rules3[key] = "warn";
19287
18603
  }
19288
18604
  }
19289
18605
  return [
19290
18606
  {
19291
- ...config5,
18607
+ ...config4,
19292
18608
  name: "storm/regexp/rules",
19293
18609
  rules: {
19294
- ...rules5,
18610
+ ...rules3,
19295
18611
  "regexp/no-unused-capturing-group": [
19296
18612
  "error",
19297
18613
  {
@@ -19613,10 +18929,10 @@ async function storybook(options = {}) {
19613
18929
 
19614
18930
  // src/configs/test.ts
19615
18931
  init_esm_shims();
19616
- var plugin6;
18932
+ var plugin4;
19617
18933
  async function test(options = {}) {
19618
18934
  const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
19619
- plugin6 = plugin6 || {
18935
+ plugin4 = plugin4 || {
19620
18936
  ...default4,
19621
18937
  rules: {
19622
18938
  ...default4.rules,
@@ -19628,7 +18944,7 @@ async function test(options = {}) {
19628
18944
  {
19629
18945
  name: "storm/test/setup",
19630
18946
  plugins: {
19631
- test: plugin6
18947
+ test: plugin4
19632
18948
  }
19633
18949
  },
19634
18950
  {
@@ -19723,7 +19039,7 @@ async function tsdoc(options = {}) {
19723
19039
  } = options;
19724
19040
  await ensurePackages(["@storm-software/eslint-plugin-tsdoc"]);
19725
19041
  const [pluginTsdoc] = await Promise.all([
19726
- interopDefault(import('./src-3OZZHS3D.js'))
19042
+ interopDefault(import('./src-HWOXXYDT.js'))
19727
19043
  ]);
19728
19044
  return [
19729
19045
  {
@@ -20099,7 +19415,7 @@ init_esm_shims();
20099
19415
  async function yaml(options = {}) {
20100
19416
  const { files = [GLOB_YAML], overrides = {}, stylistic: stylistic2 = true } = options;
20101
19417
  const { indent = 2, quotes = "single" } = typeof stylistic2 === "boolean" ? {} : stylistic2;
20102
- const [pluginYaml, parserYaml2] = await Promise.all([
19418
+ const [pluginYaml, parserYaml] = await Promise.all([
20103
19419
  interopDefault(import('eslint-plugin-yml')),
20104
19420
  interopDefault(import('yaml-eslint-parser'))
20105
19421
  ]);
@@ -20116,7 +19432,7 @@ async function yaml(options = {}) {
20116
19432
  {
20117
19433
  files,
20118
19434
  languageOptions: {
20119
- parser: parserYaml2
19435
+ parser: parserYaml
20120
19436
  },
20121
19437
  name: "storm/yaml/rules",
20122
19438
  rules: {
@@ -20203,7 +19519,7 @@ function getOverrides(options, key) {
20203
19519
  }
20204
19520
  function preset(options, ...userConfigs) {
20205
19521
  const {
20206
- name: name3,
19522
+ name: name2,
20207
19523
  globals = {},
20208
19524
  banner: enableBanner = true,
20209
19525
  astro: enableAstro = false,
@@ -20225,8 +19541,11 @@ function preset(options, ...userConfigs) {
20225
19541
  tsdoc: enableTSDoc = true,
20226
19542
  test: enableTest = true,
20227
19543
  unocss: enableUnoCSS = false,
20228
- zod: enableZod = false
19544
+ zod: enableZod = false,
19545
+ bun: enableBun,
19546
+ pnpm: enablePnpm
20229
19547
  } = options;
19548
+ const packageManager = detectPackageManager();
20230
19549
  let isInEditor = options.isInEditor;
20231
19550
  if (!isInEditor) {
20232
19551
  isInEditor = isInEditorEnv();
@@ -20240,10 +19559,10 @@ function preset(options, ...userConfigs) {
20240
19559
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
20241
19560
  stylisticOptions.jsx = enableJsx;
20242
19561
  }
20243
- const configs6 = [];
19562
+ const configs4 = [];
20244
19563
  if (enableGitignore) {
20245
19564
  if (typeof enableGitignore !== "boolean") {
20246
- configs6.push(
19565
+ configs4.push(
20247
19566
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
20248
19567
  r({
20249
19568
  name: "storm/gitignore",
@@ -20252,7 +19571,7 @@ function preset(options, ...userConfigs) {
20252
19571
  ])
20253
19572
  );
20254
19573
  } else {
20255
- configs6.push(
19574
+ configs4.push(
20256
19575
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
20257
19576
  r({
20258
19577
  name: "storm/gitignore",
@@ -20262,7 +19581,7 @@ function preset(options, ...userConfigs) {
20262
19581
  );
20263
19582
  }
20264
19583
  }
20265
- configs6.push(
19584
+ configs4.push(
20266
19585
  ignores(options.ignores),
20267
19586
  javascript({
20268
19587
  globals,
@@ -20287,7 +19606,7 @@ function preset(options, ...userConfigs) {
20287
19606
  }
20288
19607
  }
20289
19608
  if (enableTypeScript) {
20290
- configs6.push(
19609
+ configs4.push(
20291
19610
  typescript({
20292
19611
  ...typescriptOptions,
20293
19612
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -20298,25 +19617,25 @@ function preset(options, ...userConfigs) {
20298
19617
  );
20299
19618
  }
20300
19619
  if (enableBanner) {
20301
- configs6.push(
19620
+ configs4.push(
20302
19621
  banner({
20303
19622
  ...resolveSubOptions(options, "banner"),
20304
- name: name3,
19623
+ name: name2,
20305
19624
  overrides: getOverrides(options, "banner")
20306
19625
  })
20307
19626
  );
20308
19627
  }
20309
19628
  if (!stylisticOptions) {
20310
- configs6.push(prettier());
19629
+ configs4.push(prettier());
20311
19630
  }
20312
19631
  if (enableCSpell) {
20313
- configs6.push(cspell(resolveSubOptions(options, "cspell")));
19632
+ configs4.push(cspell(resolveSubOptions(options, "cspell")));
20314
19633
  }
20315
19634
  if (enableUnicorn) {
20316
- configs6.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
19635
+ configs4.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
20317
19636
  }
20318
19637
  if (enableJSDoc) {
20319
- configs6.push(
19638
+ configs4.push(
20320
19639
  jsdoc({
20321
19640
  ...resolveSubOptions(options, "jsdoc"),
20322
19641
  overrides: getOverrides(options, "jsdoc")
@@ -20324,7 +19643,7 @@ function preset(options, ...userConfigs) {
20324
19643
  );
20325
19644
  }
20326
19645
  if (enableTSDoc) {
20327
- configs6.push(
19646
+ configs4.push(
20328
19647
  tsdoc({
20329
19648
  ...resolveSubOptions(options, "tsdoc"),
20330
19649
  overrides: getOverrides(options, "tsdoc")
@@ -20332,17 +19651,17 @@ function preset(options, ...userConfigs) {
20332
19651
  );
20333
19652
  }
20334
19653
  if (enableJsx) {
20335
- configs6.push(jsx());
19654
+ configs4.push(jsx());
20336
19655
  }
20337
19656
  if (enableZod) {
20338
- configs6.push(
19657
+ configs4.push(
20339
19658
  zod({
20340
19659
  overrides: getOverrides(options, "zod")
20341
19660
  })
20342
19661
  );
20343
19662
  }
20344
19663
  if (stylisticOptions) {
20345
- configs6.push(
19664
+ configs4.push(
20346
19665
  stylistic({
20347
19666
  ...stylisticOptions,
20348
19667
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -20352,10 +19671,10 @@ function preset(options, ...userConfigs) {
20352
19671
  );
20353
19672
  }
20354
19673
  if (enableRegexp) {
20355
- configs6.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
19674
+ configs4.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
20356
19675
  }
20357
19676
  if (enableTest) {
20358
- configs6.push(
19677
+ configs4.push(
20359
19678
  test({
20360
19679
  isInEditor,
20361
19680
  overrides: getOverrides(options, "test")
@@ -20363,10 +19682,10 @@ function preset(options, ...userConfigs) {
20363
19682
  );
20364
19683
  }
20365
19684
  if (enableGraphQL) {
20366
- configs6.push(graphql(resolveSubOptions(options, "graphql")));
19685
+ configs4.push(graphql(resolveSubOptions(options, "graphql")));
20367
19686
  }
20368
19687
  if (enableReact) {
20369
- configs6.push(
19688
+ configs4.push(
20370
19689
  react({
20371
19690
  ...typescriptOptions,
20372
19691
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -20376,7 +19695,7 @@ function preset(options, ...userConfigs) {
20376
19695
  );
20377
19696
  }
20378
19697
  if (enableReactNative) {
20379
- configs6.push(
19698
+ configs4.push(
20380
19699
  reactNative({
20381
19700
  ...resolveSubOptions(options, "react-native"),
20382
19701
  overrides: getOverrides(options, "react-native")
@@ -20384,13 +19703,13 @@ function preset(options, ...userConfigs) {
20384
19703
  );
20385
19704
  }
20386
19705
  if (enableNext) {
20387
- configs6.push(next(resolveSubOptions(options, "next")));
19706
+ configs4.push(next(resolveSubOptions(options, "next")));
20388
19707
  }
20389
19708
  if (enableStorybook) {
20390
- configs6.push(storybook(resolveSubOptions(options, "storybook")));
19709
+ configs4.push(storybook(resolveSubOptions(options, "storybook")));
20391
19710
  }
20392
19711
  if (enableUnoCSS) {
20393
- configs6.push(
19712
+ configs4.push(
20394
19713
  unocss({
20395
19714
  ...resolveSubOptions(options, "unocss"),
20396
19715
  overrides: getOverrides(options, "unocss")
@@ -20398,23 +19717,29 @@ function preset(options, ...userConfigs) {
20398
19717
  );
20399
19718
  }
20400
19719
  if (enableAstro) {
20401
- configs6.push(
19720
+ configs4.push(
20402
19721
  astro({
20403
19722
  overrides: getOverrides(options, "astro"),
20404
19723
  stylistic: stylisticOptions
20405
19724
  })
20406
19725
  );
20407
19726
  }
20408
- if (options.pnpm ?? true) {
20409
- configs6.push(
19727
+ if (enablePnpm ?? packageManager !== "bun") {
19728
+ configs4.push(
20410
19729
  pnpm({
20411
19730
  overrides: getOverrides(options, "pnpm"),
20412
- ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
19731
+ ignore: typeof enablePnpm !== "boolean" ? enablePnpm?.ignore : void 0
20413
19732
  })
20414
19733
  );
20415
19734
  }
19735
+ if (enableBun ?? packageManager === "bun") {
19736
+ configs4.push(bun({
19737
+ overrides: getOverrides(options, "bun"),
19738
+ ignore: typeof enableBun !== "boolean" ? enableBun?.ignore : void 0
19739
+ }));
19740
+ }
20416
19741
  if (options.jsonc ?? true) {
20417
- configs6.push(
19742
+ configs4.push(
20418
19743
  jsonc({
20419
19744
  overrides: getOverrides(options, "jsonc"),
20420
19745
  stylistic: stylisticOptions
@@ -20422,11 +19747,11 @@ function preset(options, ...userConfigs) {
20422
19747
  sortTsconfig()
20423
19748
  );
20424
19749
  if (stylisticOptions) {
20425
- configs6.push(sortPackageJson());
19750
+ configs4.push(sortPackageJson());
20426
19751
  }
20427
19752
  }
20428
19753
  if (options.yaml ?? true) {
20429
- configs6.push(
19754
+ configs4.push(
20430
19755
  yaml({
20431
19756
  overrides: getOverrides(options, "yaml"),
20432
19757
  stylistic: stylisticOptions
@@ -20434,7 +19759,7 @@ function preset(options, ...userConfigs) {
20434
19759
  );
20435
19760
  }
20436
19761
  if (options.toml ?? true) {
20437
- configs6.push(
19762
+ configs4.push(
20438
19763
  toml({
20439
19764
  overrides: getOverrides(options, "toml"),
20440
19765
  stylistic: stylisticOptions
@@ -20442,28 +19767,28 @@ function preset(options, ...userConfigs) {
20442
19767
  );
20443
19768
  }
20444
19769
  if (options.markdown === true) {
20445
- configs6.push(
19770
+ configs4.push(
20446
19771
  markdown({
20447
19772
  overrides: getOverrides(options, "markdown")
20448
19773
  })
20449
19774
  );
20450
19775
  }
20451
19776
  if (enableMdx) {
20452
- configs6.push(
19777
+ configs4.push(
20453
19778
  mdx({
20454
19779
  overrides: getOverrides(options, "mdx")
20455
19780
  })
20456
19781
  );
20457
19782
  }
20458
19783
  if (options.formatters) {
20459
- configs6.push(
19784
+ configs4.push(
20460
19785
  formatters(
20461
19786
  options.formatters,
20462
19787
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
20463
19788
  )
20464
19789
  );
20465
19790
  }
20466
- configs6.push(disables());
19791
+ configs4.push(disables());
20467
19792
  if ("files" in options) {
20468
19793
  throw new Error(
20469
19794
  '[@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.'
@@ -20475,10 +19800,10 @@ function preset(options, ...userConfigs) {
20475
19800
  }
20476
19801
  return acc;
20477
19802
  }, {});
20478
- if (Object.keys(fusedConfig).length) configs6.push([fusedConfig]);
19803
+ if (Object.keys(fusedConfig).length) configs4.push([fusedConfig]);
20479
19804
  let composer = new FlatConfigComposer();
20480
19805
  composer = composer.append(
20481
- ...configs6,
19806
+ ...configs4,
20482
19807
  ...userConfigs
20483
19808
  );
20484
19809
  if (autoRenamePlugins) {
@@ -20497,4 +19822,4 @@ var getConfig = preset;
20497
19822
  var defineConfig = preset;
20498
19823
  var preset_default = preset;
20499
19824
 
20500
- export { StylisticConfigDefaults, astro, banner, cspell, defaultPluginRenaming, defineConfig, disables, formatters, getConfig, getOverrides, graphql, ignores, imports, javascript, jsdoc, jsonc, jsx, markdown, mdx, next, node, nx, perfectionist, pnpm, preset, preset_default, prettier, react, reactNative, regexp, resolveSubOptions, secrets, sortPackageJson, sortTsconfig, storybook, stylistic, test, toml, tsdoc, typescript, unicorn, unocss, yaml, zod };
19825
+ export { StylisticConfigDefaults, astro, banner, bun, cspell, defaultPluginRenaming, defineConfig, disables, formatters, getConfig, getOverrides, graphql, ignores, imports, javascript, jsdoc, jsonc, jsx, markdown, mdx, next, node, nx, perfectionist, pnpm, preset, preset_default, prettier, react, reactNative, regexp, resolveSubOptions, secrets, sortPackageJson, sortTsconfig, storybook, stylistic, test, toml, tsdoc, typescript, unicorn, unocss, yaml, zod };