@storm-software/linting-tools 1.36.1 → 1.36.2
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/CHANGELOG.md +12 -0
- package/bin/lint.js +13 -8
- package/package.json +1 -1
- package/src/cli/index.js +6 -6
package/CHANGELOG.md
CHANGED
package/bin/lint.js
CHANGED
|
@@ -292938,7 +292938,7 @@ var nullableType = ZodNullable.create;
|
|
|
292938
292938
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
292939
292939
|
var pipelineType = ZodPipeline.create;
|
|
292940
292940
|
|
|
292941
|
-
// packages/config
|
|
292941
|
+
// packages/config/src/schema.ts
|
|
292942
292942
|
var ColorConfigSchema = objectType({
|
|
292943
292943
|
primary: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The primary color of the workspace"),
|
|
292944
292944
|
background: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The background color of the workspace"),
|
|
@@ -293189,9 +293189,9 @@ ${chalk.bold.hex(config3?.colors?.warning ? config3.colors.warning : "#fcc419")(
|
|
|
293189
293189
|
return (message) => {
|
|
293190
293190
|
console.info(
|
|
293191
293191
|
`
|
|
293192
|
-
${chalk.bold.hex(config3?.colors?.info ? config3.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config3?.colors?.info ? config3.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
293193
|
-
|
|
293194
|
-
)}
|
|
293192
|
+
${chalk.bold.hex(config3?.colors?.info ? config3.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config3?.colors?.info ? config3.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
293193
|
+
config3?.colors?.info ? config3.colors.info : "#0ea5e9"
|
|
293194
|
+
)(message)}
|
|
293195
293195
|
`
|
|
293196
293196
|
);
|
|
293197
293197
|
};
|
|
@@ -293251,7 +293251,10 @@ var handleProcess = (config3) => {
|
|
|
293251
293251
|
`Using the following arguments to process the script: ${process.argv.join(", ")}`
|
|
293252
293252
|
);
|
|
293253
293253
|
process.on("unhandledRejection", (error2) => {
|
|
293254
|
-
writeError(
|
|
293254
|
+
writeError(
|
|
293255
|
+
config3,
|
|
293256
|
+
`An Unhandled Rejection occurred while running the program: ${error2}`
|
|
293257
|
+
);
|
|
293255
293258
|
exitWithError(config3);
|
|
293256
293259
|
});
|
|
293257
293260
|
process.on("uncaughtException", (error2) => {
|
|
@@ -294894,7 +294897,9 @@ var getConfigEnv = () => {
|
|
|
294894
294897
|
repository: process.env[`${prefix}REPOSITORY`],
|
|
294895
294898
|
branch: process.env[`${prefix}BRANCH`],
|
|
294896
294899
|
preid: process.env[`${prefix}PRE_ID`],
|
|
294897
|
-
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
294900
|
+
logLevel: process.env[`${prefix}LOG_LEVEL`] !== null && process.env[`${prefix}LOG_LEVEL`] !== void 0 ? Number.isSafeInteger(
|
|
294901
|
+
Number.parseInt(process.env[`${prefix}LOG_LEVEL`])
|
|
294902
|
+
) ? getLogLevelLabel(Number.parseInt(process.env[`${prefix}LOG_LEVEL`])) : process.env[`${prefix}LOG_LEVEL`] : void 0
|
|
294898
294903
|
};
|
|
294899
294904
|
const serializedConfig = process.env[`${prefix}CONFIG`];
|
|
294900
294905
|
if (serializedConfig) {
|
|
@@ -329115,7 +329120,7 @@ var esm_default = typeof structuredClone === "function" ? (
|
|
|
329115
329120
|
var import_debug2 = __toESM(require_src4(), 1);
|
|
329116
329121
|
|
|
329117
329122
|
// node_modules/.pnpm/load-plugin@6.0.1/node_modules/load-plugin/lib/index.js
|
|
329118
|
-
var
|
|
329123
|
+
var import_config3 = __toESM(require_lib13(), 1);
|
|
329119
329124
|
import fs11 from "node:fs/promises";
|
|
329120
329125
|
import path26 from "node:path";
|
|
329121
329126
|
import process12 from "node:process";
|
|
@@ -329125,7 +329130,7 @@ var windows = process12.platform === "win32";
|
|
|
329125
329130
|
var argv = process12.argv[1] || /* c8 ignore next -- windows */
|
|
329126
329131
|
"";
|
|
329127
329132
|
var nvm = process12.env.NVM_BIN;
|
|
329128
|
-
var config = new
|
|
329133
|
+
var config = new import_config3.default({
|
|
329129
329134
|
definitions: {},
|
|
329130
329135
|
npmPath: fileURLToPath16(new URL(".", import.meta.url))
|
|
329131
329136
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.36.
|
|
3
|
+
"version": "1.36.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
6
|
"keywords": [
|
package/src/cli/index.js
CHANGED
|
@@ -292893,7 +292893,7 @@ var nullableType = ZodNullable.create;
|
|
|
292893
292893
|
var preprocessType = ZodEffects.createWithPreprocess;
|
|
292894
292894
|
var pipelineType = ZodPipeline.create;
|
|
292895
292895
|
|
|
292896
|
-
// packages/config
|
|
292896
|
+
// packages/config/src/schema.ts
|
|
292897
292897
|
var ColorConfigSchema = objectType({
|
|
292898
292898
|
primary: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0ea5e9").describe("The primary color of the workspace"),
|
|
292899
292899
|
background: stringType().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d232a").describe("The background color of the workspace"),
|
|
@@ -293062,9 +293062,9 @@ ${chalk.bold.hex(config2?.colors?.warning ? config2.colors.warning : "#fcc419")(
|
|
|
293062
293062
|
return (message) => {
|
|
293063
293063
|
console.info(
|
|
293064
293064
|
`
|
|
293065
|
-
${chalk.bold.hex(config2?.colors?.info ? config2.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
293066
|
-
|
|
293067
|
-
)}
|
|
293065
|
+
${chalk.bold.hex(config2?.colors?.info ? config2.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").white(" \u2139 Info ")} ${chalk.hex(
|
|
293066
|
+
config2?.colors?.info ? config2.colors.info : "#0ea5e9"
|
|
293067
|
+
)(message)}
|
|
293068
293068
|
`
|
|
293069
293069
|
);
|
|
293070
293070
|
};
|
|
@@ -328723,7 +328723,7 @@ var esm_default = typeof structuredClone === "function" ? (
|
|
|
328723
328723
|
var import_debug2 = __toESM(require_src4(), 1);
|
|
328724
328724
|
|
|
328725
328725
|
// node_modules/.pnpm/load-plugin@6.0.1/node_modules/load-plugin/lib/index.js
|
|
328726
|
-
var
|
|
328726
|
+
var import_config3 = __toESM(require_lib13(), 1);
|
|
328727
328727
|
import fs11 from "node:fs/promises";
|
|
328728
328728
|
import path26 from "node:path";
|
|
328729
328729
|
import process12 from "node:process";
|
|
@@ -328733,7 +328733,7 @@ var windows = process12.platform === "win32";
|
|
|
328733
328733
|
var argv = process12.argv[1] || /* c8 ignore next -- windows */
|
|
328734
328734
|
"";
|
|
328735
328735
|
var nvm = process12.env.NVM_BIN;
|
|
328736
|
-
var config = new
|
|
328736
|
+
var config = new import_config3.default({
|
|
328737
328737
|
definitions: {},
|
|
328738
328738
|
npmPath: fileURLToPath16(new URL(".", import.meta.url))
|
|
328739
328739
|
});
|