@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.js
CHANGED
|
@@ -1292,10 +1292,10 @@ var require_eslint_plugin_react_native = __commonJS({
|
|
|
1292
1292
|
"no-raw-text": __import___lib_rules_noRawText,
|
|
1293
1293
|
"no-single-element-style-arrays": __import___lib_rules_noSingleElementStyleArrays
|
|
1294
1294
|
};
|
|
1295
|
-
function configureAsError(
|
|
1295
|
+
function configureAsError(rules6) {
|
|
1296
1296
|
const result = {};
|
|
1297
|
-
for (const key in
|
|
1298
|
-
if (!
|
|
1297
|
+
for (const key in rules6) {
|
|
1298
|
+
if (!rules6.hasOwnProperty(key)) {
|
|
1299
1299
|
continue;
|
|
1300
1300
|
}
|
|
1301
1301
|
result["react-native/" + key] = 2;
|
|
@@ -1697,7 +1697,7 @@ var require_lib = __commonJS({
|
|
|
1697
1697
|
defaultTSDocConfiguration.allTsdocMessageIds.forEach((messageId) => {
|
|
1698
1698
|
tsdocMessageIds[messageId] = `${messageId}: {{unformattedText}}`;
|
|
1699
1699
|
});
|
|
1700
|
-
var
|
|
1700
|
+
var plugin8 = {
|
|
1701
1701
|
rules: {
|
|
1702
1702
|
// NOTE: The actual ESLint rule name will be "tsdoc/syntax". It is calculated by deleting "eslint-plugin-"
|
|
1703
1703
|
// from the NPM package name, and then appending this string.
|
|
@@ -1759,9 +1759,9 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
1759
1759
|
if (!tsConfigDir && context.parserOptions && context.parserOptions.tsconfigRootDir) {
|
|
1760
1760
|
tsConfigDir = context.parserOptions.tsconfigRootDir;
|
|
1761
1761
|
}
|
|
1762
|
-
const
|
|
1763
|
-
Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(
|
|
1764
|
-
tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(
|
|
1762
|
+
const config6 = { type: userOptions.type || "recommended", configFile: userOptions.configFile };
|
|
1763
|
+
Debug_1.Debug.log(`Using eslint-plugin-tsdoc config: ${JSON.stringify(config6, void 0, 2)}`);
|
|
1764
|
+
tsdocConfigFile = ConfigCache_1.ConfigCache.getStormConfigFile(config6);
|
|
1765
1765
|
if (!tsdocConfigFile.fileNotFound) {
|
|
1766
1766
|
if (tsdocConfigFile.hasErrors) {
|
|
1767
1767
|
context.report({
|
|
@@ -1866,7 +1866,7 @@ Please ensure "@storm-software/tsdoc" is installed in the workspace root.`,
|
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
1868
1868
|
};
|
|
1869
|
-
module.exports =
|
|
1869
|
+
module.exports = plugin8;
|
|
1870
1870
|
}
|
|
1871
1871
|
});
|
|
1872
1872
|
|
|
@@ -2268,14 +2268,14 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2268
2268
|
};
|
|
2269
2269
|
|
|
2270
2270
|
// ../config-tools/src/logger/console.ts
|
|
2271
|
-
var getLogFn = (logLevel = LogLevel.INFO,
|
|
2271
|
+
var getLogFn = (logLevel = LogLevel.INFO, config6 = {}, options = {}) => {
|
|
2272
2272
|
const {
|
|
2273
2273
|
chalk: _chalk = getChalk(),
|
|
2274
2274
|
fullDateTime = false,
|
|
2275
2275
|
hideDateTime = false
|
|
2276
2276
|
} = options;
|
|
2277
|
-
const colors = !
|
|
2278
|
-
const configLogLevel =
|
|
2277
|
+
const colors = !config6.colors?.dark && !config6.colors?.["base"] && !config6.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config6.colors?.dark && typeof config6.colors.dark === "string" ? config6.colors : config6.colors?.["base"]?.dark && typeof config6.colors["base"].dark === "string" ? config6.colors["base"].dark : config6.colors?.["base"] ? config6.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
2278
|
+
const configLogLevel = config6.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
2279
2279
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
2280
2280
|
return (_) => {
|
|
2281
2281
|
};
|
|
@@ -2378,8 +2378,8 @@ ${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.
|
|
|
2378
2378
|
);
|
|
2379
2379
|
};
|
|
2380
2380
|
};
|
|
2381
|
-
var writeWarning = (message2,
|
|
2382
|
-
var writeTrace = (message2,
|
|
2381
|
+
var writeWarning = (message2, config6) => getLogFn(LogLevel.WARN, config6)(message2);
|
|
2382
|
+
var writeTrace = (message2, config6) => getLogFn(LogLevel.TRACE, config6)(message2);
|
|
2383
2383
|
var MAX_DEPTH = 10;
|
|
2384
2384
|
var formatLogMessage = (message2, options = {}, depth2 = 0) => {
|
|
2385
2385
|
if (depth2 > MAX_DEPTH) {
|
|
@@ -2884,8 +2884,8 @@ function prefixIssues(path23, issues) {
|
|
|
2884
2884
|
function unwrapMessage(message2) {
|
|
2885
2885
|
return typeof message2 === "string" ? message2 : message2?.message;
|
|
2886
2886
|
}
|
|
2887
|
-
function finalizeIssue(iss, ctx,
|
|
2888
|
-
const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
2887
|
+
function finalizeIssue(iss, ctx, config6) {
|
|
2888
|
+
const message2 = iss.message ? iss.message : unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config6.customError?.(iss)) ?? unwrapMessage(config6.localeError?.(iss)) ?? "Invalid input";
|
|
2889
2889
|
const { inst: _inst, continue: _continue, input: _input, ...rest } = iss;
|
|
2890
2890
|
rest.path ?? (rest.path = []);
|
|
2891
2891
|
rest.message = message2;
|
|
@@ -4755,40 +4755,40 @@ async function getPackageJsonConfig(root) {
|
|
|
4755
4755
|
support
|
|
4756
4756
|
};
|
|
4757
4757
|
}
|
|
4758
|
-
function applyDefaultConfig(
|
|
4759
|
-
if (!
|
|
4760
|
-
|
|
4758
|
+
function applyDefaultConfig(config6) {
|
|
4759
|
+
if (!config6.support && config6.contact) {
|
|
4760
|
+
config6.support = config6.contact;
|
|
4761
4761
|
}
|
|
4762
|
-
if (!
|
|
4763
|
-
|
|
4762
|
+
if (!config6.contact && config6.support) {
|
|
4763
|
+
config6.contact = config6.support;
|
|
4764
4764
|
}
|
|
4765
|
-
if (
|
|
4766
|
-
if (!
|
|
4767
|
-
|
|
4765
|
+
if (config6.homepage) {
|
|
4766
|
+
if (!config6.docs) {
|
|
4767
|
+
config6.docs = `${config6.homepage}/docs`;
|
|
4768
4768
|
}
|
|
4769
|
-
if (!
|
|
4770
|
-
|
|
4769
|
+
if (!config6.license) {
|
|
4770
|
+
config6.license = `${config6.homepage}/license`;
|
|
4771
4771
|
}
|
|
4772
|
-
if (!
|
|
4773
|
-
|
|
4772
|
+
if (!config6.support) {
|
|
4773
|
+
config6.support = `${config6.homepage}/support`;
|
|
4774
4774
|
}
|
|
4775
|
-
if (!
|
|
4776
|
-
|
|
4775
|
+
if (!config6.contact) {
|
|
4776
|
+
config6.contact = `${config6.homepage}/contact`;
|
|
4777
4777
|
}
|
|
4778
|
-
if (!
|
|
4779
|
-
|
|
4780
|
-
if (
|
|
4781
|
-
|
|
4778
|
+
if (!config6.error?.codesFile || !config6?.error?.url) {
|
|
4779
|
+
config6.error ??= { codesFile: STORM_DEFAULT_ERROR_CODES_FILE };
|
|
4780
|
+
if (config6.homepage) {
|
|
4781
|
+
config6.error.url ??= `${config6.homepage}/errors`;
|
|
4782
4782
|
}
|
|
4783
4783
|
}
|
|
4784
4784
|
}
|
|
4785
|
-
return
|
|
4785
|
+
return config6;
|
|
4786
4786
|
}
|
|
4787
4787
|
|
|
4788
4788
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
4789
4789
|
var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
4790
4790
|
const workspacePath = filePath || findWorkspaceRoot2(filePath);
|
|
4791
|
-
const
|
|
4791
|
+
const configs7 = await Promise.all([
|
|
4792
4792
|
loadConfig({
|
|
4793
4793
|
cwd: workspacePath,
|
|
4794
4794
|
packageJson: true,
|
|
@@ -4819,14 +4819,14 @@ var getConfigFileByName = async (fileName, filePath, options = {}) => {
|
|
|
4819
4819
|
...options
|
|
4820
4820
|
})
|
|
4821
4821
|
]);
|
|
4822
|
-
return defu(
|
|
4822
|
+
return defu(configs7[0] ?? {}, configs7[1] ?? {});
|
|
4823
4823
|
};
|
|
4824
4824
|
var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
4825
4825
|
const workspacePath = filePath ? filePath : findWorkspaceRoot2(filePath);
|
|
4826
4826
|
const result = await getConfigFileByName("storm-workspace", workspacePath);
|
|
4827
|
-
let
|
|
4827
|
+
let config6 = result.config;
|
|
4828
4828
|
const configFile = result.configFile;
|
|
4829
|
-
if (
|
|
4829
|
+
if (config6 && configFile && Object.keys(config6).length > 0 && !config6.skipConfigLogging) {
|
|
4830
4830
|
writeTrace(
|
|
4831
4831
|
`Found Storm configuration file "${configFile.includes(`${workspacePath}/`) ? configFile.replace(`${workspacePath}/`, "") : configFile}" at "${workspacePath}"`,
|
|
4832
4832
|
{
|
|
@@ -4842,7 +4842,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4842
4842
|
);
|
|
4843
4843
|
for (const result2 of results) {
|
|
4844
4844
|
if (result2?.config && result2?.configFile && Object.keys(result2.config).length > 0) {
|
|
4845
|
-
if (!
|
|
4845
|
+
if (!config6.skipConfigLogging && !result2.config.skipConfigLogging) {
|
|
4846
4846
|
writeTrace(
|
|
4847
4847
|
`Found alternative configuration file "${result2.configFile.includes(`${workspacePath}/`) ? result2.configFile.replace(`${workspacePath}/`, "") : result2.configFile}" at "${workspacePath}"`,
|
|
4848
4848
|
{
|
|
@@ -4850,15 +4850,15 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
|
|
|
4850
4850
|
}
|
|
4851
4851
|
);
|
|
4852
4852
|
}
|
|
4853
|
-
|
|
4853
|
+
config6 = defu(result2.config ?? {}, config6 ?? {});
|
|
4854
4854
|
}
|
|
4855
4855
|
}
|
|
4856
4856
|
}
|
|
4857
|
-
if (!
|
|
4857
|
+
if (!config6 || Object.keys(config6).length === 0) {
|
|
4858
4858
|
return void 0;
|
|
4859
4859
|
}
|
|
4860
|
-
|
|
4861
|
-
return
|
|
4860
|
+
config6.configFile = configFile;
|
|
4861
|
+
return config6;
|
|
4862
4862
|
};
|
|
4863
4863
|
|
|
4864
4864
|
// ../config-tools/src/create-storm-config.ts
|
|
@@ -4868,7 +4868,7 @@ init_esm_shims();
|
|
|
4868
4868
|
init_esm_shims();
|
|
4869
4869
|
var getConfigEnv = () => {
|
|
4870
4870
|
const prefix = "STORM_";
|
|
4871
|
-
let
|
|
4871
|
+
let config6 = {
|
|
4872
4872
|
extends: process.env[`${prefix}EXTENDS`] || void 0,
|
|
4873
4873
|
name: process.env[`${prefix}NAME`] || void 0,
|
|
4874
4874
|
variant: process.env[`${prefix}VARIANT`] || void 0,
|
|
@@ -4957,38 +4957,38 @@ var getConfigEnv = () => {
|
|
|
4957
4957
|
(colorKey) => !envKey.startsWith(`${prefix}COLOR_LIGHT_${colorKey}`) && !envKey.startsWith(`${prefix}COLOR_DARK_${colorKey}`)
|
|
4958
4958
|
)
|
|
4959
4959
|
);
|
|
4960
|
-
|
|
4960
|
+
config6.colors = themeNames.length > 0 ? themeNames.reduce(
|
|
4961
4961
|
(ret, themeName) => {
|
|
4962
4962
|
ret[themeName] = getThemeColorsEnv(prefix, themeName);
|
|
4963
4963
|
return ret;
|
|
4964
4964
|
},
|
|
4965
4965
|
{}
|
|
4966
4966
|
) : getThemeColorsEnv(prefix);
|
|
4967
|
-
if (
|
|
4968
|
-
if (
|
|
4969
|
-
|
|
4967
|
+
if (config6.docs === STORM_DEFAULT_DOCS) {
|
|
4968
|
+
if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
4969
|
+
config6.docs = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/docs`;
|
|
4970
4970
|
} else {
|
|
4971
|
-
|
|
4971
|
+
config6.docs = `${config6.homepage}/docs`;
|
|
4972
4972
|
}
|
|
4973
4973
|
}
|
|
4974
|
-
if (
|
|
4975
|
-
if (
|
|
4976
|
-
|
|
4974
|
+
if (config6.licensing === STORM_DEFAULT_LICENSING) {
|
|
4975
|
+
if (config6.homepage === STORM_DEFAULT_HOMEPAGE) {
|
|
4976
|
+
config6.licensing = `${STORM_DEFAULT_HOMEPAGE}/projects/${config6.name}/licensing`;
|
|
4977
4977
|
} else {
|
|
4978
|
-
|
|
4978
|
+
config6.licensing = `${config6.homepage}/docs`;
|
|
4979
4979
|
}
|
|
4980
4980
|
}
|
|
4981
4981
|
const serializedConfig = process.env[`${prefix}WORKSPACE_CONFIG`];
|
|
4982
4982
|
if (serializedConfig) {
|
|
4983
4983
|
const parsed = JSON.parse(serializedConfig);
|
|
4984
|
-
|
|
4985
|
-
...
|
|
4984
|
+
config6 = {
|
|
4985
|
+
...config6,
|
|
4986
4986
|
...parsed,
|
|
4987
|
-
colors: { ...
|
|
4988
|
-
extensions: { ...
|
|
4987
|
+
colors: { ...config6.colors, ...parsed.colors },
|
|
4988
|
+
extensions: { ...config6.extensions, ...parsed.extensions }
|
|
4989
4989
|
};
|
|
4990
4990
|
}
|
|
4991
|
-
return
|
|
4991
|
+
return config6;
|
|
4992
4992
|
};
|
|
4993
4993
|
var getThemeColorsEnv = (prefix, theme) => {
|
|
4994
4994
|
const themeName = `COLOR_${theme && theme !== "base" ? `${theme}_` : ""}`.toUpperCase();
|
|
@@ -5093,360 +5093,360 @@ var setExtensionEnv = (extensionName, extension) => {
|
|
|
5093
5093
|
}
|
|
5094
5094
|
}
|
|
5095
5095
|
};
|
|
5096
|
-
var setConfigEnv = (
|
|
5096
|
+
var setConfigEnv = (config6) => {
|
|
5097
5097
|
const prefix = "STORM_";
|
|
5098
|
-
if (
|
|
5099
|
-
process.env[`${prefix}EXTENDS`] = Array.isArray(
|
|
5098
|
+
if (config6.extends) {
|
|
5099
|
+
process.env[`${prefix}EXTENDS`] = Array.isArray(config6.extends) ? JSON.stringify(config6.extends) : config6.extends;
|
|
5100
5100
|
}
|
|
5101
|
-
if (
|
|
5102
|
-
process.env[`${prefix}NAME`] =
|
|
5101
|
+
if (config6.name) {
|
|
5102
|
+
process.env[`${prefix}NAME`] = config6.name;
|
|
5103
5103
|
}
|
|
5104
|
-
if (
|
|
5105
|
-
process.env[`${prefix}VARIANT`] =
|
|
5104
|
+
if (config6.variant) {
|
|
5105
|
+
process.env[`${prefix}VARIANT`] = config6.variant;
|
|
5106
5106
|
}
|
|
5107
|
-
if (
|
|
5108
|
-
process.env[`${prefix}NAMESPACE`] =
|
|
5107
|
+
if (config6.namespace) {
|
|
5108
|
+
process.env[`${prefix}NAMESPACE`] = config6.namespace;
|
|
5109
5109
|
}
|
|
5110
|
-
if (
|
|
5111
|
-
process.env[`${prefix}OWNER`] =
|
|
5110
|
+
if (config6.owner) {
|
|
5111
|
+
process.env[`${prefix}OWNER`] = config6.owner;
|
|
5112
5112
|
}
|
|
5113
|
-
if (
|
|
5114
|
-
process.env[`${prefix}BOT_NAME`] =
|
|
5115
|
-
process.env[`${prefix}BOT_EMAIL`] =
|
|
5113
|
+
if (config6.bot) {
|
|
5114
|
+
process.env[`${prefix}BOT_NAME`] = config6.bot.name;
|
|
5115
|
+
process.env[`${prefix}BOT_EMAIL`] = config6.bot.email;
|
|
5116
5116
|
}
|
|
5117
|
-
if (
|
|
5118
|
-
process.env[`${prefix}ERROR_CODES_FILE`] =
|
|
5119
|
-
process.env[`${prefix}ERROR_URL`] =
|
|
5117
|
+
if (config6.error) {
|
|
5118
|
+
process.env[`${prefix}ERROR_CODES_FILE`] = config6.error.codesFile;
|
|
5119
|
+
process.env[`${prefix}ERROR_URL`] = config6.error.url;
|
|
5120
5120
|
}
|
|
5121
|
-
if (
|
|
5122
|
-
if (
|
|
5123
|
-
if (typeof
|
|
5124
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
5125
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
5121
|
+
if (config6.release) {
|
|
5122
|
+
if (config6.release.banner) {
|
|
5123
|
+
if (typeof config6.release.banner === "string") {
|
|
5124
|
+
process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner;
|
|
5125
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner;
|
|
5126
5126
|
} else {
|
|
5127
|
-
process.env[`${prefix}RELEASE_BANNER`] =
|
|
5128
|
-
process.env[`${prefix}RELEASE_BANNER_URL`] =
|
|
5129
|
-
process.env[`${prefix}RELEASE_BANNER_ALT`] =
|
|
5127
|
+
process.env[`${prefix}RELEASE_BANNER`] = config6.release.banner.url;
|
|
5128
|
+
process.env[`${prefix}RELEASE_BANNER_URL`] = config6.release.banner.url;
|
|
5129
|
+
process.env[`${prefix}RELEASE_BANNER_ALT`] = config6.release.banner.alt;
|
|
5130
5130
|
}
|
|
5131
5131
|
}
|
|
5132
|
-
process.env[`${prefix}RELEASE_HEADER`] =
|
|
5133
|
-
process.env[`${prefix}RELEASE_FOOTER`] =
|
|
5132
|
+
process.env[`${prefix}RELEASE_HEADER`] = config6.release.header;
|
|
5133
|
+
process.env[`${prefix}RELEASE_FOOTER`] = config6.release.footer;
|
|
5134
5134
|
}
|
|
5135
|
-
if (
|
|
5136
|
-
if (
|
|
5137
|
-
process.env[`${prefix}SOCIAL_TWITTER`] =
|
|
5135
|
+
if (config6.socials) {
|
|
5136
|
+
if (config6.socials.twitter) {
|
|
5137
|
+
process.env[`${prefix}SOCIAL_TWITTER`] = config6.socials.twitter;
|
|
5138
5138
|
}
|
|
5139
|
-
if (
|
|
5140
|
-
process.env[`${prefix}SOCIAL_DISCORD`] =
|
|
5139
|
+
if (config6.socials.discord) {
|
|
5140
|
+
process.env[`${prefix}SOCIAL_DISCORD`] = config6.socials.discord;
|
|
5141
5141
|
}
|
|
5142
|
-
if (
|
|
5143
|
-
process.env[`${prefix}SOCIAL_TELEGRAM`] =
|
|
5142
|
+
if (config6.socials.telegram) {
|
|
5143
|
+
process.env[`${prefix}SOCIAL_TELEGRAM`] = config6.socials.telegram;
|
|
5144
5144
|
}
|
|
5145
|
-
if (
|
|
5146
|
-
process.env[`${prefix}SOCIAL_SLACK`] =
|
|
5145
|
+
if (config6.socials.slack) {
|
|
5146
|
+
process.env[`${prefix}SOCIAL_SLACK`] = config6.socials.slack;
|
|
5147
5147
|
}
|
|
5148
|
-
if (
|
|
5149
|
-
process.env[`${prefix}SOCIAL_MEDIUM`] =
|
|
5148
|
+
if (config6.socials.medium) {
|
|
5149
|
+
process.env[`${prefix}SOCIAL_MEDIUM`] = config6.socials.medium;
|
|
5150
5150
|
}
|
|
5151
|
-
if (
|
|
5152
|
-
process.env[`${prefix}SOCIAL_GITHUB`] =
|
|
5151
|
+
if (config6.socials.github) {
|
|
5152
|
+
process.env[`${prefix}SOCIAL_GITHUB`] = config6.socials.github;
|
|
5153
5153
|
}
|
|
5154
5154
|
}
|
|
5155
|
-
if (
|
|
5156
|
-
if (typeof
|
|
5157
|
-
process.env[`${prefix}ORG`] =
|
|
5158
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
5159
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
5160
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
5155
|
+
if (config6.organization) {
|
|
5156
|
+
if (typeof config6.organization === "string") {
|
|
5157
|
+
process.env[`${prefix}ORG`] = config6.organization;
|
|
5158
|
+
process.env[`${prefix}ORG_NAME`] = config6.organization;
|
|
5159
|
+
process.env[`${prefix}ORGANIZATION`] = config6.organization;
|
|
5160
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization;
|
|
5161
5161
|
} else {
|
|
5162
|
-
process.env[`${prefix}ORG`] =
|
|
5163
|
-
process.env[`${prefix}ORG_NAME`] =
|
|
5164
|
-
process.env[`${prefix}ORGANIZATION`] =
|
|
5165
|
-
process.env[`${prefix}ORGANIZATION_NAME`] =
|
|
5166
|
-
if (
|
|
5167
|
-
process.env[`${prefix}ORG_URL`] =
|
|
5168
|
-
process.env[`${prefix}ORGANIZATION_URL`] =
|
|
5162
|
+
process.env[`${prefix}ORG`] = config6.organization.name;
|
|
5163
|
+
process.env[`${prefix}ORG_NAME`] = config6.organization.name;
|
|
5164
|
+
process.env[`${prefix}ORGANIZATION`] = config6.organization.name;
|
|
5165
|
+
process.env[`${prefix}ORGANIZATION_NAME`] = config6.organization.name;
|
|
5166
|
+
if (config6.organization.url) {
|
|
5167
|
+
process.env[`${prefix}ORG_URL`] = config6.organization.url;
|
|
5168
|
+
process.env[`${prefix}ORGANIZATION_URL`] = config6.organization.url;
|
|
5169
5169
|
}
|
|
5170
|
-
if (
|
|
5171
|
-
process.env[`${prefix}ORG_DESCRIPTION`] =
|
|
5172
|
-
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] =
|
|
5170
|
+
if (config6.organization.description) {
|
|
5171
|
+
process.env[`${prefix}ORG_DESCRIPTION`] = config6.organization.description;
|
|
5172
|
+
process.env[`${prefix}ORGANIZATION_DESCRIPTION`] = config6.organization.description;
|
|
5173
5173
|
}
|
|
5174
|
-
if (
|
|
5175
|
-
process.env[`${prefix}ORG_LOGO`] =
|
|
5176
|
-
process.env[`${prefix}ORGANIZATION_LOGO`] =
|
|
5174
|
+
if (config6.organization.logo) {
|
|
5175
|
+
process.env[`${prefix}ORG_LOGO`] = config6.organization.logo;
|
|
5176
|
+
process.env[`${prefix}ORGANIZATION_LOGO`] = config6.organization.logo;
|
|
5177
5177
|
}
|
|
5178
|
-
if (
|
|
5179
|
-
process.env[`${prefix}ORG_ICON`] =
|
|
5180
|
-
process.env[`${prefix}ORGANIZATION_ICON`] =
|
|
5178
|
+
if (config6.organization.icon) {
|
|
5179
|
+
process.env[`${prefix}ORG_ICON`] = config6.organization.icon;
|
|
5180
|
+
process.env[`${prefix}ORGANIZATION_ICON`] = config6.organization.icon;
|
|
5181
5181
|
}
|
|
5182
5182
|
}
|
|
5183
5183
|
}
|
|
5184
|
-
if (
|
|
5185
|
-
process.env[`${prefix}PACKAGE_MANAGER`] =
|
|
5184
|
+
if (config6.packageManager) {
|
|
5185
|
+
process.env[`${prefix}PACKAGE_MANAGER`] = config6.packageManager;
|
|
5186
5186
|
}
|
|
5187
|
-
if (
|
|
5188
|
-
process.env[`${prefix}LICENSE`] =
|
|
5187
|
+
if (config6.license) {
|
|
5188
|
+
process.env[`${prefix}LICENSE`] = config6.license;
|
|
5189
5189
|
}
|
|
5190
|
-
if (
|
|
5191
|
-
process.env[`${prefix}HOMEPAGE`] =
|
|
5190
|
+
if (config6.homepage) {
|
|
5191
|
+
process.env[`${prefix}HOMEPAGE`] = config6.homepage;
|
|
5192
5192
|
}
|
|
5193
|
-
if (
|
|
5194
|
-
process.env[`${prefix}DOCS`] =
|
|
5193
|
+
if (config6.docs) {
|
|
5194
|
+
process.env[`${prefix}DOCS`] = config6.docs;
|
|
5195
5195
|
}
|
|
5196
|
-
if (
|
|
5197
|
-
process.env[`${prefix}PORTAL`] =
|
|
5196
|
+
if (config6.portal) {
|
|
5197
|
+
process.env[`${prefix}PORTAL`] = config6.portal;
|
|
5198
5198
|
}
|
|
5199
|
-
if (
|
|
5200
|
-
process.env[`${prefix}LICENSING`] =
|
|
5199
|
+
if (config6.licensing) {
|
|
5200
|
+
process.env[`${prefix}LICENSING`] = config6.licensing;
|
|
5201
5201
|
}
|
|
5202
|
-
if (
|
|
5203
|
-
process.env[`${prefix}CONTACT`] =
|
|
5202
|
+
if (config6.contact) {
|
|
5203
|
+
process.env[`${prefix}CONTACT`] = config6.contact;
|
|
5204
5204
|
}
|
|
5205
|
-
if (
|
|
5206
|
-
process.env[`${prefix}SUPPORT`] =
|
|
5205
|
+
if (config6.support) {
|
|
5206
|
+
process.env[`${prefix}SUPPORT`] = config6.support;
|
|
5207
5207
|
}
|
|
5208
|
-
if (
|
|
5209
|
-
process.env[`${prefix}TIMEZONE`] =
|
|
5210
|
-
process.env.TZ =
|
|
5211
|
-
process.env.DEFAULT_TIMEZONE =
|
|
5212
|
-
process.env.TIMEZONE =
|
|
5208
|
+
if (config6.timezone) {
|
|
5209
|
+
process.env[`${prefix}TIMEZONE`] = config6.timezone;
|
|
5210
|
+
process.env.TZ = config6.timezone;
|
|
5211
|
+
process.env.DEFAULT_TIMEZONE = config6.timezone;
|
|
5212
|
+
process.env.TIMEZONE = config6.timezone;
|
|
5213
5213
|
}
|
|
5214
|
-
if (
|
|
5215
|
-
process.env[`${prefix}LOCALE`] =
|
|
5216
|
-
process.env.DEFAULT_LOCALE =
|
|
5217
|
-
process.env.LOCALE =
|
|
5218
|
-
process.env.LANG =
|
|
5214
|
+
if (config6.locale) {
|
|
5215
|
+
process.env[`${prefix}LOCALE`] = config6.locale;
|
|
5216
|
+
process.env.DEFAULT_LOCALE = config6.locale;
|
|
5217
|
+
process.env.LOCALE = config6.locale;
|
|
5218
|
+
process.env.LANG = config6.locale ? `${config6.locale.replaceAll("-", "_")}.UTF-8` : "en_US.UTF-8";
|
|
5219
5219
|
}
|
|
5220
|
-
if (
|
|
5220
|
+
if (config6.configFile) {
|
|
5221
5221
|
process.env[`${prefix}WORKSPACE_CONFIG_FILE`] = correctPaths(
|
|
5222
|
-
|
|
5222
|
+
config6.configFile
|
|
5223
5223
|
);
|
|
5224
5224
|
}
|
|
5225
|
-
if (
|
|
5226
|
-
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(
|
|
5227
|
-
process.env.NX_WORKSPACE_ROOT = correctPaths(
|
|
5228
|
-
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(
|
|
5225
|
+
if (config6.workspaceRoot) {
|
|
5226
|
+
process.env[`${prefix}WORKSPACE_ROOT`] = correctPaths(config6.workspaceRoot);
|
|
5227
|
+
process.env.NX_WORKSPACE_ROOT = correctPaths(config6.workspaceRoot);
|
|
5228
|
+
process.env.NX_WORKSPACE_ROOT_PATH = correctPaths(config6.workspaceRoot);
|
|
5229
5229
|
}
|
|
5230
|
-
if (
|
|
5231
|
-
if (!
|
|
5230
|
+
if (config6.directories) {
|
|
5231
|
+
if (!config6.skipCache && config6.directories.cache) {
|
|
5232
5232
|
process.env[`${prefix}CACHE_DIR`] = correctPaths(
|
|
5233
|
-
|
|
5233
|
+
config6.directories.cache
|
|
5234
5234
|
);
|
|
5235
5235
|
process.env[`${prefix}CACHE_DIRECTORY`] = process.env[`${prefix}CACHE_DIR`];
|
|
5236
5236
|
}
|
|
5237
|
-
if (
|
|
5238
|
-
process.env[`${prefix}DATA_DIR`] = correctPaths(
|
|
5237
|
+
if (config6.directories.data) {
|
|
5238
|
+
process.env[`${prefix}DATA_DIR`] = correctPaths(config6.directories.data);
|
|
5239
5239
|
process.env[`${prefix}DATA_DIRECTORY`] = process.env[`${prefix}DATA_DIR`];
|
|
5240
5240
|
}
|
|
5241
|
-
if (
|
|
5241
|
+
if (config6.directories.config) {
|
|
5242
5242
|
process.env[`${prefix}CONFIG_DIR`] = correctPaths(
|
|
5243
|
-
|
|
5243
|
+
config6.directories.config
|
|
5244
5244
|
);
|
|
5245
5245
|
process.env[`${prefix}CONFIG_DIRECTORY`] = process.env[`${prefix}CONFIG_DIR`];
|
|
5246
5246
|
}
|
|
5247
|
-
if (
|
|
5248
|
-
process.env[`${prefix}TEMP_DIR`] = correctPaths(
|
|
5247
|
+
if (config6.directories.temp) {
|
|
5248
|
+
process.env[`${prefix}TEMP_DIR`] = correctPaths(config6.directories.temp);
|
|
5249
5249
|
process.env[`${prefix}TEMP_DIRECTORY`] = process.env[`${prefix}TEMP_DIR`];
|
|
5250
5250
|
}
|
|
5251
|
-
if (
|
|
5252
|
-
process.env[`${prefix}LOG_DIR`] = correctPaths(
|
|
5251
|
+
if (config6.directories.log) {
|
|
5252
|
+
process.env[`${prefix}LOG_DIR`] = correctPaths(config6.directories.log);
|
|
5253
5253
|
process.env[`${prefix}LOG_DIRECTORY`] = process.env[`${prefix}LOG_DIR`];
|
|
5254
5254
|
}
|
|
5255
|
-
if (
|
|
5255
|
+
if (config6.directories.build) {
|
|
5256
5256
|
process.env[`${prefix}BUILD_DIR`] = correctPaths(
|
|
5257
|
-
|
|
5257
|
+
config6.directories.build
|
|
5258
5258
|
);
|
|
5259
5259
|
process.env[`${prefix}BUILD_DIRECTORY`] = process.env[`${prefix}BUILD_DIR`];
|
|
5260
5260
|
}
|
|
5261
5261
|
}
|
|
5262
|
-
if (
|
|
5263
|
-
process.env[`${prefix}SKIP_CACHE`] = String(
|
|
5264
|
-
if (
|
|
5265
|
-
process.env.NX_SKIP_NX_CACHE ??= String(
|
|
5266
|
-
process.env.NX_CACHE_PROJECT_GRAPH ??= String(
|
|
5262
|
+
if (config6.skipCache !== void 0) {
|
|
5263
|
+
process.env[`${prefix}SKIP_CACHE`] = String(config6.skipCache);
|
|
5264
|
+
if (config6.skipCache) {
|
|
5265
|
+
process.env.NX_SKIP_NX_CACHE ??= String(config6.skipCache);
|
|
5266
|
+
process.env.NX_CACHE_PROJECT_GRAPH ??= String(config6.skipCache);
|
|
5267
5267
|
}
|
|
5268
5268
|
}
|
|
5269
|
-
if (
|
|
5270
|
-
process.env[`${prefix}MODE`] =
|
|
5271
|
-
process.env.NODE_ENV =
|
|
5272
|
-
process.env.ENVIRONMENT =
|
|
5269
|
+
if (config6.mode) {
|
|
5270
|
+
process.env[`${prefix}MODE`] = config6.mode;
|
|
5271
|
+
process.env.NODE_ENV = config6.mode;
|
|
5272
|
+
process.env.ENVIRONMENT = config6.mode;
|
|
5273
5273
|
}
|
|
5274
|
-
if (
|
|
5275
|
-
for (const key of Object.keys(
|
|
5276
|
-
setThemeColorsEnv(`${prefix}COLOR_${key}_`,
|
|
5274
|
+
if (config6.colors?.base?.light || config6.colors?.base?.dark) {
|
|
5275
|
+
for (const key of Object.keys(config6.colors)) {
|
|
5276
|
+
setThemeColorsEnv(`${prefix}COLOR_${key}_`, config6.colors[key]);
|
|
5277
5277
|
}
|
|
5278
5278
|
} else {
|
|
5279
5279
|
setThemeColorsEnv(
|
|
5280
5280
|
`${prefix}COLOR_`,
|
|
5281
|
-
|
|
5281
|
+
config6.colors
|
|
5282
5282
|
);
|
|
5283
5283
|
}
|
|
5284
|
-
if (
|
|
5285
|
-
process.env[`${prefix}REPOSITORY`] =
|
|
5284
|
+
if (config6.repository) {
|
|
5285
|
+
process.env[`${prefix}REPOSITORY`] = config6.repository;
|
|
5286
5286
|
}
|
|
5287
|
-
if (
|
|
5288
|
-
process.env[`${prefix}BRANCH`] =
|
|
5287
|
+
if (config6.branch) {
|
|
5288
|
+
process.env[`${prefix}BRANCH`] = config6.branch;
|
|
5289
5289
|
}
|
|
5290
|
-
if (
|
|
5291
|
-
process.env[`${prefix}PRE_ID`] = String(
|
|
5290
|
+
if (config6.preid) {
|
|
5291
|
+
process.env[`${prefix}PRE_ID`] = String(config6.preid);
|
|
5292
5292
|
}
|
|
5293
|
-
if (
|
|
5294
|
-
if (
|
|
5295
|
-
process.env[`${prefix}REGISTRY_GITHUB`] = String(
|
|
5293
|
+
if (config6.registry) {
|
|
5294
|
+
if (config6.registry.github) {
|
|
5295
|
+
process.env[`${prefix}REGISTRY_GITHUB`] = String(config6.registry.github);
|
|
5296
5296
|
}
|
|
5297
|
-
if (
|
|
5298
|
-
process.env[`${prefix}REGISTRY_NPM`] = String(
|
|
5297
|
+
if (config6.registry.npm) {
|
|
5298
|
+
process.env[`${prefix}REGISTRY_NPM`] = String(config6.registry.npm);
|
|
5299
5299
|
}
|
|
5300
|
-
if (
|
|
5301
|
-
process.env[`${prefix}REGISTRY_CARGO`] = String(
|
|
5300
|
+
if (config6.registry.cargo) {
|
|
5301
|
+
process.env[`${prefix}REGISTRY_CARGO`] = String(config6.registry.cargo);
|
|
5302
5302
|
}
|
|
5303
|
-
if (
|
|
5303
|
+
if (config6.registry.cyclone) {
|
|
5304
5304
|
process.env[`${prefix}REGISTRY_CYCLONE`] = String(
|
|
5305
|
-
|
|
5305
|
+
config6.registry.cyclone
|
|
5306
5306
|
);
|
|
5307
5307
|
}
|
|
5308
|
-
if (
|
|
5308
|
+
if (config6.registry.container) {
|
|
5309
5309
|
process.env[`${prefix}REGISTRY_CONTAINER`] = String(
|
|
5310
|
-
|
|
5310
|
+
config6.registry.container
|
|
5311
5311
|
);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
|
-
if (
|
|
5315
|
-
process.env[`${prefix}LOG_LEVEL`] = String(
|
|
5316
|
-
process.env.LOG_LEVEL = String(
|
|
5314
|
+
if (config6.logLevel) {
|
|
5315
|
+
process.env[`${prefix}LOG_LEVEL`] = String(config6.logLevel);
|
|
5316
|
+
process.env.LOG_LEVEL = String(config6.logLevel);
|
|
5317
5317
|
process.env.NX_VERBOSE_LOGGING = String(
|
|
5318
|
-
getLogLevel(
|
|
5318
|
+
getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? true : false
|
|
5319
5319
|
);
|
|
5320
|
-
process.env.RUST_BACKTRACE = getLogLevel(
|
|
5320
|
+
process.env.RUST_BACKTRACE = getLogLevel(config6.logLevel) >= LogLevel.DEBUG ? "full" : "none";
|
|
5321
5321
|
}
|
|
5322
|
-
if (
|
|
5322
|
+
if (config6.skipConfigLogging !== void 0) {
|
|
5323
5323
|
process.env[`${prefix}SKIP_CONFIG_LOGGING`] = String(
|
|
5324
|
-
|
|
5324
|
+
config6.skipConfigLogging
|
|
5325
5325
|
);
|
|
5326
5326
|
}
|
|
5327
|
-
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(
|
|
5328
|
-
for (const key of Object.keys(
|
|
5329
|
-
if (
|
|
5330
|
-
setExtensionEnv(key,
|
|
5327
|
+
process.env[`${prefix}WORKSPACE_CONFIG`] = JSON.stringify(config6);
|
|
5328
|
+
for (const key of Object.keys(config6.extensions ?? {})) {
|
|
5329
|
+
if (config6.extensions[key] && Object.keys(config6.extensions[key])) {
|
|
5330
|
+
setExtensionEnv(key, config6.extensions[key]);
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
5333
|
};
|
|
5334
|
-
var setThemeColorsEnv = (prefix,
|
|
5335
|
-
return
|
|
5334
|
+
var setThemeColorsEnv = (prefix, config6) => {
|
|
5335
|
+
return config6?.light?.brand || config6?.dark?.brand ? setMultiThemeColorsEnv(prefix, config6) : setSingleThemeColorsEnv(prefix, config6);
|
|
5336
5336
|
};
|
|
5337
|
-
var setSingleThemeColorsEnv = (prefix,
|
|
5338
|
-
if (
|
|
5339
|
-
process.env[`${prefix}DARK`] =
|
|
5337
|
+
var setSingleThemeColorsEnv = (prefix, config6) => {
|
|
5338
|
+
if (config6.dark) {
|
|
5339
|
+
process.env[`${prefix}DARK`] = config6.dark;
|
|
5340
5340
|
}
|
|
5341
|
-
if (
|
|
5342
|
-
process.env[`${prefix}LIGHT`] =
|
|
5341
|
+
if (config6.light) {
|
|
5342
|
+
process.env[`${prefix}LIGHT`] = config6.light;
|
|
5343
5343
|
}
|
|
5344
|
-
if (
|
|
5345
|
-
process.env[`${prefix}BRAND`] =
|
|
5344
|
+
if (config6.brand) {
|
|
5345
|
+
process.env[`${prefix}BRAND`] = config6.brand;
|
|
5346
5346
|
}
|
|
5347
|
-
if (
|
|
5348
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
5347
|
+
if (config6.alternate) {
|
|
5348
|
+
process.env[`${prefix}ALTERNATE`] = config6.alternate;
|
|
5349
5349
|
}
|
|
5350
|
-
if (
|
|
5351
|
-
process.env[`${prefix}ACCENT`] =
|
|
5350
|
+
if (config6.accent) {
|
|
5351
|
+
process.env[`${prefix}ACCENT`] = config6.accent;
|
|
5352
5352
|
}
|
|
5353
|
-
if (
|
|
5354
|
-
process.env[`${prefix}LINK`] =
|
|
5353
|
+
if (config6.link) {
|
|
5354
|
+
process.env[`${prefix}LINK`] = config6.link;
|
|
5355
5355
|
}
|
|
5356
|
-
if (
|
|
5357
|
-
process.env[`${prefix}DISCOVERY`] =
|
|
5356
|
+
if (config6.discovery) {
|
|
5357
|
+
process.env[`${prefix}DISCOVERY`] = config6.discovery;
|
|
5358
5358
|
}
|
|
5359
|
-
if (
|
|
5360
|
-
process.env[`${prefix}SUCCESS`] =
|
|
5359
|
+
if (config6.success) {
|
|
5360
|
+
process.env[`${prefix}SUCCESS`] = config6.success;
|
|
5361
5361
|
}
|
|
5362
|
-
if (
|
|
5363
|
-
process.env[`${prefix}INFO`] =
|
|
5362
|
+
if (config6.info) {
|
|
5363
|
+
process.env[`${prefix}INFO`] = config6.info;
|
|
5364
5364
|
}
|
|
5365
|
-
if (
|
|
5366
|
-
process.env[`${prefix}DEBUG`] =
|
|
5365
|
+
if (config6.debug) {
|
|
5366
|
+
process.env[`${prefix}DEBUG`] = config6.debug;
|
|
5367
5367
|
}
|
|
5368
|
-
if (
|
|
5369
|
-
process.env[`${prefix}WARNING`] =
|
|
5368
|
+
if (config6.warning) {
|
|
5369
|
+
process.env[`${prefix}WARNING`] = config6.warning;
|
|
5370
5370
|
}
|
|
5371
|
-
if (
|
|
5372
|
-
process.env[`${prefix}DANGER`] =
|
|
5371
|
+
if (config6.danger) {
|
|
5372
|
+
process.env[`${prefix}DANGER`] = config6.danger;
|
|
5373
5373
|
}
|
|
5374
|
-
if (
|
|
5375
|
-
process.env[`${prefix}FATAL`] =
|
|
5374
|
+
if (config6.fatal) {
|
|
5375
|
+
process.env[`${prefix}FATAL`] = config6.fatal;
|
|
5376
5376
|
}
|
|
5377
|
-
if (
|
|
5378
|
-
process.env[`${prefix}PERFORMANCE`] =
|
|
5377
|
+
if (config6.performance) {
|
|
5378
|
+
process.env[`${prefix}PERFORMANCE`] = config6.performance;
|
|
5379
5379
|
}
|
|
5380
|
-
if (
|
|
5381
|
-
process.env[`${prefix}POSITIVE`] =
|
|
5380
|
+
if (config6.positive) {
|
|
5381
|
+
process.env[`${prefix}POSITIVE`] = config6.positive;
|
|
5382
5382
|
}
|
|
5383
|
-
if (
|
|
5384
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
5383
|
+
if (config6.negative) {
|
|
5384
|
+
process.env[`${prefix}NEGATIVE`] = config6.negative;
|
|
5385
5385
|
}
|
|
5386
|
-
if (
|
|
5387
|
-
for (let i = 0; i <
|
|
5388
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
5386
|
+
if (config6.gradient) {
|
|
5387
|
+
for (let i = 0; i < config6.gradient.length; i++) {
|
|
5388
|
+
process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
|
|
5389
5389
|
}
|
|
5390
5390
|
}
|
|
5391
5391
|
};
|
|
5392
|
-
var setMultiThemeColorsEnv = (prefix,
|
|
5392
|
+
var setMultiThemeColorsEnv = (prefix, config6) => {
|
|
5393
5393
|
return {
|
|
5394
|
-
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`,
|
|
5395
|
-
dark: setBaseThemeColorsEnv(`${prefix}DARK_`,
|
|
5394
|
+
light: setBaseThemeColorsEnv(`${prefix}LIGHT_`, config6.light),
|
|
5395
|
+
dark: setBaseThemeColorsEnv(`${prefix}DARK_`, config6.dark)
|
|
5396
5396
|
};
|
|
5397
5397
|
};
|
|
5398
|
-
var setBaseThemeColorsEnv = (prefix,
|
|
5399
|
-
if (
|
|
5400
|
-
process.env[`${prefix}FOREGROUND`] =
|
|
5398
|
+
var setBaseThemeColorsEnv = (prefix, config6) => {
|
|
5399
|
+
if (config6.foreground) {
|
|
5400
|
+
process.env[`${prefix}FOREGROUND`] = config6.foreground;
|
|
5401
5401
|
}
|
|
5402
|
-
if (
|
|
5403
|
-
process.env[`${prefix}BACKGROUND`] =
|
|
5402
|
+
if (config6.background) {
|
|
5403
|
+
process.env[`${prefix}BACKGROUND`] = config6.background;
|
|
5404
5404
|
}
|
|
5405
|
-
if (
|
|
5406
|
-
process.env[`${prefix}BRAND`] =
|
|
5405
|
+
if (config6.brand) {
|
|
5406
|
+
process.env[`${prefix}BRAND`] = config6.brand;
|
|
5407
5407
|
}
|
|
5408
|
-
if (
|
|
5409
|
-
process.env[`${prefix}ALTERNATE`] =
|
|
5408
|
+
if (config6.alternate) {
|
|
5409
|
+
process.env[`${prefix}ALTERNATE`] = config6.alternate;
|
|
5410
5410
|
}
|
|
5411
|
-
if (
|
|
5412
|
-
process.env[`${prefix}ACCENT`] =
|
|
5411
|
+
if (config6.accent) {
|
|
5412
|
+
process.env[`${prefix}ACCENT`] = config6.accent;
|
|
5413
5413
|
}
|
|
5414
|
-
if (
|
|
5415
|
-
process.env[`${prefix}LINK`] =
|
|
5414
|
+
if (config6.link) {
|
|
5415
|
+
process.env[`${prefix}LINK`] = config6.link;
|
|
5416
5416
|
}
|
|
5417
|
-
if (
|
|
5418
|
-
process.env[`${prefix}DISCOVERY`] =
|
|
5417
|
+
if (config6.discovery) {
|
|
5418
|
+
process.env[`${prefix}DISCOVERY`] = config6.discovery;
|
|
5419
5419
|
}
|
|
5420
|
-
if (
|
|
5421
|
-
process.env[`${prefix}SUCCESS`] =
|
|
5420
|
+
if (config6.success) {
|
|
5421
|
+
process.env[`${prefix}SUCCESS`] = config6.success;
|
|
5422
5422
|
}
|
|
5423
|
-
if (
|
|
5424
|
-
process.env[`${prefix}INFO`] =
|
|
5423
|
+
if (config6.info) {
|
|
5424
|
+
process.env[`${prefix}INFO`] = config6.info;
|
|
5425
5425
|
}
|
|
5426
|
-
if (
|
|
5427
|
-
process.env[`${prefix}DEBUG`] =
|
|
5426
|
+
if (config6.debug) {
|
|
5427
|
+
process.env[`${prefix}DEBUG`] = config6.debug;
|
|
5428
5428
|
}
|
|
5429
|
-
if (
|
|
5430
|
-
process.env[`${prefix}WARNING`] =
|
|
5429
|
+
if (config6.warning) {
|
|
5430
|
+
process.env[`${prefix}WARNING`] = config6.warning;
|
|
5431
5431
|
}
|
|
5432
|
-
if (
|
|
5433
|
-
process.env[`${prefix}DANGER`] =
|
|
5432
|
+
if (config6.danger) {
|
|
5433
|
+
process.env[`${prefix}DANGER`] = config6.danger;
|
|
5434
5434
|
}
|
|
5435
|
-
if (
|
|
5436
|
-
process.env[`${prefix}FATAL`] =
|
|
5435
|
+
if (config6.fatal) {
|
|
5436
|
+
process.env[`${prefix}FATAL`] = config6.fatal;
|
|
5437
5437
|
}
|
|
5438
|
-
if (
|
|
5439
|
-
process.env[`${prefix}PERFORMANCE`] =
|
|
5438
|
+
if (config6.performance) {
|
|
5439
|
+
process.env[`${prefix}PERFORMANCE`] = config6.performance;
|
|
5440
5440
|
}
|
|
5441
|
-
if (
|
|
5442
|
-
process.env[`${prefix}POSITIVE`] =
|
|
5441
|
+
if (config6.positive) {
|
|
5442
|
+
process.env[`${prefix}POSITIVE`] = config6.positive;
|
|
5443
5443
|
}
|
|
5444
|
-
if (
|
|
5445
|
-
process.env[`${prefix}NEGATIVE`] =
|
|
5444
|
+
if (config6.negative) {
|
|
5445
|
+
process.env[`${prefix}NEGATIVE`] = config6.negative;
|
|
5446
5446
|
}
|
|
5447
|
-
if (
|
|
5448
|
-
for (let i = 0; i <
|
|
5449
|
-
process.env[`${prefix}GRADIENT_${i}`] =
|
|
5447
|
+
if (config6.gradient) {
|
|
5448
|
+
for (let i = 0; i < config6.gradient.length; i++) {
|
|
5449
|
+
process.env[`${prefix}GRADIENT_${i}`] = config6.gradient[i];
|
|
5450
5450
|
}
|
|
5451
5451
|
}
|
|
5452
5452
|
};
|
|
@@ -5512,25 +5512,25 @@ Please ensure your configuration file is valid JSON and matches the expected sch
|
|
|
5512
5512
|
};
|
|
5513
5513
|
var tryLoadStormWorkspaceConfig = async (workspaceRoot, skipLogs = true, useDefault = false) => {
|
|
5514
5514
|
try {
|
|
5515
|
-
const
|
|
5515
|
+
const config6 = await createStormWorkspaceConfig(
|
|
5516
5516
|
void 0,
|
|
5517
5517
|
void 0,
|
|
5518
5518
|
workspaceRoot,
|
|
5519
5519
|
skipLogs,
|
|
5520
5520
|
useDefault
|
|
5521
5521
|
);
|
|
5522
|
-
if (!
|
|
5522
|
+
if (!config6) {
|
|
5523
5523
|
return void 0;
|
|
5524
5524
|
}
|
|
5525
|
-
setConfigEnv(
|
|
5526
|
-
if (!skipLogs && !
|
|
5525
|
+
setConfigEnv(config6);
|
|
5526
|
+
if (!skipLogs && !config6.skipConfigLogging) {
|
|
5527
5527
|
writeTrace(
|
|
5528
5528
|
`\u2699\uFE0F Using Storm Workspace configuration:
|
|
5529
|
-
${formatLogMessage(
|
|
5530
|
-
|
|
5529
|
+
${formatLogMessage(config6)}`,
|
|
5530
|
+
config6
|
|
5531
5531
|
);
|
|
5532
5532
|
}
|
|
5533
|
-
return
|
|
5533
|
+
return config6;
|
|
5534
5534
|
} catch (error) {
|
|
5535
5535
|
if (!skipLogs) {
|
|
5536
5536
|
writeWarning(
|
|
@@ -5574,7 +5574,7 @@ init_esm_shims();
|
|
|
5574
5574
|
|
|
5575
5575
|
// ../eslint-plugin-banner/package.json
|
|
5576
5576
|
var package_default = {
|
|
5577
|
-
version: "0.0.
|
|
5577
|
+
version: "0.0.35"};
|
|
5578
5578
|
|
|
5579
5579
|
// ../eslint-plugin-banner/src/rules/banner.ts
|
|
5580
5580
|
init_esm_shims();
|
|
@@ -6287,7 +6287,7 @@ async function stylistic(options = {}) {
|
|
|
6287
6287
|
const pluginStylistic = await interopDefault(
|
|
6288
6288
|
import('@stylistic/eslint-plugin')
|
|
6289
6289
|
);
|
|
6290
|
-
const
|
|
6290
|
+
const config6 = pluginStylistic.configs.customize({
|
|
6291
6291
|
indent,
|
|
6292
6292
|
jsx: jsx2,
|
|
6293
6293
|
pluginName: "style",
|
|
@@ -6301,7 +6301,7 @@ async function stylistic(options = {}) {
|
|
|
6301
6301
|
style: pluginStylistic
|
|
6302
6302
|
},
|
|
6303
6303
|
rules: {
|
|
6304
|
-
...
|
|
6304
|
+
...config6.rules,
|
|
6305
6305
|
"style/lines-around-comment": "off",
|
|
6306
6306
|
"style/linebreak-style": ["error", lineEndings],
|
|
6307
6307
|
"style/comma-dangle": ["error", "never"],
|
|
@@ -6392,7 +6392,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6392
6392
|
options.dprintOptions ?? {}
|
|
6393
6393
|
);
|
|
6394
6394
|
const pluginFormat = await interopDefault(import('eslint-plugin-format'));
|
|
6395
|
-
const
|
|
6395
|
+
const configs7 = [
|
|
6396
6396
|
{
|
|
6397
6397
|
name: "storm/formatter/setup",
|
|
6398
6398
|
plugins: {
|
|
@@ -6401,7 +6401,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6401
6401
|
}
|
|
6402
6402
|
];
|
|
6403
6403
|
if (options.css) {
|
|
6404
|
-
|
|
6404
|
+
configs7.push(
|
|
6405
6405
|
{
|
|
6406
6406
|
files: [GLOB_CSS, GLOB_POSTCSS],
|
|
6407
6407
|
languageOptions: {
|
|
@@ -6450,7 +6450,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6450
6450
|
);
|
|
6451
6451
|
}
|
|
6452
6452
|
if (options.html) {
|
|
6453
|
-
|
|
6453
|
+
configs7.push({
|
|
6454
6454
|
files: [GLOB_HTML],
|
|
6455
6455
|
languageOptions: {
|
|
6456
6456
|
parser: parserPlain
|
|
@@ -6467,7 +6467,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6467
6467
|
});
|
|
6468
6468
|
}
|
|
6469
6469
|
if (options.xml) {
|
|
6470
|
-
|
|
6470
|
+
configs7.push({
|
|
6471
6471
|
files: [GLOB_XML],
|
|
6472
6472
|
languageOptions: {
|
|
6473
6473
|
parser: parserPlain
|
|
@@ -6488,7 +6488,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6488
6488
|
});
|
|
6489
6489
|
}
|
|
6490
6490
|
if (options.svg) {
|
|
6491
|
-
|
|
6491
|
+
configs7.push({
|
|
6492
6492
|
files: [GLOB_SVG],
|
|
6493
6493
|
languageOptions: {
|
|
6494
6494
|
parser: parserPlain
|
|
@@ -6510,7 +6510,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6510
6510
|
}
|
|
6511
6511
|
if (options.markdown) {
|
|
6512
6512
|
const formater = options.markdown === true ? "prettier" : options.markdown;
|
|
6513
|
-
|
|
6513
|
+
configs7.push({
|
|
6514
6514
|
files: [GLOB_MARKDOWN],
|
|
6515
6515
|
languageOptions: {
|
|
6516
6516
|
parser: parserPlain
|
|
@@ -6531,7 +6531,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6531
6531
|
});
|
|
6532
6532
|
}
|
|
6533
6533
|
if (options.astro) {
|
|
6534
|
-
|
|
6534
|
+
configs7.push({
|
|
6535
6535
|
files: [GLOB_ASTRO],
|
|
6536
6536
|
languageOptions: {
|
|
6537
6537
|
parser: parserPlain
|
|
@@ -6547,7 +6547,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6547
6547
|
]
|
|
6548
6548
|
}
|
|
6549
6549
|
});
|
|
6550
|
-
|
|
6550
|
+
configs7.push({
|
|
6551
6551
|
files: [GLOB_ASTRO, GLOB_ASTRO_TS],
|
|
6552
6552
|
name: "storm/formatter/astro/disables",
|
|
6553
6553
|
rules: {
|
|
@@ -6562,7 +6562,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6562
6562
|
});
|
|
6563
6563
|
}
|
|
6564
6564
|
if (options.graphql) {
|
|
6565
|
-
|
|
6565
|
+
configs7.push({
|
|
6566
6566
|
files: [GLOB_GRAPHQL],
|
|
6567
6567
|
languageOptions: {
|
|
6568
6568
|
parser: parserPlain
|
|
@@ -6578,7 +6578,7 @@ async function formatters(options = {}, stylistic2 = {}) {
|
|
|
6578
6578
|
}
|
|
6579
6579
|
});
|
|
6580
6580
|
}
|
|
6581
|
-
return
|
|
6581
|
+
return configs7;
|
|
6582
6582
|
}
|
|
6583
6583
|
|
|
6584
6584
|
// src/configs/graphql.ts
|
|
@@ -7445,9 +7445,9 @@ function isBuiltIn(name3, settings, modulePath) {
|
|
|
7445
7445
|
if (modulePath || !name3) {
|
|
7446
7446
|
return false;
|
|
7447
7447
|
}
|
|
7448
|
-
const
|
|
7448
|
+
const base2 = baseModule(name3);
|
|
7449
7449
|
const extras = settings && settings["import-x/core-modules"] || [];
|
|
7450
|
-
return isBuiltin(
|
|
7450
|
+
return isBuiltin(base2) || extras.includes(base2);
|
|
7451
7451
|
}
|
|
7452
7452
|
function isExternalModule(name3, modulePath, context) {
|
|
7453
7453
|
return (isModule(name3) || isScoped(name3)) && typeTest(name3, context, modulePath) === "external";
|
|
@@ -7546,12 +7546,12 @@ function pkgDir(cwd) {
|
|
|
7546
7546
|
}
|
|
7547
7547
|
|
|
7548
7548
|
// ../../node_modules/.pnpm/eslint-plugin-import-x@4.16.2_patch_hash=2fde63e367ada6ae348459ff5a2b0bbc53a12189dad6a5_0dbc3eee2b0376d10a43f62a5381be15/node_modules/eslint-plugin-import-x/lib/utils/legacy-resolver-settings.js
|
|
7549
|
-
function resolveWithLegacyResolver(resolver,
|
|
7549
|
+
function resolveWithLegacyResolver(resolver, config6, modulePath, sourceFile) {
|
|
7550
7550
|
if (resolver.interfaceVersion === 2) {
|
|
7551
|
-
return resolver.resolve(modulePath, sourceFile,
|
|
7551
|
+
return resolver.resolve(modulePath, sourceFile, config6);
|
|
7552
7552
|
}
|
|
7553
7553
|
try {
|
|
7554
|
-
const resolved = resolver.resolveImport(modulePath, sourceFile,
|
|
7554
|
+
const resolved = resolver.resolveImport(modulePath, sourceFile, config6);
|
|
7555
7555
|
if (resolved === void 0) {
|
|
7556
7556
|
return {
|
|
7557
7557
|
found: false
|
|
@@ -8769,7 +8769,7 @@ function moduleVisitor(visitor, options) {
|
|
|
8769
8769
|
return visitors;
|
|
8770
8770
|
}
|
|
8771
8771
|
function makeOptionsSchema(additionalProperties) {
|
|
8772
|
-
const
|
|
8772
|
+
const base2 = {
|
|
8773
8773
|
type: "object",
|
|
8774
8774
|
properties: {
|
|
8775
8775
|
commonjs: { type: "boolean" },
|
|
@@ -8786,10 +8786,10 @@ function makeOptionsSchema(additionalProperties) {
|
|
|
8786
8786
|
};
|
|
8787
8787
|
if (additionalProperties) {
|
|
8788
8788
|
for (const key in additionalProperties) {
|
|
8789
|
-
|
|
8789
|
+
base2.properties[key] = additionalProperties[key];
|
|
8790
8790
|
}
|
|
8791
8791
|
}
|
|
8792
|
-
return
|
|
8792
|
+
return base2;
|
|
8793
8793
|
}
|
|
8794
8794
|
makeOptionsSchema();
|
|
8795
8795
|
|
|
@@ -13508,12 +13508,12 @@ function reportIfMissing(context, deps, depsOptions, node2, name3, whitelist) {
|
|
|
13508
13508
|
}
|
|
13509
13509
|
});
|
|
13510
13510
|
}
|
|
13511
|
-
function testConfig(
|
|
13512
|
-
if (typeof
|
|
13513
|
-
return
|
|
13511
|
+
function testConfig(config6, context) {
|
|
13512
|
+
if (typeof config6 === "boolean" || config6 === void 0) {
|
|
13513
|
+
return config6;
|
|
13514
13514
|
}
|
|
13515
13515
|
const filename = context.physicalFilename;
|
|
13516
|
-
return
|
|
13516
|
+
return config6.some((c) => minimatch2(filename, c) || minimatch2(filename, path16.resolve(context.cwd, c), {
|
|
13517
13517
|
windowsPathsNoEscape: true
|
|
13518
13518
|
}) || minimatch2(filename, path16.resolve(c), { windowsPathsNoEscape: true }));
|
|
13519
13519
|
}
|
|
@@ -19474,7 +19474,7 @@ plugin3.configs = configs3;
|
|
|
19474
19474
|
|
|
19475
19475
|
// ../eslint-plugin-pnpm/package.json
|
|
19476
19476
|
var package_default2 = {
|
|
19477
|
-
version: "0.0.
|
|
19477
|
+
version: "0.0.33"};
|
|
19478
19478
|
|
|
19479
19479
|
// ../eslint-plugin-pnpm/src/plugin.ts
|
|
19480
19480
|
var plugin4 = {
|
|
@@ -19672,9 +19672,9 @@ var ReactRouterPackages = [
|
|
|
19672
19672
|
"@react-router/serve",
|
|
19673
19673
|
"@react-router/dev"
|
|
19674
19674
|
];
|
|
19675
|
-
function renameRules2(
|
|
19675
|
+
function renameRules2(config6) {
|
|
19676
19676
|
const renamedRules = {};
|
|
19677
|
-
for (const [ruleName, ruleConfig] of Object.entries(
|
|
19677
|
+
for (const [ruleName, ruleConfig] of Object.entries(config6.rules || {})) {
|
|
19678
19678
|
if (ruleName.startsWith("@eslint-react/dom-")) {
|
|
19679
19679
|
renamedRules[`react-dom/${ruleName.slice("@eslint-react/dom-".length)}`] = ruleConfig;
|
|
19680
19680
|
} else if (ruleName.startsWith("@eslint-react/web-api-")) {
|
|
@@ -19907,21 +19907,21 @@ async function reactNative(options = {}) {
|
|
|
19907
19907
|
// src/configs/regexp.ts
|
|
19908
19908
|
init_esm_shims();
|
|
19909
19909
|
async function regexp(options = {}) {
|
|
19910
|
-
const
|
|
19911
|
-
const
|
|
19912
|
-
...
|
|
19910
|
+
const config6 = configs$1["flat/recommended"];
|
|
19911
|
+
const rules6 = {
|
|
19912
|
+
...config6.rules
|
|
19913
19913
|
};
|
|
19914
19914
|
if (options.level === "warn") {
|
|
19915
|
-
for (const key in
|
|
19916
|
-
if (
|
|
19915
|
+
for (const key in rules6) {
|
|
19916
|
+
if (rules6[key] === "error") rules6[key] = "warn";
|
|
19917
19917
|
}
|
|
19918
19918
|
}
|
|
19919
19919
|
return [
|
|
19920
19920
|
{
|
|
19921
|
-
...
|
|
19921
|
+
...config6,
|
|
19922
19922
|
name: "storm/regexp/rules",
|
|
19923
19923
|
rules: {
|
|
19924
|
-
...
|
|
19924
|
+
...rules6,
|
|
19925
19925
|
"regexp/no-unused-capturing-group": [
|
|
19926
19926
|
"error",
|
|
19927
19927
|
{
|
|
@@ -20344,7 +20344,61 @@ async function toml(options = {}) {
|
|
|
20344
20344
|
|
|
20345
20345
|
// src/configs/tsdoc.ts
|
|
20346
20346
|
init_esm_shims();
|
|
20347
|
+
|
|
20348
|
+
// ../eslint-plugin-tsdoc/src/index.ts
|
|
20349
|
+
init_esm_shims();
|
|
20350
|
+
|
|
20351
|
+
// ../eslint-plugin-tsdoc/src/configs/index.ts
|
|
20352
|
+
init_esm_shims();
|
|
20353
|
+
|
|
20354
|
+
// ../eslint-plugin-tsdoc/src/configs/recommended.ts
|
|
20355
|
+
init_esm_shims();
|
|
20356
|
+
|
|
20357
|
+
// ../eslint-plugin-tsdoc/src/plugin.ts
|
|
20358
|
+
init_esm_shims();
|
|
20347
20359
|
var import_eslint_plugin_tsdoc = __toESM(require_lib(), 1);
|
|
20360
|
+
|
|
20361
|
+
// ../eslint-plugin-tsdoc/package.json
|
|
20362
|
+
var package_default3 = {
|
|
20363
|
+
version: "0.0.33"};
|
|
20364
|
+
|
|
20365
|
+
// ../eslint-plugin-tsdoc/src/plugin.ts
|
|
20366
|
+
var plugin7 = {
|
|
20367
|
+
...import_eslint_plugin_tsdoc.default,
|
|
20368
|
+
meta: {
|
|
20369
|
+
name: "tsdoc",
|
|
20370
|
+
version: package_default3.version
|
|
20371
|
+
}
|
|
20372
|
+
};
|
|
20373
|
+
|
|
20374
|
+
// ../eslint-plugin-tsdoc/src/configs/recommended.ts
|
|
20375
|
+
var config5 = {
|
|
20376
|
+
files: [GLOB_TS, GLOB_TSX],
|
|
20377
|
+
ignores: GLOB_EXCLUDE,
|
|
20378
|
+
name: "tsdoc/recommended",
|
|
20379
|
+
plugins: {
|
|
20380
|
+
tsdoc: plugin7
|
|
20381
|
+
},
|
|
20382
|
+
rules: {
|
|
20383
|
+
"tsdoc/syntax": ["error", { type: "recommended" }]
|
|
20384
|
+
}
|
|
20385
|
+
};
|
|
20386
|
+
var recommended_default5 = config5;
|
|
20387
|
+
|
|
20388
|
+
// ../eslint-plugin-tsdoc/src/configs/index.ts
|
|
20389
|
+
var configs6 = {
|
|
20390
|
+
recommended: recommended_default5
|
|
20391
|
+
};
|
|
20392
|
+
|
|
20393
|
+
// ../eslint-plugin-tsdoc/src/index.ts
|
|
20394
|
+
var eslintPlugin3 = {
|
|
20395
|
+
...plugin7,
|
|
20396
|
+
configs: configs6
|
|
20397
|
+
};
|
|
20398
|
+
var src_default3 = eslintPlugin3;
|
|
20399
|
+
plugin7.rules;
|
|
20400
|
+
|
|
20401
|
+
// src/configs/tsdoc.ts
|
|
20348
20402
|
async function tsdoc(options = {}) {
|
|
20349
20403
|
const {
|
|
20350
20404
|
severity = "error",
|
|
@@ -20357,7 +20411,7 @@ async function tsdoc(options = {}) {
|
|
|
20357
20411
|
files,
|
|
20358
20412
|
name: "storm/tsdoc/rules",
|
|
20359
20413
|
plugins: {
|
|
20360
|
-
tsdoc:
|
|
20414
|
+
tsdoc: src_default3
|
|
20361
20415
|
},
|
|
20362
20416
|
rules: {
|
|
20363
20417
|
"tsdoc/syntax": [
|
|
@@ -20867,10 +20921,10 @@ function preset(options, ...userConfigs) {
|
|
|
20867
20921
|
if (stylisticOptions && !("jsx" in stylisticOptions)) {
|
|
20868
20922
|
stylisticOptions.jsx = enableJsx;
|
|
20869
20923
|
}
|
|
20870
|
-
const
|
|
20924
|
+
const configs7 = [];
|
|
20871
20925
|
if (enableGitignore) {
|
|
20872
20926
|
if (typeof enableGitignore !== "boolean") {
|
|
20873
|
-
|
|
20927
|
+
configs7.push(
|
|
20874
20928
|
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
20875
20929
|
r({
|
|
20876
20930
|
name: "storm/gitignore",
|
|
@@ -20879,7 +20933,7 @@ function preset(options, ...userConfigs) {
|
|
|
20879
20933
|
])
|
|
20880
20934
|
);
|
|
20881
20935
|
} else {
|
|
20882
|
-
|
|
20936
|
+
configs7.push(
|
|
20883
20937
|
interopDefault(import('eslint-config-flat-gitignore')).then((r) => [
|
|
20884
20938
|
r({
|
|
20885
20939
|
name: "storm/gitignore",
|
|
@@ -20889,7 +20943,7 @@ function preset(options, ...userConfigs) {
|
|
|
20889
20943
|
);
|
|
20890
20944
|
}
|
|
20891
20945
|
}
|
|
20892
|
-
|
|
20946
|
+
configs7.push(
|
|
20893
20947
|
ignores(options.ignores),
|
|
20894
20948
|
javascript({
|
|
20895
20949
|
globals,
|
|
@@ -20914,7 +20968,7 @@ function preset(options, ...userConfigs) {
|
|
|
20914
20968
|
}
|
|
20915
20969
|
}
|
|
20916
20970
|
if (enableTypeScript) {
|
|
20917
|
-
|
|
20971
|
+
configs7.push(
|
|
20918
20972
|
typescript({
|
|
20919
20973
|
...typescriptOptions,
|
|
20920
20974
|
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
@@ -20925,7 +20979,7 @@ function preset(options, ...userConfigs) {
|
|
|
20925
20979
|
);
|
|
20926
20980
|
}
|
|
20927
20981
|
if (enableBanner) {
|
|
20928
|
-
|
|
20982
|
+
configs7.push(
|
|
20929
20983
|
banner({
|
|
20930
20984
|
...resolveSubOptions(options, "banner"),
|
|
20931
20985
|
name: name3,
|
|
@@ -20934,16 +20988,16 @@ function preset(options, ...userConfigs) {
|
|
|
20934
20988
|
);
|
|
20935
20989
|
}
|
|
20936
20990
|
if (!stylisticOptions) {
|
|
20937
|
-
|
|
20991
|
+
configs7.push(prettier());
|
|
20938
20992
|
}
|
|
20939
20993
|
if (enableCSpell) {
|
|
20940
|
-
|
|
20994
|
+
configs7.push(cspell(resolveSubOptions(options, "cspell")));
|
|
20941
20995
|
}
|
|
20942
20996
|
if (enableUnicorn) {
|
|
20943
|
-
|
|
20997
|
+
configs7.push(unicorn(enableUnicorn === true ? {} : enableUnicorn));
|
|
20944
20998
|
}
|
|
20945
20999
|
if (enableJSDoc) {
|
|
20946
|
-
|
|
21000
|
+
configs7.push(
|
|
20947
21001
|
jsdoc({
|
|
20948
21002
|
...resolveSubOptions(options, "jsdoc"),
|
|
20949
21003
|
overrides: getOverrides(options, "jsdoc")
|
|
@@ -20951,7 +21005,7 @@ function preset(options, ...userConfigs) {
|
|
|
20951
21005
|
);
|
|
20952
21006
|
}
|
|
20953
21007
|
if (enableTSDoc) {
|
|
20954
|
-
|
|
21008
|
+
configs7.push(
|
|
20955
21009
|
tsdoc({
|
|
20956
21010
|
...resolveSubOptions(options, "tsdoc"),
|
|
20957
21011
|
overrides: getOverrides(options, "tsdoc")
|
|
@@ -20959,17 +21013,17 @@ function preset(options, ...userConfigs) {
|
|
|
20959
21013
|
);
|
|
20960
21014
|
}
|
|
20961
21015
|
if (enableJsx) {
|
|
20962
|
-
|
|
21016
|
+
configs7.push(jsx());
|
|
20963
21017
|
}
|
|
20964
21018
|
if (enableZod) {
|
|
20965
|
-
|
|
21019
|
+
configs7.push(
|
|
20966
21020
|
zod({
|
|
20967
21021
|
overrides: getOverrides(options, "zod")
|
|
20968
21022
|
})
|
|
20969
21023
|
);
|
|
20970
21024
|
}
|
|
20971
21025
|
if (stylisticOptions) {
|
|
20972
|
-
|
|
21026
|
+
configs7.push(
|
|
20973
21027
|
stylistic({
|
|
20974
21028
|
...stylisticOptions,
|
|
20975
21029
|
lineEndings: stylisticOptions.lineEndings ?? "unix",
|
|
@@ -20979,10 +21033,10 @@ function preset(options, ...userConfigs) {
|
|
|
20979
21033
|
);
|
|
20980
21034
|
}
|
|
20981
21035
|
if (enableRegexp) {
|
|
20982
|
-
|
|
21036
|
+
configs7.push(regexp(typeof enableRegexp === "boolean" ? {} : enableRegexp));
|
|
20983
21037
|
}
|
|
20984
21038
|
if (enableTest) {
|
|
20985
|
-
|
|
21039
|
+
configs7.push(
|
|
20986
21040
|
test({
|
|
20987
21041
|
isInEditor,
|
|
20988
21042
|
overrides: getOverrides(options, "test")
|
|
@@ -20990,10 +21044,10 @@ function preset(options, ...userConfigs) {
|
|
|
20990
21044
|
);
|
|
20991
21045
|
}
|
|
20992
21046
|
if (enableGraphQL) {
|
|
20993
|
-
|
|
21047
|
+
configs7.push(graphql(resolveSubOptions(options, "graphql")));
|
|
20994
21048
|
}
|
|
20995
21049
|
if (enableReact) {
|
|
20996
|
-
|
|
21050
|
+
configs7.push(
|
|
20997
21051
|
react({
|
|
20998
21052
|
...typescriptOptions,
|
|
20999
21053
|
tsconfigPath: typescriptOptions.tsconfigPath === false ? void 0 : typescriptOptions.tsconfigPath,
|
|
@@ -21003,7 +21057,7 @@ function preset(options, ...userConfigs) {
|
|
|
21003
21057
|
);
|
|
21004
21058
|
}
|
|
21005
21059
|
if (enableReactNative) {
|
|
21006
|
-
|
|
21060
|
+
configs7.push(
|
|
21007
21061
|
reactNative({
|
|
21008
21062
|
...resolveSubOptions(options, "react-native"),
|
|
21009
21063
|
overrides: getOverrides(options, "react-native")
|
|
@@ -21011,13 +21065,13 @@ function preset(options, ...userConfigs) {
|
|
|
21011
21065
|
);
|
|
21012
21066
|
}
|
|
21013
21067
|
if (enableNext) {
|
|
21014
|
-
|
|
21068
|
+
configs7.push(next(resolveSubOptions(options, "next")));
|
|
21015
21069
|
}
|
|
21016
21070
|
if (enableStorybook) {
|
|
21017
|
-
|
|
21071
|
+
configs7.push(storybook(resolveSubOptions(options, "storybook")));
|
|
21018
21072
|
}
|
|
21019
21073
|
if (enableUnoCSS) {
|
|
21020
|
-
|
|
21074
|
+
configs7.push(
|
|
21021
21075
|
unocss({
|
|
21022
21076
|
...resolveSubOptions(options, "unocss"),
|
|
21023
21077
|
overrides: getOverrides(options, "unocss")
|
|
@@ -21025,7 +21079,7 @@ function preset(options, ...userConfigs) {
|
|
|
21025
21079
|
);
|
|
21026
21080
|
}
|
|
21027
21081
|
if (enableAstro) {
|
|
21028
|
-
|
|
21082
|
+
configs7.push(
|
|
21029
21083
|
astro({
|
|
21030
21084
|
overrides: getOverrides(options, "astro"),
|
|
21031
21085
|
stylistic: stylisticOptions
|
|
@@ -21033,7 +21087,7 @@ function preset(options, ...userConfigs) {
|
|
|
21033
21087
|
);
|
|
21034
21088
|
}
|
|
21035
21089
|
if (options.pnpm ?? true) {
|
|
21036
|
-
|
|
21090
|
+
configs7.push(
|
|
21037
21091
|
pnpm({
|
|
21038
21092
|
overrides: getOverrides(options, "pnpm"),
|
|
21039
21093
|
ignore: typeof options.pnpm !== "boolean" ? options.pnpm?.ignore : void 0
|
|
@@ -21041,7 +21095,7 @@ function preset(options, ...userConfigs) {
|
|
|
21041
21095
|
);
|
|
21042
21096
|
}
|
|
21043
21097
|
if (options.jsonc ?? true) {
|
|
21044
|
-
|
|
21098
|
+
configs7.push(
|
|
21045
21099
|
jsonc({
|
|
21046
21100
|
overrides: getOverrides(options, "jsonc"),
|
|
21047
21101
|
stylistic: stylisticOptions
|
|
@@ -21049,11 +21103,11 @@ function preset(options, ...userConfigs) {
|
|
|
21049
21103
|
sortTsconfig()
|
|
21050
21104
|
);
|
|
21051
21105
|
if (stylisticOptions) {
|
|
21052
|
-
|
|
21106
|
+
configs7.push(sortPackageJson());
|
|
21053
21107
|
}
|
|
21054
21108
|
}
|
|
21055
21109
|
if (options.yaml ?? true) {
|
|
21056
|
-
|
|
21110
|
+
configs7.push(
|
|
21057
21111
|
yaml({
|
|
21058
21112
|
overrides: getOverrides(options, "yaml"),
|
|
21059
21113
|
stylistic: stylisticOptions
|
|
@@ -21061,7 +21115,7 @@ function preset(options, ...userConfigs) {
|
|
|
21061
21115
|
);
|
|
21062
21116
|
}
|
|
21063
21117
|
if (options.toml ?? true) {
|
|
21064
|
-
|
|
21118
|
+
configs7.push(
|
|
21065
21119
|
toml({
|
|
21066
21120
|
overrides: getOverrides(options, "toml"),
|
|
21067
21121
|
stylistic: stylisticOptions
|
|
@@ -21069,28 +21123,28 @@ function preset(options, ...userConfigs) {
|
|
|
21069
21123
|
);
|
|
21070
21124
|
}
|
|
21071
21125
|
if (options.markdown === true) {
|
|
21072
|
-
|
|
21126
|
+
configs7.push(
|
|
21073
21127
|
markdown({
|
|
21074
21128
|
overrides: getOverrides(options, "markdown")
|
|
21075
21129
|
})
|
|
21076
21130
|
);
|
|
21077
21131
|
}
|
|
21078
21132
|
if (enableMdx) {
|
|
21079
|
-
|
|
21133
|
+
configs7.push(
|
|
21080
21134
|
mdx({
|
|
21081
21135
|
overrides: getOverrides(options, "mdx")
|
|
21082
21136
|
})
|
|
21083
21137
|
);
|
|
21084
21138
|
}
|
|
21085
21139
|
if (options.formatters) {
|
|
21086
|
-
|
|
21140
|
+
configs7.push(
|
|
21087
21141
|
formatters(
|
|
21088
21142
|
options.formatters,
|
|
21089
21143
|
typeof stylisticOptions === "boolean" ? {} : stylisticOptions
|
|
21090
21144
|
)
|
|
21091
21145
|
);
|
|
21092
21146
|
}
|
|
21093
|
-
|
|
21147
|
+
configs7.push(disables());
|
|
21094
21148
|
if ("files" in options) {
|
|
21095
21149
|
throw new Error(
|
|
21096
21150
|
'[@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.'
|
|
@@ -21102,10 +21156,10 @@ function preset(options, ...userConfigs) {
|
|
|
21102
21156
|
}
|
|
21103
21157
|
return acc;
|
|
21104
21158
|
}, {});
|
|
21105
|
-
if (Object.keys(fusedConfig).length)
|
|
21159
|
+
if (Object.keys(fusedConfig).length) configs7.push([fusedConfig]);
|
|
21106
21160
|
let composer = new FlatConfigComposer();
|
|
21107
21161
|
composer = composer.append(
|
|
21108
|
-
...
|
|
21162
|
+
...configs7,
|
|
21109
21163
|
...userConfigs
|
|
21110
21164
|
);
|
|
21111
21165
|
if (autoRenamePlugins) {
|