@storm-software/eslint 0.169.93 → 0.169.95
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/README.md +1 -1
- package/dist/chunk-4CXNUMUG.js +2 -39
- package/dist/chunk-A32JZBPO.js +2 -6
- package/dist/chunk-DJ2ZXQYV.js +4 -10
- package/dist/chunk-FXLMJ2Y5.js +3 -9
- package/dist/{chunk-DPTIR64R.js → chunk-IWQLEJ77.js} +11 -19
- package/dist/chunk-O5CGESKJ.js +20 -29
- package/dist/chunk-PWQ34SJ2.js +4 -10
- package/dist/chunk-T4LUMNGJ.js +3 -21
- package/dist/chunk-UVJN4TQE.js +5 -12
- package/dist/preset.cjs +9387 -0
- package/dist/preset.d.cts +34 -0
- package/dist/preset.js +128 -329
- package/dist/types.cjs +2 -0
- package/dist/types.d.cts +18781 -0
- package/dist/types.js +1 -3
- package/dist/utils/banner-plugin.cjs +454 -0
- package/dist/utils/banner-plugin.d.cts +6 -0
- package/dist/utils/banner-plugin.js +4 -9
- package/dist/utils/combine.cjs +9 -0
- package/dist/utils/combine.d.cts +14 -0
- package/dist/utils/combine.js +3 -6
- package/dist/utils/constants.cjs +206 -0
- package/dist/utils/constants.d.cts +36 -0
- package/dist/utils/constants.js +2 -73
- package/dist/utils/correct-paths.cjs +232 -0
- package/dist/utils/correct-paths.d.cts +30 -0
- package/dist/utils/correct-paths.js +2 -33
- package/dist/utils/find-workspace-root.cjs +201 -0
- package/dist/utils/find-workspace-root.d.cts +16 -0
- package/dist/utils/find-workspace-root.js +3 -10
- package/dist/utils/format-config.cjs +20 -0
- package/dist/utils/format-config.d.cts +5 -0
- package/dist/utils/format-config.js +2 -7
- package/dist/utils/get-file-banner.cjs +103 -0
- package/dist/utils/get-file-banner.d.cts +12 -0
- package/dist/utils/get-file-banner.js +3 -8
- package/dist/utils/helpers.cjs +87 -0
- package/dist/utils/helpers.d.cts +55 -0
- package/dist/utils/helpers.js +2 -19
- package/dist/utils/index.cjs +224 -0
- package/dist/utils/index.d.cts +3 -0
- package/dist/utils/index.js +3 -79
- package/dist/utils/tsconfig-path.cjs +152 -0
- package/dist/utils/tsconfig-path.d.cts +3 -0
- package/dist/utils/tsconfig-path.js +3 -8
- package/package.json +46 -48
package/dist/preset.js
CHANGED
|
@@ -1,67 +1,53 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from
|
|
9
|
-
import
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
|
|
14
|
-
} from
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
} from
|
|
45
|
-
|
|
46
|
-
findWorkspaceRoot
|
|
47
|
-
} from "./chunk-UVJN4TQE.js";
|
|
48
|
-
import {
|
|
49
|
-
joinPaths
|
|
50
|
-
} from "./chunk-T4LUMNGJ.js";
|
|
51
|
-
import {
|
|
52
|
-
__commonJS,
|
|
53
|
-
__toESM,
|
|
54
|
-
init_esm_shims
|
|
55
|
-
} from "./chunk-PWQ34SJ2.js";
|
|
56
|
-
|
|
57
|
-
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/Debug.js
|
|
58
|
-
import * as __import_process from "process";
|
|
1
|
+
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-IWQLEJ77.js';
|
|
2
|
+
import { getTsConfigPath } from './chunk-DJ2ZXQYV.js';
|
|
3
|
+
import { banner_plugin_default } from './chunk-O5CGESKJ.js';
|
|
4
|
+
import { getFileBanner } from './chunk-FXLMJ2Y5.js';
|
|
5
|
+
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, 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-4CXNUMUG.js';
|
|
6
|
+
import { findWorkspaceRoot } from './chunk-UVJN4TQE.js';
|
|
7
|
+
import { joinPaths } from './chunk-T4LUMNGJ.js';
|
|
8
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-PWQ34SJ2.js';
|
|
9
|
+
import * as __import_process from 'process';
|
|
10
|
+
import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
|
|
11
|
+
import * as __import_path from 'path';
|
|
12
|
+
import * as __import_fs from 'fs';
|
|
13
|
+
import * as __import__microsoft_tsdoc from '@microsoft/tsdoc';
|
|
14
|
+
import { FlatConfigComposer } from 'eslint-flat-config-utils';
|
|
15
|
+
import { isPackageExists } from 'local-pkg';
|
|
16
|
+
import cspellConfig from '@cspell/eslint-plugin/recommended';
|
|
17
|
+
import defu from 'defu';
|
|
18
|
+
import '@cspell/eslint-plugin';
|
|
19
|
+
import default3 from '@nx/eslint-plugin/nx.js';
|
|
20
|
+
import * as pluginImport from 'eslint-plugin-import-x';
|
|
21
|
+
import default4 from 'eslint-plugin-import-zod';
|
|
22
|
+
import default5 from 'eslint-plugin-n';
|
|
23
|
+
import default6 from 'eslint-plugin-no-secrets';
|
|
24
|
+
import default7 from 'eslint-plugin-perfectionist';
|
|
25
|
+
import * as jsoncParser from 'jsonc-eslint-parser';
|
|
26
|
+
import * as yamlParser from 'yaml-eslint-parser';
|
|
27
|
+
import fs, { existsSync, readFileSync } from 'node:fs';
|
|
28
|
+
import process2 from 'node:process';
|
|
29
|
+
import { findUpSync } from 'find-up-simple';
|
|
30
|
+
import { parsePnpmWorkspaceYaml } from 'pnpm-workspace-yaml';
|
|
31
|
+
import { basename, normalize, resolve, dirname } from 'pathe';
|
|
32
|
+
import { globSync } from 'tinyglobby';
|
|
33
|
+
import default8 from 'eslint-plugin-prettier';
|
|
34
|
+
import default9 from 'eslint-plugin-unicorn';
|
|
35
|
+
import default10 from 'eslint-plugin-unused-imports';
|
|
36
|
+
import { loadConfig } from 'c12';
|
|
37
|
+
import chalk from 'chalk';
|
|
38
|
+
import { join } from 'node:path';
|
|
39
|
+
import { readFile } from 'node:fs/promises';
|
|
40
|
+
import globalsLib from 'globals';
|
|
41
|
+
import { mergeProcessors, processorPassThrough } from 'eslint-merge-processors';
|
|
42
|
+
import { readCachedProjectGraph, createProjectGraphAsync } from '@nx/devkit';
|
|
43
|
+
import config2 from 'eslint-plugin-prettier/recommended';
|
|
44
|
+
import { configs as configs$1 } from 'eslint-plugin-regexp';
|
|
45
|
+
|
|
59
46
|
var require_Debug = __commonJS({
|
|
60
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports) {
|
|
61
|
-
"use strict";
|
|
47
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/Debug.js"(exports$1) {
|
|
62
48
|
init_esm_shims();
|
|
63
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
64
|
-
exports.Debug = void 0;
|
|
49
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
50
|
+
exports$1.Debug = void 0;
|
|
65
51
|
var Debug = class {
|
|
66
52
|
// To debug the plugin, temporarily uncomment the body of this function
|
|
67
53
|
static log(message) {
|
|
@@ -69,20 +55,14 @@ var require_Debug = __commonJS({
|
|
|
69
55
|
console.log(message);
|
|
70
56
|
}
|
|
71
57
|
};
|
|
72
|
-
exports.Debug = Debug;
|
|
58
|
+
exports$1.Debug = Debug;
|
|
73
59
|
}
|
|
74
60
|
});
|
|
75
|
-
|
|
76
|
-
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js
|
|
77
|
-
import * as __import__microsoft_tsdocConfig from "@microsoft/tsdoc-config";
|
|
78
|
-
import * as __import_path from "path";
|
|
79
|
-
import * as __import_fs from "fs";
|
|
80
61
|
var require_ConfigCache = __commonJS({
|
|
81
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports) {
|
|
82
|
-
"use strict";
|
|
62
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/ConfigCache.js"(exports$1) {
|
|
83
63
|
init_esm_shims();
|
|
84
64
|
var __import___Debug = __toESM(require_Debug());
|
|
85
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
65
|
+
var __createBinding = exports$1 && exports$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
86
66
|
if (k2 === void 0) k2 = k;
|
|
87
67
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
88
68
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
@@ -95,12 +75,12 @@ var require_ConfigCache = __commonJS({
|
|
|
95
75
|
if (k2 === void 0) k2 = k;
|
|
96
76
|
o[k2] = m[k];
|
|
97
77
|
}));
|
|
98
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
78
|
+
var __setModuleDefault = exports$1 && exports$1.__setModuleDefault || (Object.create ? (function(o, v) {
|
|
99
79
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
100
80
|
}) : function(o, v) {
|
|
101
81
|
o["default"] = v;
|
|
102
82
|
});
|
|
103
|
-
var __importStar = exports && exports.__importStar || function(mod) {
|
|
83
|
+
var __importStar = exports$1 && exports$1.__importStar || function(mod) {
|
|
104
84
|
if (mod && mod.__esModule) return mod;
|
|
105
85
|
var result = {};
|
|
106
86
|
if (mod != null) {
|
|
@@ -109,8 +89,8 @@ var require_ConfigCache = __commonJS({
|
|
|
109
89
|
__setModuleDefault(result, mod);
|
|
110
90
|
return result;
|
|
111
91
|
};
|
|
112
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
113
|
-
exports.ConfigCache = void 0;
|
|
92
|
+
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
93
|
+
exports$1.ConfigCache = void 0;
|
|
114
94
|
var tsdoc_config_1 = __import__microsoft_tsdocConfig;
|
|
115
95
|
var path = __importStar(__import_path);
|
|
116
96
|
var Debug_1 = __import___Debug;
|
|
@@ -406,17 +386,13 @@ var require_ConfigCache = __commonJS({
|
|
|
406
386
|
return cachedConfig.configFile;
|
|
407
387
|
}
|
|
408
388
|
};
|
|
409
|
-
exports.ConfigCache = ConfigCache;
|
|
389
|
+
exports$1.ConfigCache = ConfigCache;
|
|
410
390
|
ConfigCache._cachedConfigs = /* @__PURE__ */ new Map();
|
|
411
391
|
ConfigCache._cachedPaths = /* @__PURE__ */ new Map();
|
|
412
392
|
}
|
|
413
393
|
});
|
|
414
|
-
|
|
415
|
-
// ../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/index.js
|
|
416
|
-
import * as __import__microsoft_tsdoc from "@microsoft/tsdoc";
|
|
417
394
|
var require_lib = __commonJS({
|
|
418
|
-
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports, module) {
|
|
419
|
-
"use strict";
|
|
395
|
+
"../../node_modules/.pnpm/eslint-plugin-tsdoc@0.4.0_patch_hash=611157f561b00eed9e1354e07e3bfbeab0dc230489afaec6fbae0c6be3bf2f43/node_modules/eslint-plugin-tsdoc/lib/index.js"(exports$1, module) {
|
|
420
396
|
init_esm_shims();
|
|
421
397
|
var __import___Debug = __toESM(require_Debug());
|
|
422
398
|
var __import___ConfigCache = __toESM(require_ConfigCache());
|
|
@@ -595,17 +571,15 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
595
571
|
|
|
596
572
|
// src/preset.ts
|
|
597
573
|
init_esm_shims();
|
|
598
|
-
import { FlatConfigComposer } from "eslint-flat-config-utils";
|
|
599
|
-
import { isPackageExists as isPackageExists2 } from "local-pkg";
|
|
600
574
|
|
|
601
575
|
// src/configs/astro.ts
|
|
602
576
|
init_esm_shims();
|
|
603
577
|
async function astro(options = {}) {
|
|
604
578
|
const { files = [GLOB_ASTRO], overrides = {}, stylistic: stylistic2 = true } = options;
|
|
605
579
|
const [pluginAstro, parserAstro, parserTs] = await Promise.all([
|
|
606
|
-
interopDefault(import(
|
|
607
|
-
interopDefault(import(
|
|
608
|
-
interopDefault(import(
|
|
580
|
+
interopDefault(import('eslint-plugin-astro')),
|
|
581
|
+
interopDefault(import('astro-eslint-parser')),
|
|
582
|
+
interopDefault(import('@typescript-eslint/parser'))
|
|
609
583
|
]);
|
|
610
584
|
return [
|
|
611
585
|
{
|
|
@@ -653,7 +627,6 @@ async function astro(options = {}) {
|
|
|
653
627
|
|
|
654
628
|
// src/configs/cspell.ts
|
|
655
629
|
init_esm_shims();
|
|
656
|
-
import cspellConfig from "@cspell/eslint-plugin/recommended";
|
|
657
630
|
async function cspell(options = {}) {
|
|
658
631
|
const { configFile = "./.vscode/cspell.json", overrides = {} } = options;
|
|
659
632
|
return [
|
|
@@ -726,7 +699,6 @@ async function disables() {
|
|
|
726
699
|
|
|
727
700
|
// src/configs/formatters.ts
|
|
728
701
|
init_esm_shims();
|
|
729
|
-
import defu from "defu";
|
|
730
702
|
|
|
731
703
|
// src/configs/stylistic.ts
|
|
732
704
|
init_esm_shims();
|
|
@@ -749,7 +721,7 @@ async function stylistic(options = {}) {
|
|
|
749
721
|
...options
|
|
750
722
|
};
|
|
751
723
|
const pluginStylistic = await interopDefault(
|
|
752
|
-
import(
|
|
724
|
+
import('@stylistic/eslint-plugin')
|
|
753
725
|
);
|
|
754
726
|
const config3 = pluginStylistic.configs.customize({
|
|
755
727
|
indent,
|
|
@@ -855,7 +827,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
855
827
|
},
|
|
856
828
|
options.dprintOptions ?? {}
|
|
857
829
|
);
|
|
858
|
-
const pluginFormat = await interopDefault(import(
|
|
830
|
+
const pluginFormat = await interopDefault(import('eslint-plugin-format'));
|
|
859
831
|
const configs3 = [
|
|
860
832
|
{
|
|
861
833
|
name: "storm/formatter/setup",
|
|
@@ -1059,8 +1031,8 @@ async function graphql(options = {}) {
|
|
|
1059
1031
|
"eslint-plugin-relay"
|
|
1060
1032
|
]);
|
|
1061
1033
|
const [pluginGraphQL, pluginRelay] = await Promise.all([
|
|
1062
|
-
interopDefault(import(
|
|
1063
|
-
interopDefault(import(
|
|
1034
|
+
interopDefault(import('@graphql-eslint/eslint-plugin')),
|
|
1035
|
+
interopDefault(import('eslint-plugin-relay'))
|
|
1064
1036
|
]);
|
|
1065
1037
|
return [
|
|
1066
1038
|
{
|
|
@@ -1240,24 +1212,9 @@ init_esm_shims();
|
|
|
1240
1212
|
|
|
1241
1213
|
// src/plugins.ts
|
|
1242
1214
|
init_esm_shims();
|
|
1243
|
-
import { default as default2 } from "@cspell/eslint-plugin";
|
|
1244
|
-
import { default as default3 } from "@nx/eslint-plugin/nx.js";
|
|
1245
|
-
import * as pluginImport from "eslint-plugin-import-x";
|
|
1246
|
-
import { default as default4 } from "eslint-plugin-import-zod";
|
|
1247
|
-
import { default as default5 } from "eslint-plugin-n";
|
|
1248
|
-
import { default as default6 } from "eslint-plugin-no-secrets";
|
|
1249
|
-
import { default as default7 } from "eslint-plugin-perfectionist";
|
|
1250
1215
|
|
|
1251
1216
|
// ../../node_modules/.pnpm/eslint-plugin-pnpm@0.3.0_patch_hash=72dcde755c336eeca3e6170de1106fd85ecb66171e060788f80_5b00633b89c3fef9fe3b8bc8bc92ac53/node_modules/eslint-plugin-pnpm/dist/index.mjs
|
|
1252
1217
|
init_esm_shims();
|
|
1253
|
-
import * as jsoncParser from "jsonc-eslint-parser";
|
|
1254
|
-
import * as yamlParser from "yaml-eslint-parser";
|
|
1255
|
-
import fs, { existsSync, readFileSync } from "node:fs";
|
|
1256
|
-
import process2 from "node:process";
|
|
1257
|
-
import { findUpSync } from "find-up-simple";
|
|
1258
|
-
import { parsePnpmWorkspaceYaml } from "pnpm-workspace-yaml";
|
|
1259
|
-
import { basename, normalize, resolve, dirname } from "pathe";
|
|
1260
|
-
import { globSync } from "tinyglobby";
|
|
1261
1218
|
var name = "eslint-plugin-pnpm";
|
|
1262
1219
|
var version = "0.3.0";
|
|
1263
1220
|
var blobUrl = "https://github.com/antfu/eslint-plugin-pnpm/blob/main/src/rules/";
|
|
@@ -1937,11 +1894,6 @@ var configs = {
|
|
|
1937
1894
|
};
|
|
1938
1895
|
plugin.configs = configs;
|
|
1939
1896
|
|
|
1940
|
-
// src/plugins.ts
|
|
1941
|
-
import { default as default8 } from "eslint-plugin-prettier";
|
|
1942
|
-
import { default as default9 } from "eslint-plugin-unicorn";
|
|
1943
|
-
import { default as default10 } from "eslint-plugin-unused-imports";
|
|
1944
|
-
|
|
1945
1897
|
// src/configs/imports.ts
|
|
1946
1898
|
async function imports(options = {}) {
|
|
1947
1899
|
const { stylistic: stylistic2 = true } = options;
|
|
@@ -1972,12 +1924,9 @@ init_esm_shims();
|
|
|
1972
1924
|
|
|
1973
1925
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
1974
1926
|
init_esm_shims();
|
|
1975
|
-
import { loadConfig } from "c12";
|
|
1976
|
-
import defu2 from "defu";
|
|
1977
1927
|
|
|
1978
1928
|
// ../config-tools/src/logger/console.ts
|
|
1979
1929
|
init_esm_shims();
|
|
1980
|
-
import { formatDistanceToNow } from "date-fns/formatDistanceToNow";
|
|
1981
1930
|
|
|
1982
1931
|
// ../config-tools/src/types.ts
|
|
1983
1932
|
init_esm_shims();
|
|
@@ -2007,45 +1956,18 @@ var LogLevelLabel = {
|
|
|
2007
1956
|
// ../config-tools/src/utilities/colors.ts
|
|
2008
1957
|
init_esm_shims();
|
|
2009
1958
|
var DEFAULT_COLOR_CONFIG = {
|
|
2010
|
-
light: {
|
|
2011
|
-
background: "#fafafa",
|
|
2012
|
-
foreground: "#1d1e22",
|
|
2013
|
-
brand: "#1fb2a6",
|
|
2014
|
-
alternate: "#db2777",
|
|
2015
|
-
help: "#5C4EE5",
|
|
2016
|
-
success: "#087f5b",
|
|
2017
|
-
info: "#0550ae",
|
|
2018
|
-
debug: "#8afafc",
|
|
2019
|
-
warning: "#e3b341",
|
|
2020
|
-
danger: "#D8314A",
|
|
2021
|
-
fatal: "#51070f",
|
|
2022
|
-
link: "#3fa6ff",
|
|
2023
|
-
positive: "#22c55e",
|
|
2024
|
-
negative: "#dc2626",
|
|
2025
|
-
gradient: ["#1fb2a6", "#db2777", "#5C4EE5"]
|
|
2026
|
-
},
|
|
2027
1959
|
dark: {
|
|
2028
|
-
background: "#1d1e22",
|
|
2029
|
-
foreground: "#cbd5e1",
|
|
2030
1960
|
brand: "#2dd4bf",
|
|
2031
|
-
alternate: "#db2777",
|
|
2032
|
-
help: "#818cf8",
|
|
2033
1961
|
success: "#10b981",
|
|
2034
1962
|
info: "#58a6ff",
|
|
2035
1963
|
debug: "#8afafc",
|
|
2036
1964
|
warning: "#f3d371",
|
|
2037
1965
|
danger: "#D8314A",
|
|
2038
|
-
fatal: "#a40e26"
|
|
2039
|
-
link: "#3fa6ff",
|
|
2040
|
-
positive: "#22c55e",
|
|
2041
|
-
negative: "#dc2626",
|
|
2042
|
-
gradient: ["#1fb2a6", "#db2777", "#818cf8"]
|
|
2043
|
-
}
|
|
1966
|
+
fatal: "#a40e26"}
|
|
2044
1967
|
};
|
|
2045
1968
|
|
|
2046
1969
|
// ../config-tools/src/logger/chalk.ts
|
|
2047
1970
|
init_esm_shims();
|
|
2048
|
-
import chalk from "chalk";
|
|
2049
1971
|
var chalkDefault = {
|
|
2050
1972
|
hex: (_) => (message) => message,
|
|
2051
1973
|
bgHex: (_) => ({
|
|
@@ -2379,8 +2301,7 @@ function normalizeString(path, allowAboveRoot) {
|
|
|
2379
2301
|
char = "/";
|
|
2380
2302
|
}
|
|
2381
2303
|
if (char === "/") {
|
|
2382
|
-
if (lastSlash === index - 1 || dots === 1) {
|
|
2383
|
-
} else if (dots === 2) {
|
|
2304
|
+
if (lastSlash === index - 1 || dots === 1) ; else if (dots === 2) {
|
|
2384
2305
|
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
2385
2306
|
if (res.length > 2) {
|
|
2386
2307
|
const lastSlashIndex = res.lastIndexOf("/");
|
|
@@ -2430,18 +2351,16 @@ var isAbsolute = function(p) {
|
|
|
2430
2351
|
|
|
2431
2352
|
// ../config-tools/src/utilities/find-up.ts
|
|
2432
2353
|
init_esm_shims();
|
|
2433
|
-
import { existsSync as existsSync2 } from "node:fs";
|
|
2434
|
-
import { join } from "node:path";
|
|
2435
2354
|
var MAX_PATH_SEARCH_DEPTH = 30;
|
|
2436
2355
|
var depth = 0;
|
|
2437
2356
|
function findFolderUp(startPath, endFileNames = [], endDirectoryNames = []) {
|
|
2438
2357
|
const _startPath = startPath ?? process.cwd();
|
|
2439
2358
|
if (endDirectoryNames.some(
|
|
2440
|
-
(endDirName) =>
|
|
2359
|
+
(endDirName) => existsSync(join(_startPath, endDirName))
|
|
2441
2360
|
)) {
|
|
2442
2361
|
return _startPath;
|
|
2443
2362
|
}
|
|
2444
|
-
if (endFileNames.some((endFileName) =>
|
|
2363
|
+
if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
|
|
2445
2364
|
return _startPath;
|
|
2446
2365
|
}
|
|
2447
2366
|
if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
|
|
@@ -2532,18 +2451,8 @@ init_esm_shims();
|
|
|
2532
2451
|
init_esm_shims();
|
|
2533
2452
|
var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
|
|
2534
2453
|
var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
|
|
2535
|
-
var STORM_DEFAULT_CONTACT = "https://stormsoftware.com/contact";
|
|
2536
2454
|
var STORM_DEFAULT_LICENSING = "https://stormsoftware.com/license";
|
|
2537
2455
|
var STORM_DEFAULT_LICENSE = "Apache-2.0";
|
|
2538
|
-
var STORM_DEFAULT_SOCIAL_DISCORD = "https://discord.gg/MQ6YVzakM5";
|
|
2539
|
-
var STORM_DEFAULT_SOCIAL_SLACK = "https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA";
|
|
2540
|
-
var STORM_DEFAULT_RELEASE_FOOTER = `
|
|
2541
|
-
Storm Software is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
|
|
2542
|
-
|
|
2543
|
-
Join us on [Discord](${STORM_DEFAULT_SOCIAL_DISCORD}) to chat with the team, receive release notifications, ask questions, and get involved.
|
|
2544
|
-
|
|
2545
|
-
If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](${STORM_DEFAULT_CONTACT}) or join our [Slack](${STORM_DEFAULT_SOCIAL_SLACK}) channel!
|
|
2546
|
-
`;
|
|
2547
2456
|
var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
|
|
2548
2457
|
var STORM_DEFAULT_BANNER_ALT = "The workspace's banner image";
|
|
2549
2458
|
|
|
@@ -2564,9 +2473,6 @@ init_esm_shims();
|
|
|
2564
2473
|
|
|
2565
2474
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/core.js
|
|
2566
2475
|
init_esm_shims();
|
|
2567
|
-
var NEVER = Object.freeze({
|
|
2568
|
-
status: "aborted"
|
|
2569
|
-
});
|
|
2570
2476
|
// @__NO_SIDE_EFFECTS__
|
|
2571
2477
|
function $constructor(name2, initializer2, params) {
|
|
2572
2478
|
function init(inst, def) {
|
|
@@ -2619,7 +2525,6 @@ function $constructor(name2, initializer2, params) {
|
|
|
2619
2525
|
Object.defineProperty(_, "name", { value: name2 });
|
|
2620
2526
|
return _;
|
|
2621
2527
|
}
|
|
2622
|
-
var $brand = Symbol("zod_brand");
|
|
2623
2528
|
var $ZodAsyncError = class extends Error {
|
|
2624
2529
|
constructor() {
|
|
2625
2530
|
super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
|
|
@@ -2627,8 +2532,6 @@ var $ZodAsyncError = class extends Error {
|
|
|
2627
2532
|
};
|
|
2628
2533
|
var globalConfig = {};
|
|
2629
2534
|
function config(newConfig) {
|
|
2630
|
-
if (newConfig)
|
|
2631
|
-
Object.assign(globalConfig, newConfig);
|
|
2632
2535
|
return globalConfig;
|
|
2633
2536
|
}
|
|
2634
2537
|
|
|
@@ -2651,15 +2554,13 @@ function jsonStringifyReplacer(_, value) {
|
|
|
2651
2554
|
return value;
|
|
2652
2555
|
}
|
|
2653
2556
|
function cached(getter) {
|
|
2654
|
-
const set = false;
|
|
2655
2557
|
return {
|
|
2656
2558
|
get value() {
|
|
2657
|
-
|
|
2559
|
+
{
|
|
2658
2560
|
const value = getter();
|
|
2659
2561
|
Object.defineProperty(this, "value", { value });
|
|
2660
2562
|
return value;
|
|
2661
2563
|
}
|
|
2662
|
-
throw new Error("cached value already set");
|
|
2663
2564
|
}
|
|
2664
2565
|
};
|
|
2665
2566
|
}
|
|
@@ -2699,18 +2600,6 @@ var captureStackTrace = "captureStackTrace" in Error ? Error.captureStackTrace :
|
|
|
2699
2600
|
function isObject(data) {
|
|
2700
2601
|
return typeof data === "object" && data !== null && !Array.isArray(data);
|
|
2701
2602
|
}
|
|
2702
|
-
var allowsEval = cached(() => {
|
|
2703
|
-
if (typeof navigator !== "undefined" && navigator?.userAgent?.includes("Cloudflare")) {
|
|
2704
|
-
return false;
|
|
2705
|
-
}
|
|
2706
|
-
try {
|
|
2707
|
-
const F = Function;
|
|
2708
|
-
new F("");
|
|
2709
|
-
return true;
|
|
2710
|
-
} catch (_) {
|
|
2711
|
-
return false;
|
|
2712
|
-
}
|
|
2713
|
-
});
|
|
2714
2603
|
function isPlainObject(o) {
|
|
2715
2604
|
if (isObject(o) === false)
|
|
2716
2605
|
return false;
|
|
@@ -2745,33 +2634,13 @@ function clone(inst, def, params) {
|
|
|
2745
2634
|
return cl;
|
|
2746
2635
|
}
|
|
2747
2636
|
function normalizeParams(_params) {
|
|
2748
|
-
|
|
2749
|
-
if (!params)
|
|
2750
|
-
return {};
|
|
2751
|
-
if (typeof params === "string")
|
|
2752
|
-
return { error: () => params };
|
|
2753
|
-
if (params?.message !== void 0) {
|
|
2754
|
-
if (params?.error !== void 0)
|
|
2755
|
-
throw new Error("Cannot specify both `message` and `error` params");
|
|
2756
|
-
params.error = params.message;
|
|
2757
|
-
}
|
|
2758
|
-
delete params.message;
|
|
2759
|
-
if (typeof params.error === "string")
|
|
2760
|
-
return { ...params, error: () => params.error };
|
|
2761
|
-
return params;
|
|
2637
|
+
return {};
|
|
2762
2638
|
}
|
|
2763
2639
|
function optionalKeys(shape) {
|
|
2764
2640
|
return Object.keys(shape).filter((k) => {
|
|
2765
2641
|
return shape[k]._zod.optin === "optional" && shape[k]._zod.optout === "optional";
|
|
2766
2642
|
});
|
|
2767
2643
|
}
|
|
2768
|
-
var NUMBER_FORMAT_RANGES = {
|
|
2769
|
-
safeint: [Number.MIN_SAFE_INTEGER, Number.MAX_SAFE_INTEGER],
|
|
2770
|
-
int32: [-2147483648, 2147483647],
|
|
2771
|
-
uint32: [0, 4294967295],
|
|
2772
|
-
float32: [-34028234663852886e22, 34028234663852886e22],
|
|
2773
|
-
float64: [-Number.MAX_VALUE, Number.MAX_VALUE]
|
|
2774
|
-
};
|
|
2775
2644
|
function aborted(x, startIndex = 0) {
|
|
2776
2645
|
if (x.aborted === true)
|
|
2777
2646
|
return true;
|
|
@@ -2894,8 +2763,6 @@ init_esm_shims();
|
|
|
2894
2763
|
|
|
2895
2764
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/regexes.js
|
|
2896
2765
|
init_esm_shims();
|
|
2897
|
-
var dateSource = `(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))`;
|
|
2898
|
-
var date = /* @__PURE__ */ new RegExp(`^${dateSource}$`);
|
|
2899
2766
|
var string = (params) => {
|
|
2900
2767
|
const regex = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
2901
2768
|
return new RegExp(`^${regex}$`);
|
|
@@ -3825,8 +3692,6 @@ init_esm_shims();
|
|
|
3825
3692
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/registries.js
|
|
3826
3693
|
init_esm_shims();
|
|
3827
3694
|
var _a;
|
|
3828
|
-
var $output = Symbol("ZodOutput");
|
|
3829
|
-
var $input = Symbol("ZodInput");
|
|
3830
3695
|
var $ZodRegistry = class {
|
|
3831
3696
|
constructor() {
|
|
3832
3697
|
this._map = /* @__PURE__ */ new WeakMap();
|
|
@@ -3871,7 +3736,6 @@ function registry() {
|
|
|
3871
3736
|
return new $ZodRegistry();
|
|
3872
3737
|
}
|
|
3873
3738
|
(_a = globalThis).__zod_globalRegistry ?? (_a.__zod_globalRegistry = registry());
|
|
3874
|
-
var globalRegistry = globalThis.__zod_globalRegistry;
|
|
3875
3739
|
|
|
3876
3740
|
// ../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/v4/core/api.js
|
|
3877
3741
|
init_esm_shims();
|
|
@@ -3879,7 +3743,7 @@ init_esm_shims();
|
|
|
3879
3743
|
function _string(Class, params) {
|
|
3880
3744
|
return new Class({
|
|
3881
3745
|
type: "string",
|
|
3882
|
-
...normalizeParams(
|
|
3746
|
+
...normalizeParams()
|
|
3883
3747
|
});
|
|
3884
3748
|
}
|
|
3885
3749
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3889,14 +3753,14 @@ function _url(Class, params) {
|
|
|
3889
3753
|
format: "url",
|
|
3890
3754
|
check: "string_format",
|
|
3891
3755
|
abort: false,
|
|
3892
|
-
...normalizeParams(
|
|
3756
|
+
...normalizeParams()
|
|
3893
3757
|
});
|
|
3894
3758
|
}
|
|
3895
3759
|
// @__NO_SIDE_EFFECTS__
|
|
3896
3760
|
function _boolean(Class, params) {
|
|
3897
3761
|
return new Class({
|
|
3898
3762
|
type: "boolean",
|
|
3899
|
-
...normalizeParams(
|
|
3763
|
+
...normalizeParams()
|
|
3900
3764
|
});
|
|
3901
3765
|
}
|
|
3902
3766
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -3909,7 +3773,7 @@ function _any(Class) {
|
|
|
3909
3773
|
function _length(length, params) {
|
|
3910
3774
|
return new $ZodCheckLengthEquals({
|
|
3911
3775
|
check: "length_equals",
|
|
3912
|
-
...normalizeParams(
|
|
3776
|
+
...normalizeParams(),
|
|
3913
3777
|
length
|
|
3914
3778
|
});
|
|
3915
3779
|
}
|
|
@@ -3918,7 +3782,7 @@ function _regex(pattern, params) {
|
|
|
3918
3782
|
return new $ZodCheckRegex({
|
|
3919
3783
|
check: "string_format",
|
|
3920
3784
|
format: "regex",
|
|
3921
|
-
...normalizeParams(
|
|
3785
|
+
...normalizeParams(),
|
|
3922
3786
|
pattern
|
|
3923
3787
|
});
|
|
3924
3788
|
}
|
|
@@ -3989,7 +3853,7 @@ var ZodMiniString = /* @__PURE__ */ $constructor("ZodMiniString", (inst, def) =>
|
|
|
3989
3853
|
});
|
|
3990
3854
|
// @__NO_SIDE_EFFECTS__
|
|
3991
3855
|
function string2(params) {
|
|
3992
|
-
return _string(ZodMiniString
|
|
3856
|
+
return _string(ZodMiniString);
|
|
3993
3857
|
}
|
|
3994
3858
|
var ZodMiniStringFormat = /* @__PURE__ */ $constructor("ZodMiniStringFormat", (inst, def) => {
|
|
3995
3859
|
$ZodStringFormat.init(inst, def);
|
|
@@ -4001,7 +3865,7 @@ var ZodMiniURL = /* @__PURE__ */ $constructor("ZodMiniURL", (inst, def) => {
|
|
|
4001
3865
|
});
|
|
4002
3866
|
// @__NO_SIDE_EFFECTS__
|
|
4003
3867
|
function url(params) {
|
|
4004
|
-
return _url(ZodMiniURL
|
|
3868
|
+
return _url(ZodMiniURL);
|
|
4005
3869
|
}
|
|
4006
3870
|
var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def) => {
|
|
4007
3871
|
$ZodBoolean.init(inst, def);
|
|
@@ -4009,7 +3873,7 @@ var ZodMiniBoolean = /* @__PURE__ */ $constructor("ZodMiniBoolean", (inst, def)
|
|
|
4009
3873
|
});
|
|
4010
3874
|
// @__NO_SIDE_EFFECTS__
|
|
4011
3875
|
function boolean2(params) {
|
|
4012
|
-
return _boolean(ZodMiniBoolean
|
|
3876
|
+
return _boolean(ZodMiniBoolean);
|
|
4013
3877
|
}
|
|
4014
3878
|
var ZodMiniAny = /* @__PURE__ */ $constructor("ZodMiniAny", (inst, def) => {
|
|
4015
3879
|
$ZodAny.init(inst, def);
|
|
@@ -4028,7 +3892,7 @@ function array(element, params) {
|
|
|
4028
3892
|
return new ZodMiniArray({
|
|
4029
3893
|
type: "array",
|
|
4030
3894
|
element,
|
|
4031
|
-
...normalizeParams(
|
|
3895
|
+
...normalizeParams()
|
|
4032
3896
|
});
|
|
4033
3897
|
}
|
|
4034
3898
|
var ZodMiniObject = /* @__PURE__ */ $constructor("ZodMiniObject", (inst, def) => {
|
|
@@ -4041,7 +3905,7 @@ function object(shape, params) {
|
|
|
4041
3905
|
const def = {
|
|
4042
3906
|
type: "object",
|
|
4043
3907
|
shape: shape ?? {},
|
|
4044
|
-
...normalizeParams(
|
|
3908
|
+
...normalizeParams()
|
|
4045
3909
|
};
|
|
4046
3910
|
return new ZodMiniObject(def);
|
|
4047
3911
|
}
|
|
@@ -4054,7 +3918,7 @@ function union(options, params) {
|
|
|
4054
3918
|
return new ZodMiniUnion({
|
|
4055
3919
|
type: "union",
|
|
4056
3920
|
options,
|
|
4057
|
-
...normalizeParams(
|
|
3921
|
+
...normalizeParams()
|
|
4058
3922
|
});
|
|
4059
3923
|
}
|
|
4060
3924
|
var ZodMiniRecord = /* @__PURE__ */ $constructor("ZodMiniRecord", (inst, def) => {
|
|
@@ -4067,7 +3931,7 @@ function record(keyType, valueType, params) {
|
|
|
4067
3931
|
type: "record",
|
|
4068
3932
|
keyType,
|
|
4069
3933
|
valueType,
|
|
4070
|
-
...normalizeParams(
|
|
3934
|
+
...normalizeParams()
|
|
4071
3935
|
});
|
|
4072
3936
|
}
|
|
4073
3937
|
var ZodMiniEnum = /* @__PURE__ */ $constructor("ZodMiniEnum", (inst, def) => {
|
|
@@ -4081,7 +3945,7 @@ function _enum(values, params) {
|
|
|
4081
3945
|
return new ZodMiniEnum({
|
|
4082
3946
|
type: "enum",
|
|
4083
3947
|
entries,
|
|
4084
|
-
...normalizeParams(
|
|
3948
|
+
...normalizeParams()
|
|
4085
3949
|
});
|
|
4086
3950
|
}
|
|
4087
3951
|
var ZodMiniLiteral = /* @__PURE__ */ $constructor("ZodMiniLiteral", (inst, def) => {
|
|
@@ -4093,7 +3957,7 @@ function literal(value, params) {
|
|
|
4093
3957
|
return new ZodMiniLiteral({
|
|
4094
3958
|
type: "literal",
|
|
4095
3959
|
values: Array.isArray(value) ? value : [value],
|
|
4096
|
-
...normalizeParams(
|
|
3960
|
+
...normalizeParams()
|
|
4097
3961
|
});
|
|
4098
3962
|
}
|
|
4099
3963
|
var ZodMiniOptional = /* @__PURE__ */ $constructor("ZodMiniOptional", (inst, def) => {
|
|
@@ -4721,11 +4585,6 @@ var COLOR_KEYS = [
|
|
|
4721
4585
|
"positive",
|
|
4722
4586
|
"negative"
|
|
4723
4587
|
];
|
|
4724
|
-
|
|
4725
|
-
// ../config-tools/src/utilities/get-default-config.ts
|
|
4726
|
-
import { existsSync as existsSync3 } from "node:fs";
|
|
4727
|
-
import { readFile } from "node:fs/promises";
|
|
4728
|
-
import { join as join2 } from "node:path";
|
|
4729
4588
|
async function getPackageJsonConfig(root) {
|
|
4730
4589
|
let license = STORM_DEFAULT_LICENSE;
|
|
4731
4590
|
let homepage = void 0;
|
|
@@ -4734,7 +4593,7 @@ async function getPackageJsonConfig(root) {
|
|
|
4734
4593
|
let namespace = void 0;
|
|
4735
4594
|
let repository = void 0;
|
|
4736
4595
|
const workspaceRoot = findWorkspaceRoot2(root);
|
|
4737
|
-
if (
|
|
4596
|
+
if (existsSync(join(workspaceRoot, "package.json"))) {
|
|
4738
4597
|
const file = await readFile(
|
|
4739
4598
|
joinPaths2(workspaceRoot, "package.json"),
|
|
4740
4599
|
"utf8"
|
|
@@ -4843,7 +4702,7 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
4843
4702
|
...options
|
|
4844
4703
|
})
|
|
4845
4704
|
]);
|
|
4846
|
-
return
|
|
4705
|
+
return defu(configs3[0] ?? {}, configs3[1] ?? {});
|
|
4847
4706
|
};
|
|
4848
4707
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
4849
4708
|
const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
|
|
@@ -4874,7 +4733,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4874
4733
|
}
|
|
4875
4734
|
);
|
|
4876
4735
|
}
|
|
4877
|
-
config3 =
|
|
4736
|
+
config3 = defu(result2.config ?? {}, config3 ?? {});
|
|
4878
4737
|
}
|
|
4879
4738
|
}
|
|
4880
4739
|
}
|
|
@@ -4887,23 +4746,9 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4887
4746
|
|
|
4888
4747
|
// ../config-tools/src/create-storm-config.ts
|
|
4889
4748
|
init_esm_shims();
|
|
4890
|
-
import defu3 from "defu";
|
|
4891
|
-
import { existsSync as existsSync4 } from "node:fs";
|
|
4892
4749
|
|
|
4893
4750
|
// ../config-tools/src/env/get-env.ts
|
|
4894
4751
|
init_esm_shims();
|
|
4895
|
-
var getExtensionEnv = (extensionName) => {
|
|
4896
|
-
const prefix = `STORM_EXTENSION_${extensionName.toUpperCase()}_`;
|
|
4897
|
-
return Object.keys(process.env).filter((key) => key.startsWith(prefix)).reduce((ret, key) => {
|
|
4898
|
-
const name2 = key.replace(prefix, "").split("_").map(
|
|
4899
|
-
(i) => i.length > 0 ? i.trim().charAt(0).toUpperCase() + i.trim().slice(1) : ""
|
|
4900
|
-
).join("");
|
|
4901
|
-
if (name2) {
|
|
4902
|
-
ret[name2] = process.env[key];
|
|
4903
|
-
}
|
|
4904
|
-
return ret;
|
|
4905
|
-
}, {});
|
|
4906
|
-
};
|
|
4907
4752
|
var getConfigEnv = () => {
|
|
4908
4753
|
const prefix = "STORM_";
|
|
4909
4754
|
let config3 = {
|
|
@@ -5480,9 +5325,6 @@ var setBaseThemeColorsEnv = (prefix, config3) => {
|
|
|
5480
5325
|
}
|
|
5481
5326
|
}
|
|
5482
5327
|
};
|
|
5483
|
-
|
|
5484
|
-
// ../config-tools/src/create-storm-config.ts
|
|
5485
|
-
var _extension_cache = /* @__PURE__ */ new WeakMap();
|
|
5486
5328
|
var _static_cache = void 0;
|
|
5487
5329
|
var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, skipLogs = false, useDefault = true) => {
|
|
5488
5330
|
let result;
|
|
@@ -5505,13 +5347,13 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
|
|
|
5505
5347
|
}
|
|
5506
5348
|
}
|
|
5507
5349
|
const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
|
|
5508
|
-
const configInput =
|
|
5350
|
+
const configInput = defu(
|
|
5509
5351
|
configEnv,
|
|
5510
5352
|
configFile,
|
|
5511
5353
|
defaultConfig
|
|
5512
5354
|
);
|
|
5513
5355
|
if (!configInput.variant) {
|
|
5514
|
-
configInput.variant =
|
|
5356
|
+
configInput.variant = existsSync(joinPaths2(_workspaceRoot, "nx.json")) || existsSync(joinPaths2(_workspaceRoot, ".nx")) || existsSync(joinPaths2(_workspaceRoot, "lerna.json")) || existsSync(joinPaths2(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
|
|
5515
5357
|
}
|
|
5516
5358
|
try {
|
|
5517
5359
|
result = applyDefaultConfig(
|
|
@@ -5533,30 +5375,12 @@ Please ensure your configuration file is valid JSON and matches the expected sch
|
|
|
5533
5375
|
} else {
|
|
5534
5376
|
result = _static_cache.data;
|
|
5535
5377
|
}
|
|
5536
|
-
if (schema && extensionName) {
|
|
5537
|
-
result.extensions = {
|
|
5538
|
-
...result.extensions,
|
|
5539
|
-
[extensionName]: createConfigExtension(extensionName, schema)
|
|
5540
|
-
};
|
|
5541
|
-
}
|
|
5542
5378
|
_static_cache = {
|
|
5543
5379
|
timestamp: Date.now(),
|
|
5544
5380
|
data: result
|
|
5545
5381
|
};
|
|
5546
5382
|
return result;
|
|
5547
5383
|
};
|
|
5548
|
-
var createConfigExtension = (extensionName, schema) => {
|
|
5549
|
-
const extension_cache_key = { extensionName };
|
|
5550
|
-
if (_extension_cache.has(extension_cache_key)) {
|
|
5551
|
-
return _extension_cache.get(extension_cache_key);
|
|
5552
|
-
}
|
|
5553
|
-
let extension = getExtensionEnv(extensionName);
|
|
5554
|
-
if (schema) {
|
|
5555
|
-
extension = schema.parse(extension);
|
|
5556
|
-
}
|
|
5557
|
-
_extension_cache.set(extension_cache_key, extension);
|
|
5558
|
-
return extension;
|
|
5559
|
-
};
|
|
5560
5384
|
var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
|
|
5561
5385
|
try {
|
|
5562
5386
|
const config3 = await createStormWorkspaceConfig(
|
|
@@ -5606,10 +5430,6 @@ async function tryGetWorkspaceConfig(skipLogs = true, options = {}) {
|
|
|
5606
5430
|
return void 0;
|
|
5607
5431
|
}
|
|
5608
5432
|
}
|
|
5609
|
-
|
|
5610
|
-
// src/configs/javascript.ts
|
|
5611
|
-
import defu4 from "defu";
|
|
5612
|
-
import globalsLib from "globals";
|
|
5613
5433
|
async function javascript(options = {}) {
|
|
5614
5434
|
const { lineEndings = "unix", overrides = {}, name: name2, globals = {} } = options;
|
|
5615
5435
|
const workspaceConfig = await tryGetWorkspaceConfig();
|
|
@@ -5618,7 +5438,7 @@ async function javascript(options = {}) {
|
|
|
5618
5438
|
name: "storm/javascript/setup",
|
|
5619
5439
|
languageOptions: {
|
|
5620
5440
|
ecmaVersion: 2022,
|
|
5621
|
-
globals:
|
|
5441
|
+
globals: defu(globals, {
|
|
5622
5442
|
...globalsLib.browser,
|
|
5623
5443
|
...globalsLib.es2021,
|
|
5624
5444
|
...globalsLib.node,
|
|
@@ -6517,7 +6337,7 @@ async function jsdoc(options = {}) {
|
|
|
6517
6337
|
{
|
|
6518
6338
|
name: "storm/jsdoc/rules",
|
|
6519
6339
|
plugins: {
|
|
6520
|
-
jsdoc: await interopDefault(import(
|
|
6340
|
+
jsdoc: await interopDefault(import('eslint-plugin-jsdoc'))
|
|
6521
6341
|
},
|
|
6522
6342
|
rules: {
|
|
6523
6343
|
"jsdoc/check-access": "warn",
|
|
@@ -6554,8 +6374,8 @@ async function jsonc(options = {}) {
|
|
|
6554
6374
|
} = options;
|
|
6555
6375
|
const { indent = 2 } = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
6556
6376
|
const [pluginJsonc, parserJsonc] = await Promise.all([
|
|
6557
|
-
interopDefault(import(
|
|
6558
|
-
interopDefault(import(
|
|
6377
|
+
interopDefault(import('eslint-plugin-jsonc')),
|
|
6378
|
+
interopDefault(import('jsonc-eslint-parser'))
|
|
6559
6379
|
]);
|
|
6560
6380
|
return [
|
|
6561
6381
|
{
|
|
@@ -6629,7 +6449,7 @@ init_esm_shims();
|
|
|
6629
6449
|
async function jsx() {
|
|
6630
6450
|
await ensurePackages(["eslint-plugin-jsx-a11y"]);
|
|
6631
6451
|
const [pluginJsxA11y] = await Promise.all([
|
|
6632
|
-
interopDefault(import(
|
|
6452
|
+
interopDefault(import('eslint-plugin-jsx-a11y'))
|
|
6633
6453
|
]);
|
|
6634
6454
|
return [
|
|
6635
6455
|
{
|
|
@@ -6805,10 +6625,9 @@ async function jsx() {
|
|
|
6805
6625
|
|
|
6806
6626
|
// src/configs/markdown.ts
|
|
6807
6627
|
init_esm_shims();
|
|
6808
|
-
import { mergeProcessors, processorPassThrough } from "eslint-merge-processors";
|
|
6809
6628
|
async function markdown(options = {}) {
|
|
6810
6629
|
const { files = [GLOB_MARKDOWN], overrides = {} } = options;
|
|
6811
|
-
const markdown2 = await interopDefault(import(
|
|
6630
|
+
const markdown2 = await interopDefault(import('@eslint/markdown'));
|
|
6812
6631
|
return [
|
|
6813
6632
|
{
|
|
6814
6633
|
name: "storm/markdown/setup",
|
|
@@ -6886,7 +6705,7 @@ init_esm_shims();
|
|
|
6886
6705
|
async function mdx(options = {}) {
|
|
6887
6706
|
const { files = [GLOB_MDX], overrides = {} } = options;
|
|
6888
6707
|
await ensurePackages(["eslint-plugin-mdx"]);
|
|
6889
|
-
const mdx2 = await interopDefault(import(
|
|
6708
|
+
const mdx2 = await interopDefault(import('eslint-plugin-mdx'));
|
|
6890
6709
|
return [
|
|
6891
6710
|
{
|
|
6892
6711
|
name: "storm/mdx/setup",
|
|
@@ -6914,7 +6733,7 @@ init_esm_shims();
|
|
|
6914
6733
|
async function next(options = {}) {
|
|
6915
6734
|
const { coreWebVitals = true, rootDir } = options;
|
|
6916
6735
|
await ensurePackages(["@next/eslint-plugin-next"]);
|
|
6917
|
-
const pluginNext = await interopDefault(import(
|
|
6736
|
+
const pluginNext = await interopDefault(import('@next/eslint-plugin-next'));
|
|
6918
6737
|
return [
|
|
6919
6738
|
{
|
|
6920
6739
|
name: "storm/next/rules",
|
|
@@ -6985,7 +6804,6 @@ async function node() {
|
|
|
6985
6804
|
|
|
6986
6805
|
// src/configs/nx.ts
|
|
6987
6806
|
init_esm_shims();
|
|
6988
|
-
import defu5 from "defu";
|
|
6989
6807
|
async function nx(options = {}) {
|
|
6990
6808
|
const {
|
|
6991
6809
|
depsCheck = false,
|
|
@@ -7015,7 +6833,7 @@ async function nx(options = {}) {
|
|
|
7015
6833
|
rules: depsCheck !== false ? {
|
|
7016
6834
|
"@nx/dependency-checks": [
|
|
7017
6835
|
depsCheckSeverity,
|
|
7018
|
-
|
|
6836
|
+
defu(depsCheck, {
|
|
7019
6837
|
buildTargets: ["tsc", "build-base", "build"],
|
|
7020
6838
|
ignoredDependencies,
|
|
7021
6839
|
ignoredFiles,
|
|
@@ -7034,7 +6852,7 @@ async function nx(options = {}) {
|
|
|
7034
6852
|
rules: moduleBoundaries !== false ? {
|
|
7035
6853
|
"@nx/enforce-module-boundaries": [
|
|
7036
6854
|
"error",
|
|
7037
|
-
|
|
6855
|
+
defu(moduleBoundaries ?? {}, {
|
|
7038
6856
|
enforceBuildableLibDependency: false,
|
|
7039
6857
|
checkDynamicDependenciesExceptions: [".*"],
|
|
7040
6858
|
allow: [],
|
|
@@ -7101,12 +6919,6 @@ async function perfectionist() {
|
|
|
7101
6919
|
|
|
7102
6920
|
// src/configs/pnpm.ts
|
|
7103
6921
|
init_esm_shims();
|
|
7104
|
-
import {
|
|
7105
|
-
createProjectGraphAsync,
|
|
7106
|
-
readCachedProjectGraph
|
|
7107
|
-
} from "@nx/devkit";
|
|
7108
|
-
import { existsSync as existsSync5 } from "node:fs";
|
|
7109
|
-
import { readFile as readFile2 } from "node:fs/promises";
|
|
7110
6922
|
async function pnpm(options = {}) {
|
|
7111
6923
|
const {
|
|
7112
6924
|
overrides = {},
|
|
@@ -7116,8 +6928,8 @@ async function pnpm(options = {}) {
|
|
|
7116
6928
|
const workspaceRoot = findWorkspaceRoot();
|
|
7117
6929
|
await ensurePackages(["jsonc-eslint-parser", "yaml-eslint-parser"]);
|
|
7118
6930
|
const [parserJsonc, parserYaml] = await Promise.all([
|
|
7119
|
-
interopDefault(import(
|
|
7120
|
-
interopDefault(import(
|
|
6931
|
+
interopDefault(import('jsonc-eslint-parser')),
|
|
6932
|
+
interopDefault(import('yaml-eslint-parser'))
|
|
7121
6933
|
]);
|
|
7122
6934
|
if (ignoreWorkspaceDeps !== false) {
|
|
7123
6935
|
let projectGraph;
|
|
@@ -7138,8 +6950,8 @@ async function pnpm(options = {}) {
|
|
|
7138
6950
|
projectNode.data.root,
|
|
7139
6951
|
"package.json"
|
|
7140
6952
|
);
|
|
7141
|
-
if (
|
|
7142
|
-
const projectPackageJsonContent = await
|
|
6953
|
+
if (existsSync(projectPackageJsonPath)) {
|
|
6954
|
+
const projectPackageJsonContent = await readFile(
|
|
7143
6955
|
projectPackageJsonPath,
|
|
7144
6956
|
"utf8"
|
|
7145
6957
|
);
|
|
@@ -7208,11 +7020,9 @@ async function pnpm(options = {}) {
|
|
|
7208
7020
|
|
|
7209
7021
|
// src/configs/prettier.ts
|
|
7210
7022
|
init_esm_shims();
|
|
7211
|
-
import defu6 from "defu";
|
|
7212
|
-
import config2 from "eslint-plugin-prettier/recommended";
|
|
7213
7023
|
async function prettier() {
|
|
7214
7024
|
return [
|
|
7215
|
-
|
|
7025
|
+
defu(
|
|
7216
7026
|
{
|
|
7217
7027
|
name: "storm/prettier",
|
|
7218
7028
|
plugins: {
|
|
@@ -7231,7 +7041,6 @@ async function prettier() {
|
|
|
7231
7041
|
|
|
7232
7042
|
// src/configs/react.ts
|
|
7233
7043
|
init_esm_shims();
|
|
7234
|
-
import { isPackageExists } from "local-pkg";
|
|
7235
7044
|
var ReactRefreshAllowConstantExportPackages = ["vite"];
|
|
7236
7045
|
var ReactRouterPackages = [
|
|
7237
7046
|
"@react-router/node",
|
|
@@ -7263,10 +7072,10 @@ async function react(options = {}) {
|
|
|
7263
7072
|
pluginReactRefresh,
|
|
7264
7073
|
pluginReactCompiler
|
|
7265
7074
|
] = await Promise.all([
|
|
7266
|
-
interopDefault(import(
|
|
7267
|
-
interopDefault(import(
|
|
7268
|
-
interopDefault(import(
|
|
7269
|
-
interopDefault(import(
|
|
7075
|
+
interopDefault(import('@eslint-react/eslint-plugin')),
|
|
7076
|
+
interopDefault(import('eslint-plugin-react-hooks')),
|
|
7077
|
+
interopDefault(import('eslint-plugin-react-refresh')),
|
|
7078
|
+
interopDefault(import('eslint-plugin-react-compiler'))
|
|
7270
7079
|
]);
|
|
7271
7080
|
const isAllowConstantExport = ReactRefreshAllowConstantExportPackages.some(
|
|
7272
7081
|
(i) => isPackageExists(i)
|
|
@@ -7410,7 +7219,7 @@ async function reactNative(options = {}) {
|
|
|
7410
7219
|
await ensurePackages(["eslint-plugin-react-native"]);
|
|
7411
7220
|
const reactNative2 = await interopDefault(
|
|
7412
7221
|
// eslint-disable-next-line @nx/enforce-module-boundaries
|
|
7413
|
-
import(
|
|
7222
|
+
import('eslint-plugin-react-native')
|
|
7414
7223
|
);
|
|
7415
7224
|
return [
|
|
7416
7225
|
{
|
|
@@ -7426,9 +7235,8 @@ async function reactNative(options = {}) {
|
|
|
7426
7235
|
|
|
7427
7236
|
// src/configs/regexp.ts
|
|
7428
7237
|
init_esm_shims();
|
|
7429
|
-
import { configs as configs2 } from "eslint-plugin-regexp";
|
|
7430
7238
|
async function regexp(options = {}) {
|
|
7431
|
-
const config3 =
|
|
7239
|
+
const config3 = configs$1["flat/recommended"];
|
|
7432
7240
|
const rules2 = {
|
|
7433
7241
|
...config3.rules
|
|
7434
7242
|
};
|
|
@@ -7712,7 +7520,7 @@ async function storybook(options = {}) {
|
|
|
7712
7520
|
const { csf = "loose" } = options;
|
|
7713
7521
|
await ensurePackages(["eslint-plugin-storybook"]);
|
|
7714
7522
|
const [pluginStorybook] = await Promise.all([
|
|
7715
|
-
interopDefault(import(
|
|
7523
|
+
interopDefault(import('eslint-plugin-storybook'))
|
|
7716
7524
|
]);
|
|
7717
7525
|
return [
|
|
7718
7526
|
{
|
|
@@ -7768,9 +7576,9 @@ var _pluginTest;
|
|
|
7768
7576
|
async function test(options = {}) {
|
|
7769
7577
|
const { files = GLOB_TESTS, isInEditor = false, overrides = {} } = options;
|
|
7770
7578
|
const [pluginVitest, pluginNoOnlyTests] = await Promise.all([
|
|
7771
|
-
interopDefault(import(
|
|
7579
|
+
interopDefault(import('@vitest/eslint-plugin')),
|
|
7772
7580
|
// @ts-expect-error missing types
|
|
7773
|
-
interopDefault(import(
|
|
7581
|
+
interopDefault(import('eslint-plugin-no-only-tests'))
|
|
7774
7582
|
]);
|
|
7775
7583
|
_pluginTest = _pluginTest || {
|
|
7776
7584
|
...pluginVitest,
|
|
@@ -7818,8 +7626,8 @@ async function toml(options = {}) {
|
|
|
7818
7626
|
const { files = [GLOB_TOML], overrides = {}, stylistic: stylistic2 = true } = options;
|
|
7819
7627
|
const { indent = 2 } = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
7820
7628
|
const [pluginToml, parserToml] = await Promise.all([
|
|
7821
|
-
interopDefault(import(
|
|
7822
|
-
interopDefault(import(
|
|
7629
|
+
interopDefault(import('eslint-plugin-toml')),
|
|
7630
|
+
interopDefault(import('toml-eslint-parser'))
|
|
7823
7631
|
]);
|
|
7824
7632
|
return [
|
|
7825
7633
|
{
|
|
@@ -7937,8 +7745,8 @@ async function typescript(options = {}) {
|
|
|
7937
7745
|
"ts/unbound-method": "error"
|
|
7938
7746
|
};
|
|
7939
7747
|
const [pluginTs, parserTs] = await Promise.all([
|
|
7940
|
-
interopDefault(import(
|
|
7941
|
-
interopDefault(import(
|
|
7748
|
+
interopDefault(import('@typescript-eslint/eslint-plugin')),
|
|
7749
|
+
interopDefault(import('@typescript-eslint/parser'))
|
|
7942
7750
|
]);
|
|
7943
7751
|
function makeParser(typeAware, files2, ignores2) {
|
|
7944
7752
|
return {
|
|
@@ -8222,7 +8030,7 @@ async function unocss(options = {}) {
|
|
|
8222
8030
|
const { attributify = true, strict = false } = options;
|
|
8223
8031
|
await ensurePackages(["@unocss/eslint-plugin"]);
|
|
8224
8032
|
const [pluginUnoCSS] = await Promise.all([
|
|
8225
|
-
interopDefault(import(
|
|
8033
|
+
interopDefault(import('@unocss/eslint-plugin'))
|
|
8226
8034
|
]);
|
|
8227
8035
|
return [
|
|
8228
8036
|
{
|
|
@@ -8249,8 +8057,8 @@ async function yaml(options = {}) {
|
|
|
8249
8057
|
const { files = [GLOB_YAML], overrides = {}, stylistic: stylistic2 = true } = options;
|
|
8250
8058
|
const { indent = 2, quotes = "single" } = typeof stylistic2 === "boolean" ? {} : stylistic2;
|
|
8251
8059
|
const [pluginYaml, parserYaml] = await Promise.all([
|
|
8252
|
-
interopDefault(import(
|
|
8253
|
-
interopDefault(import(
|
|
8060
|
+
interopDefault(import('eslint-plugin-yml')),
|
|
8061
|
+
interopDefault(import('yaml-eslint-parser'))
|
|
8254
8062
|
]);
|
|
8255
8063
|
return [
|
|
8256
8064
|
{
|
|
@@ -8340,9 +8148,9 @@ var defaultPluginRenaming = {
|
|
|
8340
8148
|
"@stylistic": "style",
|
|
8341
8149
|
"@typescript-eslint": "ts",
|
|
8342
8150
|
"import-x": "import",
|
|
8343
|
-
|
|
8344
|
-
|
|
8345
|
-
|
|
8151
|
+
n: "node",
|
|
8152
|
+
vitest: "test",
|
|
8153
|
+
yml: "yaml"
|
|
8346
8154
|
};
|
|
8347
8155
|
function resolveSubOptions(options, key) {
|
|
8348
8156
|
return typeof options[key] === "boolean" ? {} : options[key] || {};
|
|
@@ -8368,7 +8176,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8368
8176
|
next: enableNext = false,
|
|
8369
8177
|
graphql: enableGraphQL = false,
|
|
8370
8178
|
storybook: enableStorybook = false,
|
|
8371
|
-
typescript: enableTypeScript =
|
|
8179
|
+
typescript: enableTypeScript = isPackageExists("typescript"),
|
|
8372
8180
|
unicorn: enableUnicorn = true,
|
|
8373
8181
|
tsdoc: enableTSDoc = true,
|
|
8374
8182
|
unocss: enableUnoCSS = false,
|
|
@@ -8389,7 +8197,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8389
8197
|
if (enableGitignore) {
|
|
8390
8198
|
if (typeof enableGitignore !== "boolean") {
|
|
8391
8199
|
configs3.push(
|
|
8392
|
-
interopDefault(import(
|
|
8200
|
+
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
8393
8201
|
r({
|
|
8394
8202
|
name: "storm/gitignore",
|
|
8395
8203
|
...enableGitignore
|
|
@@ -8398,7 +8206,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8398
8206
|
);
|
|
8399
8207
|
} else {
|
|
8400
8208
|
configs3.push(
|
|
8401
|
-
interopDefault(import(
|
|
8209
|
+
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
8402
8210
|
r({
|
|
8403
8211
|
name: "storm/gitignore",
|
|
8404
8212
|
strict: false
|
|
@@ -8418,7 +8226,6 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8418
8226
|
name: name2,
|
|
8419
8227
|
globals,
|
|
8420
8228
|
lineEndings,
|
|
8421
|
-
isInEditor,
|
|
8422
8229
|
overrides: getOverrides(options, "javascript")
|
|
8423
8230
|
}),
|
|
8424
8231
|
node(),
|
|
@@ -8571,7 +8378,6 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8571
8378
|
if (options.markdown === true) {
|
|
8572
8379
|
configs3.push(
|
|
8573
8380
|
markdown({
|
|
8574
|
-
componentExts,
|
|
8575
8381
|
overrides: getOverrides(options, "markdown")
|
|
8576
8382
|
})
|
|
8577
8383
|
);
|
|
@@ -8624,12 +8430,5 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
8624
8430
|
var getConfig = getStormConfig;
|
|
8625
8431
|
var defineConfig = getStormConfig;
|
|
8626
8432
|
var preset_default = getStormConfig;
|
|
8627
|
-
|
|
8628
|
-
|
|
8629
|
-
defaultPluginRenaming,
|
|
8630
|
-
defineConfig,
|
|
8631
|
-
getConfig,
|
|
8632
|
-
getOverrides,
|
|
8633
|
-
getStormConfig,
|
|
8634
|
-
resolveSubOptions
|
|
8635
|
-
};
|
|
8433
|
+
|
|
8434
|
+
export { preset_default as default, defaultPluginRenaming, defineConfig, getConfig, getOverrides, getStormConfig, resolveSubOptions };
|