@storm-software/linting-tools 1.89.0 → 1.90.0
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 +6 -0
- package/README.md +1 -1
- package/bin/lint.js +14 -21
- package/package.json +1 -1
- package/src/cli/index.js +14 -21
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
|
|
|
21
21
|
|
|
22
22
|
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
|
|
23
23
|
|
|
24
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
25
25
|
|
|
26
26
|
<!-- prettier-ignore-start -->
|
|
27
27
|
<!-- markdownlint-disable -->
|
package/bin/lint.js
CHANGED
|
@@ -356964,10 +356964,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
356964
356964
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
356965
356965
|
return (message) => {
|
|
356966
356966
|
console.error(
|
|
356967
|
-
|
|
356968
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356967
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
356969
356968
|
" \u{1F480} Fatal "
|
|
356970
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
356969
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
356971
356970
|
`
|
|
356972
356971
|
);
|
|
356973
356972
|
};
|
|
@@ -356975,10 +356974,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
356975
356974
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
356976
356975
|
return (message) => {
|
|
356977
356976
|
console.error(
|
|
356978
|
-
|
|
356979
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356977
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
356980
356978
|
" \u2718 Error "
|
|
356981
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
356979
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
356982
356980
|
`
|
|
356983
356981
|
);
|
|
356984
356982
|
};
|
|
@@ -356986,10 +356984,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
356986
356984
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
356987
356985
|
return (message) => {
|
|
356988
356986
|
console.warn(
|
|
356989
|
-
|
|
356990
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356987
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
356991
356988
|
" \u26A0 Warn "
|
|
356992
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
356989
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
356993
356990
|
`
|
|
356994
356991
|
);
|
|
356995
356992
|
};
|
|
@@ -356997,10 +356994,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
356997
356994
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
356998
356995
|
return (message) => {
|
|
356999
356996
|
console.info(
|
|
357000
|
-
|
|
357001
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
356997
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
357002
356998
|
" \u2713 Success "
|
|
357003
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
356999
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
357004
357000
|
`
|
|
357005
357001
|
);
|
|
357006
357002
|
};
|
|
@@ -357008,10 +357004,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
357008
357004
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
357009
357005
|
return (message) => {
|
|
357010
357006
|
console.info(
|
|
357011
|
-
|
|
357012
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357007
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
357013
357008
|
" \u2139 Info "
|
|
357014
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
357009
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
357015
357010
|
`
|
|
357016
357011
|
);
|
|
357017
357012
|
};
|
|
@@ -357019,20 +357014,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
357019
357014
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
357020
357015
|
return (message) => {
|
|
357021
357016
|
console.debug(
|
|
357022
|
-
|
|
357023
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357017
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357024
357018
|
" \u{1F6E0} Debug "
|
|
357025
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357019
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
357026
357020
|
`
|
|
357027
357021
|
);
|
|
357028
357022
|
};
|
|
357029
357023
|
}
|
|
357030
357024
|
return (message) => {
|
|
357031
357025
|
console.log(
|
|
357032
|
-
|
|
357033
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357026
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
357034
357027
|
" \u2709 System "
|
|
357035
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
357028
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
357036
357029
|
`
|
|
357037
357030
|
);
|
|
357038
357031
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.90.0",
|
|
4
4
|
"type": "module",
|
|
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
|
"repository": {
|
package/src/cli/index.js
CHANGED
|
@@ -355154,10 +355154,9 @@ var getLogFn = (logLevel = LogLevel.INFO, config = {}) => {
|
|
|
355154
355154
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
355155
355155
|
return (message) => {
|
|
355156
355156
|
console.error(
|
|
355157
|
-
|
|
355158
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355157
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(
|
|
355159
355158
|
" \u{1F480} Fatal "
|
|
355160
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
355159
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
355161
355160
|
`
|
|
355162
355161
|
);
|
|
355163
355162
|
};
|
|
@@ -355165,10 +355164,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.f
|
|
|
355165
355164
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
355166
355165
|
return (message) => {
|
|
355167
355166
|
console.error(
|
|
355168
|
-
|
|
355169
|
-
${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355167
|
+
`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(
|
|
355170
355168
|
" \u2718 Error "
|
|
355171
|
-
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
|
|
355169
|
+
)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}\r
|
|
355172
355170
|
`
|
|
355173
355171
|
);
|
|
355174
355172
|
};
|
|
@@ -355176,10 +355174,9 @@ ${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.d
|
|
|
355176
355174
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
355177
355175
|
return (message) => {
|
|
355178
355176
|
console.warn(
|
|
355179
|
-
|
|
355180
|
-
${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355177
|
+
`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(
|
|
355181
355178
|
" \u26A0 Warn "
|
|
355182
|
-
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
|
|
355179
|
+
)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}\r
|
|
355183
355180
|
`
|
|
355184
355181
|
);
|
|
355185
355182
|
};
|
|
@@ -355187,10 +355184,9 @@ ${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355187
355184
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
355188
355185
|
return (message) => {
|
|
355189
355186
|
console.info(
|
|
355190
|
-
|
|
355191
|
-
${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355187
|
+
`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(
|
|
355192
355188
|
" \u2713 Success "
|
|
355193
|
-
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
|
|
355189
|
+
)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}\r
|
|
355194
355190
|
`
|
|
355195
355191
|
);
|
|
355196
355192
|
};
|
|
@@ -355198,10 +355194,9 @@ ${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.
|
|
|
355198
355194
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
355199
355195
|
return (message) => {
|
|
355200
355196
|
console.info(
|
|
355201
|
-
|
|
355202
|
-
${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355197
|
+
`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(
|
|
355203
355198
|
" \u2139 Info "
|
|
355204
|
-
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
|
|
355199
|
+
)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}\r
|
|
355205
355200
|
`
|
|
355206
355201
|
);
|
|
355207
355202
|
};
|
|
@@ -355209,20 +355204,18 @@ ${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.inf
|
|
|
355209
355204
|
if (typeof logLevel === "number" && LogLevel.DEBUG >= logLevel || typeof logLevel === "string" && LogLevel.DEBUG >= getLogLevel(logLevel)) {
|
|
355210
355205
|
return (message) => {
|
|
355211
355206
|
console.debug(
|
|
355212
|
-
|
|
355213
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355207
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355214
355208
|
" \u{1F6E0} Debug "
|
|
355215
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355209
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
355216
355210
|
`
|
|
355217
355211
|
);
|
|
355218
355212
|
};
|
|
355219
355213
|
}
|
|
355220
355214
|
return (message) => {
|
|
355221
355215
|
console.log(
|
|
355222
|
-
|
|
355223
|
-
${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355216
|
+
`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(
|
|
355224
355217
|
" \u2709 System "
|
|
355225
|
-
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
|
|
355218
|
+
)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}\r
|
|
355226
355219
|
`
|
|
355227
355220
|
);
|
|
355228
355221
|
};
|