@storm-software/eslint 0.170.103 → 0.170.104
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/preset.cjs +416 -362
- package/dist/preset.js +414 -360
- package/package.json +9 -9
package/dist/preset.cjs
CHANGED
|
@@ -1363,10 +1363,10 @@ var require_eslint_plugin_react_native = __commonJS({
|
|
|
1363
1363
|
"no-raw-text": require_no_raw_text(),
|
|
1364
1364
|
"no-single-element-style-arrays": require_no_single_element_style_arrays()
|
|
1365
1365
|
};
|
|
1366
|
-
function configureAsError(
|
|
1366
|
+
function configureAsError(rules6) {
|
|
1367
1367
|
const result = {};
|
|
1368
|
-
for (const key in
|
|
1369
|
-
if (!
|
|
1368
|
+
for (const key in rules6) {
|
|
1369
|
+
if (!rules6.hasOwnProperty(key)) {
|
|
1370
1370
|
continue;
|
|
1371
1371
|
}
|
|
1372
1372
|
result["react-native/" + key] = 2;
|
|
@@ -1769,7 +1769,7 @@ var require_lib = __commonJS({
|
|
|
1769
1769
|
defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
|
|
1770
1770
|
tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
|
|
1771
1771
|
});
|
|
1772
|
-
var
|
|
1772
|
+
var plugin8 = {
|
|
1773
1773
|
rules: {
|
|
1774
1774
|
// NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
|
|
1775
1775
|
// from the NPM package name, and then appending this string.
|
|
@@ -1831,9 +1831,9 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
1831
1831
|
if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
|
|
1832
1832
|
tsConfigDir = context.parserOptions.tsconfigRootDir;
|
|
1833
1833
|
}
|
|
1834
|
-
const
|
|
1835
|
-
Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(
|
|
1836
|
-
tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(
|
|
1834
|
+
const config6 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
|
|
1835
|
+
Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config6, void 0, 2)}`);
|
|
1836
|
+
tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config6);
|
|
1837
1837
|
if (!tsdocConfigFile.fileNotFound) {
|
|
1838
1838
|
if (tsdocConfigFile.hasErrors) {
|
|
1839
1839
|
context.report({
|
|
@@ -1938,7 +1938,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
1938
1938
|
}
|
|
1939
1939
|
}
|
|
1940
1940
|
};
|
|
1941
|
-
module.exports =
|
|
1941
|
+
module.exports = plugin8;
|
|
1942
1942
|
}
|
|
1943
1943
|
});
|
|
1944
1944
|
|
|
@@ -2169,9 +2169,9 @@ async function ensurePackages(packages) {
|
|
|
2169
2169
|
(i) => i.installPackage(nonExistingPackages, { dev: true })
|
|
2170
2170
|
);
|
|
2171
2171
|
}
|
|
2172
|
-
function renameRules(
|
|
2172
|
+
function renameRules(rules6, map) {
|
|
2173
2173
|
return Object.fromEntries(
|
|
2174
|
-
Object.entries(
|
|
2174
|
+
Object.entries(rules6).map(([key, value]) => {
|
|
2175
2175
|
for (const [from, to] of Object.entries(map)) {
|
|
2176
2176
|
if (key.startsWith(`${from}/`))
|
|
2177
2177
|
return [to + key.slice(from.length), value];
|
|
@@ -2409,14 +2409,14 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2409
2409
|
};
|
|
2410
2410
|
|
|
2411
2411
|
// ../config-tools/src/logger/console.ts
|
|
2412
|
-
var getLogFn = (logLevel = LogLevel.INFO,
|
|
2412
|
+
var getLogFn = (logLevel = LogLevel.INFO, config6 = {}, options = {}) => {
|
|
2413
2413
|
const {
|
|
2414
2414
|
chalk: _chalk = getChalk(),
|
|
2415
2415
|
fullDateTime = false,
|
|
2416
2416
|
hideDateTime = false
|
|
2417
2417
|
} = options;
|
|
2418
|
-
const colors = !
|
|
2419
|
-
const configLogLevel =
|
|
2418
|
+
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;
|
|
2419
|
+
const configLogLevel = config6.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
2420
2420
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
2421
2421
|
return (_) => {
|
|
2422
2422
|
};
|
|
@@ -2519,8 +2519,8 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
|
|
|
2519
2519
|
);
|
|
2520
2520
|
};
|
|
2521
2521
|
};
|
|
2522
|
-
var writeWarning = (message2,
|
|
2523
|
-
var writeTrace = (message2,
|
|
2522
|
+
var writeWarning = (message2, config6) => getLogFn(LogLevel.WARN, config6)(message2);
|
|
2523
|
+
var writeTrace = (message2, config6) => getLogFn(LogLevel.TRACE, config6)(message2);
|
|
2524
2524
|
var MAX_DEPTH = 10;
|
|
2525
2525
|
var formatLogMessage = (message2, options = {}, depth3 = 0) => {
|
|
2526
2526
|
if (depth3 > MAX_DEPTH) {
|
|
@@ -3025,8 +3025,8 @@ function prefixIssues(path23, issues) {
|
|
|
3025
3025
|
function unwrapMessage(message2) {
|
|
3026
3026
|
return typeof message2 === "string" ? message2 : message2?.message;
|
|
3027
3027
|
}
|
|
3028
|
-
function finalizeIssue(iss, ctx,
|
|
3029
|
-
const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
3028
|
+
function finalizeIssue(iss, ctx, config6) {
|
|
3029
|
+
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";
|
|
3030
3030
|
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
3031
3031
|
rest.path ?? (rest.path = []);
|
|
3032
3032
|
rest.message = message2;
|
|
@@ -4896,40 +4896,40 @@ async function getPackageJsonConfig(root) {
|
|
|
4896
4896
|
support
|
|
4897
4897
|
};
|
|
4898
4898
|
}
|
|
4899
|
-
function applyDefaultConfig(
|
|
4900
|
-
if (!
|
|
4901
|
-
|
|
4899
|
+
function applyDefaultConfig(config6) {
|
|
4900
|
+
if (!config6.support && config6.contact) {
|
|
4901
|
+
config6.support = config6.contact;
|
|
4902
4902
|
}
|
|
4903
|
-
if (!
|
|
4904
|
-
|
|
4903
|
+
if (!config6.contact && config6.support) {
|
|
4904
|
+
config6.contact = config6.support;
|
|
4905
4905
|
}
|
|
4906
|
-
if (
|
|
4907
|
-
if (!
|
|
4908
|
-
|
|
4906
|
+
if (config6.homepage) {
|
|
4907
|
+
if (!config6.docs) {
|
|
4908
|
+
config6.docs = `${config6.homepage}/docs`;
|
|
4909
4909
|
}
|
|
4910
|
-
if (!
|
|
4911
|
-
|
|
4910
|
+
if (!config6.license) {
|
|
4911
|
+
config6.license = `${config6.homepage}/license`;
|
|
4912
4912
|
}
|
|
4913
|
-
if (!
|
|
4914
|
-
|
|
4913
|
+
if (!config6.support) {
|
|
4914
|
+
config6.support = `${config6.homepage}/support`;
|
|
4915
4915
|
}
|
|
4916
|
-
if (!
|
|
4917
|
-
|
|
4916
|
+
if (!config6.contact) {
|
|
4917
|
+
config6.contact = `${config6.homepage}/contact`;
|
|
4918
4918
|
}
|
|
4919
|
-
if (!
|
|
4920
|
-
|
|
4921
|
-
if (
|
|
4922
|
-
|
|
4919
|
+
if (!config6.error?.codesFile || !config6?.error?.url) {
|
|
4920
|
+
config6.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
4921
|
+
if (config6.homepage) {
|
|
4922
|
+
config6.error.url ??= `${config6.homepage}/errors`;
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
4925
|
}
|
|
4926
|
-
return
|
|
4926
|
+
return config6;
|
|
4927
4927
|
}
|
|
4928
4928
|
|
|
4929
4929
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
4930
4930
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
4931
4931
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
4932
|
-
const
|
|
4932
|
+
const configs7 = await Promise.all([
|
|
4933
4933
|
c12.loadConfig({
|
|
4934
4934
|
cwd: workspacePath,
|
|
4935
4935
|
packageJson: true,
|
|
@@ -4960,14 +4960,14 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
4960
4960
|
...options
|
|
4961
4961
|
})
|
|
4962
4962
|
]);
|
|
4963
|
-
return defu__default.default(
|
|
4963
|
+
return defu__default.default(configs7[0] ?? {}, configs7[1] ?? {});
|
|
4964
4964
|
};
|
|
4965
4965
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
4966
4966
|
const workspacePath = filePath ? filePath : findWorkspaceRoot(filePath);
|
|
4967
4967
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
4968
|
-
let
|
|
4968
|
+
let config6 = result.config;
|
|
4969
4969
|
const configFile = result.configFile;
|
|
4970
|
-
if (
|
|
4970
|
+
if (config6 && configFile && Object.keys(config6).length > 0 && !config6.skipConfigLogging) {
|
|
4971
4971
|
writeTrace(
|
|
4972
4972
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
4973
4973
|
{
|
|
@@ -4983,7 +4983,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4983
4983
|
);
|
|
4984
4984
|
for (const result2 of results) {
|
|
4985
4985
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
4986
|
-
if (!
|
|
4986
|
+
if (!config6.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
4987
4987
|
writeTrace(
|
|
4988
4988
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
4989
4989
|
{
|
|
@@ -4991,15 +4991,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4991
4991
|
}
|
|
4992
4992
|
);
|
|
4993
4993
|
}
|
|
4994
|
-
|
|
4994
|
+
config6 = defu__default.default(result2.config ?? {}, config6 ?? {});
|
|
4995
4995
|
}
|
|
4996
4996
|
}
|
|
4997
4997
|
}
|
|
4998
|
-
if (!
|
|
4998
|
+
if (!config6 || Object.keys(config6).length === 0) {
|
|
4999
4999
|
return void 0;
|
|
5000
5000
|
}
|
|
5001
|
-
|
|
5002
|
-
return
|
|
5001
|
+
config6.configFile = configFile;
|
|
5002
|
+
return config6;
|
|
5003
5003
|
};
|
|
5004
5004
|
|
|
5005
5005
|
// ../config-tools/src/create-storm-config.ts
|
|
@@ -5009,7 +5009,7 @@ init_cjs_shims();
|
|
|
5009
5009
|
init_cjs_shims();
|
|
5010
5010
|
var getConfigEnv = () => {
|
|
5011
5011
|
const prefix = "STORM_";
|
|
5012
|
-
let
|
|
5012
|
+
let config6 = {
|
|
5013
5013
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
5014
5014
|
name: process.env[`${prefix}NAME`] || void 0,
|
|
5015
5015
|
variant: process.env[`${prefix}VARIANT`] || void 0,
|
|
@@ -5098,38 +5098,38 @@ var getConfigEnv = () => {
|
|
|
5098
5098
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
5099
5099
|
)
|
|
5100
5100
|
);
|
|
5101
|
-
|
|
5101
|
+
config6.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
5102
5102
|
(ret, themeName) => {
|
|
5103
5103
|
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
5104
5104
|
return ret;
|
|
5105
5105
|
},
|
|
5106
5106
|
{}
|
|
5107
5107
|
) : getThemeColorsEnv(prefix);
|
|
5108
|
-
if (
|
|
5109
|
-
if (
|
|
5110
|
-
|
|
5108
|
+
if (config6.docs === STORM_DEFAULT_DOCS) {
|
|
5109
|
+
if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
5110
|
+
config6.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/docs`;
|
|
5111
5111
|
} else {
|
|
5112
|
-
|
|
5112
|
+
config6.docs = `${config6.homepage}/docs`;
|
|
5113
5113
|
}
|
|
5114
5114
|
}
|
|
5115
|
-
if (
|
|
5116
|
-
if (
|
|
5117
|
-
|
|
5115
|
+
if (config6.licensing === STORM_DEFAULT_LICENSING) {
|
|
5116
|
+
if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
5117
|
+
config6.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/licensing`;
|
|
5118
5118
|
} else {
|
|
5119
|
-
|
|
5119
|
+
config6.licensing = `${config6.homepage}/docs`;
|
|
5120
5120
|
}
|
|
5121
5121
|
}
|
|
5122
5122
|
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
5123
5123
|
if (serializedConfig) {
|
|
5124
5124
|
const parsed = JSON.parse(serializedConfig);
|
|
5125
|
-
|
|
5126
|
-
...
|
|
5125
|
+
config6 = {
|
|
5126
|
+
...config6,
|
|
5127
5127
|
...parsed,
|
|
5128
|
-
colors: { ...
|
|
5129
|
-
extensions: { ...
|
|
5128
|
+
colors: { ...config6.colors, ...parsed.colors },
|
|
5129
|
+
extensions: { ...config6.extensions, ...parsed.extensions }
|
|
5130
5130
|
};
|
|
5131
5131
|
}
|
|
5132
|
-
return
|
|
5132
|
+
return config6;
|
|
5133
5133
|
};
|
|
5134
5134
|
var getThemeColorsEnv = (prefix, theme) => {
|
|
5135
5135
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
@@ -5234,360 +5234,360 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
5234
5234
|
}
|
|
5235
5235
|
}
|
|
5236
5236
|
};
|
|
5237
|
-
var setConfigEnv = (
|
|
5237
|
+
var setConfigEnv = (config6) => {
|
|
5238
5238
|
const prefix = "STORM_";
|
|
5239
|
-
if (
|
|
5240
|
-
process.env[`${prefix}EXTENDS`] = Array.isArray(
|
|
5239
|
+
if (config6.extends) {
|
|
5240
|
+
process.env[`${prefix}EXTENDS`] = Array.isArray(config6.extends) ? JSON.stringify(config6.extends) : config6.extends;
|
|
5241
5241
|
}
|
|
5242
|
-
if (
|
|
5243
|
-
process.env[`${prefix}NAME`] =
|
|
5242
|
+
if (config6.name) {
|
|
5243
|
+
process.env[`${prefix}NAME`] = config6.name;
|
|
5244
5244
|
}
|
|
5245
|
-
if (
|
|
5246
|
-
process.env[`${prefix}VARIANT`] =
|
|
5245
|
+
if (config6.variant) {
|
|
5246
|
+
process.env[`${prefix}VARIANT`] = config6.variant;
|
|
5247
5247
|
}
|
|
5248
|
-
if (
|
|
5249
|
-
process.env[`${prefix}NAMESPACE`] =
|
|
5248
|
+
if (config6.namespace) {
|
|
5249
|
+
process.env[`${prefix}NAMESPACE`] = config6.namespace;
|
|
5250
5250
|
}
|
|
5251
|
-
if (
|
|
5252
|
-
process.env[`${prefix}OWNER`] =
|
|
5251
|
+
if (config6.owner) {
|
|
5252
|
+
process.env[`${prefix}OWNER`] = config6.owner;
|
|
5253
5253
|
}
|
|
5254
|
-
if (
|
|
5255
|
-
process.env[`${prefix}BOT_NAME`] =
|
|
5256
|
-
process.env[`${prefix}BOT_EMAIL`] =
|
|
5254
|
+
if (config6.bot) {
|
|
5255
|
+
process.env[`${prefix}BOT_NAME`] = config6.bot.name;
|
|
5256
|
+
process.env[`${prefix}BOT_EMAIL`] = config6.bot.email;
|
|
5257
5257
|
}
|
|
5258
|
-
if (
|
|
5259
|
-
process.env[`${prefix}ERROR_CODES_FILE`] =
|
|
5260
|
-
process.env[`${prefix}ERROR_URL`] =
|
|
5258
|
+
if (config6.error) {
|
|
5259
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config6.error.codesFile;
|
|
5260
|
+
process.env[`${prefix}ERROR_URL`] = config6.error.url;
|
|
5261
5261
|
}
|
|
5262
|
-
if (
|
|
5263
|
-
if (
|
|
5264
|
-
if (typeof
|
|
5265
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
5266
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
5262
|
+
if (config6.release) {
|
|
5263
|
+
if (config6.release.banner) {
|
|
5264
|
+
if (typeof config6.release.banner === "string") {
|
|
5265
|
+
process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner;
|
|
5266
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner;
|
|
5267
5267
|
} else {
|
|
5268
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
5269
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
5270
|
-
process.env[`${prefix}RELEASE_BANNER_ALT`] =
|
|
5268
|
+
process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner.url;
|
|
5269
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner.url;
|
|
5270
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config6.release.banner.alt;
|
|
5271
5271
|
}
|
|
5272
5272
|
}
|
|
5273
|
-
process.env[`${prefix}RELEASE_HEADER`] =
|
|
5274
|
-
process.env[`${prefix}RELEASE_FOOTER`] =
|
|
5273
|
+
process.env[`${prefix}RELEASE_HEADER`] = config6.release.header;
|
|
5274
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config6.release.footer;
|
|
5275
5275
|
}
|
|
5276
|
-
if (
|
|
5277
|
-
if (
|
|
5278
|
-
process.env[`${prefix}SOCIAL_TWITTER`] =
|
|
5276
|
+
if (config6.socials) {
|
|
5277
|
+
if (config6.socials.twitter) {
|
|
5278
|
+
process.env[`${prefix}SOCIAL_TWITTER`] = config6.socials.twitter;
|
|
5279
5279
|
}
|
|
5280
|
-
if (
|
|
5281
|
-
process.env[`${prefix}SOCIAL_DISCORD`] =
|
|
5280
|
+
if (config6.socials.discord) {
|
|
5281
|
+
process.env[`${prefix}SOCIAL_DISCORD`] = config6.socials.discord;
|
|
5282
5282
|
}
|
|
5283
|
-
if (
|
|
5284
|
-
process.env[`${prefix}SOCIAL_TELEGRAM`] =
|
|
5283
|
+
if (config6.socials.telegram) {
|
|
5284
|
+
process.env[`${prefix}SOCIAL_TELEGRAM`] = config6.socials.telegram;
|
|
5285
5285
|
}
|
|
5286
|
-
if (
|
|
5287
|
-
process.env[`${prefix}SOCIAL_SLACK`] =
|
|
5286
|
+
if (config6.socials.slack) {
|
|
5287
|
+
process.env[`${prefix}SOCIAL_SLACK`] = config6.socials.slack;
|
|
5288
5288
|
}
|
|
5289
|
-
if (
|
|
5290
|
-
process.env[`${prefix}SOCIAL_MEDIUM`] =
|
|
5289
|
+
if (config6.socials.medium) {
|
|
5290
|
+
process.env[`${prefix}SOCIAL_MEDIUM`] = config6.socials.medium;
|
|
5291
5291
|
}
|
|
5292
|
-
if (
|
|
5293
|
-
process.env[`${prefix}SOCIAL_GITHUB`] =
|
|
5292
|
+
if (config6.socials.github) {
|
|
5293
|
+
process.env[`${prefix}SOCIAL_GITHUB`] = config6.socials.github;
|
|
5294
5294
|
}
|
|
5295
5295
|
}
|
|
5296
|
-
if (
|
|
5297
|
-
if (typeof
|
|
5298
|
-
process.env[`${prefix}ORG`] =
|
|
5299
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
5300
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
5301
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
5296
|
+
if (config6.organization) {
|
|
5297
|
+
if (typeof config6.organization === "string") {
|
|
5298
|
+
process.env[`${prefix}ORG`] = config6.organization;
|
|
5299
|
+
process.env[`${prefix}ORG_NAME`] = config6.organization;
|
|
5300
|
+
process.env[`${prefix}ORGANIZATION`] = config6.organization;
|
|
5301
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization;
|
|
5302
5302
|
} else {
|
|
5303
|
-
process.env[`${prefix}ORG`] =
|
|
5304
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
5305
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
5306
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
5307
|
-
if (
|
|
5308
|
-
process.env[`${prefix}ORG_URL`] =
|
|
5309
|
-
process.env[`${prefix}ORGANIZATION_URL`] =
|
|
5303
|
+
process.env[`${prefix}ORG`] = config6.organization.name;
|
|
5304
|
+
process.env[`${prefix}ORG_NAME`] = config6.organization.name;
|
|
5305
|
+
process.env[`${prefix}ORGANIZATION`] = config6.organization.name;
|
|
5306
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization.name;
|
|
5307
|
+
if (config6.organization.url) {
|
|
5308
|
+
process.env[`${prefix}ORG_URL`] = config6.organization.url;
|
|
5309
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config6.organization.url;
|
|
5310
5310
|
}
|
|
5311
|
-
if (
|
|
5312
|
-
process.env[`${prefix}ORG_DESCRIPTION`] =
|
|
5313
|
-
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] =
|
|
5311
|
+
if (config6.organization.description) {
|
|
5312
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config6.organization.description;
|
|
5313
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config6.organization.description;
|
|
5314
5314
|
}
|
|
5315
|
-
if (
|
|
5316
|
-
process.env[`${prefix}ORG_LOGO`] =
|
|
5317
|
-
process.env[`${prefix}ORGANIZATION_LOGO`] =
|
|
5315
|
+
if (config6.organization.logo) {
|
|
5316
|
+
process.env[`${prefix}ORG_LOGO`] = config6.organization.logo;
|
|
5317
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config6.organization.logo;
|
|
5318
5318
|
}
|
|
5319
|
-
if (
|
|
5320
|
-
process.env[`${prefix}ORG_ICON`] =
|
|
5321
|
-
process.env[`${prefix}ORGANIZATION_ICON`] =
|
|
5319
|
+
if (config6.organization.icon) {
|
|
5320
|
+
process.env[`${prefix}ORG_ICON`] = config6.organization.icon;
|
|
5321
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config6.organization.icon;
|
|
5322
5322
|
}
|
|
5323
5323
|
}
|
|
5324
5324
|
}
|
|
5325
|
-
if (
|
|
5326
|
-
process.env[`${prefix}PACKAGE_MANAGER`] =
|
|
5325
|
+
if (config6.packageManager) {
|
|
5326
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config6.packageManager;
|
|
5327
5327
|
}
|
|
5328
|
-
if (
|
|
5329
|
-
process.env[`${prefix}LICENSE`] =
|
|
5328
|
+
if (config6.license) {
|
|
5329
|
+
process.env[`${prefix}LICENSE`] = config6.license;
|
|
5330
5330
|
}
|
|
5331
|
-
if (
|
|
5332
|
-
process.env[`${prefix}HOMEPAGE`] =
|
|
5331
|
+
if (config6.homepage) {
|
|
5332
|
+
process.env[`${prefix}HOMEPAGE`] = config6.homepage;
|
|
5333
5333
|
}
|
|
5334
|
-
if (
|
|
5335
|
-
process.env[`${prefix}DOCS`] =
|
|
5334
|
+
if (config6.docs) {
|
|
5335
|
+
process.env[`${prefix}DOCS`] = config6.docs;
|
|
5336
5336
|
}
|
|
5337
|
-
if (
|
|
5338
|
-
process.env[`${prefix}PORTAL`] =
|
|
5337
|
+
if (config6.portal) {
|
|
5338
|
+
process.env[`${prefix}PORTAL`] = config6.portal;
|
|
5339
5339
|
}
|
|
5340
|
-
if (
|
|
5341
|
-
process.env[`${prefix}LICENSING`] =
|
|
5340
|
+
if (config6.licensing) {
|
|
5341
|
+
process.env[`${prefix}LICENSING`] = config6.licensing;
|
|
5342
5342
|
}
|
|
5343
|
-
if (
|
|
5344
|
-
process.env[`${prefix}CONTACT`] =
|
|
5343
|
+
if (config6.contact) {
|
|
5344
|
+
process.env[`${prefix}CONTACT`] = config6.contact;
|
|
5345
5345
|
}
|
|
5346
|
-
if (
|
|
5347
|
-
process.env[`${prefix}SUPPORT`] =
|
|
5346
|
+
if (config6.support) {
|
|
5347
|
+
process.env[`${prefix}SUPPORT`] = config6.support;
|
|
5348
5348
|
}
|
|
5349
|
-
if (
|
|
5350
|
-
process.env[`${prefix}TIMEZONE`] =
|
|
5351
|
-
process.env.TZ =
|
|
5352
|
-
process.env.DEFAULT_TIMEZONE =
|
|
5353
|
-
process.env.TIMEZONE =
|
|
5349
|
+
if (config6.timezone) {
|
|
5350
|
+
process.env[`${prefix}TIMEZONE`] = config6.timezone;
|
|
5351
|
+
process.env.TZ = config6.timezone;
|
|
5352
|
+
process.env.DEFAULT_TIMEZONE = config6.timezone;
|
|
5353
|
+
process.env.TIMEZONE = config6.timezone;
|
|
5354
5354
|
}
|
|
5355
|
-
if (
|
|
5356
|
-
process.env[`${prefix}LOCALE`] =
|
|
5357
|
-
process.env.DEFAULT_LOCALE =
|
|
5358
|
-
process.env.LOCALE =
|
|
5359
|
-
process.env.LANG =
|
|
5355
|
+
if (config6.locale) {
|
|
5356
|
+
process.env[`${prefix}LOCALE`] = config6.locale;
|
|
5357
|
+
process.env.DEFAULT_LOCALE = config6.locale;
|
|
5358
|
+
process.env.LOCALE = config6.locale;
|
|
5359
|
+
process.env.LANG = config6.locale ? `${config6.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
5360
5360
|
}
|
|
5361
|
-
if (
|
|
5361
|
+
if (config6.configFile) {
|
|
5362
5362
|
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
5363
|
-
|
|
5363
|
+
config6.configFile
|
|
5364
5364
|
);
|
|
5365
5365
|
}
|
|
5366
|
-
if (
|
|
5367
|
-
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(
|
|
5368
|
-
process.env.NX_WORKSPACE_ROOT = correctPaths(
|
|
5369
|
-
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(
|
|
5366
|
+
if (config6.workspaceRoot) {
|
|
5367
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config6.workspaceRoot);
|
|
5368
|
+
process.env.NX_WORKSPACE_ROOT = correctPaths(config6.workspaceRoot);
|
|
5369
|
+
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config6.workspaceRoot);
|
|
5370
5370
|
}
|
|
5371
|
-
if (
|
|
5372
|
-
if (!
|
|
5371
|
+
if (config6.directories) {
|
|
5372
|
+
if (!config6.skipCache && config6.directories.cache) {
|
|
5373
5373
|
process.env[`${prefix}CACHE_DIR`] = correctPaths(
|
|
5374
|
-
|
|
5374
|
+
config6.directories.cache
|
|
5375
5375
|
);
|
|
5376
5376
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
5377
5377
|
}
|
|
5378
|
-
if (
|
|
5379
|
-
process.env[`${prefix}DATA_DIR`] = correctPaths(
|
|
5378
|
+
if (config6.directories.data) {
|
|
5379
|
+
process.env[`${prefix}DATA_DIR`] = correctPaths(config6.directories.data);
|
|
5380
5380
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
5381
5381
|
}
|
|
5382
|
-
if (
|
|
5382
|
+
if (config6.directories.config) {
|
|
5383
5383
|
process.env[`${prefix}CONFIG_DIR`] = correctPaths(
|
|
5384
|
-
|
|
5384
|
+
config6.directories.config
|
|
5385
5385
|
);
|
|
5386
5386
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
5387
5387
|
}
|
|
5388
|
-
if (
|
|
5389
|
-
process.env[`${prefix}TEMP_DIR`] = correctPaths(
|
|
5388
|
+
if (config6.directories.temp) {
|
|
5389
|
+
process.env[`${prefix}TEMP_DIR`] = correctPaths(config6.directories.temp);
|
|
5390
5390
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
5391
5391
|
}
|
|
5392
|
-
if (
|
|
5393
|
-
process.env[`${prefix}LOG_DIR`] = correctPaths(
|
|
5392
|
+
if (config6.directories.log) {
|
|
5393
|
+
process.env[`${prefix}LOG_DIR`] = correctPaths(config6.directories.log);
|
|
5394
5394
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
5395
5395
|
}
|
|
5396
|
-
if (
|
|
5396
|
+
if (config6.directories.build) {
|
|
5397
5397
|
process.env[`${prefix}BUILD_DIR`] = correctPaths(
|
|
5398
|
-
|
|
5398
|
+
config6.directories.build
|
|
5399
5399
|
);
|
|
5400
5400
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
5401
5401
|
}
|
|
5402
5402
|
}
|
|
5403
|
-
if (
|
|
5404
|
-
process.env[`${prefix}SKIP_CACHE`] = String(
|
|
5405
|
-
if (
|
|
5406
|
-
process.env.NX_SKIP_NX_CACHE ??= String(
|
|
5407
|
-
process.env.NX_CACHE_PROJECT_GRAPH ??= String(
|
|
5403
|
+
if (config6.skipCache !== void 0) {
|
|
5404
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config6.skipCache);
|
|
5405
|
+
if (config6.skipCache) {
|
|
5406
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config6.skipCache);
|
|
5407
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config6.skipCache);
|
|
5408
5408
|
}
|
|
5409
5409
|
}
|
|
5410
|
-
if (
|
|
5411
|
-
process.env[`${prefix}MODE`] =
|
|
5412
|
-
process.env.NODE_ENV =
|
|
5413
|
-
process.env.ENVIRONMENT =
|
|
5410
|
+
if (config6.mode) {
|
|
5411
|
+
process.env[`${prefix}MODE`] = config6.mode;
|
|
5412
|
+
process.env.NODE_ENV = config6.mode;
|
|
5413
|
+
process.env.ENVIRONMENT = config6.mode;
|
|
5414
5414
|
}
|
|
5415
|
-
if (
|
|
5416
|
-
for (const key of Object.keys(
|
|
5417
|
-
setThemeColorsEnv(`${prefix}COLOR_${key}_`,
|
|
5415
|
+
if (config6.colors?.base?.light || config6.colors?.base?.dark) {
|
|
5416
|
+
for (const key of Object.keys(config6.colors)) {
|
|
5417
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config6.colors[key]);
|
|
5418
5418
|
}
|
|
5419
5419
|
} else {
|
|
5420
5420
|
setThemeColorsEnv(
|
|
5421
5421
|
`${prefix}COLOR_`,
|
|
5422
|
-
|
|
5422
|
+
config6.colors
|
|
5423
5423
|
);
|
|
5424
5424
|
}
|
|
5425
|
-
if (
|
|
5426
|
-
process.env[`${prefix}REPOSITORY`] =
|
|
5425
|
+
if (config6.repository) {
|
|
5426
|
+
process.env[`${prefix}REPOSITORY`] = config6.repository;
|
|
5427
5427
|
}
|
|
5428
|
-
if (
|
|
5429
|
-
process.env[`${prefix}BRANCH`] =
|
|
5428
|
+
if (config6.branch) {
|
|
5429
|
+
process.env[`${prefix}BRANCH`] = config6.branch;
|
|
5430
5430
|
}
|
|
5431
|
-
if (
|
|
5432
|
-
process.env[`${prefix}PRE_ID`] = String(
|
|
5431
|
+
if (config6.preid) {
|
|
5432
|
+
process.env[`${prefix}PRE_ID`] = String(config6.preid);
|
|
5433
5433
|
}
|
|
5434
|
-
if (
|
|
5435
|
-
if (
|
|
5436
|
-
process.env[`${prefix}REGISTRY_GITHUB`] = String(
|
|
5434
|
+
if (config6.registry) {
|
|
5435
|
+
if (config6.registry.github) {
|
|
5436
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config6.registry.github);
|
|
5437
5437
|
}
|
|
5438
|
-
if (
|
|
5439
|
-
process.env[`${prefix}REGISTRY_NPM`] = String(
|
|
5438
|
+
if (config6.registry.npm) {
|
|
5439
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config6.registry.npm);
|
|
5440
5440
|
}
|
|
5441
|
-
if (
|
|
5442
|
-
process.env[`${prefix}REGISTRY_CARGO`] = String(
|
|
5441
|
+
if (config6.registry.cargo) {
|
|
5442
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config6.registry.cargo);
|
|
5443
5443
|
}
|
|
5444
|
-
if (
|
|
5444
|
+
if (config6.registry.cyclone) {
|
|
5445
5445
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(
|
|
5446
|
-
|
|
5446
|
+
config6.registry.cyclone
|
|
5447
5447
|
);
|
|
5448
5448
|
}
|
|
5449
|
-
if (
|
|
5449
|
+
if (config6.registry.container) {
|
|
5450
5450
|
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
5451
|
-
|
|
5451
|
+
config6.registry.container
|
|
5452
5452
|
);
|
|
5453
5453
|
}
|
|
5454
5454
|
}
|
|
5455
|
-
if (
|
|
5456
|
-
process.env[`${prefix}LOG_LEVEL`] = String(
|
|
5457
|
-
process.env.LOG_LEVEL = String(
|
|
5455
|
+
if (config6.logLevel) {
|
|
5456
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config6.logLevel);
|
|
5457
|
+
process.env.LOG_LEVEL = String(config6.logLevel);
|
|
5458
5458
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
5459
|
-
getLogLevel(
|
|
5459
|
+
getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? true : false
|
|
5460
5460
|
);
|
|
5461
|
-
process.env.RUST_BACKTRACE = getLogLevel(
|
|
5461
|
+
process.env.RUST_BACKTRACE = getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
5462
5462
|
}
|
|
5463
|
-
if (
|
|
5463
|
+
if (config6.skipConfigLogging !== void 0) {
|
|
5464
5464
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
5465
|
-
|
|
5465
|
+
config6.skipConfigLogging
|
|
5466
5466
|
);
|
|
5467
5467
|
}
|
|
5468
|
-
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(
|
|
5469
|
-
for (const key of Object.keys(
|
|
5470
|
-
if (
|
|
5471
|
-
setExtensionEnv(key,
|
|
5468
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config6);
|
|
5469
|
+
for (const key of Object.keys(config6.extensions ?? {})) {
|
|
5470
|
+
if (config6.extensions[key] && Object.keys(config6.extensions[key])) {
|
|
5471
|
+
setExtensionEnv(key, config6.extensions[key]);
|
|
5472
5472
|
}
|
|
5473
5473
|
}
|
|
5474
5474
|
};
|
|
5475
|
-
var setThemeColorsEnv = (prefix,
|
|
5476
|
-
return
|
|
5475
|
+
var setThemeColorsEnv = (prefix, config6) => {
|
|
5476
|
+
return config6?.light?.brand || config6?.dark?.brand ? setMultiThemeColorsEnv(prefix, config6) : setSingleThemeColorsEnv(prefix, config6);
|
|
5477
5477
|
};
|
|
5478
|
-
var setSingleThemeColorsEnv = (prefix,
|
|
5479
|
-
if (
|
|
5480
|
-
process.env[`${prefix}DARK`] =
|
|
5478
|
+
var setSingleThemeColorsEnv = (prefix, config6) => {
|
|
5479
|
+
if (config6.dark) {
|
|
5480
|
+
process.env[`${prefix}DARK`] = config6.dark;
|
|
5481
5481
|
}
|
|
5482
|
-
if (
|
|
5483
|
-
process.env[`${prefix}LIGHT`] =
|
|
5482
|
+
if (config6.light) {
|
|
5483
|
+
process.env[`${prefix}LIGHT`] = config6.light;
|
|
5484
5484
|
}
|
|
5485
|
-
if (
|
|
5486
|
-
process.env[`${prefix}BRAND`] =
|
|
5485
|
+
if (config6.brand) {
|
|
5486
|
+
process.env[`${prefix}BRAND`] = config6.brand;
|
|
5487
5487
|
}
|
|
5488
|
-
if (
|
|
5489
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
5488
|
+
if (config6.alternate) {
|
|
5489
|
+
process.env[`${prefix}ALTERNATE`] = config6.alternate;
|
|
5490
5490
|
}
|
|
5491
|
-
if (
|
|
5492
|
-
process.env[`${prefix}ACCENT`] =
|
|
5491
|
+
if (config6.accent) {
|
|
5492
|
+
process.env[`${prefix}ACCENT`] = config6.accent;
|
|
5493
5493
|
}
|
|
5494
|
-
if (
|
|
5495
|
-
process.env[`${prefix}LINK`] =
|
|
5494
|
+
if (config6.link) {
|
|
5495
|
+
process.env[`${prefix}LINK`] = config6.link;
|
|
5496
5496
|
}
|
|
5497
|
-
if (
|
|
5498
|
-
process.env[`${prefix}DISCOVERY`] =
|
|
5497
|
+
if (config6.discovery) {
|
|
5498
|
+
process.env[`${prefix}DISCOVERY`] = config6.discovery;
|
|
5499
5499
|
}
|
|
5500
|
-
if (
|
|
5501
|
-
process.env[`${prefix}SUCCESS`] =
|
|
5500
|
+
if (config6.success) {
|
|
5501
|
+
process.env[`${prefix}SUCCESS`] = config6.success;
|
|
5502
5502
|
}
|
|
5503
|
-
if (
|
|
5504
|
-
process.env[`${prefix}INFO`] =
|
|
5503
|
+
if (config6.info) {
|
|
5504
|
+
process.env[`${prefix}INFO`] = config6.info;
|
|
5505
5505
|
}
|
|
5506
|
-
if (
|
|
5507
|
-
process.env[`${prefix}DEBUG`] =
|
|
5506
|
+
if (config6.debug) {
|
|
5507
|
+
process.env[`${prefix}DEBUG`] = config6.debug;
|
|
5508
5508
|
}
|
|
5509
|
-
if (
|
|
5510
|
-
process.env[`${prefix}WARNING`] =
|
|
5509
|
+
if (config6.warning) {
|
|
5510
|
+
process.env[`${prefix}WARNING`] = config6.warning;
|
|
5511
5511
|
}
|
|
5512
|
-
if (
|
|
5513
|
-
process.env[`${prefix}DANGER`] =
|
|
5512
|
+
if (config6.danger) {
|
|
5513
|
+
process.env[`${prefix}DANGER`] = config6.danger;
|
|
5514
5514
|
}
|
|
5515
|
-
if (
|
|
5516
|
-
process.env[`${prefix}FATAL`] =
|
|
5515
|
+
if (config6.fatal) {
|
|
5516
|
+
process.env[`${prefix}FATAL`] = config6.fatal;
|
|
5517
5517
|
}
|
|
5518
|
-
if (
|
|
5519
|
-
process.env[`${prefix}PERFORMANCE`] =
|
|
5518
|
+
if (config6.performance) {
|
|
5519
|
+
process.env[`${prefix}PERFORMANCE`] = config6.performance;
|
|
5520
5520
|
}
|
|
5521
|
-
if (
|
|
5522
|
-
process.env[`${prefix}POSITIVE`] =
|
|
5521
|
+
if (config6.positive) {
|
|
5522
|
+
process.env[`${prefix}POSITIVE`] = config6.positive;
|
|
5523
5523
|
}
|
|
5524
|
-
if (
|
|
5525
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
5524
|
+
if (config6.negative) {
|
|
5525
|
+
process.env[`${prefix}NEGATIVE`] = config6.negative;
|
|
5526
5526
|
}
|
|
5527
|
-
if (
|
|
5528
|
-
for (let i = 0; i <
|
|
5529
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
5527
|
+
if (config6.gradient) {
|
|
5528
|
+
for (let i = 0; i < config6.gradient.length; i++) {
|
|
5529
|
+
process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
|
|
5530
5530
|
}
|
|
5531
5531
|
}
|
|
5532
5532
|
};
|
|
5533
|
-
var setMultiThemeColorsEnv = (prefix,
|
|
5533
|
+
var setMultiThemeColorsEnv = (prefix, config6) => {
|
|
5534
5534
|
return {
|
|
5535
|
-
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`,
|
|
5536
|
-
dark: setBaseThemeColorsEnv(`${prefix}DARK_`,
|
|
5535
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config6.light),
|
|
5536
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config6.dark)
|
|
5537
5537
|
};
|
|
5538
5538
|
};
|
|
5539
|
-
var setBaseThemeColorsEnv = (prefix,
|
|
5540
|
-
if (
|
|
5541
|
-
process.env[`${prefix}FOREGROUND`] =
|
|
5539
|
+
var setBaseThemeColorsEnv = (prefix, config6) => {
|
|
5540
|
+
if (config6.foreground) {
|
|
5541
|
+
process.env[`${prefix}FOREGROUND`] = config6.foreground;
|
|
5542
5542
|
}
|
|
5543
|
-
if (
|
|
5544
|
-
process.env[`${prefix}BACKGROUND`] =
|
|
5543
|
+
if (config6.background) {
|
|
5544
|
+
process.env[`${prefix}BACKGROUND`] = config6.background;
|
|
5545
5545
|
}
|
|
5546
|
-
if (
|
|
5547
|
-
process.env[`${prefix}BRAND`] =
|
|
5546
|
+
if (config6.brand) {
|
|
5547
|
+
process.env[`${prefix}BRAND`] = config6.brand;
|
|
5548
5548
|
}
|
|
5549
|
-
if (
|
|
5550
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
5549
|
+
if (config6.alternate) {
|
|
5550
|
+
process.env[`${prefix}ALTERNATE`] = config6.alternate;
|
|
5551
5551
|
}
|
|
5552
|
-
if (
|
|
5553
|
-
process.env[`${prefix}ACCENT`] =
|
|
5552
|
+
if (config6.accent) {
|
|
5553
|
+
process.env[`${prefix}ACCENT`] = config6.accent;
|
|
5554
5554
|
}
|
|
5555
|
-
if (
|
|
5556
|
-
process.env[`${prefix}LINK`] =
|
|
5555
|
+
if (config6.link) {
|
|
5556
|
+
process.env[`${prefix}LINK`] = config6.link;
|
|
5557
5557
|
}
|
|
5558
|
-
if (
|
|
5559
|
-
process.env[`${prefix}DISCOVERY`] =
|
|
5558
|
+
if (config6.discovery) {
|
|
5559
|
+
process.env[`${prefix}DISCOVERY`] = config6.discovery;
|
|
5560
5560
|
}
|
|
5561
|
-
if (
|
|
5562
|
-
process.env[`${prefix}SUCCESS`] =
|
|
5561
|
+
if (config6.success) {
|
|
5562
|
+
process.env[`${prefix}SUCCESS`] = config6.success;
|
|
5563
5563
|
}
|
|
5564
|
-
if (
|
|
5565
|
-
process.env[`${prefix}INFO`] =
|
|
5564
|
+
if (config6.info) {
|
|
5565
|
+
process.env[`${prefix}INFO`] = config6.info;
|
|
5566
5566
|
}
|
|
5567
|
-
if (
|
|
5568
|
-
process.env[`${prefix}DEBUG`] =
|
|
5567
|
+
if (config6.debug) {
|
|
5568
|
+
process.env[`${prefix}DEBUG`] = config6.debug;
|
|
5569
5569
|
}
|
|
5570
|
-
if (
|
|
5571
|
-
process.env[`${prefix}WARNING`] =
|
|
5570
|
+
if (config6.warning) {
|
|
5571
|
+
process.env[`${prefix}WARNING`] = config6.warning;
|
|
5572
5572
|
}
|
|
5573
|
-
if (
|
|
5574
|
-
process.env[`${prefix}DANGER`] =
|
|
5573
|
+
if (config6.danger) {
|
|
5574
|
+
process.env[`${prefix}DANGER`] = config6.danger;
|
|
5575
5575
|
}
|
|
5576
|
-
if (
|
|
5577
|
-
process.env[`${prefix}FATAL`] =
|
|
5576
|
+
if (config6.fatal) {
|
|
5577
|
+
process.env[`${prefix}FATAL`] = config6.fatal;
|
|
5578
5578
|
}
|
|
5579
|
-
if (
|
|
5580
|
-
process.env[`${prefix}PERFORMANCE`] =
|
|
5579
|
+
if (config6.performance) {
|
|
5580
|
+
process.env[`${prefix}PERFORMANCE`] = config6.performance;
|
|
5581
5581
|
}
|
|
5582
|
-
if (
|
|
5583
|
-
process.env[`${prefix}POSITIVE`] =
|
|
5582
|
+
if (config6.positive) {
|
|
5583
|
+
process.env[`${prefix}POSITIVE`] = config6.positive;
|
|
5584
5584
|
}
|
|
5585
|
-
if (
|
|
5586
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
5585
|
+
if (config6.negative) {
|
|
5586
|
+
process.env[`${prefix}NEGATIVE`] = config6.negative;
|
|
5587
5587
|
}
|
|
5588
|
-
if (
|
|
5589
|
-
for (let i = 0; i <
|
|
5590
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
5588
|
+
if (config6.gradient) {
|
|
5589
|
+
for (let i = 0; i < config6.gradient.length; i++) {
|
|
5590
|
+
process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
|
|
5591
5591
|
}
|
|
5592
5592
|
}
|
|
5593
5593
|
};
|
|
@@ -5653,25 +5653,25 @@ Please ensure your configuration file is valid JSON and matches the expected sch
|
|
|
5653
5653
|
};
|
|
5654
5654
|
var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
|
|
5655
5655
|
try {
|
|
5656
|
-
const
|
|
5656
|
+
const config6 = await createStormWorkspaceConfig(
|
|
5657
5657
|
void 0,
|
|
5658
5658
|
void 0,
|
|
5659
5659
|
workspaceRoot,
|
|
5660
5660
|
skipLogs,
|
|
5661
5661
|
useDefault
|
|
5662
5662
|
);
|
|
5663
|
-
if (!
|
|
5663
|
+
if (!config6) {
|
|
5664
5664
|
return void 0;
|
|
5665
5665
|
}
|
|
5666
|
-
setConfigEnv(
|
|
5667
|
-
if (!skipLogs && !
|
|
5666
|
+
setConfigEnv(config6);
|
|
5667
|
+
if (!skipLogs && !config6.skipConfigLogging) {
|
|
5668
5668
|
writeTrace(
|
|
5669
5669
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
5670
|
-
${formatLogMessage(
|
|
5671
|
-
|
|
5670
|
+
${formatLogMessage(config6)}`,
|
|
5671
|
+
config6
|
|
5672
5672
|
);
|
|
5673
5673
|
}
|
|
5674
|
-
return
|
|
5674
|
+
return config6;
|
|
5675
5675
|
} catch (error) {
|
|
5676
5676
|
if (!skipLogs) {
|
|
5677
5677
|
writeWarning(
|
|
@@ -5715,7 +5715,7 @@ init_cjs_shims();
|
|
|
5715
5715
|
|
|
5716
5716
|
// ../eslint-plugin-banner/package.json
|
|
5717
5717
|
var package_default = {
|
|
5718
|
-
version: "0.0.
|
|
5718
|
+
version: "0.0.35"};
|
|
5719
5719
|
|
|
5720
5720
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
5721
5721
|
init_cjs_shims();
|
|
@@ -6686,7 +6686,7 @@ async function stylistic(options = {}) {
|
|
|
6686
6686
|
const pluginStylistic = await interopDefault(
|
|
6687
6687
|
import('@stylistic/eslint-plugin')
|
|
6688
6688
|
);
|
|
6689
|
-
const
|
|
6689
|
+
const config6 = pluginStylistic.configs.customize({
|
|
6690
6690
|
indent,
|
|
6691
6691
|
jsx: jsx2,
|
|
6692
6692
|
pluginName: "style",
|
|
@@ -6700,7 +6700,7 @@ async function stylistic(options = {}) {
|
|
|
6700
6700
|
style: pluginStylistic
|
|
6701
6701
|
},
|
|
6702
6702
|
rules: {
|
|
6703
|
-
...
|
|
6703
|
+
...config6.rules,
|
|
6704
6704
|
"style/lines-around-comment": "off",
|
|
6705
6705
|
"style/linebreak-style": ["error", lineEndings],
|
|
6706
6706
|
"style/comma-dangle": ["error", "never"],
|
|
@@ -6791,7 +6791,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6791
6791
|
options.dprintOptions ?? {}
|
|
6792
6792
|
);
|
|
6793
6793
|
const pluginFormat = await interopDefault(import('eslint-plugin-format'));
|
|
6794
|
-
const
|
|
6794
|
+
const configs7 = [
|
|
6795
6795
|
{
|
|
6796
6796
|
name: "storm/formatter/setup",
|
|
6797
6797
|
plugins: {
|
|
@@ -6800,7 +6800,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6800
6800
|
}
|
|
6801
6801
|
];
|
|
6802
6802
|
if (options.css) {
|
|
6803
|
-
|
|
6803
|
+
configs7.push(
|
|
6804
6804
|
{
|
|
6805
6805
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
6806
6806
|
languageOptions: {
|
|
@@ -6849,7 +6849,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6849
6849
|
);
|
|
6850
6850
|
}
|
|
6851
6851
|
if (options.html) {
|
|
6852
|
-
|
|
6852
|
+
configs7.push({
|
|
6853
6853
|
files: [GLOB_HTML],
|
|
6854
6854
|
languageOptions: {
|
|
6855
6855
|
parser: parserPlain
|
|
@@ -6866,7 +6866,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6866
6866
|
});
|
|
6867
6867
|
}
|
|
6868
6868
|
if (options.xml) {
|
|
6869
|
-
|
|
6869
|
+
configs7.push({
|
|
6870
6870
|
files: [GLOB_XML],
|
|
6871
6871
|
languageOptions: {
|
|
6872
6872
|
parser: parserPlain
|
|
@@ -6887,7 +6887,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6887
6887
|
});
|
|
6888
6888
|
}
|
|
6889
6889
|
if (options.svg) {
|
|
6890
|
-
|
|
6890
|
+
configs7.push({
|
|
6891
6891
|
files: [GLOB_SVG],
|
|
6892
6892
|
languageOptions: {
|
|
6893
6893
|
parser: parserPlain
|
|
@@ -6909,7 +6909,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6909
6909
|
}
|
|
6910
6910
|
if (options.markdown) {
|
|
6911
6911
|
const formater = options.markdown === true ? "prettier" : options.markdown;
|
|
6912
|
-
|
|
6912
|
+
configs7.push({
|
|
6913
6913
|
files: [GLOB_MARKDOWN],
|
|
6914
6914
|
languageOptions: {
|
|
6915
6915
|
parser: parserPlain
|
|
@@ -6930,7 +6930,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6930
6930
|
});
|
|
6931
6931
|
}
|
|
6932
6932
|
if (options.astro) {
|
|
6933
|
-
|
|
6933
|
+
configs7.push({
|
|
6934
6934
|
files: [GLOB_ASTRO],
|
|
6935
6935
|
languageOptions: {
|
|
6936
6936
|
parser: parserPlain
|
|
@@ -6946,7 +6946,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6946
6946
|
]
|
|
6947
6947
|
}
|
|
6948
6948
|
});
|
|
6949
|
-
|
|
6949
|
+
configs7.push({
|
|
6950
6950
|
files: [GLOB_ASTRO, GLOB_ASTRO_TS],
|
|
6951
6951
|
name: "storm/formatter/astro/disables",
|
|
6952
6952
|
rules: {
|
|
@@ -6961,7 +6961,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6961
6961
|
});
|
|
6962
6962
|
}
|
|
6963
6963
|
if (options.graphql) {
|
|
6964
|
-
|
|
6964
|
+
configs7.push({
|
|
6965
6965
|
files: [GLOB_GRAPHQL],
|
|
6966
6966
|
languageOptions: {
|
|
6967
6967
|
parser: parserPlain
|
|
@@ -6977,7 +6977,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6977
6977
|
}
|
|
6978
6978
|
});
|
|
6979
6979
|
}
|
|
6980
|
-
return
|
|
6980
|
+
return configs7;
|
|
6981
6981
|
}
|
|
6982
6982
|
|
|
6983
6983
|
// src/configs/graphql.ts
|
|
@@ -7844,9 +7844,9 @@ function isBuiltIn(name3, settings, modulePath) {
|
|
|
7844
7844
|
if (modulePath || !name3) {
|
|
7845
7845
|
return false;
|
|
7846
7846
|
}
|
|
7847
|
-
const
|
|
7847
|
+
const base2 = baseModule(name3);
|
|
7848
7848
|
const extras = settings && settings["import-x/core-modules"] || [];
|
|
7849
|
-
return Module.isBuiltin(
|
|
7849
|
+
return Module.isBuiltin(base2) || extras.includes(base2);
|
|
7850
7850
|
}
|
|
7851
7851
|
function isExternalModule(name3, modulePath, context) {
|
|
7852
7852
|
return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
|
|
@@ -7945,12 +7945,12 @@ function pkgDir(cwd2) {
|
|
|
7945
7945
|
}
|
|
7946
7946
|
|
|
7947
7947
|
// ../../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
|
|
7948
|
-
function resolveWithLegacyResolver(resolver,
|
|
7948
|
+
function resolveWithLegacyResolver(resolver, config6, modulePath, sourceFile) {
|
|
7949
7949
|
if (resolver.interfaceVersion === 2) {
|
|
7950
|
-
return resolver.resolve(modulePath, sourceFile,
|
|
7950
|
+
return resolver.resolve(modulePath, sourceFile, config6);
|
|
7951
7951
|
}
|
|
7952
7952
|
try {
|
|
7953
|
-
const resolved = resolver.resolveImport(modulePath, sourceFile,
|
|
7953
|
+
const resolved = resolver.resolveImport(modulePath, sourceFile, config6);
|
|
7954
7954
|
if (resolved === void 0) {
|
|
7955
7955
|
return {
|
|
7956
7956
|
found: false
|
|
@@ -9168,7 +9168,7 @@ function moduleVisitor(visitor, options) {
|
|
|
9168
9168
|
return visitors;
|
|
9169
9169
|
}
|
|
9170
9170
|
function makeOptionsSchema(additionalProperties) {
|
|
9171
|
-
const
|
|
9171
|
+
const base2 = {
|
|
9172
9172
|
type: "object",
|
|
9173
9173
|
properties: {
|
|
9174
9174
|
commonjs: { type: "boolean" },
|
|
@@ -9185,10 +9185,10 @@ function makeOptionsSchema(additionalProperties) {
|
|
|
9185
9185
|
};
|
|
9186
9186
|
if (additionalProperties) {
|
|
9187
9187
|
for (const key in additionalProperties) {
|
|
9188
|
-
|
|
9188
|
+
base2.properties[key] = additionalProperties[key];
|
|
9189
9189
|
}
|
|
9190
9190
|
}
|
|
9191
|
-
return
|
|
9191
|
+
return base2;
|
|
9192
9192
|
}
|
|
9193
9193
|
makeOptionsSchema();
|
|
9194
9194
|
|
|
@@ -13907,12 +13907,12 @@ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
|
|
|
13907
13907
|
}
|
|
13908
13908
|
});
|
|
13909
13909
|
}
|
|
13910
|
-
function testConfig(
|
|
13911
|
-
if (typeof
|
|
13912
|
-
return
|
|
13910
|
+
function testConfig(config6, context) {
|
|
13911
|
+
if (typeof config6 === "boolean" || config6 === void 0) {
|
|
13912
|
+
return config6;
|
|
13913
13913
|
}
|
|
13914
13914
|
const filename = context.physicalFilename;
|
|
13915
|
-
return
|
|
13915
|
+
return config6.some((c) => minimatch2(filename, c) || minimatch2(filename, path16__default.default.resolve(context.cwd, c), {
|
|
13916
13916
|
windowsPathsNoEscape: true
|
|
13917
13917
|
}) || minimatch2(filename, path16__default.default.resolve(c), { windowsPathsNoEscape: true }));
|
|
13918
13918
|
}
|
|
@@ -19873,7 +19873,7 @@ plugin3.configs = configs3;
|
|
|
19873
19873
|
|
|
19874
19874
|
// ../eslint-plugin-pnpm/package.json
|
|
19875
19875
|
var package_default2 = {
|
|
19876
|
-
version: "0.0.
|
|
19876
|
+
version: "0.0.33"};
|
|
19877
19877
|
|
|
19878
19878
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
19879
19879
|
var plugin4 = {
|
|
@@ -20071,9 +20071,9 @@ var ReactRouterPackages = [
|
|
|
20071
20071
|
"@react-router/serve",
|
|
20072
20072
|
"@react-router/dev"
|
|
20073
20073
|
];
|
|
20074
|
-
function renameRules2(
|
|
20074
|
+
function renameRules2(config6) {
|
|
20075
20075
|
const renamedRules = {};
|
|
20076
|
-
for (const [ruleName, ruleConfig] of Object.entries(
|
|
20076
|
+
for (const [ruleName, ruleConfig] of Object.entries(config6.rules || {})) {
|
|
20077
20077
|
if (ruleName.startsWith("@eslint-react/dom-")) {
|
|
20078
20078
|
renamedRules[`react-dom/${ruleName.slice("@eslint-react/dom-".length)}`] = ruleConfig;
|
|
20079
20079
|
} else if (ruleName.startsWith("@eslint-react/web-api-")) {
|
|
@@ -20306,21 +20306,21 @@ async function reactNative(options = {}) {
|
|
|
20306
20306
|
// src/configs/regexp.ts
|
|
20307
20307
|
init_cjs_shims();
|
|
20308
20308
|
async function regexp(options = {}) {
|
|
20309
|
-
const
|
|
20310
|
-
const
|
|
20311
|
-
...
|
|
20309
|
+
const config6 = eslintPluginRegexp.configs["flat/recommended"];
|
|
20310
|
+
const rules6 = {
|
|
20311
|
+
...config6.rules
|
|
20312
20312
|
};
|
|
20313
20313
|
if (options.level === "warn") {
|
|
20314
|
-
for (const key in
|
|
20315
|
-
if (
|
|
20314
|
+
for (const key in rules6) {
|
|
20315
|
+
if (rules6[key] === "error") rules6[key] = "warn";
|
|
20316
20316
|
}
|
|
20317
20317
|
}
|
|
20318
20318
|
return [
|
|
20319
20319
|
{
|
|
20320
|
-
...
|
|
20320
|
+
...config6,
|
|
20321
20321
|
name: "storm/regexp/rules",
|
|
20322
20322
|
rules: {
|
|
20323
|
-
...
|
|
20323
|
+
...rules6,
|
|
20324
20324
|
"regexp/no-unused-capturing-group": [
|
|
20325
20325
|
"error",
|
|
20326
20326
|
{
|
|
@@ -20743,7 +20743,61 @@ async function toml(options = {}) {
|
|
|
20743
20743
|
|
|
20744
20744
|
// src/configs/tsdoc.ts
|
|
20745
20745
|
init_cjs_shims();
|
|
20746
|
+
|
|
20747
|
+
// ../eslint-plugin-tsdoc/src/index.ts
|
|
20748
|
+
init_cjs_shims();
|
|
20749
|
+
|
|
20750
|
+
// ../eslint-plugin-tsdoc/src/configs/index.ts
|
|
20751
|
+
init_cjs_shims();
|
|
20752
|
+
|
|
20753
|
+
// ../eslint-plugin-tsdoc/src/configs/recommended.ts
|
|
20754
|
+
init_cjs_shims();
|
|
20755
|
+
|
|
20756
|
+
// ../eslint-plugin-tsdoc/src/plugin.ts
|
|
20757
|
+
init_cjs_shims();
|
|
20746
20758
|
var import_eslint_plugin_tsdoc = __toESM(require_lib());
|
|
20759
|
+
|
|
20760
|
+
// ../eslint-plugin-tsdoc/package.json
|
|
20761
|
+
var package_default3 = {
|
|
20762
|
+
version: "0.0.33"};
|
|
20763
|
+
|
|
20764
|
+
// ../eslint-plugin-tsdoc/src/plugin.ts
|
|
20765
|
+
var plugin7 = {
|
|
20766
|
+
...import_eslint_plugin_tsdoc.default,
|
|
20767
|
+
meta: {
|
|
20768
|
+
name: "tsdoc",
|
|
20769
|
+
version: package_default3.version
|
|
20770
|
+
}
|
|
20771
|
+
};
|
|
20772
|
+
|
|
20773
|
+
// ../eslint-plugin-tsdoc/src/configs/recommended.ts
|
|
20774
|
+
var config5 = {
|
|
20775
|
+
files: [GLOB_TS, GLOB_TSX],
|
|
20776
|
+
ignores: GLOB_EXCLUDE,
|
|
20777
|
+
name: "tsdoc/recommended",
|
|
20778
|
+
plugins: {
|
|
20779
|
+
tsdoc: plugin7
|
|
20780
|
+
},
|
|
20781
|
+
rules: {
|
|
20782
|
+
"tsdoc/syntax": ["error", { type: "recommended" }]
|
|
20783
|
+
}
|
|
20784
|
+
};
|
|
20785
|
+
var recommended_default5 = config5;
|
|
20786
|
+
|
|
20787
|
+
// ../eslint-plugin-tsdoc/src/configs/index.ts
|
|
20788
|
+
var configs6 = {
|
|
20789
|
+
recommended: recommended_default5
|
|
20790
|
+
};
|
|
20791
|
+
|
|
20792
|
+
// ../eslint-plugin-tsdoc/src/index.ts
|
|
20793
|
+
var eslintPlugin3 = {
|
|
20794
|
+
...plugin7,
|
|
20795
|
+
configs: configs6
|
|
20796
|
+
};
|
|
20797
|
+
var src_default3 = eslintPlugin3;
|
|
20798
|
+
plugin7.rules;
|
|
20799
|
+
|
|
20800
|
+
// src/configs/tsdoc.ts
|
|
20747
20801
|
async function tsdoc(options = {}) {
|
|
20748
20802
|
const {
|
|
20749
20803
|
severity = "error",
|
|
@@ -20756,7 +20810,7 @@ async function tsdoc(options = {}) {
|
|
|
20756
20810
|
files,
|
|
20757
20811
|
name: "storm/tsdoc/rules",
|
|
20758
20812
|
plugins: {
|
|
20759
|
-
tsdoc:
|
|
20813
|
+
tsdoc: src_default3
|
|
20760
20814
|
},
|
|
20761
20815
|
rules: {
|
|
20762
20816
|
"tsdoc/syntax": [
|
|
@@ -21303,10 +21357,10 @@ function preset(options, ...userConfigs) {
|
|
|
21303
21357
|
if (stylisticOptions && !("jsx" in stylisticOptions)) {
|
|
21304
21358
|
stylisticOptions.jsx = enableJsx;
|
|
21305
21359
|
}
|
|
21306
|
-
const
|
|
21360
|
+
const configs7 = [];
|
|
21307
21361
|
if (enableGitignore) {
|
|
21308
21362
|
if (typeof enableGitignore !== "boolean") {
|
|
21309
|
-
|
|
21363
|
+
configs7.push(
|
|
21310
21364
|
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
21311
21365
|
r({
|
|
21312
21366
|
name: "storm/gitignore",
|
|
@@ -21315,7 +21369,7 @@ function preset(options, ...userConfigs) {
|
|
|
21315
21369
|
])
|
|
21316
21370
|
);
|
|
21317
21371
|
} else {
|
|
21318
|
-
|
|
21372
|
+
configs7.push(
|
|
21319
21373
|
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
21320
21374
|
r({
|
|
21321
21375
|
name: "storm/gitignore",
|
|
@@ -21325,7 +21379,7 @@ function preset(options, ...userConfigs) {
|
|
|
21325
21379
|
);
|
|
21326
21380
|
}
|
|
21327
21381
|
}
|
|
21328
|
-
|
|
21382
|
+
configs7.push(
|
|
21329
21383
|
ignores(options.ignores),
|
|
21330
21384
|
javascript({
|
|
21331
21385
|
globals,
|
|
@@ -21350,7 +21404,7 @@ function preset(options, ...userConfigs) {
|
|
|
21350
21404
|
}
|
|
21351
21405
|
}
|
|
21352
21406
|
if (enableTypeScript) {
|
|
21353
|
-
|
|
21407
|
+
configs7.push(
|
|
21354
21408
|
typescript({
|
|
21355
21409
|
...typescriptOptions,
|
|
21356
21410
|
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
@@ -21361,7 +21415,7 @@ function preset(options, ...userConfigs) {
|
|
|
21361
21415
|
);
|
|
21362
21416
|
}
|
|
21363
21417
|
if (enableBanner) {
|
|
21364
|
-
|
|
21418
|
+
configs7.push(
|
|
21365
21419
|
banner({
|
|
21366
21420
|
...resolveSubOptions(options, "banner"),
|
|
21367
21421
|
name: name3,
|
|
@@ -21370,16 +21424,16 @@ function preset(options, ...userConfigs) {
|
|
|
21370
21424
|
);
|
|
21371
21425
|
}
|
|
21372
21426
|
if (!stylisticOptions) {
|
|
21373
|
-
|
|
21427
|
+
configs7.push(prettier());
|
|
21374
21428
|
}
|
|
21375
21429
|
if (enableCSpell) {
|
|
21376
|
-
|
|
21430
|
+
configs7.push(cspell(resolveSubOptions(options, "cspell")));
|
|
21377
21431
|
}
|
|
21378
21432
|
if (enableUnicorn) {
|
|
21379
|
-
|
|
21433
|
+
configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
|
|
21380
21434
|
}
|
|
21381
21435
|
if (enableJSDoc) {
|
|
21382
|
-
|
|
21436
|
+
configs7.push(
|
|
21383
21437
|
jsdoc({
|
|
21384
21438
|
...resolveSubOptions(options, "jsdoc"),
|
|
21385
21439
|
overrides: getOverrides(options, "jsdoc")
|
|
@@ -21387,7 +21441,7 @@ function preset(options, ...userConfigs) {
|
|
|
21387
21441
|
);
|
|
21388
21442
|
}
|
|
21389
21443
|
if (enableTSDoc) {
|
|
21390
|
-
|
|
21444
|
+
configs7.push(
|
|
21391
21445
|
tsdoc({
|
|
21392
21446
|
...resolveSubOptions(options, "tsdoc"),
|
|
21393
21447
|
overrides: getOverrides(options, "tsdoc")
|
|
@@ -21395,17 +21449,17 @@ function preset(options, ...userConfigs) {
|
|
|
21395
21449
|
);
|
|
21396
21450
|
}
|
|
21397
21451
|
if (enableJsx) {
|
|
21398
|
-
|
|
21452
|
+
configs7.push(jsx());
|
|
21399
21453
|
}
|
|
21400
21454
|
if (enableZod) {
|
|
21401
|
-
|
|
21455
|
+
configs7.push(
|
|
21402
21456
|
zod({
|
|
21403
21457
|
overrides: getOverrides(options, "zod")
|
|
21404
21458
|
})
|
|
21405
21459
|
);
|
|
21406
21460
|
}
|
|
21407
21461
|
if (stylisticOptions) {
|
|
21408
|
-
|
|
21462
|
+
configs7.push(
|
|
21409
21463
|
stylistic({
|
|
21410
21464
|
...stylisticOptions,
|
|
21411
21465
|
lineEndings: stylisticOptions.lineEndings ?? "unix",
|
|
@@ -21415,10 +21469,10 @@ function preset(options, ...userConfigs) {
|
|
|
21415
21469
|
);
|
|
21416
21470
|
}
|
|
21417
21471
|
if (enableRegexp) {
|
|
21418
|
-
|
|
21472
|
+
configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
|
|
21419
21473
|
}
|
|
21420
21474
|
if (enableTest) {
|
|
21421
|
-
|
|
21475
|
+
configs7.push(
|
|
21422
21476
|
test({
|
|
21423
21477
|
isInEditor,
|
|
21424
21478
|
overrides: getOverrides(options, "test")
|
|
@@ -21426,10 +21480,10 @@ function preset(options, ...userConfigs) {
|
|
|
21426
21480
|
);
|
|
21427
21481
|
}
|
|
21428
21482
|
if (enableGraphQL) {
|
|
21429
|
-
|
|
21483
|
+
configs7.push(graphql(resolveSubOptions(options, "graphql")));
|
|
21430
21484
|
}
|
|
21431
21485
|
if (enableReact) {
|
|
21432
|
-
|
|
21486
|
+
configs7.push(
|
|
21433
21487
|
react({
|
|
21434
21488
|
...typescriptOptions,
|
|
21435
21489
|
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
@@ -21439,7 +21493,7 @@ function preset(options, ...userConfigs) {
|
|
|
21439
21493
|
);
|
|
21440
21494
|
}
|
|
21441
21495
|
if (enableReactNative) {
|
|
21442
|
-
|
|
21496
|
+
configs7.push(
|
|
21443
21497
|
reactNative({
|
|
21444
21498
|
...resolveSubOptions(options, "react-native"),
|
|
21445
21499
|
overrides: getOverrides(options, "react-native")
|
|
@@ -21447,13 +21501,13 @@ function preset(options, ...userConfigs) {
|
|
|
21447
21501
|
);
|
|
21448
21502
|
}
|
|
21449
21503
|
if (enableNext) {
|
|
21450
|
-
|
|
21504
|
+
configs7.push(next(resolveSubOptions(options, "next")));
|
|
21451
21505
|
}
|
|
21452
21506
|
if (enableStorybook) {
|
|
21453
|
-
|
|
21507
|
+
configs7.push(storybook(resolveSubOptions(options, "storybook")));
|
|
21454
21508
|
}
|
|
21455
21509
|
if (enableUnoCSS) {
|
|
21456
|
-
|
|
21510
|
+
configs7.push(
|
|
21457
21511
|
unocss({
|
|
21458
21512
|
...resolveSubOptions(options, "unocss"),
|
|
21459
21513
|
overrides: getOverrides(options, "unocss")
|
|
@@ -21461,7 +21515,7 @@ function preset(options, ...userConfigs) {
|
|
|
21461
21515
|
);
|
|
21462
21516
|
}
|
|
21463
21517
|
if (enableAstro) {
|
|
21464
|
-
|
|
21518
|
+
configs7.push(
|
|
21465
21519
|
astro({
|
|
21466
21520
|
overrides: getOverrides(options, "astro"),
|
|
21467
21521
|
stylistic: stylisticOptions
|
|
@@ -21469,7 +21523,7 @@ function preset(options, ...userConfigs) {
|
|
|
21469
21523
|
);
|
|
21470
21524
|
}
|
|
21471
21525
|
if (options.pnpm ?? true) {
|
|
21472
|
-
|
|
21526
|
+
configs7.push(
|
|
21473
21527
|
pnpm({
|
|
21474
21528
|
overrides: getOverrides(options, "pnpm"),
|
|
21475
21529
|
ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
|
|
@@ -21477,7 +21531,7 @@ function preset(options, ...userConfigs) {
|
|
|
21477
21531
|
);
|
|
21478
21532
|
}
|
|
21479
21533
|
if (options.jsonc ?? true) {
|
|
21480
|
-
|
|
21534
|
+
configs7.push(
|
|
21481
21535
|
jsonc({
|
|
21482
21536
|
overrides: getOverrides(options, "jsonc"),
|
|
21483
21537
|
stylistic: stylisticOptions
|
|
@@ -21485,11 +21539,11 @@ function preset(options, ...userConfigs) {
|
|
|
21485
21539
|
sortTsconfig()
|
|
21486
21540
|
);
|
|
21487
21541
|
if (stylisticOptions) {
|
|
21488
|
-
|
|
21542
|
+
configs7.push(sortPackageJson());
|
|
21489
21543
|
}
|
|
21490
21544
|
}
|
|
21491
21545
|
if (options.yaml ?? true) {
|
|
21492
|
-
|
|
21546
|
+
configs7.push(
|
|
21493
21547
|
yaml({
|
|
21494
21548
|
overrides: getOverrides(options, "yaml"),
|
|
21495
21549
|
stylistic: stylisticOptions
|
|
@@ -21497,7 +21551,7 @@ function preset(options, ...userConfigs) {
|
|
|
21497
21551
|
);
|
|
21498
21552
|
}
|
|
21499
21553
|
if (options.toml ?? true) {
|
|
21500
|
-
|
|
21554
|
+
configs7.push(
|
|
21501
21555
|
toml({
|
|
21502
21556
|
overrides: getOverrides(options, "toml"),
|
|
21503
21557
|
stylistic: stylisticOptions
|
|
@@ -21505,28 +21559,28 @@ function preset(options, ...userConfigs) {
|
|
|
21505
21559
|
);
|
|
21506
21560
|
}
|
|
21507
21561
|
if (options.markdown === true) {
|
|
21508
|
-
|
|
21562
|
+
configs7.push(
|
|
21509
21563
|
markdown({
|
|
21510
21564
|
overrides: getOverrides(options, "markdown")
|
|
21511
21565
|
})
|
|
21512
21566
|
);
|
|
21513
21567
|
}
|
|
21514
21568
|
if (enableMdx) {
|
|
21515
|
-
|
|
21569
|
+
configs7.push(
|
|
21516
21570
|
mdx({
|
|
21517
21571
|
overrides: getOverrides(options, "mdx")
|
|
21518
21572
|
})
|
|
21519
21573
|
);
|
|
21520
21574
|
}
|
|
21521
21575
|
if (options.formatters) {
|
|
21522
|
-
|
|
21576
|
+
configs7.push(
|
|
21523
21577
|
formatters(
|
|
21524
21578
|
options.formatters,
|
|
21525
21579
|
typeof stylisticOptions === "boolean" ? {} : stylisticOptions
|
|
21526
21580
|
)
|
|
21527
21581
|
);
|
|
21528
21582
|
}
|
|
21529
|
-
|
|
21583
|
+
configs7.push(disables());
|
|
21530
21584
|
if ("files" in options) {
|
|
21531
21585
|
throw new Error(
|
|
21532
21586
|
'[@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.'
|
|
@@ -21538,10 +21592,10 @@ function preset(options, ...userConfigs) {
|
|
|
21538
21592
|
}
|
|
21539
21593
|
return acc;
|
|
21540
21594
|
}, {});
|
|
21541
|
-
if (Object.keys(fusedConfig).length)
|
|
21595
|
+
if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
|
|
21542
21596
|
let composer = new eslintFlatConfigUtils.FlatConfigComposer();
|
|
21543
21597
|
composer = composer.append(
|
|
21544
|
-
...
|
|
21598
|
+
...configs7,
|
|
21545
21599
|
...userConfigs
|
|
21546
21600
|
);
|
|
21547
21601
|
if (autoRenamePlugins) {
|