@storm-software/linting-tools 1.48.2 → 1.49.1
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 +21 -0
- package/README.md +1 -1
- package/alex/.alexignore +0 -0
- package/alex/.alexrc +0 -0
- package/bin/lint.js +394 -1347
- package/package.json +6 -6
- package/src/cli/index.js +339 -1325
- package/src/manypkg/index.js +69 -64
package/src/manypkg/index.js
CHANGED
|
@@ -6675,9 +6675,9 @@ var require_glob_parent = __commonJS({
|
|
|
6675
6675
|
}
|
|
6676
6676
|
});
|
|
6677
6677
|
|
|
6678
|
-
// node_modules/.pnpm/braces@3.0.
|
|
6678
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
6679
6679
|
var require_utils = __commonJS({
|
|
6680
|
-
"node_modules/.pnpm/braces@3.0.
|
|
6680
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
6681
6681
|
"use strict";
|
|
6682
6682
|
exports.isInteger = (num) => {
|
|
6683
6683
|
if (typeof num === "number") {
|
|
@@ -6695,7 +6695,7 @@ var require_utils = __commonJS({
|
|
|
6695
6695
|
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
6696
6696
|
};
|
|
6697
6697
|
exports.escapeNode = (block, n2 = 0, type) => {
|
|
6698
|
-
|
|
6698
|
+
const node = block.nodes[n2];
|
|
6699
6699
|
if (!node) return;
|
|
6700
6700
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
6701
6701
|
if (node.escaped !== true) {
|
|
@@ -6740,8 +6740,14 @@ var require_utils = __commonJS({
|
|
|
6740
6740
|
const result = [];
|
|
6741
6741
|
const flat = (arr) => {
|
|
6742
6742
|
for (let i2 = 0; i2 < arr.length; i2++) {
|
|
6743
|
-
|
|
6744
|
-
Array.isArray(ele)
|
|
6743
|
+
const ele = arr[i2];
|
|
6744
|
+
if (Array.isArray(ele)) {
|
|
6745
|
+
flat(ele);
|
|
6746
|
+
continue;
|
|
6747
|
+
}
|
|
6748
|
+
if (ele !== void 0) {
|
|
6749
|
+
result.push(ele);
|
|
6750
|
+
}
|
|
6745
6751
|
}
|
|
6746
6752
|
return result;
|
|
6747
6753
|
};
|
|
@@ -6751,15 +6757,15 @@ var require_utils = __commonJS({
|
|
|
6751
6757
|
}
|
|
6752
6758
|
});
|
|
6753
6759
|
|
|
6754
|
-
// node_modules/.pnpm/braces@3.0.
|
|
6760
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
6755
6761
|
var require_stringify = __commonJS({
|
|
6756
|
-
"node_modules/.pnpm/braces@3.0.
|
|
6762
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
6757
6763
|
"use strict";
|
|
6758
6764
|
var utils = require_utils();
|
|
6759
6765
|
module.exports = (ast, options = {}) => {
|
|
6760
|
-
|
|
6761
|
-
|
|
6762
|
-
|
|
6766
|
+
const stringify = (node, parent = {}) => {
|
|
6767
|
+
const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
|
|
6768
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
6763
6769
|
let output = "";
|
|
6764
6770
|
if (node.value) {
|
|
6765
6771
|
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) {
|
|
@@ -6771,7 +6777,7 @@ var require_stringify = __commonJS({
|
|
|
6771
6777
|
return node.value;
|
|
6772
6778
|
}
|
|
6773
6779
|
if (node.nodes) {
|
|
6774
|
-
for (
|
|
6780
|
+
for (const child of node.nodes) {
|
|
6775
6781
|
output += stringify(child);
|
|
6776
6782
|
}
|
|
6777
6783
|
}
|
|
@@ -7021,9 +7027,9 @@ var require_to_regex_range = __commonJS({
|
|
|
7021
7027
|
}
|
|
7022
7028
|
});
|
|
7023
7029
|
|
|
7024
|
-
// node_modules/.pnpm/fill-range@7.
|
|
7030
|
+
// node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
7025
7031
|
var require_fill_range = __commonJS({
|
|
7026
|
-
"node_modules/.pnpm/fill-range@7.
|
|
7032
|
+
"node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
7027
7033
|
"use strict";
|
|
7028
7034
|
/*!
|
|
7029
7035
|
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
@@ -7075,7 +7081,7 @@ var require_fill_range = __commonJS({
|
|
|
7075
7081
|
while (input.length < maxLength) input = "0" + input;
|
|
7076
7082
|
return negative ? "-" + input : input;
|
|
7077
7083
|
};
|
|
7078
|
-
var toSequence = (parts, options) => {
|
|
7084
|
+
var toSequence = (parts, options, maxLen) => {
|
|
7079
7085
|
parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0);
|
|
7080
7086
|
parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0);
|
|
7081
7087
|
let prefix = options.capture ? "" : "?:";
|
|
@@ -7083,10 +7089,10 @@ var require_fill_range = __commonJS({
|
|
|
7083
7089
|
let negatives = "";
|
|
7084
7090
|
let result;
|
|
7085
7091
|
if (parts.positives.length) {
|
|
7086
|
-
positives = parts.positives.join("|");
|
|
7092
|
+
positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|");
|
|
7087
7093
|
}
|
|
7088
7094
|
if (parts.negatives.length) {
|
|
7089
|
-
negatives = `-(${prefix}${parts.negatives.join("|")})`;
|
|
7095
|
+
negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`;
|
|
7090
7096
|
}
|
|
7091
7097
|
if (positives && negatives) {
|
|
7092
7098
|
result = `${positives}|${negatives}`;
|
|
@@ -7163,7 +7169,7 @@ var require_fill_range = __commonJS({
|
|
|
7163
7169
|
index++;
|
|
7164
7170
|
}
|
|
7165
7171
|
if (options.toRegex === true) {
|
|
7166
|
-
return step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: false, ...options });
|
|
7172
|
+
return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options });
|
|
7167
7173
|
}
|
|
7168
7174
|
return range;
|
|
7169
7175
|
};
|
|
@@ -7221,23 +7227,24 @@ var require_fill_range = __commonJS({
|
|
|
7221
7227
|
}
|
|
7222
7228
|
});
|
|
7223
7229
|
|
|
7224
|
-
// node_modules/.pnpm/braces@3.0.
|
|
7230
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
7225
7231
|
var require_compile = __commonJS({
|
|
7226
|
-
"node_modules/.pnpm/braces@3.0.
|
|
7232
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
7227
7233
|
"use strict";
|
|
7228
7234
|
var fill = require_fill_range();
|
|
7229
7235
|
var utils = require_utils();
|
|
7230
7236
|
var compile = (ast, options = {}) => {
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7237
|
+
const walk = (node, parent = {}) => {
|
|
7238
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
7239
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
7240
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
7241
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
7236
7242
|
let output = "";
|
|
7237
7243
|
if (node.isOpen === true) {
|
|
7238
7244
|
return prefix + node.value;
|
|
7239
7245
|
}
|
|
7240
7246
|
if (node.isClose === true) {
|
|
7247
|
+
console.log("node.isClose", prefix, node.value);
|
|
7241
7248
|
return prefix + node.value;
|
|
7242
7249
|
}
|
|
7243
7250
|
if (node.type === "open") {
|
|
@@ -7253,14 +7260,14 @@ var require_compile = __commonJS({
|
|
|
7253
7260
|
return node.value;
|
|
7254
7261
|
}
|
|
7255
7262
|
if (node.nodes && node.ranges > 0) {
|
|
7256
|
-
|
|
7257
|
-
|
|
7263
|
+
const args = utils.reduce(node.nodes);
|
|
7264
|
+
const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
|
|
7258
7265
|
if (range.length !== 0) {
|
|
7259
7266
|
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
7260
7267
|
}
|
|
7261
7268
|
}
|
|
7262
7269
|
if (node.nodes) {
|
|
7263
|
-
for (
|
|
7270
|
+
for (const child of node.nodes) {
|
|
7264
7271
|
output += walk(child, node);
|
|
7265
7272
|
}
|
|
7266
7273
|
}
|
|
@@ -7272,24 +7279,24 @@ var require_compile = __commonJS({
|
|
|
7272
7279
|
}
|
|
7273
7280
|
});
|
|
7274
7281
|
|
|
7275
|
-
// node_modules/.pnpm/braces@3.0.
|
|
7282
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
7276
7283
|
var require_expand = __commonJS({
|
|
7277
|
-
"node_modules/.pnpm/braces@3.0.
|
|
7284
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
7278
7285
|
"use strict";
|
|
7279
7286
|
var fill = require_fill_range();
|
|
7280
7287
|
var stringify = require_stringify();
|
|
7281
7288
|
var utils = require_utils();
|
|
7282
7289
|
var append = (queue = "", stash = "", enclose = false) => {
|
|
7283
|
-
|
|
7290
|
+
const result = [];
|
|
7284
7291
|
queue = [].concat(queue);
|
|
7285
7292
|
stash = [].concat(stash);
|
|
7286
7293
|
if (!stash.length) return queue;
|
|
7287
7294
|
if (!queue.length) {
|
|
7288
7295
|
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
7289
7296
|
}
|
|
7290
|
-
for (
|
|
7297
|
+
for (const item of queue) {
|
|
7291
7298
|
if (Array.isArray(item)) {
|
|
7292
|
-
for (
|
|
7299
|
+
for (const value of item) {
|
|
7293
7300
|
result.push(append(value, stash, enclose));
|
|
7294
7301
|
}
|
|
7295
7302
|
} else {
|
|
@@ -7302,8 +7309,8 @@ var require_expand = __commonJS({
|
|
|
7302
7309
|
return utils.flatten(result);
|
|
7303
7310
|
};
|
|
7304
7311
|
var expand = (ast, options = {}) => {
|
|
7305
|
-
|
|
7306
|
-
|
|
7312
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
7313
|
+
const walk = (node, parent = {}) => {
|
|
7307
7314
|
node.queue = [];
|
|
7308
7315
|
let p = parent;
|
|
7309
7316
|
let q = parent.queue;
|
|
@@ -7320,7 +7327,7 @@ var require_expand = __commonJS({
|
|
|
7320
7327
|
return;
|
|
7321
7328
|
}
|
|
7322
7329
|
if (node.nodes && node.ranges > 0) {
|
|
7323
|
-
|
|
7330
|
+
const args = utils.reduce(node.nodes);
|
|
7324
7331
|
if (utils.exceedsLimit(...args, options.step, rangeLimit)) {
|
|
7325
7332
|
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
7326
7333
|
}
|
|
@@ -7332,7 +7339,7 @@ var require_expand = __commonJS({
|
|
|
7332
7339
|
node.nodes = [];
|
|
7333
7340
|
return;
|
|
7334
7341
|
}
|
|
7335
|
-
|
|
7342
|
+
const enclose = utils.encloseBrace(node);
|
|
7336
7343
|
let queue = node.queue;
|
|
7337
7344
|
let block = node;
|
|
7338
7345
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -7340,7 +7347,7 @@ var require_expand = __commonJS({
|
|
|
7340
7347
|
queue = block.queue;
|
|
7341
7348
|
}
|
|
7342
7349
|
for (let i2 = 0; i2 < node.nodes.length; i2++) {
|
|
7343
|
-
|
|
7350
|
+
const child = node.nodes[i2];
|
|
7344
7351
|
if (child.type === "comma" && node.type === "brace") {
|
|
7345
7352
|
if (i2 === 1) queue.push("");
|
|
7346
7353
|
queue.push("");
|
|
@@ -7366,12 +7373,12 @@ var require_expand = __commonJS({
|
|
|
7366
7373
|
}
|
|
7367
7374
|
});
|
|
7368
7375
|
|
|
7369
|
-
// node_modules/.pnpm/braces@3.0.
|
|
7376
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
7370
7377
|
var require_constants = __commonJS({
|
|
7371
|
-
"node_modules/.pnpm/braces@3.0.
|
|
7378
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
7372
7379
|
"use strict";
|
|
7373
7380
|
module.exports = {
|
|
7374
|
-
MAX_LENGTH:
|
|
7381
|
+
MAX_LENGTH: 1e4,
|
|
7375
7382
|
// Digits
|
|
7376
7383
|
CHAR_0: "0",
|
|
7377
7384
|
/* 0 */
|
|
@@ -7467,9 +7474,9 @@ var require_constants = __commonJS({
|
|
|
7467
7474
|
}
|
|
7468
7475
|
});
|
|
7469
7476
|
|
|
7470
|
-
// node_modules/.pnpm/braces@3.0.
|
|
7477
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
7471
7478
|
var require_parse = __commonJS({
|
|
7472
|
-
"node_modules/.pnpm/braces@3.0.
|
|
7479
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
7473
7480
|
"use strict";
|
|
7474
7481
|
var stringify = require_stringify();
|
|
7475
7482
|
var {
|
|
@@ -7505,21 +7512,20 @@ var require_parse = __commonJS({
|
|
|
7505
7512
|
if (typeof input !== "string") {
|
|
7506
7513
|
throw new TypeError("Expected a string");
|
|
7507
7514
|
}
|
|
7508
|
-
|
|
7509
|
-
|
|
7515
|
+
const opts = options || {};
|
|
7516
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
7510
7517
|
if (input.length > max) {
|
|
7511
7518
|
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
7512
7519
|
}
|
|
7513
|
-
|
|
7514
|
-
|
|
7520
|
+
const ast = { type: "root", input, nodes: [] };
|
|
7521
|
+
const stack = [ast];
|
|
7515
7522
|
let block = ast;
|
|
7516
7523
|
let prev = ast;
|
|
7517
7524
|
let brackets = 0;
|
|
7518
|
-
|
|
7525
|
+
const length = input.length;
|
|
7519
7526
|
let index = 0;
|
|
7520
7527
|
let depth = 0;
|
|
7521
7528
|
let value;
|
|
7522
|
-
let memo = {};
|
|
7523
7529
|
const advance = () => input[index++];
|
|
7524
7530
|
const push = (node) => {
|
|
7525
7531
|
if (node.type === "text" && prev.type === "dot") {
|
|
@@ -7552,7 +7558,6 @@ var require_parse = __commonJS({
|
|
|
7552
7558
|
}
|
|
7553
7559
|
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
7554
7560
|
brackets++;
|
|
7555
|
-
let closed = true;
|
|
7556
7561
|
let next;
|
|
7557
7562
|
while (index < length && (next = advance())) {
|
|
7558
7563
|
value += next;
|
|
@@ -7591,7 +7596,7 @@ var require_parse = __commonJS({
|
|
|
7591
7596
|
continue;
|
|
7592
7597
|
}
|
|
7593
7598
|
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
7594
|
-
|
|
7599
|
+
const open = value;
|
|
7595
7600
|
let next;
|
|
7596
7601
|
if (options.keepQuotes !== true) {
|
|
7597
7602
|
value = "";
|
|
@@ -7612,8 +7617,8 @@ var require_parse = __commonJS({
|
|
|
7612
7617
|
}
|
|
7613
7618
|
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
7614
7619
|
depth++;
|
|
7615
|
-
|
|
7616
|
-
|
|
7620
|
+
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
7621
|
+
const brace = {
|
|
7617
7622
|
type: "brace",
|
|
7618
7623
|
open: true,
|
|
7619
7624
|
close: false,
|
|
@@ -7633,7 +7638,7 @@ var require_parse = __commonJS({
|
|
|
7633
7638
|
push({ type: "text", value });
|
|
7634
7639
|
continue;
|
|
7635
7640
|
}
|
|
7636
|
-
|
|
7641
|
+
const type = "close";
|
|
7637
7642
|
block = stack.pop();
|
|
7638
7643
|
block.close = true;
|
|
7639
7644
|
push({ type, value });
|
|
@@ -7644,7 +7649,7 @@ var require_parse = __commonJS({
|
|
|
7644
7649
|
if (value === CHAR_COMMA && depth > 0) {
|
|
7645
7650
|
if (block.ranges > 0) {
|
|
7646
7651
|
block.ranges = 0;
|
|
7647
|
-
|
|
7652
|
+
const open = block.nodes.shift();
|
|
7648
7653
|
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
7649
7654
|
}
|
|
7650
7655
|
push({ type: "comma", value });
|
|
@@ -7652,7 +7657,7 @@ var require_parse = __commonJS({
|
|
|
7652
7657
|
continue;
|
|
7653
7658
|
}
|
|
7654
7659
|
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
7655
|
-
|
|
7660
|
+
const siblings = block.nodes;
|
|
7656
7661
|
if (depth === 0 || siblings.length === 0) {
|
|
7657
7662
|
push({ type: "text", value });
|
|
7658
7663
|
continue;
|
|
@@ -7673,7 +7678,7 @@ var require_parse = __commonJS({
|
|
|
7673
7678
|
}
|
|
7674
7679
|
if (prev.type === "range") {
|
|
7675
7680
|
siblings.pop();
|
|
7676
|
-
|
|
7681
|
+
const before = siblings[siblings.length - 1];
|
|
7677
7682
|
before.value += prev.value + value;
|
|
7678
7683
|
prev = before;
|
|
7679
7684
|
block.ranges--;
|
|
@@ -7695,8 +7700,8 @@ var require_parse = __commonJS({
|
|
|
7695
7700
|
node.invalid = true;
|
|
7696
7701
|
}
|
|
7697
7702
|
});
|
|
7698
|
-
|
|
7699
|
-
|
|
7703
|
+
const parent = stack[stack.length - 1];
|
|
7704
|
+
const index2 = parent.nodes.indexOf(block);
|
|
7700
7705
|
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
7701
7706
|
}
|
|
7702
7707
|
} while (stack.length > 0);
|
|
@@ -7707,9 +7712,9 @@ var require_parse = __commonJS({
|
|
|
7707
7712
|
}
|
|
7708
7713
|
});
|
|
7709
7714
|
|
|
7710
|
-
// node_modules/.pnpm/braces@3.0.
|
|
7715
|
+
// node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
7711
7716
|
var require_braces = __commonJS({
|
|
7712
|
-
"node_modules/.pnpm/braces@3.0.
|
|
7717
|
+
"node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
7713
7718
|
"use strict";
|
|
7714
7719
|
var stringify = require_stringify();
|
|
7715
7720
|
var compile = require_compile();
|
|
@@ -7718,8 +7723,8 @@ var require_braces = __commonJS({
|
|
|
7718
7723
|
var braces = (input, options = {}) => {
|
|
7719
7724
|
let output = [];
|
|
7720
7725
|
if (Array.isArray(input)) {
|
|
7721
|
-
for (
|
|
7722
|
-
|
|
7726
|
+
for (const pattern of input) {
|
|
7727
|
+
const result = braces.create(pattern, options);
|
|
7723
7728
|
if (Array.isArray(result)) {
|
|
7724
7729
|
output.push(...result);
|
|
7725
7730
|
} else {
|
|
@@ -9280,9 +9285,9 @@ var require_picomatch2 = __commonJS({
|
|
|
9280
9285
|
}
|
|
9281
9286
|
});
|
|
9282
9287
|
|
|
9283
|
-
// node_modules/.pnpm/micromatch@4.0.
|
|
9288
|
+
// node_modules/.pnpm/micromatch@4.0.7/node_modules/micromatch/index.js
|
|
9284
9289
|
var require_micromatch = __commonJS({
|
|
9285
|
-
"node_modules/.pnpm/micromatch@4.0.
|
|
9290
|
+
"node_modules/.pnpm/micromatch@4.0.7/node_modules/micromatch/index.js"(exports, module) {
|
|
9286
9291
|
"use strict";
|
|
9287
9292
|
var util2 = __require("util");
|
|
9288
9293
|
var braces = require_braces();
|