@storm-software/linting-tools 1.103.6 → 1.104.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/README.md +1 -1
- package/bin/lint.cjs +13 -12
- package/bin/lint.js +13 -12
- package/dist/index.cjs +13 -12
- package/dist/index.js +13 -12
- package/package.json +142 -1
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.cjs
CHANGED
|
@@ -438,7 +438,8 @@ var CONSOLE_ICONS = {
|
|
|
438
438
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
439
439
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
440
440
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
441
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
441
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
442
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
442
443
|
};
|
|
443
444
|
|
|
444
445
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -509,48 +510,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
509
510
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
510
511
|
return (message) => {
|
|
511
512
|
console.error(`
|
|
512
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
513
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
513
514
|
`);
|
|
514
515
|
};
|
|
515
516
|
}
|
|
516
517
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
517
518
|
return (message) => {
|
|
518
519
|
console.error(`
|
|
519
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
520
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
520
521
|
`);
|
|
521
522
|
};
|
|
522
523
|
}
|
|
523
524
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
524
525
|
return (message) => {
|
|
525
526
|
console.warn(`
|
|
526
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
527
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
527
528
|
`);
|
|
528
529
|
};
|
|
529
530
|
}
|
|
530
531
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
531
532
|
return (message) => {
|
|
532
533
|
console.info(`
|
|
533
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
534
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
534
535
|
`);
|
|
535
536
|
};
|
|
536
537
|
}
|
|
537
538
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
538
539
|
return (message) => {
|
|
539
540
|
console.info(`
|
|
540
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
541
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
541
542
|
`);
|
|
542
543
|
};
|
|
543
544
|
}
|
|
544
545
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
545
546
|
return (message) => {
|
|
546
547
|
console.debug(`
|
|
547
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
548
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
548
549
|
`);
|
|
549
550
|
};
|
|
550
551
|
}
|
|
551
552
|
return (message) => {
|
|
552
553
|
console.log(`
|
|
553
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
554
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
554
555
|
`);
|
|
555
556
|
};
|
|
556
557
|
}, "getLogFn");
|
|
@@ -624,26 +625,26 @@ Stacktrace: ${error.stack}`, config);
|
|
|
624
625
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
625
626
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
626
627
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
627
|
-
let config = (0, import_c12.loadConfig)({
|
|
628
|
+
let config = await (0, import_c12.loadConfig)({
|
|
628
629
|
cwd: workspacePath,
|
|
629
630
|
packageJson: true,
|
|
630
631
|
name: fileName,
|
|
631
632
|
envName: fileName?.toUpperCase(),
|
|
632
633
|
jitiOptions: {
|
|
633
634
|
debug: false,
|
|
634
|
-
|
|
635
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
635
636
|
},
|
|
636
637
|
...options
|
|
637
638
|
});
|
|
638
639
|
if (!config || Object.keys(config).length === 0) {
|
|
639
|
-
config = (0, import_c12.loadConfig)({
|
|
640
|
+
config = await (0, import_c12.loadConfig)({
|
|
640
641
|
cwd: workspacePath,
|
|
641
642
|
packageJson: true,
|
|
642
643
|
name: fileName,
|
|
643
644
|
envName: fileName?.toUpperCase(),
|
|
644
645
|
jitiOptions: {
|
|
645
646
|
debug: false,
|
|
646
|
-
|
|
647
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
647
648
|
},
|
|
648
649
|
configFile: fileName,
|
|
649
650
|
...options
|
package/bin/lint.js
CHANGED
|
@@ -417,7 +417,8 @@ var CONSOLE_ICONS = {
|
|
|
417
417
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
418
418
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
419
419
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
420
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
420
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
421
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
421
422
|
};
|
|
422
423
|
|
|
423
424
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -488,48 +489,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
488
489
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
489
490
|
return (message) => {
|
|
490
491
|
console.error(`
|
|
491
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
492
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
492
493
|
`);
|
|
493
494
|
};
|
|
494
495
|
}
|
|
495
496
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
496
497
|
return (message) => {
|
|
497
498
|
console.error(`
|
|
498
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
499
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
499
500
|
`);
|
|
500
501
|
};
|
|
501
502
|
}
|
|
502
503
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
503
504
|
return (message) => {
|
|
504
505
|
console.warn(`
|
|
505
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
506
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
506
507
|
`);
|
|
507
508
|
};
|
|
508
509
|
}
|
|
509
510
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
510
511
|
return (message) => {
|
|
511
512
|
console.info(`
|
|
512
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
513
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
513
514
|
`);
|
|
514
515
|
};
|
|
515
516
|
}
|
|
516
517
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
517
518
|
return (message) => {
|
|
518
519
|
console.info(`
|
|
519
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
520
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
520
521
|
`);
|
|
521
522
|
};
|
|
522
523
|
}
|
|
523
524
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
524
525
|
return (message) => {
|
|
525
526
|
console.debug(`
|
|
526
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
527
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
527
528
|
`);
|
|
528
529
|
};
|
|
529
530
|
}
|
|
530
531
|
return (message) => {
|
|
531
532
|
console.log(`
|
|
532
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
533
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
533
534
|
`);
|
|
534
535
|
};
|
|
535
536
|
}, "getLogFn");
|
|
@@ -603,26 +604,26 @@ Stacktrace: ${error.stack}`, config);
|
|
|
603
604
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
604
605
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
605
606
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
606
|
-
let config = loadConfig({
|
|
607
|
+
let config = await loadConfig({
|
|
607
608
|
cwd: workspacePath,
|
|
608
609
|
packageJson: true,
|
|
609
610
|
name: fileName,
|
|
610
611
|
envName: fileName?.toUpperCase(),
|
|
611
612
|
jitiOptions: {
|
|
612
613
|
debug: false,
|
|
613
|
-
|
|
614
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
614
615
|
},
|
|
615
616
|
...options
|
|
616
617
|
});
|
|
617
618
|
if (!config || Object.keys(config).length === 0) {
|
|
618
|
-
config = loadConfig({
|
|
619
|
+
config = await loadConfig({
|
|
619
620
|
cwd: workspacePath,
|
|
620
621
|
packageJson: true,
|
|
621
622
|
name: fileName,
|
|
622
623
|
envName: fileName?.toUpperCase(),
|
|
623
624
|
jitiOptions: {
|
|
624
625
|
debug: false,
|
|
625
|
-
|
|
626
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
626
627
|
},
|
|
627
628
|
configFile: fileName,
|
|
628
629
|
...options
|
package/dist/index.cjs
CHANGED
|
@@ -416,7 +416,8 @@ var CONSOLE_ICONS = {
|
|
|
416
416
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
417
417
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
418
418
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
419
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
419
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
420
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
420
421
|
};
|
|
421
422
|
|
|
422
423
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -487,48 +488,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
487
488
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
488
489
|
return (message) => {
|
|
489
490
|
console.error(`
|
|
490
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
491
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
492
|
`);
|
|
492
493
|
};
|
|
493
494
|
}
|
|
494
495
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
495
496
|
return (message) => {
|
|
496
497
|
console.error(`
|
|
497
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
498
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
499
|
`);
|
|
499
500
|
};
|
|
500
501
|
}
|
|
501
502
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
502
503
|
return (message) => {
|
|
503
504
|
console.warn(`
|
|
504
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
505
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
506
|
`);
|
|
506
507
|
};
|
|
507
508
|
}
|
|
508
509
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
509
510
|
return (message) => {
|
|
510
511
|
console.info(`
|
|
511
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
512
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
513
|
`);
|
|
513
514
|
};
|
|
514
515
|
}
|
|
515
516
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
516
517
|
return (message) => {
|
|
517
518
|
console.info(`
|
|
518
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
519
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
519
520
|
`);
|
|
520
521
|
};
|
|
521
522
|
}
|
|
522
523
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
523
524
|
return (message) => {
|
|
524
525
|
console.debug(`
|
|
525
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
526
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
527
|
`);
|
|
527
528
|
};
|
|
528
529
|
}
|
|
529
530
|
return (message) => {
|
|
530
531
|
console.log(`
|
|
531
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
532
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
532
533
|
`);
|
|
533
534
|
};
|
|
534
535
|
}, "getLogFn");
|
|
@@ -568,26 +569,26 @@ var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
|
568
569
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
569
570
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
570
571
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
571
|
-
let config = _c12.loadConfig.call(void 0, {
|
|
572
|
+
let config = await _c12.loadConfig.call(void 0, {
|
|
572
573
|
cwd: workspacePath,
|
|
573
574
|
packageJson: true,
|
|
574
575
|
name: fileName,
|
|
575
576
|
envName: _optionalChain([fileName, 'optionalAccess', _30 => _30.toUpperCase, 'call', _31 => _31()]),
|
|
576
577
|
jitiOptions: {
|
|
577
578
|
debug: false,
|
|
578
|
-
|
|
579
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
579
580
|
},
|
|
580
581
|
...options
|
|
581
582
|
});
|
|
582
583
|
if (!config || Object.keys(config).length === 0) {
|
|
583
|
-
config = _c12.loadConfig.call(void 0, {
|
|
584
|
+
config = await _c12.loadConfig.call(void 0, {
|
|
584
585
|
cwd: workspacePath,
|
|
585
586
|
packageJson: true,
|
|
586
587
|
name: fileName,
|
|
587
588
|
envName: _optionalChain([fileName, 'optionalAccess', _32 => _32.toUpperCase, 'call', _33 => _33()]),
|
|
588
589
|
jitiOptions: {
|
|
589
590
|
debug: false,
|
|
590
|
-
|
|
591
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
591
592
|
},
|
|
592
593
|
configFile: fileName,
|
|
593
594
|
...options
|
package/dist/index.js
CHANGED
|
@@ -416,7 +416,8 @@ var CONSOLE_ICONS = {
|
|
|
416
416
|
[LogLevelLabel.INFO]: useIcon("\u2139", "i"),
|
|
417
417
|
[LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
|
|
418
418
|
[LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
|
|
419
|
-
[LogLevelLabel.TRACE]: useIcon("\
|
|
419
|
+
[LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
|
|
420
|
+
[LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
|
|
420
421
|
};
|
|
421
422
|
|
|
422
423
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
@@ -487,48 +488,48 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
|
|
|
487
488
|
if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
|
|
488
489
|
return (message) => {
|
|
489
490
|
console.error(`
|
|
490
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
491
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
491
492
|
`);
|
|
492
493
|
};
|
|
493
494
|
}
|
|
494
495
|
if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
|
|
495
496
|
return (message) => {
|
|
496
497
|
console.error(`
|
|
497
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
498
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
498
499
|
`);
|
|
499
500
|
};
|
|
500
501
|
}
|
|
501
502
|
if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
|
|
502
503
|
return (message) => {
|
|
503
504
|
console.warn(`
|
|
504
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
505
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
505
506
|
`);
|
|
506
507
|
};
|
|
507
508
|
}
|
|
508
509
|
if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
|
|
509
510
|
return (message) => {
|
|
510
511
|
console.info(`
|
|
511
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
512
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
512
513
|
`);
|
|
513
514
|
};
|
|
514
515
|
}
|
|
515
516
|
if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
|
|
516
517
|
return (message) => {
|
|
517
518
|
console.info(`
|
|
518
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
519
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
519
520
|
`);
|
|
520
521
|
};
|
|
521
522
|
}
|
|
522
523
|
if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
|
|
523
524
|
return (message) => {
|
|
524
525
|
console.debug(`
|
|
525
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
526
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
526
527
|
`);
|
|
527
528
|
};
|
|
528
529
|
}
|
|
529
530
|
return (message) => {
|
|
530
531
|
console.log(`
|
|
531
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.
|
|
532
|
+
${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
532
533
|
`);
|
|
533
534
|
};
|
|
534
535
|
}, "getLogFn");
|
|
@@ -568,26 +569,26 @@ var _isFunction = /* @__PURE__ */ __name((value) => {
|
|
|
568
569
|
// ../config-tools/src/config-file/get-config-file.ts
|
|
569
570
|
var getConfigFileByName = /* @__PURE__ */ __name(async (fileName, filePath, options = {}) => {
|
|
570
571
|
const workspacePath = filePath || findWorkspaceRoot(filePath);
|
|
571
|
-
let config = loadConfig({
|
|
572
|
+
let config = await loadConfig({
|
|
572
573
|
cwd: workspacePath,
|
|
573
574
|
packageJson: true,
|
|
574
575
|
name: fileName,
|
|
575
576
|
envName: fileName?.toUpperCase(),
|
|
576
577
|
jitiOptions: {
|
|
577
578
|
debug: false,
|
|
578
|
-
|
|
579
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
579
580
|
},
|
|
580
581
|
...options
|
|
581
582
|
});
|
|
582
583
|
if (!config || Object.keys(config).length === 0) {
|
|
583
|
-
config = loadConfig({
|
|
584
|
+
config = await loadConfig({
|
|
584
585
|
cwd: workspacePath,
|
|
585
586
|
packageJson: true,
|
|
586
587
|
name: fileName,
|
|
587
588
|
envName: fileName?.toUpperCase(),
|
|
588
589
|
jitiOptions: {
|
|
589
590
|
debug: false,
|
|
590
|
-
|
|
591
|
+
fsCache: process.env.STORM_SKIP_CACHE === "true" ? false : joinPaths(process.env.STORM_CACHE_DIR || "node_modules/.cache/storm", "jiti")
|
|
591
592
|
},
|
|
592
593
|
configFile: fileName,
|
|
593
594
|
...options
|
package/package.json
CHANGED
|
@@ -1 +1,142 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@storm-software/linting-tools",
|
|
3
|
+
"version": "1.104.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "⚡ A package containing various linting tools used to validate syntax, enforce design standards, and format code in a Storm workspace.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "github",
|
|
8
|
+
"url": "https://github.com/storm-software/storm-ops",
|
|
9
|
+
"directory": "packages/linting-tools"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://stormsoftware.com",
|
|
12
|
+
"bugs": "https://github.com/storm-software/storm-ops/issues",
|
|
13
|
+
"author": {
|
|
14
|
+
"name": "Storm Software",
|
|
15
|
+
"email": "contact@stormsoftware.com",
|
|
16
|
+
"url": "https://stormsoftware.com"
|
|
17
|
+
},
|
|
18
|
+
"maintainers": [
|
|
19
|
+
{
|
|
20
|
+
"name": "Storm Software",
|
|
21
|
+
"email": "contact@stormsoftware.com",
|
|
22
|
+
"url": "https://stormsoftware.com"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"name": "Pat Sullivan",
|
|
26
|
+
"email": "admin@stormsoftware.com",
|
|
27
|
+
"url": "https://patsullivan.org"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
"contributors": [
|
|
31
|
+
{
|
|
32
|
+
"name": "Storm Software",
|
|
33
|
+
"email": "contact@stormsoftware.com",
|
|
34
|
+
"url": "https://stormsoftware.com"
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
"funding": {
|
|
38
|
+
"type": "github",
|
|
39
|
+
"url": "https://github.com/sponsors/storm-software"
|
|
40
|
+
},
|
|
41
|
+
"license": "Apache-2.0",
|
|
42
|
+
"private": false,
|
|
43
|
+
"packageManager": "pnpm@9.15.2",
|
|
44
|
+
"engines": { "node": ">=22.4.0", "pnpm": ">=9.15.2" },
|
|
45
|
+
"bin": {
|
|
46
|
+
"storm-lint": "./bin/lint.cjs",
|
|
47
|
+
"storm-lint-esm": "./bin/lint.js",
|
|
48
|
+
"storm-lint-cjs": "./bin/lint.cjs"
|
|
49
|
+
},
|
|
50
|
+
"main": "./dist/index.cjs",
|
|
51
|
+
"module": "./dist/index.js",
|
|
52
|
+
"exports": {
|
|
53
|
+
"./package.json": "./package.json",
|
|
54
|
+
".": {
|
|
55
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
56
|
+
"require": {
|
|
57
|
+
"types": "./dist/index.d.cts",
|
|
58
|
+
"default": "./dist/index.cjs"
|
|
59
|
+
},
|
|
60
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
61
|
+
},
|
|
62
|
+
"./index": {
|
|
63
|
+
"import": { "types": "./dist/index.d.ts", "default": "./dist/index.js" },
|
|
64
|
+
"require": {
|
|
65
|
+
"types": "./dist/index.d.cts",
|
|
66
|
+
"default": "./dist/index.cjs"
|
|
67
|
+
},
|
|
68
|
+
"default": { "types": "./dist/index.d.ts", "default": "./dist/index.js" }
|
|
69
|
+
},
|
|
70
|
+
"./biome/*": "./biome/*",
|
|
71
|
+
"./ls-lint/*": "./ls-lint/*",
|
|
72
|
+
"./syncpack/*": "./syncpack/*",
|
|
73
|
+
"./cspell/*": "./cspell/*",
|
|
74
|
+
"./alex/*": "./alex/*",
|
|
75
|
+
"./taplo/*": "./taplo/*",
|
|
76
|
+
"./zizmor/*": "./zizmor/*",
|
|
77
|
+
"./dependency-cruiser/*": "./dependency-cruiser/*"
|
|
78
|
+
},
|
|
79
|
+
"types": "./dist/index.d.ts",
|
|
80
|
+
"files": [
|
|
81
|
+
"alex/**/*",
|
|
82
|
+
"bin/**/*",
|
|
83
|
+
"biome/**/*",
|
|
84
|
+
"cspell/**/*",
|
|
85
|
+
"dist/**/*",
|
|
86
|
+
"ls-lint/**/*",
|
|
87
|
+
"syncpack/**/*",
|
|
88
|
+
"taplo/**/*",
|
|
89
|
+
"zizmor/**/*"
|
|
90
|
+
],
|
|
91
|
+
"keywords": [
|
|
92
|
+
"storm-software",
|
|
93
|
+
"monorepo",
|
|
94
|
+
"storm-ops",
|
|
95
|
+
"sullivanpj",
|
|
96
|
+
"manypkg",
|
|
97
|
+
"ls-lint",
|
|
98
|
+
"cspell",
|
|
99
|
+
"biome",
|
|
100
|
+
"alex",
|
|
101
|
+
"taplo",
|
|
102
|
+
"syncpack",
|
|
103
|
+
"zizmor"
|
|
104
|
+
],
|
|
105
|
+
"peerDependencies": { "@storm-software/cspell": "workspace:*" },
|
|
106
|
+
"peerDependenciesMeta": { "@storm-software/cspell": { "optional": false } },
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@angular-devkit/architect": "0.1900.6",
|
|
109
|
+
"@manypkg/cli": "0.21.4",
|
|
110
|
+
"@manypkg/get-packages": "2.2.1",
|
|
111
|
+
"alex": "11.0.1",
|
|
112
|
+
"check-dependency-version-consistency": "4.1.0",
|
|
113
|
+
"commander": "^12.1.0",
|
|
114
|
+
"dpdm": "3.14.0",
|
|
115
|
+
"fast-glob": "3.3.2",
|
|
116
|
+
"fs-extra": "11.2.0",
|
|
117
|
+
"octokit": "4.0.2",
|
|
118
|
+
"p-limit": "5.0.0",
|
|
119
|
+
"rehype-parse": "9.0.0",
|
|
120
|
+
"rehype-retext": "4.0.0",
|
|
121
|
+
"remark-frontmatter": "5.0.0",
|
|
122
|
+
"remark-gfm": "4.0.0",
|
|
123
|
+
"remark-mdx": "3.0.1",
|
|
124
|
+
"remark-parse": "11.0.0",
|
|
125
|
+
"remark-retext": "6.0.0",
|
|
126
|
+
"retext-english": "5.0.0",
|
|
127
|
+
"retext-equality": "7.1.0",
|
|
128
|
+
"retext-profanities": "8.0.0",
|
|
129
|
+
"spawndamnit": "2.0.0",
|
|
130
|
+
"tsconfig-paths": "4.2.0",
|
|
131
|
+
"unified": "11.0.5",
|
|
132
|
+
"unified-engine": "11.2.1",
|
|
133
|
+
"vfile-reporter": "8.1.1"
|
|
134
|
+
},
|
|
135
|
+
"devDependencies": {
|
|
136
|
+
"@storm-software/cspell": "0.6.1",
|
|
137
|
+
"@types/node": "^22.10.2",
|
|
138
|
+
"cspell": "8.8.4",
|
|
139
|
+
"tsup": "8.3.5"
|
|
140
|
+
},
|
|
141
|
+
"publishConfig": { "access": "public" }
|
|
142
|
+
}
|