@storm-software/eslint 0.170.20 → 0.170.21
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/dist/{chunk-PFTX2GN3.js → chunk-FSCBKXG2.js} +1 -1
- package/dist/{chunk-AAU6U75T.js → chunk-HUIWMM52.js} +2 -2
- package/dist/{chunk-G6XUEUNY.js → chunk-K7BVPORT.js} +2 -2
- package/dist/{chunk-MEBHE5EB.js → chunk-P3WHTQMA.js} +3 -3
- package/dist/{chunk-4HE67FMS.js → chunk-QDOV3D4C.js} +1 -1
- package/dist/{chunk-SSBQPHCT.js → chunk-SU5B5KLB.js} +1 -1
- package/dist/{chunk-FP6VNJWX.js → chunk-WB46BC5M.js} +3 -3
- package/dist/{chunk-ULVF2AUE.js → chunk-WPSKYMK5.js} +1 -1
- package/dist/{chunk-TP4EL7PB.js → chunk-ZIX7RNLF.js} +1 -1
- package/dist/preset.cjs +19 -30
- package/dist/preset.js +25 -36
- package/dist/types.js +1 -1
- package/dist/utils/banner-plugin.js +4 -4
- package/dist/utils/combine.js +1 -1
- package/dist/utils/constants.js +2 -2
- package/dist/utils/correct-paths.js +2 -2
- package/dist/utils/find-workspace-root.js +3 -3
- package/dist/utils/format-config.js +2 -2
- package/dist/utils/get-file-banner.js +3 -3
- package/dist/utils/helpers.cjs +1 -1
- package/dist/utils/helpers.js +2 -2
- package/dist/utils/index.js +3 -3
- package/dist/utils/tsconfig-path.js +4 -4
- package/package.json +7 -7
|
@@ -30,7 +30,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
mod
|
|
31
31
|
));
|
|
32
32
|
var init_esm_shims = __esm({
|
|
33
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
33
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/esm_shims.js"() {
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { correctPaths } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { correctPaths } from './chunk-QDOV3D4C.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-FSCBKXG2.js';
|
|
3
3
|
import { existsSync } from 'node:fs';
|
|
4
4
|
import { join } from 'node:path';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ACRONYMS_LIST } from './chunk-
|
|
2
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { ACRONYMS_LIST } from './chunk-WPSKYMK5.js';
|
|
2
|
+
import { init_esm_shims } from './chunk-FSCBKXG2.js';
|
|
3
3
|
|
|
4
4
|
// src/utils/get-file-banner.ts
|
|
5
5
|
init_esm_shims();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { findWorkspaceRoot } from './chunk-
|
|
2
|
-
import { relative, joinPaths } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { findWorkspaceRoot } from './chunk-HUIWMM52.js';
|
|
2
|
+
import { relative, joinPaths } from './chunk-QDOV3D4C.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-FSCBKXG2.js';
|
|
4
4
|
import { existsSync, statSync } from 'node:fs';
|
|
5
5
|
|
|
6
6
|
// src/utils/tsconfig-path.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getFileBanner } from './chunk-
|
|
2
|
-
import { GLOB_SRC } from './chunk-
|
|
3
|
-
import { init_esm_shims } from './chunk-
|
|
1
|
+
import { getFileBanner } from './chunk-K7BVPORT.js';
|
|
2
|
+
import { GLOB_SRC } from './chunk-WPSKYMK5.js';
|
|
3
|
+
import { init_esm_shims } from './chunk-FSCBKXG2.js';
|
|
4
4
|
import { ESLintUtils } from '@typescript-eslint/utils';
|
|
5
5
|
import os from 'node:os';
|
|
6
6
|
|
package/dist/preset.cjs
CHANGED
|
@@ -112,10 +112,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
112
112
|
mod
|
|
113
113
|
));
|
|
114
114
|
|
|
115
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
115
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/cjs_shims.js
|
|
116
116
|
var getImportMetaUrl, importMetaUrl;
|
|
117
117
|
var init_cjs_shims = __esm({
|
|
118
|
-
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
118
|
+
"../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/cjs_shims.js"() {
|
|
119
119
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
120
120
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
121
121
|
}
|
|
@@ -2607,8 +2607,8 @@ var CONSOLE_ICONS = {
|
|
|
2607
2607
|
|
|
2608
2608
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
2609
2609
|
init_cjs_shims();
|
|
2610
|
-
var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
|
|
2611
|
-
return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
|
|
2610
|
+
var formatTimestamp = (fullDateTime = false, date2 = /* @__PURE__ */ new Date()) => {
|
|
2611
|
+
return fullDateTime ? `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}` : `${date2.toLocaleTimeString()}`;
|
|
2612
2612
|
};
|
|
2613
2613
|
|
|
2614
2614
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -2669,7 +2669,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2669
2669
|
};
|
|
2670
2670
|
|
|
2671
2671
|
// ../config-tools/src/logger/console.ts
|
|
2672
|
-
var getLogFn = (logLevel = LogLevel.INFO, config3 = {},
|
|
2672
|
+
var getLogFn = (logLevel = LogLevel.INFO, config3 = {}, options = {}) => {
|
|
2673
|
+
const {
|
|
2674
|
+
chalk: _chalk = getChalk(),
|
|
2675
|
+
fullDateTime = false,
|
|
2676
|
+
hideDateTime = false
|
|
2677
|
+
} = options;
|
|
2673
2678
|
const colors = !config3.colors?.dark && !config3.colors?.["base"] && !config3.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config3.colors?.dark && typeof config3.colors.dark === "string" ? config3.colors : config3.colors?.["base"]?.dark && typeof config3.colors["base"].dark === "string" ? config3.colors["base"].dark : config3.colors?.["base"] ? config3.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
2674
2679
|
const configLogLevel = config3.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
2675
2680
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -2680,9 +2685,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config3 = {}, _chalk = getChalk()) =>
|
|
|
2680
2685
|
return (message) => {
|
|
2681
2686
|
console.error(
|
|
2682
2687
|
`
|
|
2683
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2684
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
2685
|
-
)(
|
|
2688
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
2686
2689
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
2687
2690
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2688
2691
|
`
|
|
@@ -2693,9 +2696,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2693
2696
|
return (message) => {
|
|
2694
2697
|
console.error(
|
|
2695
2698
|
`
|
|
2696
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2697
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
2698
|
-
)(
|
|
2699
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
2699
2700
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
2700
2701
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2701
2702
|
`
|
|
@@ -2706,9 +2707,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2706
2707
|
return (message) => {
|
|
2707
2708
|
console.warn(
|
|
2708
2709
|
`
|
|
2709
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2710
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
2711
|
-
)(
|
|
2710
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
2712
2711
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
2713
2712
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2714
2713
|
`
|
|
@@ -2719,9 +2718,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2719
2718
|
return (message) => {
|
|
2720
2719
|
console.info(
|
|
2721
2720
|
`
|
|
2722
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2723
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
2724
|
-
)(
|
|
2721
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
2725
2722
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
2726
2723
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2727
2724
|
`
|
|
@@ -2732,9 +2729,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2732
2729
|
return (message) => {
|
|
2733
2730
|
console.info(
|
|
2734
2731
|
`
|
|
2735
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2736
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
2737
|
-
)(
|
|
2732
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
2738
2733
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
2739
2734
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2740
2735
|
`
|
|
@@ -2745,9 +2740,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2745
2740
|
return (message) => {
|
|
2746
2741
|
console.debug(
|
|
2747
2742
|
`
|
|
2748
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2749
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
2750
|
-
)(
|
|
2743
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
2751
2744
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
2752
2745
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2753
2746
|
`
|
|
@@ -2758,9 +2751,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2758
2751
|
return (message) => {
|
|
2759
2752
|
console.debug(
|
|
2760
2753
|
`
|
|
2761
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2762
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
2763
|
-
)(
|
|
2754
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
2764
2755
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
2765
2756
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2766
2757
|
`
|
|
@@ -2771,7 +2762,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2771
2762
|
return (message) => {
|
|
2772
2763
|
console.debug(
|
|
2773
2764
|
`
|
|
2774
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
2765
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
2775
2766
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
2776
2767
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2777
2768
|
`
|
|
@@ -2781,9 +2772,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
2781
2772
|
return (message) => {
|
|
2782
2773
|
console.log(
|
|
2783
2774
|
`
|
|
2784
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2785
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
2786
|
-
)(
|
|
2775
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
2787
2776
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
2788
2777
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2789
2778
|
`
|
package/dist/preset.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-
|
|
2
|
-
import { getTsConfigPath } from './chunk-
|
|
3
|
-
import { banner_plugin_default } from './chunk-
|
|
4
|
-
import { getFileBanner } from './chunk-
|
|
5
|
-
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT } from './chunk-
|
|
6
|
-
import { findWorkspaceRoot } from './chunk-
|
|
7
|
-
import { joinPaths } from './chunk-
|
|
8
|
-
import { __commonJS, init_esm_shims, __toESM } from './chunk-
|
|
1
|
+
import { isInEditorEnv, interopDefault, ensurePackages, renameRules, parserPlain, isPackageInScope } from './chunk-ZIX7RNLF.js';
|
|
2
|
+
import { getTsConfigPath } from './chunk-P3WHTQMA.js';
|
|
3
|
+
import { banner_plugin_default } from './chunk-WB46BC5M.js';
|
|
4
|
+
import { getFileBanner } from './chunk-K7BVPORT.js';
|
|
5
|
+
import { GLOB_EXCLUDE, GLOB_TS, GLOB_TSX, GLOB_JSX, GLOB_MARKDOWN, GLOB_ASTRO_TS, GLOB_SRC, GLOB_TESTS, GLOB_ASTRO, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_YAML, GLOB_TOML, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_CSS, GLOB_POSTCSS, GLOB_SCSS, GLOB_LESS, GLOB_HTML, GLOB_XML, GLOB_SVG, GLOB_GRAPHQL, GLOB_SRC_EXT } from './chunk-WPSKYMK5.js';
|
|
6
|
+
import { findWorkspaceRoot } from './chunk-HUIWMM52.js';
|
|
7
|
+
import { joinPaths } from './chunk-QDOV3D4C.js';
|
|
8
|
+
import { __commonJS, init_esm_shims, __toESM } from './chunk-FSCBKXG2.js';
|
|
9
9
|
import * as __import__microsoft_tsdocConfig from '@microsoft/tsdoc-config';
|
|
10
10
|
import * as __import_path from 'path';
|
|
11
11
|
import * as __import_fs from 'fs';
|
|
@@ -2031,8 +2031,8 @@ var CONSOLE_ICONS = {
|
|
|
2031
2031
|
|
|
2032
2032
|
// ../config-tools/src/logger/format-timestamp.ts
|
|
2033
2033
|
init_esm_shims();
|
|
2034
|
-
var formatTimestamp = (date2 = /* @__PURE__ */ new Date()) => {
|
|
2035
|
-
return `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}`;
|
|
2034
|
+
var formatTimestamp = (fullDateTime = false, date2 = /* @__PURE__ */ new Date()) => {
|
|
2035
|
+
return fullDateTime ? `${date2.toLocaleDateString()} ${date2.toLocaleTimeString()}` : `${date2.toLocaleTimeString()}`;
|
|
2036
2036
|
};
|
|
2037
2037
|
|
|
2038
2038
|
// ../config-tools/src/logger/get-log-level.ts
|
|
@@ -2093,7 +2093,12 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
|
|
|
2093
2093
|
};
|
|
2094
2094
|
|
|
2095
2095
|
// ../config-tools/src/logger/console.ts
|
|
2096
|
-
var getLogFn = (logLevel = LogLevel.INFO, config3 = {},
|
|
2096
|
+
var getLogFn = (logLevel = LogLevel.INFO, config3 = {}, options = {}) => {
|
|
2097
|
+
const {
|
|
2098
|
+
chalk: _chalk = getChalk(),
|
|
2099
|
+
fullDateTime = false,
|
|
2100
|
+
hideDateTime = false
|
|
2101
|
+
} = options;
|
|
2097
2102
|
const colors = !config3.colors?.dark && !config3.colors?.["base"] && !config3.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config3.colors?.dark && typeof config3.colors.dark === "string" ? config3.colors : config3.colors?.["base"]?.dark && typeof config3.colors["base"].dark === "string" ? config3.colors["base"].dark : config3.colors?.["base"] ? config3.colors?.["base"] : DEFAULT_COLOR_CONFIG;
|
|
2098
2103
|
const configLogLevel = config3.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
|
|
2099
2104
|
if (logLevel > getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT || getLogLevel(configLogLevel) <= LogLevel.SILENT) {
|
|
@@ -2104,9 +2109,7 @@ var getLogFn = (logLevel = LogLevel.INFO, config3 = {}, _chalk = getChalk()) =>
|
|
|
2104
2109
|
return (message) => {
|
|
2105
2110
|
console.error(
|
|
2106
2111
|
`
|
|
2107
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2108
|
-
colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
|
|
2109
|
-
)(
|
|
2112
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(
|
|
2110
2113
|
`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
|
|
2111
2114
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2112
2115
|
`
|
|
@@ -2117,9 +2120,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2117
2120
|
return (message) => {
|
|
2118
2121
|
console.error(
|
|
2119
2122
|
`
|
|
2120
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2121
|
-
colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
|
|
2122
|
-
)(
|
|
2123
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(
|
|
2123
2124
|
`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
|
|
2124
2125
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2125
2126
|
`
|
|
@@ -2130,9 +2131,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2130
2131
|
return (message) => {
|
|
2131
2132
|
console.warn(
|
|
2132
2133
|
`
|
|
2133
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2134
|
-
colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
|
|
2135
|
-
)(
|
|
2134
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(
|
|
2136
2135
|
`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
|
|
2137
2136
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2138
2137
|
`
|
|
@@ -2143,9 +2142,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2143
2142
|
return (message) => {
|
|
2144
2143
|
console.info(
|
|
2145
2144
|
`
|
|
2146
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2147
|
-
colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
|
|
2148
|
-
)(
|
|
2145
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(
|
|
2149
2146
|
`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
|
|
2150
2147
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2151
2148
|
`
|
|
@@ -2156,9 +2153,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2156
2153
|
return (message) => {
|
|
2157
2154
|
console.info(
|
|
2158
2155
|
`
|
|
2159
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2160
|
-
colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
|
|
2161
|
-
)(
|
|
2156
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(
|
|
2162
2157
|
`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
|
|
2163
2158
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2164
2159
|
`
|
|
@@ -2169,9 +2164,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2169
2164
|
return (message) => {
|
|
2170
2165
|
console.debug(
|
|
2171
2166
|
`
|
|
2172
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2173
|
-
colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
|
|
2174
|
-
)(
|
|
2167
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance)(
|
|
2175
2168
|
`[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
|
|
2176
2169
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2177
2170
|
`
|
|
@@ -2182,9 +2175,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2182
2175
|
return (message) => {
|
|
2183
2176
|
console.debug(
|
|
2184
2177
|
`
|
|
2185
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2186
|
-
colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
|
|
2187
|
-
)(
|
|
2178
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(
|
|
2188
2179
|
`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
|
|
2189
2180
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2190
2181
|
`
|
|
@@ -2195,7 +2186,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
|
2195
2186
|
return (message) => {
|
|
2196
2187
|
console.debug(
|
|
2197
2188
|
`
|
|
2198
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
2189
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex("#bbbbbb")(
|
|
2199
2190
|
`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
|
|
2200
2191
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2201
2192
|
`
|
|
@@ -2205,9 +2196,7 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
|
|
|
2205
2196
|
return (message) => {
|
|
2206
2197
|
console.log(
|
|
2207
2198
|
`
|
|
2208
|
-
${_chalk.gray(formatTimestamp())} ${_chalk.hex(
|
|
2209
|
-
colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
|
|
2210
|
-
)(
|
|
2199
|
+
${hideDateTime ? "" : `${_chalk.gray(formatTimestamp(fullDateTime))} `}${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(
|
|
2211
2200
|
`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
|
|
2212
2201
|
)}${_chalk.bold.whiteBright(formatLogMessage(message))}
|
|
2213
2202
|
`
|
package/dist/types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { banner_plugin_default as default } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { banner_plugin_default as default } from '../chunk-WB46BC5M.js';
|
|
2
|
+
import '../chunk-K7BVPORT.js';
|
|
3
|
+
import '../chunk-WPSKYMK5.js';
|
|
4
|
+
import '../chunk-FSCBKXG2.js';
|
package/dist/utils/combine.js
CHANGED
package/dist/utils/constants.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML } from '../chunk-WPSKYMK5.js';
|
|
2
|
+
import '../chunk-FSCBKXG2.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { basename, correctPaths, dirname, extname, format, isAbsolute, joinPaths, normalizeString, normalizeWindowsPath, parse, relative, resolve, sep, toNamespacedPath } from '../chunk-QDOV3D4C.js';
|
|
2
|
+
import '../chunk-FSCBKXG2.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { findWorkspaceRoot, findWorkspaceRootSafe } from '../chunk-HUIWMM52.js';
|
|
2
|
+
import '../chunk-QDOV3D4C.js';
|
|
3
|
+
import '../chunk-FSCBKXG2.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { formatConfig } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { formatConfig } from '../chunk-SU5B5KLB.js';
|
|
2
|
+
import '../chunk-FSCBKXG2.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { getFileBanner } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { getFileBanner } from '../chunk-K7BVPORT.js';
|
|
2
|
+
import '../chunk-WPSKYMK5.js';
|
|
3
|
+
import '../chunk-FSCBKXG2.js';
|
package/dist/utils/helpers.cjs
CHANGED
|
@@ -8,7 +8,7 @@ function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
|
8
8
|
|
|
9
9
|
var process__default = /*#__PURE__*/_interopDefault(process);
|
|
10
10
|
|
|
11
|
-
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=
|
|
11
|
+
// ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=751a554d775c3572381af4e7e5fa22eeda6dd6856012fb1cf521d6806eb2dc74__87fc5674c0e7074b5fd97e8fbac7f007/node_modules/tsup/assets/cjs_shims.js
|
|
12
12
|
var getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
13
13
|
var importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
14
14
|
var scopeUrl = url.fileURLToPath(new URL(".", importMetaUrl));
|
package/dist/utils/helpers.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { ensurePackages, interopDefault, isInEditorEnv, isInGitHooksOrLintStaged, isPackageInScope, parserPlain, renameRules } from '../chunk-ZIX7RNLF.js';
|
|
2
|
+
import '../chunk-FSCBKXG2.js';
|
package/dist/utils/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML } from '../chunk-
|
|
2
|
-
export { formatConfig } from '../chunk-
|
|
3
|
-
import { init_esm_shims } from '../chunk-
|
|
1
|
+
export { ACRONYMS_LIST, GLOB_ALL_SRC, GLOB_ASTRO, GLOB_ASTRO_TS, GLOB_CODE_BLOCK, GLOB_CODE_FILE, GLOB_CSS, GLOB_EXCLUDE, GLOB_GRAPHQL, GLOB_HTML, GLOB_JS, GLOB_JSON, GLOB_JSON5, GLOB_JSONC, GLOB_JSX, GLOB_LESS, GLOB_MARKDOWN, GLOB_MARKDOWN_CODE, GLOB_MARKDOWN_IN_MARKDOWN, GLOB_MDX, GLOB_POSTCSS, GLOB_SCSS, GLOB_SRC, GLOB_SRC_EXT, GLOB_STYLE, GLOB_SVELTE, GLOB_SVG, GLOB_TESTS, GLOB_TOML, GLOB_TS, GLOB_TSX, GLOB_VUE, GLOB_XML, GLOB_YAML } from '../chunk-WPSKYMK5.js';
|
|
2
|
+
export { formatConfig } from '../chunk-SU5B5KLB.js';
|
|
3
|
+
import { init_esm_shims } from '../chunk-FSCBKXG2.js';
|
|
4
4
|
|
|
5
5
|
// src/utils/index.ts
|
|
6
6
|
init_esm_shims();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { checkTsConfigPath, getTsConfigPath } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { checkTsConfigPath, getTsConfigPath } from '../chunk-P3WHTQMA.js';
|
|
2
|
+
import '../chunk-HUIWMM52.js';
|
|
3
|
+
import '../chunk-QDOV3D4C.js';
|
|
4
|
+
import '../chunk-FSCBKXG2.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.170.
|
|
3
|
+
"version": "0.170.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
|
|
6
6
|
"keywords": [
|
|
@@ -141,12 +141,12 @@
|
|
|
141
141
|
"@eslint/eslintrc": "^3.3.5",
|
|
142
142
|
"@eslint/markdown": "^6.6.0",
|
|
143
143
|
"@nx/eslint-plugin": "22.6.0",
|
|
144
|
-
"@storm-software/config": "^1.137.
|
|
145
|
-
"@storm-software/config-tools": "^1.
|
|
144
|
+
"@storm-software/config": "^1.137.33",
|
|
145
|
+
"@storm-software/config-tools": "^1.190.0",
|
|
146
146
|
"@stylistic/eslint-plugin": "^4.4.1",
|
|
147
|
-
"@typescript-eslint/eslint-plugin": "^8.59.
|
|
148
|
-
"@typescript-eslint/parser": "^8.59.
|
|
149
|
-
"@typescript-eslint/utils": "^8.59.
|
|
147
|
+
"@typescript-eslint/eslint-plugin": "^8.59.1",
|
|
148
|
+
"@typescript-eslint/parser": "^8.59.1",
|
|
149
|
+
"@typescript-eslint/utils": "^8.59.1",
|
|
150
150
|
"@vitest/eslint-plugin": "^1.6.16",
|
|
151
151
|
"chalk": "^4.1.2",
|
|
152
152
|
"defu": "6.1.4",
|
|
@@ -239,5 +239,5 @@
|
|
|
239
239
|
"prettier-plugin-astro": "^0.14.0"
|
|
240
240
|
},
|
|
241
241
|
"publishConfig": { "access": "public" },
|
|
242
|
-
"gitHead": "
|
|
242
|
+
"gitHead": "8e54226b1485019afc0373ac57d8e56a394dad04"
|
|
243
243
|
}
|