@storm-software/eslint 0.170.104 → 0.170.106

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/preset.js CHANGED
@@ -1,13 +1,10 @@
1
+ import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_JSX, GLOB_TESTS, GLOB_SRC_FILE, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT } from './chunk-WRL7SCXT.js';
1
2
  import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-ZTS57MZL.js';
2
3
  import { getTsConfigPath } from './chunk-BI2UMAQU.js';
3
4
  import { findWorkspaceRoot } from './chunk-DC6IKVKL.js';
4
5
  import { joinPaths } from './chunk-6BPUJHCC.js';
5
6
  import { __commonJS, init_esm_shims, __toESM, __require, __filename as __filename$1 } from './chunk-67G5I72Q.js';
6
7
  import * as __import_util from 'util';
7
- import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
8
- import * as __import_path from 'path';
9
- import * as __import_fs from 'fs';
10
- import * as __import__microsoft_tsdoc from '@microsoft/tsdoc';
11
8
  import { FlatConfigComposer } from 'eslint-flat-config-utils';
12
9
  import { isPackageExists } from 'local-pkg';
13
10
  import { loadConfig } from 'c12';
@@ -1292,10 +1289,10 @@ var require_eslint_plugin_react_native = __commonJS({
1292
1289
  "no-raw-text": __import___lib_rules_noRawText,
1293
1290
  "no-single-element-style-arrays": __import___lib_rules_noSingleElementStyleArrays
1294
1291
  };
1295
- function configureAsError(rules6) {
1292
+ function configureAsError(rules5) {
1296
1293
  const result = {};
1297
- for (const key in rules6) {
1298
- if (!rules6.hasOwnProperty(key)) {
1294
+ for (const key in rules5) {
1295
+ if (!rules5.hasOwnProperty(key)) {
1299
1296
  continue;
1300
1297
  }
1301
1298
  result["react-native/" + key] = 2;
@@ -1337,710 +1334,11 @@ var require_eslint_plugin_react_native = __commonJS({
1337
1334
  }
1338
1335
  });
1339
1336
 
1340
- // ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js
1341
- var require_Debug = __commonJS({
1342
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
1343
- init_esm_shims();
1344
- Object.defineProperty(exports, "__esModule", { value: true });
1345
- exports.Debug = void 0;
1346
- var Debug = class {
1347
- // To debug the plugin, temporarily uncomment the body of this function
1348
- static log(message2) {
1349
- }
1350
- };
1351
- exports.Debug = Debug;
1352
- }
1353
- });
1354
- var require_ConfigCache = __commonJS({
1355
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
1356
- init_esm_shims();
1357
- var __import___Debug = __toESM(require_Debug());
1358
- var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
1359
- if (k2 === void 0) k2 = k;
1360
- var desc = Object.getOwnPropertyDescriptor(m, k);
1361
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1362
- desc = { enumerable: true, get: function() {
1363
- return m[k];
1364
- } };
1365
- }
1366
- Object.defineProperty(o, k2, desc);
1367
- }) : (function(o, m, k, k2) {
1368
- if (k2 === void 0) k2 = k;
1369
- o[k2] = m[k];
1370
- }));
1371
- var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
1372
- Object.defineProperty(o, "default", { enumerable: true, value: v });
1373
- }) : function(o, v) {
1374
- o["default"] = v;
1375
- });
1376
- var __importStar = exports && exports.__importStar || function(mod) {
1377
- if (mod && mod.__esModule) return mod;
1378
- var result = {};
1379
- if (mod != null) {
1380
- for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
1381
- }
1382
- __setModuleDefault(result, mod);
1383
- return result;
1384
- };
1385
- Object.defineProperty(exports, "__esModule", { value: true });
1386
- exports.ConfigCache = void 0;
1387
- var tsdoc_config_1 = __import__microsoft_tsdocConfig;
1388
- var path23 = __importStar(__import_path);
1389
- var Debug_1 = __import___Debug;
1390
- function _nullishCoalesce(lhs, rhsFn) {
1391
- if (lhs != null) {
1392
- return lhs;
1393
- } else {
1394
- return rhsFn();
1395
- }
1396
- }
1397
- var _fs = __import_fs;
1398
- var _path = __import_path;
1399
- var MAX_PATH_SEARCH_DEPTH2 = 30;
1400
- var depth2 = 0;
1401
- var ROOT_FILES = [
1402
- "storm-workspace.json",
1403
- "storm-workspace.json",
1404
- "storm-workspace.yaml",
1405
- "storm-workspace.yml",
1406
- "storm-workspace.js",
1407
- "storm-workspace.ts",
1408
- ".storm-workspace.json",
1409
- ".storm-workspace.yaml",
1410
- ".storm-workspace.yml",
1411
- ".storm-workspace.js",
1412
- ".storm-workspace.ts",
1413
- "lerna.json",
1414
- "nx.json",
1415
- "turbo.json",
1416
- "npm-workspace.json",
1417
- "yarn-workspace.json",
1418
- "pnpm-workspace.json",
1419
- "npm-workspace.yaml",
1420
- "yarn-workspace.yaml",
1421
- "pnpm-workspace.yaml",
1422
- "npm-workspace.yml",
1423
- "yarn-workspace.yml",
1424
- "pnpm-workspace.yml",
1425
- "npm-lock.json",
1426
- "yarn-lock.json",
1427
- "pnpm-lock.json",
1428
- "npm-lock.yaml",
1429
- "yarn-lock.yaml",
1430
- "pnpm-lock.yaml",
1431
- "npm-lock.yml",
1432
- "yarn-lock.yml",
1433
- "pnpm-lock.yml",
1434
- "bun.lockb"
1435
- ];
1436
- var ROOT_DIRECTORIES = [
1437
- ".storm-workspace",
1438
- ".nx",
1439
- ".github",
1440
- ".vscode",
1441
- ".verdaccio"
1442
- ];
1443
- function findWorkspaceRoot3(startPath) {
1444
- const _startPath = _nullishCoalesce(startPath, () => process.cwd());
1445
- if (ROOT_DIRECTORIES.some(
1446
- (endDirName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endDirName))
1447
- )) {
1448
- return _startPath;
1449
- }
1450
- if (ROOT_FILES.some(
1451
- (endFileName) => _fs.existsSync.call(void 0, _path.join.call(void 0, _startPath, endFileName))
1452
- )) {
1453
- return _startPath;
1454
- }
1455
- if (_startPath !== "/" && depth2++ < MAX_PATH_SEARCH_DEPTH2) {
1456
- const parent = _path.join.call(void 0, _startPath, "..");
1457
- return findWorkspaceRoot3(parent);
1458
- }
1459
- return void 0;
1460
- }
1461
- var CACHE_CHECK_INTERVAL_MS = 3 * 1e3;
1462
- var CACHE_EXPIRE_MS = 20 * 1e3;
1463
- var CACHE_MAX_SIZE = 100;
1464
- var ConfigCache = class _ConfigCache {
1465
- /**
1466
- * Node.js equivalent of performance.now().
1467
- */
1468
- static _getTimeInMs() {
1469
- const [seconds, nanoseconds] = process.hrtime();
1470
- return seconds * 1e3 + nanoseconds / 1e6;
1471
- }
1472
- static getForSourceFile(sourceFilePath, tsConfigRootDir) {
1473
- const sourceFileFolder = path23.dirname(path23.resolve(sourceFilePath));
1474
- const configFilePath = tsConfigRootDir ? path23.join(tsConfigRootDir, tsdoc_config_1.TSDocConfigFile.FILENAME) : tsdoc_config_1.TSDocConfigFile.findConfigPathForFolder(sourceFileFolder);
1475
- const cacheKey = configFilePath || sourceFileFolder + "/";
1476
- Debug_1.Debug.log(`Cache key: "${cacheKey}"`);
1477
- const nowMs = _ConfigCache._getTimeInMs();
1478
- let cachedConfig = void 0;
1479
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
1480
- if (cachedConfig) {
1481
- Debug_1.Debug.log("Cache hit");
1482
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
1483
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
1484
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
1485
- Debug_1.Debug.log("Evicting because item is expired");
1486
- cachedConfig = void 0;
1487
- _ConfigCache._cachedConfigs.delete(cacheKey);
1488
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
1489
- Debug_1.Debug.log("Checking for modifications");
1490
- cachedConfig.lastCheckTimeMs = nowMs;
1491
- if (cachedConfig.configFile.checkForModifiedFiles()) {
1492
- Debug_1.Debug.log("Evicting because item was modified");
1493
- cachedConfig = void 0;
1494
- _ConfigCache._cachedConfigs.delete(cacheKey);
1495
- }
1496
- }
1497
- }
1498
- if (!cachedConfig) {
1499
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
1500
- Debug_1.Debug.log("Clearing cache");
1501
- _ConfigCache._cachedConfigs.clear();
1502
- }
1503
- const configFile = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
1504
- if (configFile.fileNotFound) {
1505
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
1506
- } else {
1507
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
1508
- }
1509
- cachedConfig = {
1510
- configFile,
1511
- lastCheckTimeMs: nowMs,
1512
- loadTimeMs: nowMs
1513
- };
1514
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
1515
- }
1516
- return cachedConfig.configFile;
1517
- }
1518
- static _checkConfigFilePath(workspaceRoot, configFilePath) {
1519
- const workspaceRootPath = workspaceRoot ? workspaceRoot : "./";
1520
- if (!configFilePath) {
1521
- return void 0;
1522
- }
1523
- if (_fs.existsSync(configFilePath)) {
1524
- return configFilePath;
1525
- } else if (_fs.existsSync(
1526
- path23.join(
1527
- workspaceRootPath,
1528
- configFilePath
1529
- )
1530
- )) {
1531
- return path23.join(
1532
- workspaceRootPath,
1533
- configFilePath
1534
- );
1535
- } else if (_fs.existsSync(
1536
- path23.join(
1537
- workspaceRootPath,
1538
- "node_modules",
1539
- configFilePath
1540
- )
1541
- )) {
1542
- return path23.join(
1543
- workspaceRootPath,
1544
- "node_modules",
1545
- configFilePath
1546
- );
1547
- } else if (_fs.existsSync(
1548
- path23.join(
1549
- workspaceRootPath,
1550
- "node_modules",
1551
- "@storm-software",
1552
- "tsdoc",
1553
- configFilePath
1554
- )
1555
- )) {
1556
- return path23.join(
1557
- workspaceRootPath,
1558
- "node_modules",
1559
- "@storm-software",
1560
- "tsdoc",
1561
- configFilePath
1562
- );
1563
- } else if (_fs.existsSync(
1564
- path23.join(
1565
- workspaceRootPath,
1566
- "node_modules",
1567
- "@storm-software",
1568
- "tsdoc",
1569
- "config",
1570
- configFilePath
1571
- )
1572
- )) {
1573
- return path23.join(
1574
- workspaceRootPath,
1575
- "node_modules",
1576
- "@storm-software",
1577
- "tsdoc",
1578
- "config",
1579
- configFilePath
1580
- );
1581
- } else if (_fs.existsSync(
1582
- path23.join(
1583
- workspaceRootPath,
1584
- "node_modules",
1585
- "@storm-software",
1586
- "tsdoc",
1587
- "dist",
1588
- configFilePath
1589
- )
1590
- )) {
1591
- return path23.join(
1592
- workspaceRootPath,
1593
- "node_modules",
1594
- "@storm-software",
1595
- "tsdoc",
1596
- "dist",
1597
- configFilePath
1598
- );
1599
- }
1600
- return void 0;
1601
- }
1602
- static getStormConfigFile(options) {
1603
- const type = options && options.type ? options.type : "recommended";
1604
- const configFile = options && options.configFile ? options.configFile : void 0;
1605
- let workspaceRoot = "";
1606
- if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
1607
- workspaceRoot = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
1608
- }
1609
- if (!workspaceRoot) {
1610
- workspaceRoot = findWorkspaceRoot3();
1611
- }
1612
- let currentConfigFile = process.env.STORM_TSDOC_CONFIG_FILE ? process.env.STORM_TSDOC_CONFIG_FILE : configFile;
1613
- Debug_1.Debug.log(`Config file from user options: ${currentConfigFile || "(none)"}`);
1614
- let configFilePath = _ConfigCache._checkConfigFilePath(
1615
- workspaceRoot,
1616
- currentConfigFile
1617
- );
1618
- if (!configFilePath) {
1619
- currentConfigFile = `${((process.env.STORM_TSDOC_TYPE ? process.env.STORM_TSDOC_TYPE : type) || "recommended").replace(/\.jsonc?$/, "")}.json`;
1620
- Debug_1.Debug.log(`Config file from user options not found, trying: ${currentConfigFile}`);
1621
- configFilePath = _ConfigCache._checkConfigFilePath(
1622
- workspaceRoot,
1623
- currentConfigFile
1624
- );
1625
- if (!configFilePath) {
1626
- configFilePath = _ConfigCache._checkConfigFilePath(
1627
- workspaceRoot,
1628
- "recommended.json"
1629
- );
1630
- if (!configFilePath) {
1631
- configFilePath = _ConfigCache._checkConfigFilePath(
1632
- workspaceRoot,
1633
- "tsdoc.json"
1634
- );
1635
- }
1636
- }
1637
- }
1638
- const cacheKey = configFilePath || "missing-config-file";
1639
- Debug_1.Debug.log(`Storm Software Configuration Cache key: "${cacheKey}"`);
1640
- const nowMs = _ConfigCache._getTimeInMs();
1641
- let cachedConfig = void 0;
1642
- cachedConfig = _ConfigCache._cachedConfigs.get(cacheKey);
1643
- if (cachedConfig) {
1644
- Debug_1.Debug.log("Cache hit");
1645
- const loadAgeMs = nowMs - cachedConfig.loadTimeMs;
1646
- const lastCheckAgeMs = nowMs - cachedConfig.lastCheckTimeMs;
1647
- if (loadAgeMs > CACHE_EXPIRE_MS || loadAgeMs < 0) {
1648
- Debug_1.Debug.log("Evicting because item is expired");
1649
- cachedConfig = void 0;
1650
- _ConfigCache._cachedConfigs.delete(cacheKey);
1651
- } else if (lastCheckAgeMs > CACHE_CHECK_INTERVAL_MS || lastCheckAgeMs < 0) {
1652
- Debug_1.Debug.log("Checking for modifications");
1653
- cachedConfig.lastCheckTimeMs = nowMs;
1654
- if (cachedConfig.configFile.checkForModifiedFiles()) {
1655
- Debug_1.Debug.log("Evicting because item was modified");
1656
- cachedConfig = void 0;
1657
- _ConfigCache._cachedConfigs.delete(cacheKey);
1658
- }
1659
- }
1660
- }
1661
- if (!cachedConfig) {
1662
- if (_ConfigCache._cachedConfigs.size > CACHE_MAX_SIZE) {
1663
- Debug_1.Debug.log("Clearing cache");
1664
- _ConfigCache._cachedConfigs.clear();
1665
- }
1666
- const configFile2 = tsdoc_config_1.TSDocConfigFile.loadFile(configFilePath);
1667
- if (configFile2.fileNotFound) {
1668
- Debug_1.Debug.log(`File not found: "${configFilePath}"`);
1669
- } else {
1670
- Debug_1.Debug.log(`Loaded: "${configFilePath}"`);
1671
- }
1672
- cachedConfig = {
1673
- configFile: configFile2,
1674
- lastCheckTimeMs: nowMs,
1675
- loadTimeMs: nowMs
1676
- };
1677
- _ConfigCache._cachedConfigs.set(cacheKey, cachedConfig);
1678
- }
1679
- return cachedConfig.configFile;
1680
- }
1681
- };
1682
- exports.ConfigCache = ConfigCache;
1683
- ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
1684
- ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
1685
- }
1686
- });
1687
- var require_lib = __commonJS({
1688
- "../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=c262176eba68bfd8898c896d48ca12af2147a650ca7a9cbfe8edf1cf981cdbc9/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
1689
- init_esm_shims();
1690
- var __import___Debug = __toESM(require_Debug());
1691
- var __import___ConfigCache = __toESM(require_ConfigCache());
1692
- var tsdoc_1 = __import__microsoft_tsdoc;
1693
- var Debug_1 = __import___Debug;
1694
- var ConfigCache_1 = __import___ConfigCache;
1695
- var tsdocMessageIds = {};
1696
- var defaultTSDocConfiguration = new tsdoc_1.TSDocConfiguration();
1697
- defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
1698
- tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
1699
- });
1700
- var plugin8 = {
1701
- rules: {
1702
- // NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
1703
- // from the NPM package name, and then appending this string.
1704
- syntax: {
1705
- meta: {
1706
- messages: Object.assign({
1707
- "error-loading-storm-config": `Error loading Storm Software's shared TSDoc config file:
1708
- {{details}}
1709
-
1710
- Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
1711
- "error-loading-config-file": "Error loading TSDoc config file:\n{{details}}",
1712
- "error-applying-storm-config": "Error applying Storm Software's shared TSDoc configuration: {{details}}",
1713
- "error-applying-config": "Error applying TSDoc configuration: {{details}}"
1714
- }, tsdocMessageIds),
1715
- type: "problem",
1716
- docs: {
1717
- description: "Validates that TypeScript documentation comments conform to the TSDoc standard",
1718
- category: "Stylistic Issues",
1719
- recommended: true,
1720
- url: "https://tsdoc.org/pages/packages/eslint-plugin-tsdoc"
1721
- },
1722
- schema: [
1723
- {
1724
- type: "object",
1725
- properties: {
1726
- type: {
1727
- type: "string",
1728
- enum: ["typedoc", "api-extractor", "base", "core", "callouts", "recommended"],
1729
- description: "The TSDoc configuration type to use from '@storm-software/tsdoc'. Defaults to 'recommended' (@storm-software/tsdoc/recommended.json)."
1730
- },
1731
- configFile: {
1732
- type: "string",
1733
- description: "The TSDoc configuration file to use."
1734
- },
1735
- tsconfigRootDir: {
1736
- type: "string",
1737
- description: "The root directory to use when resolving the tsconfig file. This is only necessary if the tsconfig file is not located in the same directory as the source file being linted. If not provided, eslint will attempt to use the parser option 'tsconfigRootDir' if it is available."
1738
- }
1739
- },
1740
- additionalProperties: false
1741
- }
1742
- ]
1743
- },
1744
- defaultOptions: [
1745
- {
1746
- type: "recommended"
1747
- }
1748
- ],
1749
- create: (context) => {
1750
- const tsdocConfiguration = new tsdoc_1.TSDocConfiguration();
1751
- let tsConfigDir = void 0;
1752
- const sourceFilePath = context.filename;
1753
- Debug_1.Debug.log(`Linting: "${sourceFilePath}"`);
1754
- try {
1755
- let tsdocConfigFile = {};
1756
- try {
1757
- const userOptions = context.options ? Array.isArray(context.options) ? context.options.length > 0 ? context.options[0] : {} : context.options : {};
1758
- tsConfigDir = userOptions.tsconfigRootDir;
1759
- if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
1760
- tsConfigDir = context.parserOptions.tsconfigRootDir;
1761
- }
1762
- const config6 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
1763
- Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config6, void 0, 2)}`);
1764
- tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config6);
1765
- if (!tsdocConfigFile.fileNotFound) {
1766
- if (tsdocConfigFile.hasErrors) {
1767
- context.report({
1768
- loc: { line: 1, column: 1 },
1769
- messageId: "error-loading-storm-config",
1770
- data: {
1771
- details: tsdocConfigFile.getErrorSummary()
1772
- }
1773
- });
1774
- }
1775
- try {
1776
- tsdocConfigFile.configureParser(tsdocConfiguration);
1777
- } catch (e) {
1778
- context.report({
1779
- loc: { line: 1, column: 1 },
1780
- messageId: "error-applying-storm-config",
1781
- data: {
1782
- details: e.message
1783
- }
1784
- });
1785
- }
1786
- }
1787
- } catch (e) {
1788
- context.report({
1789
- loc: { line: 1, column: 1 },
1790
- messageId: "error-loading-storm-config",
1791
- data: {
1792
- details: `Unexpected exception: ${e.message}`
1793
- }
1794
- });
1795
- }
1796
- if (!tsdocConfigFile || tsdocConfigFile.fileNotFound || tsdocConfigFile.hasErrors) {
1797
- tsdocConfigFile = ConfigCache_1.ConfigCache.getForSourceFile(sourceFilePath, tsConfigDir);
1798
- if (!tsdocConfigFile.fileNotFound) {
1799
- if (tsdocConfigFile.hasErrors) {
1800
- context.report({
1801
- loc: { line: 1, column: 1 },
1802
- messageId: "error-loading-config-file",
1803
- data: {
1804
- details: tsdocConfigFile.getErrorSummary()
1805
- }
1806
- });
1807
- }
1808
- try {
1809
- tsdocConfigFile.configureParser(tsdocConfiguration);
1810
- } catch (e) {
1811
- context.report({
1812
- loc: { line: 1, column: 1 },
1813
- messageId: "error-applying-config",
1814
- data: {
1815
- details: e.message
1816
- }
1817
- });
1818
- }
1819
- }
1820
- }
1821
- } catch (e) {
1822
- context.report({
1823
- loc: { line: 1, column: 1 },
1824
- messageId: "error-loading-config-file",
1825
- data: {
1826
- details: `Unexpected exception: ${e.message}`
1827
- }
1828
- });
1829
- }
1830
- const tsdocParser = new tsdoc_1.TSDocParser(tsdocConfiguration);
1831
- const sourceCode = context.sourceCode || context.getSourceCode();
1832
- const checkCommentBlocks = function(node2) {
1833
- for (const comment of sourceCode.getAllComments()) {
1834
- if (comment.type !== "Block") {
1835
- continue;
1836
- }
1837
- if (!comment.range) {
1838
- continue;
1839
- }
1840
- const textRange = tsdoc_1.TextRange.fromStringRange(sourceCode.text, comment.range[0], comment.range[1]);
1841
- if (textRange.length < 5) {
1842
- continue;
1843
- }
1844
- if (textRange.buffer[textRange.pos + 2] !== "*") {
1845
- continue;
1846
- }
1847
- const parserContext = tsdocParser.parseRange(textRange);
1848
- for (const message2 of parserContext.log.messages) {
1849
- context.report({
1850
- loc: {
1851
- start: sourceCode.getLocFromIndex(message2.textRange.pos),
1852
- end: sourceCode.getLocFromIndex(message2.textRange.end)
1853
- },
1854
- messageId: message2.messageId,
1855
- data: {
1856
- unformattedText: message2.unformattedText
1857
- }
1858
- });
1859
- }
1860
- }
1861
- };
1862
- return {
1863
- Program: checkCommentBlocks
1864
- };
1865
- }
1866
- }
1867
- }
1868
- };
1869
- module.exports = plugin8;
1870
- }
1871
- });
1872
-
1873
1337
  // src/preset.ts
