@storm-software/linting-tools 1.26.13 → 1.26.15
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 +14 -0
- package/biome/biome.json +1 -3
- package/cli/index.js +56 -97
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [1.26.14](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.13...linting-tools-v1.26.14) (2024-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **workspace-tools:** Patched transformer functions in tsup dependency ([f6412b4](https://github.com/storm-software/storm-ops/commit/f6412b437bb5d3122573f1e0ff877ac20f4ad947))
|
|
7
|
+
|
|
8
|
+
## [1.26.13](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.12...linting-tools-v1.26.13) (2024-01-17)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **workspace-tools:** Resolved blocking issue preventing tsup build completion ([e13f88f](https://github.com/storm-software/storm-ops/commit/e13f88f4c98eda68ec3d45c3b48caba533243b55))
|
|
14
|
+
|
|
1
15
|
## [1.26.12](https://github.com/storm-software/storm-ops/compare/linting-tools-v1.26.11...linting-tools-v1.26.12) (2024-01-17)
|
|
2
16
|
|
|
3
17
|
|
package/biome/biome.json
CHANGED
|
@@ -14,10 +14,8 @@
|
|
|
14
14
|
"**/fallback*.js",
|
|
15
15
|
"**/node_modules/**",
|
|
16
16
|
"**/dist/**",
|
|
17
|
-
"**/out/**",
|
|
18
17
|
"**/ios/**",
|
|
19
18
|
"**/.git/**",
|
|
20
|
-
"**/.vscode/**",
|
|
21
19
|
"**/.android/**",
|
|
22
20
|
"**/.DS_Store/**",
|
|
23
21
|
"**/Thumbs.db/**",
|
|
@@ -95,6 +93,6 @@
|
|
|
95
93
|
"enabled": true,
|
|
96
94
|
"clientKind": "git",
|
|
97
95
|
"defaultBranch": "origin:main",
|
|
98
|
-
"useIgnoreFile":
|
|
96
|
+
"useIgnoreFile": false
|
|
99
97
|
}
|
|
100
98
|
}
|
package/cli/index.js
CHANGED
|
@@ -24481,7 +24481,7 @@ ${lanes.join("\n")}
|
|
|
24481
24481
|
hasTrailingComment = true;
|
|
24482
24482
|
writeText(s);
|
|
24483
24483
|
}
|
|
24484
|
-
function
|
|
24484
|
+
function reset2() {
|
|
24485
24485
|
output = "";
|
|
24486
24486
|
indent22 = 0;
|
|
24487
24487
|
lineStart = true;
|
|
@@ -24513,7 +24513,7 @@ ${lanes.join("\n")}
|
|
|
24513
24513
|
function getTextPosWithWriteLine() {
|
|
24514
24514
|
return lineStart ? output.length : output.length + newLine2.length;
|
|
24515
24515
|
}
|
|
24516
|
-
|
|
24516
|
+
reset2();
|
|
24517
24517
|
return {
|
|
24518
24518
|
write,
|
|
24519
24519
|
rawWrite,
|
|
@@ -24533,7 +24533,7 @@ ${lanes.join("\n")}
|
|
|
24533
24533
|
isAtStartOfLine: () => lineStart,
|
|
24534
24534
|
hasTrailingComment: () => hasTrailingComment,
|
|
24535
24535
|
hasTrailingWhitespace: () => !!output.length && isWhiteSpaceLike(output.charCodeAt(output.length - 1)),
|
|
24536
|
-
clear:
|
|
24536
|
+
clear: reset2,
|
|
24537
24537
|
writeKeyword: write,
|
|
24538
24538
|
writeOperator: write,
|
|
24539
24539
|
writeParameter: write,
|
|
@@ -115134,11 +115134,11 @@ ${lanes.join("\n")}
|
|
|
115134
115134
|
return acc === void 0 ? decoded : acc + " " + decoded;
|
|
115135
115135
|
}
|
|
115136
115136
|
function decodeEntities(text) {
|
|
115137
|
-
return text.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, (match3, _all, _number, _digits, decimal,
|
|
115137
|
+
return text.replace(/&((#((\d+)|x([\da-fA-F]+)))|(\w+));/g, (match3, _all, _number, _digits, decimal, hex2, word2) => {
|
|
115138
115138
|
if (decimal) {
|
|
115139
115139
|
return utf16EncodeAsString(parseInt(decimal, 10));
|
|
115140
|
-
} else if (
|
|
115141
|
-
return utf16EncodeAsString(parseInt(
|
|
115140
|
+
} else if (hex2) {
|
|
115141
|
+
return utf16EncodeAsString(parseInt(hex2, 16));
|
|
115142
115142
|
} else {
|
|
115143
115143
|
const ch = entities.get(word2);
|
|
115144
115144
|
return ch ? utf16EncodeAsString(ch) : match3;
|
|
@@ -128529,7 +128529,7 @@ ${lanes.join("\n")}
|
|
|
128529
128529
|
select: (index2) => index2 === 0 ? parenthesizer.parenthesizeLeadingTypeArgument : void 0
|
|
128530
128530
|
};
|
|
128531
128531
|
var emitBinaryExpression = createEmitBinaryExpression();
|
|
128532
|
-
|
|
128532
|
+
reset2();
|
|
128533
128533
|
return {
|
|
128534
128534
|
// public API
|
|
128535
128535
|
printNode,
|
|
@@ -128600,7 +128600,7 @@ ${lanes.join("\n")}
|
|
|
128600
128600
|
void 0
|
|
128601
128601
|
);
|
|
128602
128602
|
print(hint, node, sourceFile);
|
|
128603
|
-
|
|
128603
|
+
reset2();
|
|
128604
128604
|
writer = previousWriter;
|
|
128605
128605
|
}
|
|
128606
128606
|
function writeList(format8, nodes, sourceFile, output) {
|
|
@@ -128619,7 +128619,7 @@ ${lanes.join("\n")}
|
|
|
128619
128619
|
nodes,
|
|
128620
128620
|
format8
|
|
128621
128621
|
);
|
|
128622
|
-
|
|
128622
|
+
reset2();
|
|
128623
128623
|
writer = previousWriter;
|
|
128624
128624
|
}
|
|
128625
128625
|
function getTextPosWithWriteLine() {
|
|
@@ -128715,7 +128715,7 @@ ${lanes.join("\n")}
|
|
|
128715
128715
|
}
|
|
128716
128716
|
}
|
|
128717
128717
|
}
|
|
128718
|
-
|
|
128718
|
+
reset2();
|
|
128719
128719
|
writer = previousWriter;
|
|
128720
128720
|
}
|
|
128721
128721
|
function writeUnparsedSource(unparsed, output) {
|
|
@@ -128731,7 +128731,7 @@ ${lanes.join("\n")}
|
|
|
128731
128731
|
/*sourceFile*/
|
|
128732
128732
|
void 0
|
|
128733
128733
|
);
|
|
128734
|
-
|
|
128734
|
+
reset2();
|
|
128735
128735
|
writer = previousWriter;
|
|
128736
128736
|
}
|
|
128737
128737
|
function writeFile22(sourceFile, output, sourceMapGenerator2) {
|
|
@@ -128741,7 +128741,7 @@ ${lanes.join("\n")}
|
|
|
128741
128741
|
emitShebangIfNeeded(sourceFile);
|
|
128742
128742
|
emitPrologueDirectivesIfNeeded(sourceFile);
|
|
128743
128743
|
print(0, sourceFile, sourceFile);
|
|
128744
|
-
|
|
128744
|
+
reset2();
|
|
128745
128745
|
writer = previousWriter;
|
|
128746
128746
|
}
|
|
128747
128747
|
function beginPrint() {
|
|
@@ -128779,7 +128779,7 @@ ${lanes.join("\n")}
|
|
|
128779
128779
|
sourceMapGenerator = _sourceMapGenerator;
|
|
128780
128780
|
sourceMapsDisabled = !writer || !sourceMapGenerator;
|
|
128781
128781
|
}
|
|
128782
|
-
function
|
|
128782
|
+
function reset2() {
|
|
128783
128783
|
nodeIdToGeneratedName = [];
|
|
128784
128784
|
nodeIdToGeneratedPrivateName = [];
|
|
128785
128785
|
autoGeneratedIdToGeneratedName = [];
|
|
@@ -151792,7 +151792,7 @@ ${lanes.join("\n")}
|
|
|
151792
151792
|
try {
|
|
151793
151793
|
return map4(primaryNavBarMenuItems(rootNavigationBarNode(sourceFile)), convertToPrimaryNavBarMenuItem);
|
|
151794
151794
|
} finally {
|
|
151795
|
-
|
|
151795
|
+
reset();
|
|
151796
151796
|
}
|
|
151797
151797
|
}
|
|
151798
151798
|
function getNavigationTree(sourceFile, cancellationToken) {
|
|
@@ -151801,10 +151801,10 @@ ${lanes.join("\n")}
|
|
|
151801
151801
|
try {
|
|
151802
151802
|
return convertToTree(rootNavigationBarNode(sourceFile));
|
|
151803
151803
|
} finally {
|
|
151804
|
-
|
|
151804
|
+
reset();
|
|
151805
151805
|
}
|
|
151806
151806
|
}
|
|
151807
|
-
function
|
|
151807
|
+
function reset() {
|
|
151808
151808
|
curSourceFile = void 0;
|
|
151809
151809
|
curCancellationToken = void 0;
|
|
151810
151810
|
parentsStack = [];
|
|
@@ -201942,7 +201942,7 @@ var require_esprima = __commonJS({
|
|
|
201942
201942
|
var valid = true;
|
|
201943
201943
|
var terminated = false;
|
|
201944
201944
|
var numeric = false;
|
|
201945
|
-
var
|
|
201945
|
+
var hex2 = false;
|
|
201946
201946
|
while (!this.scanner.eof() && valid && !terminated) {
|
|
201947
201947
|
var ch = this.scanner.source[this.scanner.index];
|
|
201948
201948
|
if (ch === quote) {
|
|
@@ -201958,14 +201958,14 @@ var require_esprima = __commonJS({
|
|
|
201958
201958
|
break;
|
|
201959
201959
|
case 3:
|
|
201960
201960
|
if (numeric) {
|
|
201961
|
-
|
|
201962
|
-
valid =
|
|
201963
|
-
numeric = numeric && !
|
|
201961
|
+
hex2 = ch === "x";
|
|
201962
|
+
valid = hex2 || character_1.Character.isDecimalDigit(ch.charCodeAt(0));
|
|
201963
|
+
numeric = numeric && !hex2;
|
|
201964
201964
|
}
|
|
201965
201965
|
break;
|
|
201966
201966
|
default:
|
|
201967
201967
|
valid = valid && !(numeric && !character_1.Character.isDecimalDigit(ch.charCodeAt(0)));
|
|
201968
|
-
valid = valid && !(
|
|
201968
|
+
valid = valid && !(hex2 && !character_1.Character.isHexDigit(ch.charCodeAt(0)));
|
|
201969
201969
|
break;
|
|
201970
201970
|
}
|
|
201971
201971
|
}
|
|
@@ -201974,9 +201974,9 @@ var require_esprima = __commonJS({
|
|
|
201974
201974
|
var str2 = result.substr(1, result.length - 2);
|
|
201975
201975
|
if (numeric && str2.length > 1) {
|
|
201976
201976
|
result = String.fromCharCode(parseInt(str2.substr(1), 10));
|
|
201977
|
-
} else if (
|
|
201977
|
+
} else if (hex2 && str2.length > 2) {
|
|
201978
201978
|
result = String.fromCharCode(parseInt("0" + str2.substr(1), 16));
|
|
201979
|
-
} else if (!numeric && !
|
|
201979
|
+
} else if (!numeric && !hex2 && xhtml_entities_1.XHTMLEntities[str2]) {
|
|
201980
201980
|
result = xhtml_entities_1.XHTMLEntities[str2];
|
|
201981
201981
|
}
|
|
201982
201982
|
}
|
|
@@ -210427,11 +210427,11 @@ var require_url_state_machine = __commonJS({
|
|
|
210427
210427
|
return specialSchemes[scheme];
|
|
210428
210428
|
}
|
|
210429
210429
|
function percentEncode(c) {
|
|
210430
|
-
let
|
|
210431
|
-
if (
|
|
210432
|
-
|
|
210430
|
+
let hex2 = c.toString(16).toUpperCase();
|
|
210431
|
+
if (hex2.length === 1) {
|
|
210432
|
+
hex2 = "0" + hex2;
|
|
210433
210433
|
}
|
|
210434
|
-
return "%" +
|
|
210434
|
+
return "%" + hex2;
|
|
210435
210435
|
}
|
|
210436
210436
|
function utf8PercentEncode(c) {
|
|
210437
210437
|
const buf = new Buffer(c);
|
|
@@ -215382,8 +215382,8 @@ function assembleStyles() {
|
|
|
215382
215382
|
enumerable: false
|
|
215383
215383
|
},
|
|
215384
215384
|
hexToRgb: {
|
|
215385
|
-
value(
|
|
215386
|
-
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(
|
|
215385
|
+
value(hex2) {
|
|
215386
|
+
const matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex2.toString(16));
|
|
215387
215387
|
if (!matches) {
|
|
215388
215388
|
return [0, 0, 0];
|
|
215389
215389
|
}
|
|
@@ -215403,7 +215403,7 @@ function assembleStyles() {
|
|
|
215403
215403
|
enumerable: false
|
|
215404
215404
|
},
|
|
215405
215405
|
hexToAnsi256: {
|
|
215406
|
-
value: (
|
|
215406
|
+
value: (hex2) => styles.rgbToAnsi256(...styles.hexToRgb(hex2)),
|
|
215407
215407
|
enumerable: false
|
|
215408
215408
|
},
|
|
215409
215409
|
ansi256ToAnsi: {
|
|
@@ -215445,7 +215445,7 @@ function assembleStyles() {
|
|
|
215445
215445
|
enumerable: false
|
|
215446
215446
|
},
|
|
215447
215447
|
hexToAnsi: {
|
|
215448
|
-
value: (
|
|
215448
|
+
value: (hex2) => styles.ansi256ToAnsi(styles.hexToAnsi256(hex2)),
|
|
215449
215449
|
enumerable: false
|
|
215450
215450
|
}
|
|
215451
215451
|
});
|
|
@@ -282118,14 +282118,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282118
282118
|
return (message) => {
|
|
282119
282119
|
console.error(
|
|
282120
282120
|
`
|
|
282121
|
-
|
|
282122
|
-
|
|
282123
|
-
${chalk.bold.hex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6")(
|
|
282124
|
-
">"
|
|
282125
|
-
)} ${chalk.bold.bgHex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.reset.hex(
|
|
282121
|
+
${chalk.bold.hex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6")(">")} ${chalk.bold.bgHex(config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6").white(" \u{1F480} Fatal ")} ${chalk.hex(
|
|
282126
282122
|
config2?.colors?.fatal ? config2.colors.fatal : "#1fb2a6"
|
|
282127
|
-
)(message)}
|
|
282128
|
-
|
|
282123
|
+
)(message)}
|
|
282129
282124
|
|
|
282130
282125
|
`
|
|
282131
282126
|
);
|
|
@@ -282135,15 +282130,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282135
282130
|
return (message) => {
|
|
282136
282131
|
console.error(
|
|
282137
282132
|
`
|
|
282138
|
-
|
|
282139
|
-
|
|
282140
|
-
${chalk.bold.hex(config2?.colors?.error ? config2.colors.error : "#7d1a1a")(
|
|
282141
|
-
">"
|
|
282142
|
-
)} ${chalk.bold.bgHex(config2?.colors?.error ? config2.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.reset.hex(
|
|
282133
|
+
${chalk.bold.hex(config2?.colors?.error ? config2.colors.error : "#7d1a1a")(">")} ${chalk.bold.bgHex(config2?.colors?.error ? config2.colors.error : "#7d1a1a").white(" \u{1F6D1} Error ")} ${chalk.hex(
|
|
282143
282134
|
config2?.colors?.error ? config2.colors.error : "#7d1a1a"
|
|
282144
|
-
)(message)}
|
|
282145
|
-
|
|
282146
|
-
|
|
282135
|
+
)(message)}
|
|
282147
282136
|
`
|
|
282148
282137
|
);
|
|
282149
282138
|
};
|
|
@@ -282152,15 +282141,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282152
282141
|
return (message) => {
|
|
282153
282142
|
console.warn(
|
|
282154
282143
|
`
|
|
282155
|
-
|
|
282156
|
-
|
|
282157
|
-
${chalk.bold.hex(config2?.colors?.warning ? config2.colors.warning : "#fcc419")(
|
|
282158
|
-
">"
|
|
282159
|
-
)} ${chalk.bold.bgHex(config2?.colors?.warning ? config2.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.reset.hex(
|
|
282144
|
+
${chalk.bold.hex(config2?.colors?.warning ? config2.colors.warning : "#fcc419")(">")} ${chalk.bold.bgHex(config2?.colors?.warning ? config2.colors.warning : "#fcc419").white(" \u26A0\uFE0F Warn ")} ${chalk.hex(
|
|
282160
282145
|
config2?.colors?.warning ? config2.colors.warning : "#fcc419"
|
|
282161
|
-
)(message)}
|
|
282162
|
-
|
|
282163
|
-
|
|
282146
|
+
)(message)}
|
|
282164
282147
|
`
|
|
282165
282148
|
);
|
|
282166
282149
|
};
|
|
@@ -282169,15 +282152,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282169
282152
|
return (message) => {
|
|
282170
282153
|
console.info(
|
|
282171
282154
|
`
|
|
282172
|
-
|
|
282173
|
-
|
|
282174
|
-
${chalk.bold.hex(config2?.colors?.info ? config2.colors.info : "#0ea5e9")(
|
|
282175
|
-
">"
|
|
282176
|
-
)} ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.reset.hex(
|
|
282155
|
+
${chalk.bold.hex(config2?.colors?.info ? config2.colors.info : "#0ea5e9")(">")} ${chalk.bold.bgHex(config2?.colors?.info ? config2.colors.info : "#0ea5e9").white(" \u{1F4EC} Info ")} ${chalk.hex(
|
|
282177
282156
|
config2?.colors?.info ? config2.colors.info : "#0ea5e9"
|
|
282178
|
-
)(message)}
|
|
282179
|
-
|
|
282180
|
-
|
|
282157
|
+
)(message)}
|
|
282181
282158
|
`
|
|
282182
282159
|
);
|
|
282183
282160
|
};
|
|
@@ -282186,15 +282163,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282186
282163
|
return (message) => {
|
|
282187
282164
|
console.info(
|
|
282188
282165
|
`
|
|
282189
|
-
|
|
282190
|
-
|
|
282191
|
-
${chalk.bold.hex(config2?.colors?.success ? config2.colors.success : "#087f5b")(
|
|
282192
|
-
">"
|
|
282193
|
-
)} ${chalk.bold.bgHex(config2?.colors?.success ? config2.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.reset.hex(
|
|
282166
|
+
${chalk.bold.hex(config2?.colors?.success ? config2.colors.success : "#087f5b")(">")} ${chalk.bold.bgHex(config2?.colors?.success ? config2.colors.success : "#087f5b").white(" \u{1F389} Success ")} ${chalk.hex(
|
|
282194
282167
|
config2?.colors?.success ? config2.colors.success : "#087f5b"
|
|
282195
|
-
)(message)}
|
|
282196
|
-
|
|
282197
|
-
|
|
282168
|
+
)(message)}
|
|
282198
282169
|
`
|
|
282199
282170
|
);
|
|
282200
282171
|
};
|
|
@@ -282203,15 +282174,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282203
282174
|
return (message) => {
|
|
282204
282175
|
console.debug(
|
|
282205
282176
|
`
|
|
282206
|
-
|
|
282207
|
-
|
|
282208
|
-
${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(
|
|
282209
|
-
">"
|
|
282210
|
-
)} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.reset.hex(
|
|
282177
|
+
${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white(" \u{1F9EA} Debug ")} ${chalk.hex(
|
|
282211
282178
|
config2?.colors?.primary ? config2.colors.primary : "#1fb2a6"
|
|
282212
|
-
)(message)}
|
|
282213
|
-
|
|
282214
|
-
|
|
282179
|
+
)(message)}
|
|
282215
282180
|
`
|
|
282216
282181
|
);
|
|
282217
282182
|
};
|
|
@@ -282219,15 +282184,9 @@ var getLogFn = (config2 = {}, logLevel = LogLevel.INFO) => {
|
|
|
282219
282184
|
return (message) => {
|
|
282220
282185
|
console.log(
|
|
282221
282186
|
`
|
|
282222
|
-
|
|
282223
|
-
|
|
282224
|
-
${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(
|
|
282225
|
-
">"
|
|
282226
|
-
)} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.bold.hex(
|
|
282187
|
+
${chalk.bold.hex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6")(">")} ${chalk.bold.bgHex(config2?.colors?.primary ? config2.colors.primary : "#1fb2a6").white(" \u{1F4E2} System ")} ${chalk.hex(
|
|
282227
282188
|
config2?.colors?.primary ? config2.colors.primary : "#1fb2a6"
|
|
282228
|
-
)(message)}
|
|
282229
|
-
|
|
282230
|
-
|
|
282189
|
+
)(message)}
|
|
282231
282190
|
`
|
|
282232
282191
|
);
|
|
282233
282192
|
};
|
|
@@ -299850,8 +299809,8 @@ function parseArguments(name, arguments_) {
|
|
|
299850
299809
|
}
|
|
299851
299810
|
return results;
|
|
299852
299811
|
}
|
|
299853
|
-
function parseHex(
|
|
299854
|
-
const n = Number.parseInt(
|
|
299812
|
+
function parseHex(hex2) {
|
|
299813
|
+
const n = Number.parseInt(hex2, 16);
|
|
299855
299814
|
return [
|
|
299856
299815
|
// eslint-disable-next-line no-bitwise
|
|
299857
299816
|
n >> 16 & 255,
|
|
@@ -301111,13 +301070,13 @@ var DummyCache = class {
|
|
|
301111
301070
|
var DEFAULT_CACHE_LOCATION = ".cspellcache";
|
|
301112
301071
|
var versionSuffix = "";
|
|
301113
301072
|
function createCache5(options) {
|
|
301114
|
-
const { useCache, cacheLocation, cacheStrategy, reset
|
|
301073
|
+
const { useCache, cacheLocation, cacheStrategy, reset } = options;
|
|
301115
301074
|
const location2 = path21.resolve(cacheLocation);
|
|
301116
301075
|
const useChecksum = cacheStrategy === "content";
|
|
301117
301076
|
const version3 = normalizeVersion(options.version);
|
|
301118
301077
|
const useUniversal = options.cacheFormat === "universal";
|
|
301119
301078
|
const cache3 = useCache ? new DiskCache(location2, useChecksum, version3, useUniversal) : new DummyCache();
|
|
301120
|
-
|
|
301079
|
+
reset && cache3.reset();
|
|
301121
301080
|
return cache3;
|
|
301122
301081
|
}
|
|
301123
301082
|
async function calcCacheSettings(config2, cacheOptions, root) {
|
|
@@ -302058,12 +302017,12 @@ function messageControl(options) {
|
|
|
302058
302017
|
}
|
|
302059
302018
|
const enable = "enable" in options && options.enable ? options.enable : [];
|
|
302060
302019
|
const disable = "disable" in options && options.disable ? options.disable : [];
|
|
302061
|
-
let
|
|
302020
|
+
let reset = options.reset;
|
|
302062
302021
|
const sources = typeof options.source === "string" ? [options.source] : options.source || [options.name];
|
|
302063
302022
|
return transformer;
|
|
302064
302023
|
function transformer(tree, file) {
|
|
302065
302024
|
const toOffset = location(file).toOffset;
|
|
302066
|
-
const initial = !
|
|
302025
|
+
const initial = !reset;
|
|
302067
302026
|
const gaps = detectGaps(tree, file);
|
|
302068
302027
|
const scope = {};
|
|
302069
302028
|
const globals = [];
|
|
@@ -302101,7 +302060,7 @@ function messageControl(options) {
|
|
|
302101
302060
|
toggle(tail, true);
|
|
302102
302061
|
} else {
|
|
302103
302062
|
toggle(point3, verb === "enable");
|
|
302104
|
-
|
|
302063
|
+
reset = verb !== "enable";
|
|
302105
302064
|
}
|
|
302106
302065
|
}
|
|
302107
302066
|
function filter5(message) {
|
|
@@ -302139,9 +302098,9 @@ function messageControl(options) {
|
|
|
302139
302098
|
return ranges[ranges.length - 1].state;
|
|
302140
302099
|
}
|
|
302141
302100
|
if (!ruleId) {
|
|
302142
|
-
return !
|
|
302101
|
+
return !reset;
|
|
302143
302102
|
}
|
|
302144
|
-
return
|
|
302103
|
+
return reset ? enable.includes(ruleId) : !disable.includes(ruleId);
|
|
302145
302104
|
}
|
|
302146
302105
|
function toggle(point3, state, ruleId) {
|
|
302147
302106
|
let markers = ruleId ? scope[ruleId] : globals;
|
|
@@ -302172,9 +302131,9 @@ function messageControl(options) {
|
|
|
302172
302131
|
}
|
|
302173
302132
|
}
|
|
302174
302133
|
if (!ruleId) {
|
|
302175
|
-
return Boolean(initial ||
|
|
302134
|
+
return Boolean(initial || reset);
|
|
302176
302135
|
}
|
|
302177
|
-
return
|
|
302136
|
+
return reset ? enable.includes(ruleId) : !disable.includes(ruleId);
|
|
302178
302137
|
}
|
|
302179
302138
|
}
|
|
302180
302139
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/linting-tools",
|
|
3
|
-
"version": "1.26.
|
|
3
|
+
"version": "1.26.15",
|
|
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": [
|