@storm-software/linting-tools 1.132.129 → 1.132.130
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/bin/lint.cjs +40 -0
- package/bin/lint.js +40 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
27
27
|
|
|
28
28
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
29
29
|
|
|
30
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
31
31
|
|
|
32
32
|
<!-- prettier-ignore-start -->
|
|
33
33
|
<!-- markdownlint-disable -->
|
package/bin/lint.cjs
CHANGED
|
@@ -282984,6 +282984,7 @@ var LogLevel = {
|
|
|
282984
282984
|
WARN: 30,
|
|
282985
282985
|
SUCCESS: 35,
|
|
282986
282986
|
INFO: 40,
|
|
282987
|
+
PERFORMANCE: 50,
|
|
282987
282988
|
DEBUG: 60,
|
|
282988
282989
|
TRACE: 70,
|
|
282989
282990
|
ALL: 100
|
|
@@ -282995,6 +282996,7 @@ var LogLevelLabel = {
|
|
|
282995
282996
|
WARN: "warn",
|
|
282996
282997
|
SUCCESS: "success",
|
|
282997
282998
|
INFO: "info",
|
|
282999
|
+
PERFORMANCE: "performance",
|
|
282998
283000
|
DEBUG: "debug",
|
|
282999
283001
|
TRACE: "trace",
|
|
283000
283002
|
ALL: "all"
|
|
@@ -283015,6 +283017,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
283015
283017
|
warning: "#e3b341",
|
|
283016
283018
|
danger: "#D8314A",
|
|
283017
283019
|
fatal: "#51070f",
|
|
283020
|
+
performance: "#83ff83",
|
|
283018
283021
|
link: "#3fa6ff",
|
|
283019
283022
|
positive: "#22c55e",
|
|
283020
283023
|
negative: "#dc2626",
|
|
@@ -283032,6 +283035,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
283032
283035
|
warning: "#f3d371",
|
|
283033
283036
|
danger: "#D8314A",
|
|
283034
283037
|
fatal: "#a40e26",
|
|
283038
|
+
performance: "#00ff00",
|
|
283035
283039
|
link: "#3fa6ff",
|
|
283036
283040
|
positive: "#22c55e",
|
|
283037
283041
|
negative: "#dc2626",
|
|
@@ -283124,6 +283128,7 @@ var CONSOLE_ICONS = {
|
|
|
283124
283128
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
283125
283129
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
283126
283130
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
283131
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
283127
283132
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
283128
283133
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
283129
283134
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -283146,6 +283151,8 @@ var getLogLevel = (label) => {
|
|
|
283146
283151
|
return LogLevel.TRACE;
|
|
283147
283152
|
case "debug":
|
|
283148
283153
|
return LogLevel.DEBUG;
|
|
283154
|
+
case "performance":
|
|
283155
|
+
return LogLevel.PERFORMANCE;
|
|
283149
283156
|
case "info":
|
|
283150
283157
|
return LogLevel.INFO;
|
|
283151
283158
|
case "warn":
|
|
@@ -283170,6 +283177,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
283170
283177
|
if (logLevel >= LogLevel.DEBUG) {
|
|
283171
283178
|
return LogLevelLabel.DEBUG;
|
|
283172
283179
|
}
|
|
283180
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
283181
|
+
return LogLevelLabel.PERFORMANCE;
|
|
283182
|
+
}
|
|
283173
283183
|
if (logLevel >= LogLevel.INFO) {
|
|
283174
283184
|
return LogLevelLabel.INFO;
|
|
283175
283185
|
}
|
|
@@ -283257,6 +283267,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
283257
283267
|
)(
|
|
283258
283268
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
283259
283269
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
283270
|
+
`
|
|
283271
|
+
);
|
|
283272
|
+
};
|
|
283273
|
+
}
|
|
283274
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
283275
|
+
return (message) => {
|
|
283276
|
+
console.debug(
|
|
283277
|
+
`
|
|
283278
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
283279
|
+
_nullishCoalesce(colors.performance, () => ( DEFAULT_COLOR_CONFIG.dark.performance))
|
|
283280
|
+
)(
|
|
283281
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
283282
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
283260
283283
|
`
|
|
283261
283284
|
);
|
|
283262
283285
|
};
|
|
@@ -285236,6 +285259,10 @@ var fatalColorSchema = optional(colorSchema);
|
|
|
285236
285259
|
schemaRegistry.add(fatalColorSchema, {
|
|
285237
285260
|
description: "The fatal color of the workspace"
|
|
285238
285261
|
});
|
|
285262
|
+
var performanceColorSchema = _default(colorSchema, "#00ff00");
|
|
285263
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
285264
|
+
description: "The performance color of the workspace"
|
|
285265
|
+
});
|
|
285239
285266
|
var positiveColorSchema = _default(colorSchema, "#4ade80");
|
|
285240
285267
|
schemaRegistry.add(positiveColorSchema, {
|
|
285241
285268
|
description: "The positive number color of the workspace"
|
|
@@ -285262,6 +285289,7 @@ var darkColorsSchema = object({
|
|
|
285262
285289
|
warning: warningColorSchema,
|
|
285263
285290
|
danger: dangerColorSchema,
|
|
285264
285291
|
fatal: fatalColorSchema,
|
|
285292
|
+
performance: performanceColorSchema,
|
|
285265
285293
|
positive: positiveColorSchema,
|
|
285266
285294
|
negative: negativeColorSchema,
|
|
285267
285295
|
gradient: gradientStopsSchema
|
|
@@ -285280,6 +285308,7 @@ var lightColorsSchema = object({
|
|
|
285280
285308
|
warning: warningColorSchema,
|
|
285281
285309
|
danger: dangerColorSchema,
|
|
285282
285310
|
fatal: fatalColorSchema,
|
|
285311
|
+
performance: performanceColorSchema,
|
|
285283
285312
|
positive: positiveColorSchema,
|
|
285284
285313
|
negative: negativeColorSchema,
|
|
285285
285314
|
gradient: gradientStopsSchema
|
|
@@ -285302,6 +285331,7 @@ var singleColorsSchema = object({
|
|
|
285302
285331
|
warning: warningColorSchema,
|
|
285303
285332
|
danger: dangerColorSchema,
|
|
285304
285333
|
fatal: fatalColorSchema,
|
|
285334
|
+
performance: performanceColorSchema,
|
|
285305
285335
|
positive: positiveColorSchema,
|
|
285306
285336
|
negative: negativeColorSchema,
|
|
285307
285337
|
gradient: gradientStopsSchema
|
|
@@ -285669,6 +285699,7 @@ var logLevelSchema = _default(
|
|
|
285669
285699
|
"warn",
|
|
285670
285700
|
"success",
|
|
285671
285701
|
"info",
|
|
285702
|
+
"performance",
|
|
285672
285703
|
"debug",
|
|
285673
285704
|
"trace",
|
|
285674
285705
|
"all"
|
|
@@ -285749,6 +285780,7 @@ var COLOR_KEYS = [
|
|
|
285749
285780
|
"warning",
|
|
285750
285781
|
"danger",
|
|
285751
285782
|
"fatal",
|
|
285783
|
+
"performance",
|
|
285752
285784
|
"positive",
|
|
285753
285785
|
"negative"
|
|
285754
285786
|
];
|
|
@@ -286154,6 +286186,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
286154
286186
|
warning: process.env[`${prefix}WARNING`],
|
|
286155
286187
|
danger: process.env[`${prefix}DANGER`],
|
|
286156
286188
|
fatal: process.env[`${prefix}FATAL`],
|
|
286189
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
286157
286190
|
positive: process.env[`${prefix}POSITIVE`],
|
|
286158
286191
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
286159
286192
|
gradient
|
|
@@ -286193,6 +286226,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
286193
286226
|
warning: process.env[`${prefix}WARNING`],
|
|
286194
286227
|
danger: process.env[`${prefix}DANGER`],
|
|
286195
286228
|
fatal: process.env[`${prefix}FATAL`],
|
|
286229
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
286196
286230
|
positive: process.env[`${prefix}POSITIVE`],
|
|
286197
286231
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
286198
286232
|
gradient
|
|
@@ -286504,6 +286538,9 @@ var setSingleThemeColorsEnv = (prefix, config2) => {
|
|
|
286504
286538
|
if (config2.fatal) {
|
|
286505
286539
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
286506
286540
|
}
|
|
286541
|
+
if (config2.performance) {
|
|
286542
|
+
process.env[`${prefix}PERFORMANCE`] = config2.performance;
|
|
286543
|
+
}
|
|
286507
286544
|
if (config2.positive) {
|
|
286508
286545
|
process.env[`${prefix}POSITIVE`] = config2.positive;
|
|
286509
286546
|
}
|
|
@@ -286562,6 +286599,9 @@ var setBaseThemeColorsEnv = (prefix, config2) => {
|
|
|
286562
286599
|
if (config2.fatal) {
|
|
286563
286600
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
286564
286601
|
}
|
|
286602
|
+
if (config2.performance) {
|
|
286603
|
+
process.env[`${prefix}PERFORMANCE`] = config2.performance;
|
|
286604
|
+
}
|
|
286565
286605
|
if (config2.positive) {
|
|
286566
286606
|
process.env[`${prefix}POSITIVE`] = config2.positive;
|
|
286567
286607
|
}
|
package/bin/lint.js
CHANGED
|
@@ -283520,6 +283520,7 @@ var LogLevel = {
|
|
|
283520
283520
|
WARN: 30,
|
|
283521
283521
|
SUCCESS: 35,
|
|
283522
283522
|
INFO: 40,
|
|
283523
|
+
PERFORMANCE: 50,
|
|
283523
283524
|
DEBUG: 60,
|
|
283524
283525
|
TRACE: 70,
|
|
283525
283526
|
ALL: 100
|
|
@@ -283531,6 +283532,7 @@ var LogLevelLabel = {
|
|
|
283531
283532
|
WARN: "warn",
|
|
283532
283533
|
SUCCESS: "success",
|
|
283533
283534
|
INFO: "info",
|
|
283535
|
+
PERFORMANCE: "performance",
|
|
283534
283536
|
DEBUG: "debug",
|
|
283535
283537
|
TRACE: "trace",
|
|
283536
283538
|
ALL: "all"
|
|
@@ -283551,6 +283553,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
283551
283553
|
warning: "#e3b341",
|
|
283552
283554
|
danger: "#D8314A",
|
|
283553
283555
|
fatal: "#51070f",
|
|
283556
|
+
performance: "#83ff83",
|
|
283554
283557
|
link: "#3fa6ff",
|
|
283555
283558
|
positive: "#22c55e",
|
|
283556
283559
|
negative: "#dc2626",
|
|
@@ -283568,6 +283571,7 @@ var DEFAULT_COLOR_CONFIG = {
|
|
|
283568
283571
|
warning: "#f3d371",
|
|
283569
283572
|
danger: "#D8314A",
|
|
283570
283573
|
fatal: "#a40e26",
|
|
283574
|
+
performance: "#00ff00",
|
|
283571
283575
|
link: "#3fa6ff",
|
|
283572
283576
|
positive: "#22c55e",
|
|
283573
283577
|
negative: "#dc2626",
|
|
@@ -283660,6 +283664,7 @@ var CONSOLE_ICONS = {
|
|
|
283660
283664
|
[LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
|
|
283661
283665
|
[LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
|
|
283662
283666
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
283667
|
+
[LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
|
|
283663
283668
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
283664
283669
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
283665
283670
|
[LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
|
|
@@ -283682,6 +283687,8 @@ var getLogLevel = (label) => {
|
|
|
283682
283687
|
return LogLevel.TRACE;
|
|
283683
283688
|
case "debug":
|
|
283684
283689
|
return LogLevel.DEBUG;
|
|
283690
|
+
case "performance":
|
|
283691
|
+
return LogLevel.PERFORMANCE;
|
|
283685
283692
|
case "info":
|
|
283686
283693
|
return LogLevel.INFO;
|
|
283687
283694
|
case "warn":
|
|
@@ -283706,6 +283713,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
283706
283713
|
if (logLevel >= LogLevel.DEBUG) {
|
|
283707
283714
|
return LogLevelLabel.DEBUG;
|
|
283708
283715
|
}
|
|
283716
|
+
if (logLevel >= LogLevel.PERFORMANCE) {
|
|
283717
|
+
return LogLevelLabel.PERFORMANCE;
|
|
283718
|
+
}
|
|
283709
283719
|
if (logLevel >= LogLevel.INFO) {
|
|
283710
283720
|
return LogLevelLabel.INFO;
|
|
283711
283721
|
}
|
|
@@ -283793,6 +283803,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
283793
283803
|
)(
|
|
283794
283804
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
283795
283805
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
283806
|
+
`
|
|
283807
|
+
);
|
|
283808
|
+
};
|
|
283809
|
+
}
|
|
283810
|
+
if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
|
|
283811
|
+
return (message) => {
|
|
283812
|
+
console.debug(
|
|
283813
|
+
`
|
|
283814
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
283815
|
+
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
283816
|
+
)(
|
|
283817
|
+
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
283818
|
+
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
283796
283819
|
`
|
|
283797
283820
|
);
|
|
283798
283821
|
};
|
|
@@ -285772,6 +285795,10 @@ var fatalColorSchema = optional(colorSchema);
|
|
|
285772
285795
|
schemaRegistry.add(fatalColorSchema, {
|
|
285773
285796
|
description: "The fatal color of the workspace"
|
|
285774
285797
|
});
|
|
285798
|
+
var performanceColorSchema = _default(colorSchema, "#00ff00");
|
|
285799
|
+
schemaRegistry.add(performanceColorSchema, {
|
|
285800
|
+
description: "The performance color of the workspace"
|
|
285801
|
+
});
|
|
285775
285802
|
var positiveColorSchema = _default(colorSchema, "#4ade80");
|
|
285776
285803
|
schemaRegistry.add(positiveColorSchema, {
|
|
285777
285804
|
description: "The positive number color of the workspace"
|
|
@@ -285798,6 +285825,7 @@ var darkColorsSchema = object({
|
|
|
285798
285825
|
warning: warningColorSchema,
|
|
285799
285826
|
danger: dangerColorSchema,
|
|
285800
285827
|
fatal: fatalColorSchema,
|
|
285828
|
+
performance: performanceColorSchema,
|
|
285801
285829
|
positive: positiveColorSchema,
|
|
285802
285830
|
negative: negativeColorSchema,
|
|
285803
285831
|
gradient: gradientStopsSchema
|
|
@@ -285816,6 +285844,7 @@ var lightColorsSchema = object({
|
|
|
285816
285844
|
warning: warningColorSchema,
|
|
285817
285845
|
danger: dangerColorSchema,
|
|
285818
285846
|
fatal: fatalColorSchema,
|
|
285847
|
+
performance: performanceColorSchema,
|
|
285819
285848
|
positive: positiveColorSchema,
|
|
285820
285849
|
negative: negativeColorSchema,
|
|
285821
285850
|
gradient: gradientStopsSchema
|
|
@@ -285838,6 +285867,7 @@ var singleColorsSchema = object({
|
|
|
285838
285867
|
warning: warningColorSchema,
|
|
285839
285868
|
danger: dangerColorSchema,
|
|
285840
285869
|
fatal: fatalColorSchema,
|
|
285870
|
+
performance: performanceColorSchema,
|
|
285841
285871
|
positive: positiveColorSchema,
|
|
285842
285872
|
negative: negativeColorSchema,
|
|
285843
285873
|
gradient: gradientStopsSchema
|
|
@@ -286205,6 +286235,7 @@ var logLevelSchema = _default(
|
|
|
286205
286235
|
"warn",
|
|
286206
286236
|
"success",
|
|
286207
286237
|
"info",
|
|
286238
|
+
"performance",
|
|
286208
286239
|
"debug",
|
|
286209
286240
|
"trace",
|
|
286210
286241
|
"all"
|
|
@@ -286285,6 +286316,7 @@ var COLOR_KEYS = [
|
|
|
286285
286316
|
"warning",
|
|
286286
286317
|
"danger",
|
|
286287
286318
|
"fatal",
|
|
286319
|
+
"performance",
|
|
286288
286320
|
"positive",
|
|
286289
286321
|
"negative"
|
|
286290
286322
|
];
|
|
@@ -286690,6 +286722,7 @@ var getSingleThemeColorsEnv = (prefix) => {
|
|
|
286690
286722
|
warning: process.env[`${prefix}WARNING`],
|
|
286691
286723
|
danger: process.env[`${prefix}DANGER`],
|
|
286692
286724
|
fatal: process.env[`${prefix}FATAL`],
|
|
286725
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
286693
286726
|
positive: process.env[`${prefix}POSITIVE`],
|
|
286694
286727
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
286695
286728
|
gradient
|
|
@@ -286729,6 +286762,7 @@ var getBaseThemeColorsEnv = (prefix) => {
|
|
|
286729
286762
|
warning: process.env[`${prefix}WARNING`],
|
|
286730
286763
|
danger: process.env[`${prefix}DANGER`],
|
|
286731
286764
|
fatal: process.env[`${prefix}FATAL`],
|
|
286765
|
+
performance: process.env[`${prefix}PERFORMANCE`],
|
|
286732
286766
|
positive: process.env[`${prefix}POSITIVE`],
|
|
286733
286767
|
negative: process.env[`${prefix}NEGATIVE`],
|
|
286734
286768
|
gradient
|
|
@@ -287040,6 +287074,9 @@ var setSingleThemeColorsEnv = (prefix, config2) => {
|
|
|
287040
287074
|
if (config2.fatal) {
|
|
287041
287075
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
287042
287076
|
}
|
|
287077
|
+
if (config2.performance) {
|
|
287078
|
+
process.env[`${prefix}PERFORMANCE`] = config2.performance;
|
|
287079
|
+
}
|
|
287043
287080
|
if (config2.positive) {
|
|
287044
287081
|
process.env[`${prefix}POSITIVE`] = config2.positive;
|
|
287045
287082
|
}
|
|
@@ -287098,6 +287135,9 @@ var setBaseThemeColorsEnv = (prefix, config2) => {
|
|
|
287098
287135
|
if (config2.fatal) {
|
|
287099
287136
|
process.env[`${prefix}FATAL`] = config2.fatal;
|
|
287100
287137
|
}
|
|
287138
|
+
if (config2.performance) {
|
|
287139
|
+
process.env[`${prefix}PERFORMANCE`] = config2.performance;
|
|
287140
|
+
}
|
|
287101
287141
|
if (config2.positive) {
|
|
287102
287142
|
process.env[`${prefix}POSITIVE`] = config2.positive;
|
|
287103
287143
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.132.
|
|
3
|
+
"version": "1.132.130",
|
|
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": [
|
|
@@ -159,5 +159,5 @@
|
|
|
159
159
|
"packageManager": "pnpm@10.3.0",
|
|
160
160
|
"engines": { "node": ">=22.4.0", "pnpm": ">=10.3.0" },
|
|
161
161
|
"publishConfig": { "access": "public" },
|
|
162
|
-
"gitHead": "
|
|
162
|
+
"gitHead": "86357db0291c9364860c12fda996cd88e8a5e0bd"
|
|
163
163
|
}
|