1874
1338
  init_esm_shims();
1875
1339
 
1876
1340
  // src/configs/astro.ts
1877
1341
  init_esm_shims();
1878
-
1879
- // ../package-constants/src/globs.ts
1880
- init_esm_shims();
1881
- var GLOB_SRC_EXT = "?([cm])[jt]s?(x)";
1882
- var GLOB_SRC_FILE = `*.${GLOB_SRC_EXT}`;
1883
- var GLOB_SRC = `**/${GLOB_SRC_FILE}`;
1884
- var GLOB_JSX_EXT = "?([cm])jsx";
1885
- var GLOB_JSX_FILE = `*.${GLOB_JSX_EXT}`;
1886
- var GLOB_JSX = `**/${GLOB_JSX_FILE}`;
1887
- var GLOB_TS_EXT = "?([cm])ts";
1888
- var GLOB_TS_FILE = `*.${GLOB_TS_EXT}`;
1889
- var GLOB_TS = `**/${GLOB_TS_FILE}`;
1890
- var GLOB_TSX_EXT = "?([cm])tsx";
1891
- var GLOB_TSX_FILE = `*.${GLOB_TSX_EXT}`;
1892
- var GLOB_TSX = `**/${GLOB_TSX_FILE}`;
1893
- var GLOB_CSS_EXT = "css";
1894
- var GLOB_CSS_FILE = `*.${GLOB_CSS_EXT}`;
1895
- var GLOB_CSS = `**/${GLOB_CSS_FILE}`;
1896
- var GLOB_POSTCSS_EXT = "{p,post}css";
1897
- var GLOB_POSTCSS_FILE = `*.${GLOB_POSTCSS_EXT}`;
1898
- var GLOB_POSTCSS = `**/${GLOB_POSTCSS_FILE}`;
1899
- var GLOB_LESS_EXT = "less";
1900
- var GLOB_LESS_FILE = `*.${GLOB_LESS_EXT}`;
1901
- var GLOB_LESS = `**/${GLOB_LESS_FILE}`;
1902
- var GLOB_SCSS_EXT = "scss";
1903
- var GLOB_SCSS_FILE = `*.${GLOB_SCSS_EXT}`;
1904
- var GLOB_SCSS = `**/${GLOB_SCSS_FILE}`;
1905
- var GLOB_JSON_EXT = "json";
1906
- var GLOB_JSON_FILE = `*.${GLOB_JSON_EXT}`;
1907
- var GLOB_JSON = `**/${GLOB_JSON_FILE}`;
1908
- var GLOB_JSON5_EXT = "json5";
1909
- var GLOB_JSON5_FILE = `*.${GLOB_JSON5_EXT}`;
1910
- var GLOB_JSON5 = `**/${GLOB_JSON5_FILE}`;
1911
- var GLOB_JSONC_EXT = "jsonc";
1912
- var GLOB_JSONC_FILE = `*.${GLOB_JSONC_EXT}`;
1913
- var GLOB_JSONC = `**/${GLOB_JSONC_FILE}`;
1914
- var GLOB_MARKDOWN_EXT = "md";
1915
- var GLOB_MARKDOWN_FILE = `*.${GLOB_MARKDOWN_EXT}`;
1916
- var GLOB_MARKDOWN = `**/${GLOB_MARKDOWN_FILE}`;
1917
- var GLOB_MDX_EXT = "mdx";
1918
- var GLOB_MDX_FILE = `*.${GLOB_MDX_EXT}`;
1919
- var GLOB_MDX = `**/${GLOB_MDX_FILE}`;
1920
- var GLOB_MARKDOWN_IN_MARKDOWN = `${GLOB_MARKDOWN}/${GLOB_MARKDOWN_FILE}`;
1921
- var GLOB_YAML_EXT = "y?(a)ml";
1922
- var GLOB_YAML_FILE = `*.${GLOB_YAML_EXT}`;
1923
- var GLOB_YAML = `**/${GLOB_YAML_FILE}`;
1924
- var GLOB_TOML_EXT = "toml";
1925
- var GLOB_TOML_FILE = `*.${GLOB_TOML_EXT}`;
1926
- var GLOB_TOML = `**/${GLOB_TOML_FILE}`;
1927
- var GLOB_XML_EXT = "xml";
1928
- var GLOB_XML_FILE = `*.${GLOB_XML_EXT}`;
1929
- var GLOB_XML = `**/${GLOB_XML_FILE}`;
1930
- var GLOB_SVG_EXT = "svg";
1931
- var GLOB_SVG_FILE = `*.${GLOB_SVG_EXT}`;
1932
- var GLOB_SVG = `**/${GLOB_SVG_FILE}`;
1933
- var GLOB_HTML_EXT = "htm?(l)";
1934
- var GLOB_HTML_FILE = `*.${GLOB_HTML_EXT}`;
1935
- var GLOB_HTML = `**/${GLOB_HTML_FILE}`;
1936
- var GLOB_ASTRO_EXT = "astro";
1937
- var GLOB_ASTRO_FILE = `*.${GLOB_ASTRO_EXT}`;
1938
- var GLOB_ASTRO = `**/${GLOB_ASTRO_FILE}`;
1939
- var GLOB_ASTRO_TS = `${GLOB_ASTRO}/*.ts`;
1940
- var GLOB_GRAPHQL_EXT = "{g,graph}ql";
1941
- var GLOB_GRAPHQL_FILE = `*.${GLOB_GRAPHQL_EXT}`;
1942
- var GLOB_GRAPHQL = `**/${GLOB_GRAPHQL_FILE}`;
1943
- var GLOB_TESTS = [
1944
- `**/__tests__/**/*.${GLOB_SRC_EXT}`,
1945
- `**/*.spec.${GLOB_SRC_EXT}`,
1946
- `**/*.test.${GLOB_SRC_EXT}`,
1947
- `**/*.bench.${GLOB_SRC_EXT}`,
1948
- `**/*.benchmark.${GLOB_SRC_EXT}`
1949
- ];
1950
- var GLOB_EXCLUDE = [
1951
- "**/.git",
1952
- "**/node_modules",
1953
- "**/dist",
1954
- "**/tmp",
1955
- "**/coverage",
1956
- "**/bench",
1957
- "**/__snapshots__",
1958
- "**/__test__",
1959
- "**/__mocks__",
1960
- "**/__generated__",
1961
- "**/.wrangler",
1962
- "**/.rolldown",
1963
- "**/.docusaurus",
1964
- "**/.tamagui",
1965
- "**/tamagui.css",
1966
- "**/.nx",
1967
- "**/.next",
1968
- "**/.storm",
1969
- "**/.powerlines",
1970
- "**/.shell-shock",
1971
- "**/.earthquake",
1972
- "**/.aftershock",
1973
- "**/workbox*.js",
1974
- "**/sw*.js",
1975
- "**/service-worker.js",
1976
- "**/fallback*.js",
1977
- "**/ios",
1978
- "**/.android",
1979
- "**/.DS_Store",
1980
- "**/Thumbs.db",
1981
- "**/.cspellcache",
1982
- "**/package-lock.*",
1983
- "**/npm-lock.*",
1984
- "**/pnpm-lock.*",
1985
- "**/bun.lockb",
1986
- "**/cargo.lock",
1987
- "**/next-env.d.ts",
1988
- "**/CODEOWNERS",
1989
- "**/yarn.lock",
1990
- "**/jest.preset.{js,ts,cjs,cts,mjs,mts,json}",
1991
- "**/vitest.preset.{js,ts,cjs,cts,mjs,mts,json}",
1992
- "**/jest.config.{js,ts,cjs,cts,mjs,mts,json}",
1993
- "**/vitest.config.{js,ts,cjs,cts,mjs,mts,json}",
1994
- "**/vitest.workspace.{js,ts,cjs,cts,mjs,mts,json}",
1995
- "**/*.spec.{ts,tsx}",
1996
- "**/*.test.{ts,tsx}",
1997
- "**/output",
1998
- "**/temp",
1999
- "**/.temp",
2000
- "**/.history",
2001
- "**/.vitepress/cache",
2002
- "**/.nuxt",
2003
- "**/.svelte-kit",
2004
- "**/.vercel",
2005
- "**/.changeset",
2006
- "**/.idea",
2007
- "**/.cache",
2008
- "**/.vite-inspect",
2009
- "**/.yarn",
2010
- "**/*.min.*",
2011
- "**/CHANGELOG*.md",
2012
- "**/CONTRIBUTING.md",
2013
- "**/SECURITY.md",
2014
- "**/CODE_OF_CONDUCT.md",
2015
- "**/PULL_REQUEST_TEMPLATE.md",
2016
- "**/LICENSE*",
2017
- "**/auto-import?(s).d.ts",
2018
- "**/components.d.ts",
2019
- "**/vite.config.*.timestamp-*",
2020
- "**/webpack.config.*.timestamp-*",
2021
- "**/rollup.config.*.timestamp-*",
2022
- "**/nx/**/schema.d.ts",
2023
- "**/nx/**/schema.json",
2024
- "**/nx/**/schema.md",
2025
- "**/nx/**/*.schema.d.ts",
2026
- "**/nx/**/*.schema.json",
2027
- "**/nx/**/*.schema.md",
2028
- "**/nx/**/generators/**/files",
2029
- ".agents/**/*",
2030
- "**/.agents/**/*",
2031
- ".claude/**/*",
2032
- "**/.claude/**/*",
2033
- ".codex/**/*",
2034
- "**/.codex/**/*",
2035
- ".cursor/**/*",
2036
- "**/.cursor/**/*",
2037
- ".opencode/**/*",
2038
- "**/.opencode/**/*",
2039
- ".nx/**/*",
2040
- "**/.nx/**/*"
2041
- ];
2042
-
2043
- // src/configs/astro.ts
2044
1342
  async function astro(options = {}) {
2045
1343
  const { files = [GLOB_ASTRO], overrides = {}, stylistic: stylistic2 = true } = options;
2046
1344
  const [pluginAstro, parserAstro, parserTs] = await Promise.all([
@@ -2268,14 +1566,14 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2268
1566
  };
2269
1567
 
2270
1568
  // ../config-tools/src/logger/console.ts
2271
- var getLogFn = (logLevel = LogLevel.INFO, config6 = {}, options = {}) => {
1569
+ var getLogFn = (logLevel = LogLevel.INFO, config5 = {}, options = {}) => {
2272
1570
  const {
2273
1571
  chalk: _chalk = getChalk(),
2274
1572
  fullDateTime = false,
2275
1573
  hideDateTime = false
2276
1574
  } = options;
2277
- const colors = !config6.colors?.dark && !config6.colors?.["base"] && !config6.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config6.colors?.dark && typeof config6.colors.dark === "string" ? config6.colors : config6.colors?.["base"]?.dark && typeof config6.colors["base"].dark === "string" ? config6.colors["base"].dark : config6.colors?.["base"] ? config6.colors?.["base"] : DEFAULT_COLOR_CONFIG;
2278
- const configLogLevel = config6.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
1575
+ 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;
1576
+ const configLogLevel = config5.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
2279
1577
  if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
2280
1578
  return (_) => {
2281
1579
  };
@@ -2378,8 +1676,8 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
2378
1676
  );
2379
1677
  };
2380
1678
  };
2381
- var writeWarning = (message2, config6) => getLogFn(LogLevel.WARN, config6)(message2);
2382
- var writeTrace = (message2, config6) => getLogFn(LogLevel.TRACE, config6)(message2);
1679
+ var writeWarning = (message2, config5) => getLogFn(LogLevel.WARN, config5)(message2);
1680
+ var writeTrace = (message2, config5) => getLogFn(LogLevel.TRACE, config5)(message2);
2383
1681
  var MAX_DEPTH = 10;
2384
1682
  var formatLogMessage = (message2, options = {}, depth2 = 0) => {
2385
1683
  if (depth2 > MAX_DEPTH) {
@@ -2884,8 +2182,8 @@ function prefixIssues(path23, issues) {
2884
2182
  function unwrapMessage(message2) {
2885
2183
  return typeof message2 === "string" ? message2 : message2?.message;
2886
2184
  }
2887
- function finalizeIssue(iss, ctx, config6) {
2888
- const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config6.customError?.(iss)) ?? unwrapMessage(config6.localeError?.(iss)) ?? "Invalid input";
2185
+ function finalizeIssue(iss, ctx, config5) {
2186
+ 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";
2889
2187
  const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
2890
2188
  rest.path ?? (rest.path = []);
2891
2189
  rest.message = message2;
@@ -4755,40 +4053,40 @@ async function getPackageJsonConfig(root) {
4755
4053
  support
4756
4054
  };
4757
4055
  }
4758
- function applyDefaultConfig(config6) {
4759
- if (!config6.support && config6.contact) {
4760
- config6.support = config6.contact;
4056
+ function applyDefaultConfig(config5) {
4057
+ if (!config5.support && config5.contact) {
4058
+ config5.support = config5.contact;
4761
4059
  }
4762
- if (!config6.contact && config6.support) {
4763
- config6.contact = config6.support;
4060
+ if (!config5.contact && config5.support) {
4061
+ config5.contact = config5.support;
4764
4062
  }
4765
- if (config6.homepage) {
4766
- if (!config6.docs) {
4767
- config6.docs = `${config6.homepage}/docs`;
4063
+ if (config5.homepage) {
4064
+ if (!config5.docs) {
4065
+ config5.docs = `${config5.homepage}/docs`;
4768
4066
  }
4769
- if (!config6.license) {
4770
- config6.license = `${config6.homepage}/license`;
4067
+ if (!config5.license) {
4068
+ config5.license = `${config5.homepage}/license`;
4771
4069
  }
4772
- if (!config6.support) {
4773
- config6.support = `${config6.homepage}/support`;
4070
+ if (!config5.support) {
4071
+ config5.support = `${config5.homepage}/support`;
4774
4072
  }
4775
- if (!config6.contact) {
4776
- config6.contact = `${config6.homepage}/contact`;
4073
+ if (!config5.contact) {
4074
+ config5.contact = `${config5.homepage}/contact`;
4777
4075
  }
4778
- if (!config6.error?.codesFile || !config6?.error?.url) {
4779
- config6.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
4780
- if (config6.homepage) {
4781
- config6.error.url ??= `${config6.homepage}/errors`;
4076
+ if (!config5.error?.codesFile || !config5?.error?.url) {
4077
+ config5.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
4078
+ if (config5.homepage) {
4079
+ config5.error.url ??= `${config5.homepage}/errors`;
4782
4080
  }
4783
4081
  }
4784
4082
  }
4785
- return config6;
4083
+ return config5;
4786
4084
  }
4787
4085
 
4788
4086
  // ../config-tools/src/config-file/get-config-file.ts
4789
4087
  var getConfigFileByName = async (fileName, filePath, options = {}) => {
4790
4088
  const workspacePath = filePath || findWorkspaceRoot2(filePath);
4791
- const configs7 = await Promise.all([
4089
+ const configs6 = await Promise.all([
4792
4090
  loadConfig({
4793
4091
  cwd: workspacePath,
4794
4092
  packageJson: true,
@@ -4819,14 +4117,14 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
4819
4117
  ...options
4820
4118
  })
4821
4119
  ]);
4822
- return defu(configs7[0] ?? {}, configs7[1] ?? {});
4120
+ return defu(configs6[0] ?? {}, configs6[1] ?? {});
4823
4121
  };
4824
4122
  var getConfigFile = async (filePath, additionalFileNames = []) => {
4825
4123
  const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
4826
4124
  const result = await getConfigFileByName("storm-workspace", workspacePath);
4827
- let config6 = result.config;
4125
+ let config5 = result.config;
4828
4126
  const configFile = result.configFile;
4829
- if (config6 && configFile && Object.keys(config6).length > 0 && !config6.skipConfigLogging) {
4127
+ if (config5 && configFile && Object.keys(config5).length > 0 && !config5.skipConfigLogging) {
4830
4128
  writeTrace(
4831
4129
  `Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
4832
4130
  {
@@ -4842,7 +4140,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
4842
4140
  );
4843
4141
  for (const result2 of results) {
4844
4142
  if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
4845
- if (!config6.skipConfigLogging && !result2.config.skipConfigLogging) {
4143
+ if (!config5.skipConfigLogging && !result2.config.skipConfigLogging) {
4846
4144
  writeTrace(
4847
4145
  `Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
4848
4146
  {
@@ -4850,15 +4148,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
4850
4148
  }
4851
4149
  );
4852
4150
  }
4853
- config6 = defu(result2.config ?? {}, config6 ?? {});
4151
+ config5 = defu(result2.config ?? {}, config5 ?? {});
4854
4152
  }
4855
4153
  }
4856
4154
  }
4857
- if (!config6 || Object.keys(config6).length === 0) {
4155
+ if (!config5 || Object.keys(config5).length === 0) {
4858
4156
  return void 0;
4859
4157
  }
4860
- config6.configFile = configFile;
4861
- return config6;
4158
+ config5.configFile = configFile;
4159
+ return config5;
4862
4160
  };
4863
4161
 
4864
4162
  // ../config-tools/src/create-storm-config.ts
@@ -4868,7 +4166,7 @@ init_esm_shims();
4868
4166
  init_esm_shims();
4869
4167
  var getConfigEnv = () => {
4870
4168
  const prefix = "STORM_";
4871
- let config6 = {
4169
+ let config5 = {
4872
4170
  extends: process.env[`${prefix}EXTENDS`] || void 0,
4873
4171
  name: process.env[`${prefix}NAME`] || void 0,
4874
4172
  variant: process.env[`${prefix}VARIANT`] || void 0,
@@ -4957,38 +4255,38 @@ var getConfigEnv = () => {
4957
4255
  (colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
4958
4256
  )
4959
4257
  );
4960
- config6.colors = themeNames.length > 0 ? themeNames.reduce(
4258
+ config5.colors = themeNames.length > 0 ? themeNames.reduce(
4961
4259
  (ret, themeName) => {
4962
4260
  ret[themeName] = getThemeColorsEnv(prefix, themeName);
4963
4261
  return ret;
4964
4262
  },
4965
4263
  {}
4966
4264
  ) : getThemeColorsEnv(prefix);
4967
- if (config6.docs === STORM_DEFAULT_DOCS) {
4968
- if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
4969
- config6.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/docs`;
4265
+ if (config5.docs === STORM_DEFAULT_DOCS) {
4266
+ if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
4267
+ config5.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/docs`;
4970
4268
  } else {
4971
- config6.docs = `${config6.homepage}/docs`;
4269
+ config5.docs = `${config5.homepage}/docs`;
4972
4270
  }
4973
4271
  }
4974
- if (config6.licensing === STORM_DEFAULT_LICENSING) {
4975
- if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
4976
- config6.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/licensing`;
4272
+ if (config5.licensing === STORM_DEFAULT_LICENSING) {
4273
+ if (config5.homepage === STORM_DEFAULT_HOMEPAGE) {
4274
+ config5.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config5.name}/licensing`;
4977
4275
  } else {
4978
- config6.licensing = `${config6.homepage}/docs`;
4276
+ config5.licensing = `${config5.homepage}/docs`;
4979
4277
  }
4980
4278
  }
4981
4279
  const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
4982
4280
  if (serializedConfig) {
4983
4281
  const parsed = JSON.parse(serializedConfig);
4984
- config6 = {
4985
- ...config6,
4282
+ config5 = {
4283
+ ...config5,
4986
4284
  ...parsed,
4987
- colors: { ...config6.colors, ...parsed.colors },
4988
- extensions: { ...config6.extensions, ...parsed.extensions }
4285
+ colors: { ...config5.colors, ...parsed.colors },
4286
+ extensions: { ...config5.extensions, ...parsed.extensions }
4989
4287
  };
4990
4288
  }
4991
- return config6;
4289
+ return config5;
4992
4290
  };
4993
4291
  var getThemeColorsEnv = (prefix, theme) => {
4994
4292
  const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
@@ -5093,360 +4391,360 @@ var setExtensionEnv = (extensionName, extension) => {
5093
4391
  }
5094
4392
  }
5095
4393
  };
5096
- var setConfigEnv = (config6) => {
4394
+ var setConfigEnv = (config5) => {
5097
4395
  const prefix = "STORM_";
5098
- if (config6.extends) {
5099
- process.env[`${prefix}EXTENDS`] = Array.isArray(config6.extends) ? JSON.stringify(config6.extends) : config6.extends;
4396
+ if (config5.extends) {
4397
+ process.env[`${prefix}EXTENDS`] = Array.isArray(config5.extends) ? JSON.stringify(config5.extends) : config5.extends;
5100
4398
  }
5101
- if (config6.name) {
5102
- process.env[`${prefix}NAME`] = config6.name;
4399
+ if (config5.name) {
4400
+ process.env[`${prefix}NAME`] = config5.name;
5103
4401
  }
5104
- if (config6.variant) {
5105
- process.env[`${prefix}VARIANT`] = config6.variant;
4402
+ if (config5.variant) {
4403
+ process.env[`${prefix}VARIANT`] = config5.variant;
5106
4404
  }
5107
- if (config6.namespace) {
5108
- process.env[`${prefix}NAMESPACE`] = config6.namespace;
4405
+ if (config5.namespace) {
4406
+ process.env[`${prefix}NAMESPACE`] = config5.namespace;
5109
4407
  }
5110
- if (config6.owner) {
5111
- process.env[`${prefix}OWNER`] = config6.owner;
4408
+ if (config5.owner) {
4409
+ process.env[`${prefix}OWNER`] = config5.owner;
5112
4410
  }
5113
- if (config6.bot) {
5114
- process.env[`${prefix}BOT_NAME`] = config6.bot.name;
5115
- process.env[`${prefix}BOT_EMAIL`] = config6.bot.email;
4411
+ if (config5.bot) {
4412
+ process.env[`${prefix}BOT_NAME`] = config5.bot.name;
4413
+ process.env[`${prefix}BOT_EMAIL`] = config5.bot.email;
5116
4414
  }
5117
- if (config6.error) {
5118
- process.env[`${prefix}ERROR_CODES_FILE`] = config6.error.codesFile;
5119
- process.env[`${prefix}ERROR_URL`] = config6.error.url;
4415
+ if (config5.error) {
4416
+ process.env[`${prefix}ERROR_CODES_FILE`] = config5.error.codesFile;
4417
+ process.env[`${prefix}ERROR_URL`] = config5.error.url;
5120
4418
  }
5121
- if (config6.release) {
5122
- if (config6.release.banner) {
5123
- if (typeof config6.release.banner === "string") {
5124
- process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner;
5125
- process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner;
4419
+ if (config5.release) {
4420
+ if (config5.release.banner) {
4421
+ if (typeof config5.release.banner === "string") {
4422
+ process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner;
4423
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner;
5126
4424
  } else {
5127
- process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner.url;
5128
- process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner.url;
5129
- process.env[`${prefix}RELEASE_BANNER_ALT`] = config6.release.banner.alt;
4425
+ process.env[`${prefix}RELEASE_BANNER`] = config5.release.banner.url;
4426
+ process.env[`${prefix}RELEASE_BANNER_URL`] = config5.release.banner.url;
4427
+ process.env[`${prefix}RELEASE_BANNER_ALT`] = config5.release.banner.alt;
5130
4428
  }
5131
4429
  }
5132
- process.env[`${prefix}RELEASE_HEADER`] = config6.release.header;
5133
- process.env[`${prefix}RELEASE_FOOTER`] = config6.release.footer;
4430
+ process.env[`${prefix}RELEASE_HEADER`] = config5.release.header;
4431
+ process.env[`${prefix}RELEASE_FOOTER`] = config5.release.footer;
5134
4432
  }
5135
- if (config6.socials) {
5136
- if (config6.socials.twitter) {
5137
- process.env[`${prefix}SOCIAL_TWITTER`] = config6.socials.twitter;
4433
+ if (config5.socials) {
4434
+ if (config5.socials.twitter) {
4435
+ process.env[`${prefix}SOCIAL_TWITTER`] = config5.socials.twitter;
5138
4436
  }
5139
- if (config6.socials.discord) {
5140
- process.env[`${prefix}SOCIAL_DISCORD`] = config6.socials.discord;
4437
+ if (config5.socials.discord) {
4438
+ process.env[`${prefix}SOCIAL_DISCORD`] = config5.socials.discord;
5141
4439
  }
5142
- if (config6.socials.telegram) {
5143
- process.env[`${prefix}SOCIAL_TELEGRAM`] = config6.socials.telegram;
4440
+ if (config5.socials.telegram) {
4441
+ process.env[`${prefix}SOCIAL_TELEGRAM`] = config5.socials.telegram;
5144
4442
  }
5145
- if (config6.socials.slack) {
5146
- process.env[`${prefix}SOCIAL_SLACK`] = config6.socials.slack;
4443
+ if (config5.socials.slack) {
4444
+ process.env[`${prefix}SOCIAL_SLACK`] = config5.socials.slack;
5147
4445
  }
5148
- if (config6.socials.medium) {
5149
- process.env[`${prefix}SOCIAL_MEDIUM`] = config6.socials.medium;
4446
+ if (config5.socials.medium) {
4447
+ process.env[`${prefix}SOCIAL_MEDIUM`] = config5.socials.medium;
5150
4448
  }
5151
- if (config6.socials.github) {
5152
- process.env[`${prefix}SOCIAL_GITHUB`] = config6.socials.github;
4449
+ if (config5.socials.github) {
4450
+ process.env[`${prefix}SOCIAL_GITHUB`] = config5.socials.github;
5153
4451
  }
5154
4452
  }
5155
- if (config6.organization) {
5156
- if (typeof config6.organization === "string") {
5157
- process.env[`${prefix}ORG`] = config6.organization;
5158
- process.env[`${prefix}ORG_NAME`] = config6.organization;
5159
- process.env[`${prefix}ORGANIZATION`] = config6.organization;
5160
- process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization;
4453
+ if (config5.organization) {
4454
+ if (typeof config5.organization === "string") {
4455
+ process.env[`${prefix}ORG`] = config5.organization;
4456
+ process.env[`${prefix}ORG_NAME`] = config5.organization;
4457
+ process.env[`${prefix}ORGANIZATION`] = config5.organization;
4458
+ process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization;
5161
4459
  } else {
5162
- process.env[`${prefix}ORG`] = config6.organization.name;
5163
- process.env[`${prefix}ORG_NAME`] = config6.organization.name;
5164
- process.env[`${prefix}ORGANIZATION`] = config6.organization.name;
5165
- process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization.name;
5166
- if (config6.organization.url) {
5167
- process.env[`${prefix}ORG_URL`] = config6.organization.url;
5168
- process.env[`${prefix}ORGANIZATION_URL`] = config6.organization.url;
4460
+ process.env[`${prefix}ORG`] = config5.organization.name;
4461
+ process.env[`${prefix}ORG_NAME`] = config5.organization.name;
4462
+ process.env[`${prefix}ORGANIZATION`] = config5.organization.name;
4463
+ process.env[`${prefix}ORGANIZATION_NAME`] = config5.organization.name;
4464
+ if (config5.organization.url) {
4465
+ process.env[`${prefix}ORG_URL`] = config5.organization.url;
4466
+ process.env[`${prefix}ORGANIZATION_URL`] = config5.organization.url;
5169
4467
  }
5170
- if (config6.organization.description) {
5171
- process.env[`${prefix}ORG_DESCRIPTION`] = config6.organization.description;
5172
- process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config6.organization.description;
4468
+ if (config5.organization.description) {
4469
+ process.env[`${prefix}ORG_DESCRIPTION`] = config5.organization.description;
4470
+ process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config5.organization.description;
5173
4471
  }
5174
- if (config6.organization.logo) {
5175
- process.env[`${prefix}ORG_LOGO`] = config6.organization.logo;
5176
- process.env[`${prefix}ORGANIZATION_LOGO`] = config6.organization.logo;
4472
+ if (config5.organization.logo) {
4473
+ process.env[`${prefix}ORG_LOGO`] = config5.organization.logo;
4474
+ process.env[`${prefix}ORGANIZATION_LOGO`] = config5.organization.logo;
5177
4475
  }
5178
- if (config6.organization.icon) {
5179
- process.env[`${prefix}ORG_ICON`] = config6.organization.icon;
5180
- process.env[`${prefix}ORGANIZATION_ICON`] = config6.organization.icon;
4476
+ if (config5.organization.icon) {
4477
+ process.env[`${prefix}ORG_ICON`] = config5.organization.icon;
4478
+ process.env[`${prefix}ORGANIZATION_ICON`] = config5.organization.icon;
5181
4479
  }
5182
4480
  }
5183
4481
  }
5184
- if (config6.packageManager) {
5185
- process.env[`${prefix}PACKAGE_MANAGER`] = config6.packageManager;
4482
+ if (config5.packageManager) {
4483
+ process.env[`${prefix}PACKAGE_MANAGER`] = config5.packageManager;
5186
4484
  }
5187
- if (config6.license) {
5188
- process.env[`${prefix}LICENSE`] = config6.license;
4485
+ if (config5.license) {
4486
+ process.env[`${prefix}LICENSE`] = config5.license;
5189
4487
  }
5190
- if (config6.homepage) {
5191
- process.env[`${prefix}HOMEPAGE`] = config6.homepage;
4488
+ if (config5.homepage) {
4489
+ process.env[`${prefix}HOMEPAGE`] = config5.homepage;
5192
4490
  }
5193
- if (config6.docs) {
5194
- process.env[`${prefix}DOCS`] = config6.docs;
4491
+ if (config5.docs) {
4492
+ process.env[`${prefix}DOCS`] = config5.docs;
5195
4493
  }
5196
- if (config6.portal) {
5197
- process.env[`${prefix}PORTAL`] = config6.portal;
4494
+ if (config5.portal) {
4495
+ process.env[`${prefix}PORTAL`] = config5.portal;
5198
4496
  }
5199
- if (config6.licensing) {
5200
- process.env[`${prefix}LICENSING`] = config6.licensing;
4497
+ if (config5.licensing) {
4498
+ process.env[`${prefix}LICENSING`] = config5.licensing;
5201
4499
  }
5202
- if (config6.contact) {
5203
- process.env[`${prefix}CONTACT`] = config6.contact;
4500
+ if (config5.contact) {
4501
+ process.env[`${prefix}CONTACT`] = config5.contact;
5204
4502
  }
5205
- if (config6.support) {
5206
- process.env[`${prefix}SUPPORT`] = config6.support;
4503
+ if (config5.support) {
4504
+ process.env[`${prefix}SUPPORT`] = config5.support;
5207
4505
  }
5208
- if (config6.timezone) {
5209
- process.env[`${prefix}TIMEZONE`] = config6.timezone;
5210
- process.env.TZ = config6.timezone;
5211
- process.env.DEFAULT_TIMEZONE = config6.timezone;
5212
- process.env.TIMEZONE = config6.timezone;
4506
+ if (config5.timezone) {
4507
+ process.env[`${prefix}TIMEZONE`] = config5.timezone;
4508
+ process.env.TZ = config5.timezone;
4509
+ process.env.DEFAULT_TIMEZONE = config5.timezone;
4510
+ process.env.TIMEZONE = config5.timezone;
5213
4511
  }
5214
- if (config6.locale) {
5215
- process.env[`${prefix}LOCALE`] = config6.locale;
5216
- process.env.DEFAULT_LOCALE = config6.locale;
5217
- process.env.LOCALE = config6.locale;
5218
- process.env.LANG = config6.locale ? `${config6.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
4512
+ if (config5.locale) {
4513
+ process.env[`${prefix}LOCALE`] = config5.locale;
4514
+ process.env.DEFAULT_LOCALE = config5.locale;
4515
+ process.env.LOCALE = config5.locale;
4516
+ process.env.LANG = config5.locale ? `${config5.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
5219
4517
  }
5220
- if (config6.configFile) {
4518
+ if (config5.configFile) {
5221
4519
  process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
5222
- config6.configFile
4520
+ config5.configFile
5223
4521
  );
5224
4522
  }
5225
- if (config6.workspaceRoot) {
5226
- process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config6.workspaceRoot);
5227
- process.env.NX_WORKSPACE_ROOT = correctPaths(config6.workspaceRoot);
5228
- process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config6.workspaceRoot);
4523
+ if (config5.workspaceRoot) {
4524
+ process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config5.workspaceRoot);
4525
+ process.env.NX_WORKSPACE_ROOT = correctPaths(config5.workspaceRoot);
4526
+ process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config5.workspaceRoot);
5229
4527
  }
5230
- if (config6.directories) {
5231
- if (!config6.skipCache && config6.directories.cache) {
4528
+ if (config5.directories) {
4529
+ if (!config5.skipCache && config5.directories.cache) {
5232
4530
  process.env[`${prefix}CACHE_DIR`] = correctPaths(
5233
- config6.directories.cache
4531
+ config5.directories.cache
5234
4532
  );
5235
4533
  process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
5236
4534
  }
5237
- if (config6.directories.data) {
5238
- process.env[`${prefix}DATA_DIR`] = correctPaths(config6.directories.data);
4535
+ if (config5.directories.data) {
4536
+ process.env[`${prefix}DATA_DIR`] = correctPaths(config5.directories.data);
5239
4537
  process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
5240
4538
  }
5241
- if (config6.directories.config) {
4539
+ if (config5.directories.config) {
5242
4540
  process.env[`${prefix}CONFIG_DIR`] = correctPaths(
5243
- config6.directories.config
4541
+ config5.directories.config
5244
4542
  );
5245
4543
  process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
5246
4544
  }
5247
- if (config6.directories.temp) {
5248
- process.env[`${prefix}TEMP_DIR`] = correctPaths(config6.directories.temp);
4545
+ if (config5.directories.temp) {
4546
+ process.env[`${prefix}TEMP_DIR`] = correctPaths(config5.directories.temp);
5249
4547
  process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
5250
4548
  }
5251
- if (config6.directories.log) {
5252
- process.env[`${prefix}LOG_DIR`] = correctPaths(config6.directories.log);
4549
+ if (config5.directories.log) {
4550
+ process.env[`${prefix}LOG_DIR`] = correctPaths(config5.directories.log);
5253
4551
  process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
5254
4552
  }
5255
- if (config6.directories.build) {
4553
+ if (config5.directories.build) {
5256
4554
  process.env[`${prefix}BUILD_DIR`] = correctPaths(
5257
- config6.directories.build
4555
+ config5.directories.build
5258
4556
  );
5259
4557
  process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
5260
4558
  }
5261
4559
  }
5262
- if (config6.skipCache !== void 0) {
5263
- process.env[`${prefix}SKIP_CACHE`] = String(config6.skipCache);
5264
- if (config6.skipCache) {
5265
- process.env.NX_SKIP_NX_CACHE ??= String(config6.skipCache);
5266
- process.env.NX_CACHE_PROJECT_GRAPH ??= String(config6.skipCache);
4560
+ if (config5.skipCache !== void 0) {
4561
+ process.env[`${prefix}SKIP_CACHE`] = String(config5.skipCache);
4562
+ if (config5.skipCache) {
4563
+ process.env.NX_SKIP_NX_CACHE ??= String(config5.skipCache);
4564
+ process.env.NX_CACHE_PROJECT_GRAPH ??= String(config5.skipCache);
5267
4565
  }
5268
4566
  }
5269
- if (config6.mode) {
5270
- process.env[`${prefix}MODE`] = config6.mode;
5271
- process.env.NODE_ENV = config6.mode;
5272
- process.env.ENVIRONMENT = config6.mode;
4567
+ if (config5.mode) {
4568
+ process.env[`${prefix}MODE`] = config5.mode;
4569
+ process.env.NODE_ENV = config5.mode;
4570
+ process.env.ENVIRONMENT = config5.mode;
5273
4571
  }
5274
- if (config6.colors?.base?.light || config6.colors?.base?.dark) {
5275
- for (const key of Object.keys(config6.colors)) {
5276
- setThemeColorsEnv(`${prefix}COLOR_${key}_`, config6.colors[key]);
4572
+ if (config5.colors?.base?.light || config5.colors?.base?.dark) {
4573
+ for (const key of Object.keys(config5.colors)) {
4574
+ setThemeColorsEnv(`${prefix}COLOR_${key}_`, config5.colors[key]);
5277
4575
  }
5278
4576
  } else {
5279
4577
  setThemeColorsEnv(
5280
4578
  `${prefix}COLOR_`,
5281
- config6.colors
4579
+ config5.colors
5282
4580
  );
5283
4581
  }
5284
- if (config6.repository) {
5285
- process.env[`${prefix}REPOSITORY`] = config6.repository;
4582
+ if (config5.repository) {
4583
+ process.env[`${prefix}REPOSITORY`] = config5.repository;
5286
4584
  }
5287
- if (config6.branch) {
5288
- process.env[`${prefix}BRANCH`] = config6.branch;
4585
+ if (config5.branch) {
4586
+ process.env[`${prefix}BRANCH`] = config5.branch;
5289
4587
  }
5290
- if (config6.preid) {
5291
- process.env[`${prefix}PRE_ID`] = String(config6.preid);
4588
+ if (config5.preid) {
4589
+ process.env[`${prefix}PRE_ID`] = String(config5.preid);
5292
4590
  }
5293
- if (config6.registry) {
5294
- if (config6.registry.github) {
5295
- process.env[`${prefix}REGISTRY_GITHUB`] = String(config6.registry.github);
4591
+ if (config5.registry) {
4592
+ if (config5.registry.github) {
4593
+ process.env[`${prefix}REGISTRY_GITHUB`] = String(config5.registry.github);
5296
4594
  }
5297
- if (config6.registry.npm) {
5298
- process.env[`${prefix}REGISTRY_NPM`] = String(config6.registry.npm);
4595
+ if (config5.registry.npm) {
4596
+ process.env[`${prefix}REGISTRY_NPM`] = String(config5.registry.npm);
5299
4597
  }
5300
- if (config6.registry.cargo) {
5301
- process.env[`${prefix}REGISTRY_CARGO`] = String(config6.registry.cargo);
4598
+ if (config5.registry.cargo) {
4599
+ process.env[`${prefix}REGISTRY_CARGO`] = String(config5.registry.cargo);
5302
4600
  }
5303
- if (config6.registry.cyclone) {
4601
+ if (config5.registry.cyclone) {
5304
4602
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(
5305
- config6.registry.cyclone
4603
+ config5.registry.cyclone
5306
4604
  );
5307
4605
  }
5308
- if (config6.registry.container) {
4606
+ if (config5.registry.container) {
5309
4607
  process.env[`${prefix}REGISTRY_CONTAINER`] = String(
5310
- config6.registry.container
4608
+ config5.registry.container
5311
4609
  );
5312
4610
  }
5313
4611
  }
5314
- if (config6.logLevel) {
5315
- process.env[`${prefix}LOG_LEVEL`] = String(config6.logLevel);
5316
- process.env.LOG_LEVEL = String(config6.logLevel);
4612
+ if (config5.logLevel) {
4613
+ process.env[`${prefix}LOG_LEVEL`] = String(config5.logLevel);
4614
+ process.env.LOG_LEVEL = String(config5.logLevel);
5317
4615
  process.env.NX_VERBOSE_LOGGING = String(
5318
- getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? true : false
4616
+ getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? true : false
5319
4617
  );
5320
- process.env.RUST_BACKTRACE = getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? "full" : "none";
4618
+ process.env.RUST_BACKTRACE = getLogLevel(config5.logLevel) >= LogLevel.DEBUG ? "full" : "none";
5321
4619
  }
5322
- if (config6.skipConfigLogging !== void 0) {
4620
+ if (config5.skipConfigLogging !== void 0) {
5323
4621
  process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
5324
- config6.skipConfigLogging
4622
+ config5.skipConfigLogging
5325
4623
  );
5326
4624
  }
5327
- process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config6);
5328
- for (const key of Object.keys(config6.extensions ?? {})) {
5329
- if (config6.extensions[key] && Object.keys(config6.extensions[key])) {
5330
- setExtensionEnv(key, config6.extensions[key]);
4625
+ process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config5);
4626
+ for (const key of Object.keys(config5.extensions ?? {})) {
4627
+ if (config5.extensions[key] && Object.keys(config5.extensions[key])) {
4628
+ setExtensionEnv(key, config5.extensions[key]);
5331
4629
  }
5332
4630
  }
5333
4631
  };
5334
- var setThemeColorsEnv = (prefix, config6) => {
5335
- return config6?.light?.brand || config6?.dark?.brand ? setMultiThemeColorsEnv(prefix, config6) : setSingleThemeColorsEnv(prefix, config6);
4632
+ var setThemeColorsEnv = (prefix, config5) => {
4633
+ return config5?.light?.brand || config5?.dark?.brand ? setMultiThemeColorsEnv(prefix, config5) : setSingleThemeColorsEnv(prefix, config5);
5336
4634
  };
5337
- var setSingleThemeColorsEnv = (prefix, config6) => {
5338
- if (config6.dark) {
5339
- process.env[`${prefix}DARK`] = config6.dark;
4635
+ var setSingleThemeColorsEnv = (prefix, config5) => {
4636
+ if (config5.dark) {
4637
+ process.env[`${prefix}DARK`] = config5.dark;
5340
4638
  }
5341
- if (config6.light) {
5342
- process.env[`${prefix}LIGHT`] = config6.light;
4639
+ if (config5.light) {
4640
+ process.env[`${prefix}LIGHT`] = config5.light;
5343
4641
  }
5344
- if (config6.brand) {
5345
- process.env[`${prefix}BRAND`] = config6.brand;
4642
+ if (config5.brand) {
4643
+ process.env[`${prefix}BRAND`] = config5.brand;
5346
4644
  }
5347
- if (config6.alternate) {
5348
- process.env[`${prefix}ALTERNATE`] = config6.alternate;
4645
+ if (config5.alternate) {
4646
+ process.env[`${prefix}ALTERNATE`] = config5.alternate;
5349
4647
  }
5350
- if (config6.accent) {
5351
- process.env[`${prefix}ACCENT`] = config6.accent;
4648
+ if (config5.accent) {
4649
+ process.env[`${prefix}ACCENT`] = config5.accent;
5352
4650
  }
5353
- if (config6.link) {
5354
- process.env[`${prefix}LINK`] = config6.link;
4651
+ if (config5.link) {
4652
+ process.env[`${prefix}LINK`] = config5.link;
5355
4653
  }
5356
- if (config6.discovery) {
5357
- process.env[`${prefix}DISCOVERY`] = config6.discovery;
4654
+ if (config5.discovery) {
4655
+ process.env[`${prefix}DISCOVERY`] = config5.discovery;
5358
4656
  }
5359
- if (config6.success) {
5360
- process.env[`${prefix}SUCCESS`] = config6.success;
4657
+ if (config5.success) {
4658
+ process.env[`${prefix}SUCCESS`] = config5.success;
5361
4659
  }
5362
- if (config6.info) {
5363
- process.env[`${prefix}INFO`] = config6.info;
4660
+ if (config5.info) {
4661
+ process.env[`${prefix}INFO`] = config5.info;
5364
4662
  }
5365
- if (config6.debug) {
5366
- process.env[`${prefix}DEBUG`] = config6.debug;
4663
+ if (config5.debug) {
4664
+ process.env[`${prefix}DEBUG`] = config5.debug;
5367
4665
  }
5368
- if (config6.warning) {
5369
- process.env[`${prefix}WARNING`] = config6.warning;
4666
+ if (config5.warning) {
4667
+ process.env[`${prefix}WARNING`] = config5.warning;
5370
4668
  }
5371
- if (config6.danger) {
5372
- process.env[`${prefix}DANGER`] = config6.danger;
4669
+ if (config5.danger) {
4670
+ process.env[`${prefix}DANGER`] = config5.danger;
5373
4671
  }
5374
- if (config6.fatal) {
5375
- process.env[`${prefix}FATAL`] = config6.fatal;
4672
+ if (config5.fatal) {
4673
+ process.env[`${prefix}FATAL`] = config5.fatal;
5376
4674
  }
5377
- if (config6.performance) {
5378
- process.env[`${prefix}PERFORMANCE`] = config6.performance;
4675
+ if (config5.performance) {
4676
+ process.env[`${prefix}PERFORMANCE`] = config5.performance;
5379
4677
  }
5380
- if (config6.positive) {
5381
- process.env[`${prefix}POSITIVE`] = config6.positive;
4678
+ if (config5.positive) {
4679
+ process.env[`${prefix}POSITIVE`] = config5.positive;
5382
4680
  }
5383
- if (config6.negative) {
5384
- process.env[`${prefix}NEGATIVE`] = config6.negative;
4681
+ if (config5.negative) {
4682
+ process.env[`${prefix}NEGATIVE`] = config5.negative;
5385
4683
  }
5386
- if (config6.gradient) {
5387
- for (let i = 0; i < config6.gradient.length; i++) {
5388
- process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
4684
+ if (config5.gradient) {
4685
+ for (let i = 0; i < config5.gradient.length; i++) {
4686
+ process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
5389
4687
  }
5390
4688
  }
5391
4689
  };
5392
- var setMultiThemeColorsEnv = (prefix, config6) => {
4690
+ var setMultiThemeColorsEnv = (prefix, config5) => {
5393
4691
  return {
5394
- light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config6.light),
5395
- dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config6.dark)
4692
+ light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config5.light),
4693
+ dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config5.dark)
5396
4694
  };
5397
4695
  };
5398
- var setBaseThemeColorsEnv = (prefix, config6) => {
5399
- if (config6.foreground) {
5400
- process.env[`${prefix}FOREGROUND`] = config6.foreground;
4696
+ var setBaseThemeColorsEnv = (prefix, config5) => {
4697
+ if (config5.foreground) {
4698
+ process.env[`${prefix}FOREGROUND`] = config5.foreground;
5401
4699
  }
5402
- if (config6.background) {
5403
- process.env[`${prefix}BACKGROUND`] = config6.background;
4700
+ if (config5.background) {
4701
+ process.env[`${prefix}BACKGROUND`] = config5.background;
5404
4702
  }
5405
- if (config6.brand) {
5406
- process.env[`${prefix}BRAND`] = config6.brand;
4703
+ if (config5.brand) {
4704
+ process.env[`${prefix}BRAND`] = config5.brand;
5407
4705
  }
5408
- if (config6.alternate) {
5409
- process.env[`${prefix}ALTERNATE`] = config6.alternate;
4706
+ if (config5.alternate) {
4707
+ process.env[`${prefix}ALTERNATE`] = config5.alternate;
5410
4708
  }
5411
- if (config6.accent) {
5412
- process.env[`${prefix}ACCENT`] = config6.accent;
4709
+ if (config5.accent) {
4710
+ process.env[`${prefix}ACCENT`] = config5.accent;
5413
4711
  }
5414
- if (config6.link) {
5415
- process.env[`${prefix}LINK`] = config6.link;
4712
+ if (config5.link) {
4713
+ process.env[`${prefix}LINK`] = config5.link;
5416
4714
  }
5417
- if (config6.discovery) {
5418
- process.env[`${prefix}DISCOVERY`] = config6.discovery;
4715
+ if (config5.discovery) {
4716
+ process.env[`${prefix}DISCOVERY`] = config5.discovery;
5419
4717
  }
5420
- if (config6.success) {
5421
- process.env[`${prefix}SUCCESS`] = config6.success;
4718
+ if (config5.success) {
4719
+ process.env[`${prefix}SUCCESS`] = config5.success;
5422
4720
  }
5423
- if (config6.info) {
5424
- process.env[`${prefix}INFO`] = config6.info;
4721
+ if (config5.info) {
4722
+ process.env[`${prefix}INFO`] = config5.info;
5425
4723
  }
5426
- if (config6.debug) {
5427
- process.env[`${prefix}DEBUG`] = config6.debug;
4724
+ if (config5.debug) {
4725
+ process.env[`${prefix}DEBUG`] = config5.debug;
5428
4726
  }
5429
- if (config6.warning) {
5430
- process.env[`${prefix}WARNING`] = config6.warning;
4727
+ if (config5.warning) {
4728
+ process.env[`${prefix}WARNING`] = config5.warning;
5431
4729
  }
5432
- if (config6.danger) {
5433
- process.env[`${prefix}DANGER`] = config6.danger;
4730
+ if (config5.danger) {
4731
+ process.env[`${prefix}DANGER`] = config5.danger;
5434
4732
  }
5435
- if (config6.fatal) {
5436
- process.env[`${prefix}FATAL`] = config6.fatal;
4733
+ if (config5.fatal) {
4734
+ process.env[`${prefix}FATAL`] = config5.fatal;
5437
4735
  }
5438
- if (config6.performance) {
5439
- process.env[`${prefix}PERFORMANCE`] = config6.performance;
4736
+ if (config5.performance) {
4737
+ process.env[`${prefix}PERFORMANCE`] = config5.performance;
5440
4738
  }
5441
- if (config6.positive) {
5442
- process.env[`${prefix}POSITIVE`] = config6.positive;
4739
+ if (config5.positive) {
4740
+ process.env[`${prefix}POSITIVE`] = config5.positive;
5443
4741
  }
5444
- if (config6.negative) {
5445
- process.env[`${prefix}NEGATIVE`] = config6.negative;
4742
+ if (config5.negative) {
4743
+ process.env[`${prefix}NEGATIVE`] = config5.negative;
5446
4744
  }
5447
- if (config6.gradient) {
5448
- for (let i = 0; i < config6.gradient.length; i++) {
5449
- process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
4745
+ if (config5.gradient) {
4746
+ for (let i = 0; i < config5.gradient.length; i++) {
4747
+ process.env[`${prefix}GRADIENT_${i}`] = config5.gradient[i];
5450
4748
  }
5451
4749
  }
5452
4750
  };
@@ -5512,25 +4810,25 @@ Please ensure your configuration file is valid JSON and matches the expected sch
5512
4810
  };
5513
4811
  var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
5514
4812
  try {
5515
- const config6 = await createStormWorkspaceConfig(
4813
+ const config5 = await createStormWorkspaceConfig(
5516
4814
  void 0,
5517
4815
  void 0,
5518
4816
  workspaceRoot,
5519
4817
  skipLogs,
5520
4818
  useDefault
5521
4819
  );
5522
- if (!config6) {
4820
+ if (!config5) {
5523
4821
  return void 0;
5524
4822
  }
5525
- setConfigEnv(config6);
5526
- if (!skipLogs && !config6.skipConfigLogging) {
4823
+ setConfigEnv(config5);
4824
+ if (!skipLogs && !config5.skipConfigLogging) {
5527
4825
  writeTrace(
5528
4826
  `\u2699\uFE0F Using Storm Workspace configuration:
5529
- ${formatLogMessage(config6)}`,
5530
- config6
4827
+ ${formatLogMessage(config5)}`,
4828
+ config5
5531
4829
  );
5532
4830
  }
5533
- return config6;
4831
+ return config5;
5534
4832
  } catch (error) {
5535
4833
  if (!skipLogs) {
5536
4834
  writeWarning(
@@ -5574,7 +4872,7 @@ init_esm_shims();
5574
4872
 
5575
4873
  // ../eslint-plugin-banner/package.json
5576
4874
  var package_default = {
5577
- version: "0.0.35"};
4875
+ version: "0.0.37"};
5578
4876
 
5579
4877
  // ../eslint-plugin-banner/src/rules/banner.ts
5580
4878
  init_esm_shims();
@@ -6287,7 +5585,7 @@ async function stylistic(options = {}) {
6287
5585
  const pluginStylistic = await interopDefault(
6288
5586
  import('@stylistic/eslint-plugin')
6289
5587
  );
6290
- const config6 = pluginStylistic.configs.customize({
5588
+ const config5 = pluginStylistic.configs.customize({
6291
5589
  indent,
6292
5590
  jsx: jsx2,
6293
5591
  pluginName: "style",
@@ -6301,7 +5599,7 @@ async function stylistic(options = {}) {
6301
5599
  style: pluginStylistic
6302
5600
  },
6303
5601
  rules: {
6304
- ...config6.rules,
5602
+ ...config5.rules,
6305
5603
  "style/lines-around-comment": "off",
6306
5604
  "style/linebreak-style": ["error", lineEndings],
6307
5605
  "style/comma-dangle": ["error", "never"],
@@ -6392,7 +5690,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6392
5690
  options.dprintOptions ?? {}
6393
5691
  );
6394
5692
  const pluginFormat = await interopDefault(import('eslint-plugin-format'));
6395
- const configs7 = [
5693
+ const configs6 = [
6396
5694
  {
6397
5695
  name: "storm/formatter/setup",
6398
5696
  plugins: {
@@ -6401,7 +5699,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6401
5699
  }
6402
5700
  ];
6403
5701
  if (options.css) {
6404
- configs7.push(
5702
+ configs6.push(
6405
5703
  {
6406
5704
  files: [GLOB_CSS, GLOB_POSTCSS],
6407
5705
  languageOptions: {
@@ -6450,7 +5748,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6450
5748
  );
6451
5749
  }
6452
5750
  if (options.html) {
6453
- configs7.push({
5751
+ configs6.push({
6454
5752
  files: [GLOB_HTML],
6455
5753
  languageOptions: {
6456
5754
  parser: parserPlain
@@ -6467,7 +5765,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6467
5765
  });
6468
5766
  }
6469
5767
  if (options.xml) {
6470
- configs7.push({
5768
+ configs6.push({
6471
5769
  files: [GLOB_XML],
6472
5770
  languageOptions: {
6473
5771
  parser: parserPlain
@@ -6488,7 +5786,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6488
5786
  });
6489
5787
  }
6490
5788
  if (options.svg) {
6491
- configs7.push({
5789
+ configs6.push({
6492
5790
  files: [GLOB_SVG],
6493
5791
  languageOptions: {
6494
5792
  parser: parserPlain
@@ -6510,7 +5808,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6510
5808
  }
6511
5809
  if (options.markdown) {
6512
5810
  const formater = options.markdown === true ? "prettier" : options.markdown;
6513
- configs7.push({
5811
+ configs6.push({
6514
5812
  files: [GLOB_MARKDOWN],
6515
5813
  languageOptions: {
6516
5814
  parser: parserPlain
@@ -6531,7 +5829,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6531
5829
  });
6532
5830
  }
6533
5831
  if (options.astro) {
6534
- configs7.push({
5832
+ configs6.push({
6535
5833
  files: [GLOB_ASTRO],
6536
5834
  languageOptions: {
6537
5835
  parser: parserPlain
@@ -6547,7 +5845,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6547
5845
  ]
6548
5846
  }
6549
5847
  });
6550
- configs7.push({
5848
+ configs6.push({
6551
5849
  files: [GLOB_ASTRO, GLOB_ASTRO_TS],
6552
5850
  name: "storm/formatter/astro/disables",
6553
5851
  rules: {
@@ -6562,7 +5860,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6562
5860
  });
6563
5861
  }
6564
5862
  if (options.graphql) {
6565
- configs7.push({
5863
+ configs6.push({
6566
5864
  files: [GLOB_GRAPHQL],
6567
5865
  languageOptions: {
6568
5866
  parser: parserPlain
@@ -6578,7 +5876,7 @@ async function formatters(options = {}, stylistic2 = {}) {
6578
5876
  }
6579
5877
  });
6580
5878
  }
6581
- return configs7;
5879
+ return configs6;
6582
5880
  }
6583
5881
 
6584
5882
  // src/configs/graphql.ts
@@ -7445,9 +6743,9 @@ function isBuiltIn(name3, settings, modulePath) {
7445
6743
  if (modulePath || !name3) {
7446
6744
  return false;
7447
6745
  }
7448
- const base2 = baseModule(name3);
6746
+ const base = baseModule(name3);
7449
6747
  const extras = settings && settings["import-x/core-modules"] || [];
7450
- return isBuiltin(base2) || extras.includes(base2);
6748
+ return isBuiltin(base) || extras.includes(base);
7451
6749
  }
7452
6750
  function isExternalModule(name3, modulePath, context) {
7453
6751
  return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
@@ -7546,12 +6844,12 @@ function pkgDir(cwd) {
7546
6844
  }
7547
6845
 
7548
6846
  // ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_0dbc3eee2b0376d10a43f62a5381be15/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
7549
- function resolveWithLegacyResolver(resolver, config6, modulePath, sourceFile) {
6847
+ function resolveWithLegacyResolver(resolver, config5, modulePath, sourceFile) {
7550
6848
  if (resolver.interfaceVersion === 2) {
7551
- return resolver.resolve(modulePath, sourceFile, config6);
6849
+ return resolver.resolve(modulePath, sourceFile, config5);
7552
6850
  }
7553
6851
  try {
7554
- const resolved = resolver.resolveImport(modulePath, sourceFile, config6);
6852
+ const resolved = resolver.resolveImport(modulePath, sourceFile, config5);
7555
6853
  if (resolved === void 0) {
7556
6854
  return {
7557
6855
  found: false
@@ -8769,7 +8067,7 @@ function moduleVisitor(visitor, options) {
8769
8067
  return visitors;
8770
8068
  }
8771
8069
  function makeOptionsSchema(additionalProperties) {
8772
- const base2 = {
8070
+ const base = {
8773
8071
  type: "object",
8774
8072
  properties: {
8775
8073
  commonjs: { type: "boolean" },
@@ -8786,10 +8084,10 @@ function makeOptionsSchema(additionalProperties) {
8786
8084
  };
8787
8085
  if (additionalProperties) {
8788
8086
  for (const key in additionalProperties) {
8789
- base2.properties[key] = additionalProperties[key];
8087
+ base.properties[key] = additionalProperties[key];
8790
8088
  }
8791
8089
  }
8792
- return base2;
8090
+ return base;
8793
8091
  }
8794
8092
  makeOptionsSchema();
8795
8093
 
@@ -13508,12 +12806,12 @@ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
13508
12806
  }
13509
12807
  });
13510
12808
  }
13511
- function testConfig(config6, context) {
13512
- if (typeof config6 === "boolean" || config6 === void 0) {
13513
- return config6;
12809
+ function testConfig(config5, context) {
12810
+ if (typeof config5 === "boolean" || config5 === void 0) {
12811
+ return config5;
13514
12812
  }
13515
12813
  const filename = context.physicalFilename;
13516
- return config6.some((c) => minimatch2(filename, c) || minimatch2(filename, path16.resolve(context.cwd, c), {
12814
+ return config5.some((c) => minimatch2(filename, c) || minimatch2(filename, path16.resolve(context.cwd, c), {
13517
12815
  windowsPathsNoEscape: true
13518
12816
  }) || minimatch2(filename, path16.resolve(c), { windowsPathsNoEscape: true }));
13519
12817
  }
@@ -19474,7 +18772,7 @@ plugin3.configs = configs3;
19474
18772
 
19475
18773
  // ../eslint-plugin-pnpm/package.json
19476
18774
  var package_default2 = {
19477
- version: "0.0.33"};
18775
+ version: "0.0.35"};
19478
18776
 
19479
18777
  // ../eslint-plugin-pnpm/src/plugin.ts
19480
18778
  var plugin4 = {
@@ -19672,9 +18970,9 @@ var ReactRouterPackages = [
19672
18970
  "@react-router/serve",
19673
18971
  "@react-router/dev"
19674
18972
  ];
19675
- function renameRules2(config6) {
18973
+ function renameRules2(config5) {
19676
18974
  const renamedRules = {};
19677
- for (const [ruleName, ruleConfig] of Object.entries(config6.rules || {})) {
18975
+ for (const [ruleName, ruleConfig] of Object.entries(config5.rules || {})) {
19678
18976
  if (ruleName.startsWith("@eslint-react/dom-")) {
19679
18977
  renamedRules[`react-dom/${ruleName.slice("@eslint-react/dom-".length)}`] = ruleConfig;
19680
18978
  } else if (ruleName.startsWith("@eslint-react/web-api-")) {
@@ -19907,21 +19205,21 @@ async function reactNative(options = {}) {
19907
19205
  // src/configs/regexp.ts
19908
19206
  init_esm_shims();
19909
19207
  async function regexp(options = {}) {
19910
- const config6 = configs$1["flat/recommended"];
19911
- const rules6 = {
19912
- ...config6.rules
19208
+ const config5 = configs$1["flat/recommended"];
19209
+ const rules5 = {
19210
+ ...config5.rules
19913
19211
  };
19914
19212
  if (options.level === "warn") {
19915
- for (const key in rules6) {
19916
- if (rules6[key] === "error") rules6[key] = "warn";
19213
+ for (const key in rules5) {
19214
+ if (rules5[key] === "error") rules5[key] = "warn";
19917
19215
  }
19918
19216
  }
19919
19217
  return [
19920
19218
  {
19921
- ...config6,
19219
+ ...config5,
19922
19220
  name: "storm/regexp/rules",
19923
19221
  rules: {
19924
- ...rules6,
19222
+ ...rules5,
19925
19223
  "regexp/no-unused-capturing-group": [
19926
19224
  "error",
19927
19225
  {
@@ -20344,61 +19642,6 @@ async function toml(options = {}) {
20344
19642
 
20345
19643
  // src/configs/tsdoc.ts
20346
19644
  init_esm_shims();
20347
-
20348
- // ../eslint-plugin-tsdoc/src/index.ts
20349
- init_esm_shims();
20350
-
20351
- // ../eslint-plugin-tsdoc/src/configs/index.ts
20352
- init_esm_shims();
20353
-
20354
- // ../eslint-plugin-tsdoc/src/configs/recommended.ts
20355
- init_esm_shims();
20356
-
20357
- // ../eslint-plugin-tsdoc/src/plugin.ts
20358
- init_esm_shims();
20359
- var import_eslint_plugin_tsdoc = __toESM(require_lib(), 1);
20360
-
20361
- // ../eslint-plugin-tsdoc/package.json
20362
- var package_default3 = {
20363
- version: "0.0.33"};
20364
-
20365
- // ../eslint-plugin-tsdoc/src/plugin.ts
20366
- var plugin7 = {
20367
- ...import_eslint_plugin_tsdoc.default,
20368
- meta: {
20369
- name: "tsdoc",
20370
- version: package_default3.version
20371
- }
20372
- };
20373
-
20374
- // ../eslint-plugin-tsdoc/src/configs/recommended.ts
20375
- var config5 = {
20376
- files: [GLOB_TS, GLOB_TSX],
20377
- ignores: GLOB_EXCLUDE,
20378
- name: "tsdoc/recommended",
20379
- plugins: {
20380
- tsdoc: plugin7
20381
- },
20382
- rules: {
20383
- "tsdoc/syntax": ["error", { type: "recommended" }]
20384
- }
20385
- };
20386
- var recommended_default5 = config5;
20387
-
20388
- // ../eslint-plugin-tsdoc/src/configs/index.ts
20389
- var configs6 = {
20390
- recommended: recommended_default5
20391
- };
20392
-
20393
- // ../eslint-plugin-tsdoc/src/index.ts
20394
- var eslintPlugin3 = {
20395
- ...plugin7,
20396
- configs: configs6
20397
- };
20398
- var src_default3 = eslintPlugin3;
20399
- plugin7.rules;
20400
-
20401
- // src/configs/tsdoc.ts
20402
19645
  async function tsdoc(options = {}) {
20403
19646
  const {
20404
19647
  severity = "error",
@@ -20406,12 +19649,16 @@ async function tsdoc(options = {}) {
20406
19649
  configFile,
20407
19650
  files = [GLOB_TS, GLOB_TSX]
20408
19651
  } = options;
19652
+ await ensurePackages(["@storm-software/eslint-plugin-tsdoc"]);
19653
+ const [pluginTsdoc] = await Promise.all([
19654
+ interopDefault(import('./src-XM26HI2Q.js'))
19655
+ ]);
20409
19656
  return [
20410
19657
  {
20411
19658
  files,
20412
19659
  name: "storm/tsdoc/rules",
20413
19660
  plugins: {
20414
- tsdoc: src_default3
19661
+ tsdoc: pluginTsdoc
20415
19662
  },
20416
19663
  rules: {
20417
19664
  "tsdoc/syntax": [
@@ -20921,10 +20168,10 @@ function preset(options, ...userConfigs) {
20921
20168
  if (stylisticOptions && !("jsx" in stylisticOptions)) {
20922
20169
  stylisticOptions.jsx = enableJsx;
20923
20170
  }
20924
- const configs7 = [];
20171
+ const configs6 = [];
20925
20172
  if (enableGitignore) {
20926
20173
  if (typeof enableGitignore !== "boolean") {
20927
- configs7.push(
20174
+ configs6.push(
20928
20175
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
20929
20176
  r({
20930
20177
  name: "storm/gitignore",
@@ -20933,7 +20180,7 @@ function preset(options, ...userConfigs) {
20933
20180
  ])
20934
20181
  );
20935
20182
  } else {
20936
- configs7.push(
20183
+ configs6.push(
20937
20184
  interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
20938
20185
  r({
20939
20186
  name: "storm/gitignore",
@@ -20943,7 +20190,7 @@ function preset(options, ...userConfigs) {
20943
20190
  );
20944
20191
  }
20945
20192
  }
20946
- configs7.push(
20193
+ configs6.push(
20947
20194
  ignores(options.ignores),
20948
20195
  javascript({
20949
20196
  globals,
@@ -20968,7 +20215,7 @@ function preset(options, ...userConfigs) {
20968
20215
  }
20969
20216
  }
20970
20217
  if (enableTypeScript) {
20971
- configs7.push(
20218
+ configs6.push(
20972
20219
  typescript({
20973
20220
  ...typescriptOptions,
20974
20221
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -20979,7 +20226,7 @@ function preset(options, ...userConfigs) {
20979
20226
  );
20980
20227
  }
20981
20228
  if (enableBanner) {
20982
- configs7.push(
20229
+ configs6.push(
20983
20230
  banner({
20984
20231
  ...resolveSubOptions(options, "banner"),
20985
20232
  name: name3,
@@ -20988,16 +20235,16 @@ function preset(options, ...userConfigs) {
20988
20235
  );
20989
20236
  }
20990
20237
  if (!stylisticOptions) {
20991
- configs7.push(prettier());
20238
+ configs6.push(prettier());
20992
20239
  }
20993
20240
  if (enableCSpell) {
20994
- configs7.push(cspell(resolveSubOptions(options, "cspell")));
20241
+ configs6.push(cspell(resolveSubOptions(options, "cspell")));
20995
20242
  }
20996
20243
  if (enableUnicorn) {
20997
- configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
20244
+ configs6.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
20998
20245
  }
20999
20246
  if (enableJSDoc) {
21000
- configs7.push(
20247
+ configs6.push(
21001
20248
  jsdoc({
21002
20249
  ...resolveSubOptions(options, "jsdoc"),
21003
20250
  overrides: getOverrides(options, "jsdoc")
@@ -21005,7 +20252,7 @@ function preset(options, ...userConfigs) {
21005
20252
  );
21006
20253
  }
21007
20254
  if (enableTSDoc) {
21008
- configs7.push(
20255
+ configs6.push(
21009
20256
  tsdoc({
21010
20257
  ...resolveSubOptions(options, "tsdoc"),
21011
20258
  overrides: getOverrides(options, "tsdoc")
@@ -21013,17 +20260,17 @@ function preset(options, ...userConfigs) {
21013
20260
  );
21014
20261
  }
21015
20262
  if (enableJsx) {
21016
- configs7.push(jsx());
20263
+ configs6.push(jsx());
21017
20264
  }
21018
20265
  if (enableZod) {
21019
- configs7.push(
20266
+ configs6.push(
21020
20267
  zod({
21021
20268
  overrides: getOverrides(options, "zod")
21022
20269
  })
21023
20270
  );
21024
20271
  }
21025
20272
  if (stylisticOptions) {
21026
- configs7.push(
20273
+ configs6.push(
21027
20274
  stylistic({
21028
20275
  ...stylisticOptions,
21029
20276
  lineEndings: stylisticOptions.lineEndings ?? "unix",
@@ -21033,10 +20280,10 @@ function preset(options, ...userConfigs) {
21033
20280
  );
21034
20281
  }
21035
20282
  if (enableRegexp) {
21036
- configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
20283
+ configs6.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
21037
20284
  }
21038
20285
  if (enableTest) {
21039
- configs7.push(
20286
+ configs6.push(
21040
20287
  test({
21041
20288
  isInEditor,
21042
20289
  overrides: getOverrides(options, "test")
@@ -21044,10 +20291,10 @@ function preset(options, ...userConfigs) {
21044
20291
  );
21045
20292
  }
21046
20293
  if (enableGraphQL) {
21047
- configs7.push(graphql(resolveSubOptions(options, "graphql")));
20294
+ configs6.push(graphql(resolveSubOptions(options, "graphql")));
21048
20295
  }
21049
20296
  if (enableReact) {
21050
- configs7.push(
20297
+ configs6.push(
21051
20298
  react({
21052
20299
  ...typescriptOptions,
21053
20300
  tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
@@ -21057,7 +20304,7 @@ function preset(options, ...userConfigs) {
21057
20304
  );
21058
20305
  }
21059
20306
  if (enableReactNative) {
21060
- configs7.push(
20307
+ configs6.push(
21061
20308
  reactNative({
21062
20309
  ...resolveSubOptions(options, "react-native"),
21063
20310
  overrides: getOverrides(options, "react-native")
@@ -21065,13 +20312,13 @@ function preset(options, ...userConfigs) {
21065
20312
  );
21066
20313
  }
21067
20314
  if (enableNext) {
21068
- configs7.push(next(resolveSubOptions(options, "next")));
20315
+ configs6.push(next(resolveSubOptions(options, "next")));
21069
20316
  }
21070
20317
  if (enableStorybook) {
21071
- configs7.push(storybook(resolveSubOptions(options, "storybook")));
20318
+ configs6.push(storybook(resolveSubOptions(options, "storybook")));
21072
20319
  }
21073
20320
  if (enableUnoCSS) {
21074
- configs7.push(
20321
+ configs6.push(
21075
20322
  unocss({
21076
20323
  ...resolveSubOptions(options, "unocss"),
21077
20324
  overrides: getOverrides(options, "unocss")
@@ -21079,7 +20326,7 @@ function preset(options, ...userConfigs) {
21079
20326
  );
21080
20327
  }
21081
20328
  if (enableAstro) {
21082
- configs7.push(
20329
+ configs6.push(
21083
20330
  astro({
21084
20331
  overrides: getOverrides(options, "astro"),
21085
20332
  stylistic: stylisticOptions
@@ -21087,7 +20334,7 @@ function preset(options, ...userConfigs) {
21087
20334
  );
21088
20335
  }
21089
20336
  if (options.pnpm ?? true) {
21090
- configs7.push(
20337
+ configs6.push(
21091
20338
  pnpm({
21092
20339
  overrides: getOverrides(options, "pnpm"),
21093
20340
  ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
@@ -21095,7 +20342,7 @@ function preset(options, ...userConfigs) {
21095
20342
  );
21096
20343
  }
21097
20344
  if (options.jsonc ?? true) {
21098
- configs7.push(
20345
+ configs6.push(
21099
20346
  jsonc({
21100
20347
  overrides: getOverrides(options, "jsonc"),
21101
20348
  stylistic: stylisticOptions
@@ -21103,11 +20350,11 @@ function preset(options, ...userConfigs) {
21103
20350
  sortTsconfig()
21104
20351
  );
21105
20352
  if (stylisticOptions) {
21106
- configs7.push(sortPackageJson());
20353
+ configs6.push(sortPackageJson());
21107
20354
  }
21108
20355
  }
21109
20356
  if (options.yaml ?? true) {
21110
- configs7.push(
20357
+ configs6.push(
21111
20358
  yaml({
21112
20359
  overrides: getOverrides(options, "yaml"),
21113
20360
  stylistic: stylisticOptions
@@ -21115,7 +20362,7 @@ function preset(options, ...userConfigs) {
21115
20362
  );
21116
20363
  }
21117
20364
  if (options.toml ?? true) {
21118
- configs7.push(
20365
+ configs6.push(
21119
20366
  toml({
21120
20367
  overrides: getOverrides(options, "toml"),
21121
20368
  stylistic: stylisticOptions
@@ -21123,28 +20370,28 @@ function preset(options, ...userConfigs) {
21123
20370
  );
21124
20371
  }
21125
20372
  if (options.markdown === true) {
21126
- configs7.push(
20373
+ configs6.push(
21127
20374
  markdown({
21128
20375
  overrides: getOverrides(options, "markdown")
21129
20376
  })
21130
20377
  );
21131
20378
  }
21132
20379
  if (enableMdx) {
21133
- configs7.push(
20380
+ configs6.push(
21134
20381
  mdx({
21135
20382
  overrides: getOverrides(options, "mdx")
21136
20383
  })
21137
20384
  );
21138
20385
  }
21139
20386
  if (options.formatters) {
21140
- configs7.push(
20387
+ configs6.push(
21141
20388
  formatters(
21142
20389
  options.formatters,
21143
20390
  typeof stylisticOptions === "boolean" ? {} : stylisticOptions
21144
20391
  )
21145
20392
  );
21146
20393
  }
21147
- configs7.push(disables());
20394
+ configs6.push(disables());
21148
20395
  if ("files" in options) {
21149
20396
  throw new Error(
21150
20397
  '[@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.'
@@ -21156,10 +20403,10 @@ function preset(options, ...userConfigs) {
21156
20403
  }
21157
20404
  return acc;
21158
20405
  }, {});
21159
- if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
20406
+ if (Object.keys(fusedConfig).length) configs6.push([fusedConfig]);
21160
20407
  let composer = new FlatConfigComposer();
21161
20408
  composer = composer.append(
21162
- ...configs7,
20409
+ ...configs6,
21163
20410
  ...userConfigs
21164
20411
  );
21165
20412
  if (autoRenamePlugins) {