@storm-software/eslint 0.169.78 → 0.169.80

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.
Files changed (2) hide show
  1. package/dist/preset.js +41 -11
  2. package/package.json +3 -3
package/dist/preset.js CHANGED
@@ -2097,12 +2097,12 @@ function isUnicodeSupported() {
2097
2097
  var useIcon = (c, fallback) => isUnicodeSupported() ? c : fallback;
2098
2098
  var CONSOLE_ICONS = {
2099
2099
  [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
2100
- [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
2100
+ [LogLevelLabel.FATAL]: useIcon("\u2622", "\xD7"),
2101
2101
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
2102
2102
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
2103
2103
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
2104
2104
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
2105
- [LogLevelLabel.TRACE]: useIcon("\u{1F6E0}", "T"),
2105
+ [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
2106
2106
  [LogLevelLabel.ALL]: useIcon("\u2709", "\u2192")
2107
2107
  };
2108
2108
 
@@ -2176,7 +2176,11 @@ var getLogFn = (logLevel = LogLevel.INFO, config3 = {}, _chalk = getChalk()) =>
2176
2176
  return (message) => {
2177
2177
  console.error(
2178
2178
  `
2179
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal)(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2179
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2180
+ colors.fatal ?? DEFAULT_COLOR_CONFIG.dark.fatal
2181
+ )(
2182
+ `[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal] `
2183
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2180
2184
  `
2181
2185
  );
2182
2186
  };
@@ -2185,7 +2189,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.fatal ?? DEFAULT_COLOR_CON
2185
2189
  return (message) => {
2186
2190
  console.error(
2187
2191
  `
2188
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger)(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2192
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2193
+ colors.danger ?? DEFAULT_COLOR_CONFIG.dark.danger
2194
+ )(
2195
+ `[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error] `
2196
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2189
2197
  `
2190
2198
  );
2191
2199
  };
@@ -2194,7 +2202,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.danger ?? DEFAULT_COLOR_CO
2194
2202
  return (message) => {
2195
2203
  console.warn(
2196
2204
  `
2197
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning)(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2205
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2206
+ colors.warning ?? DEFAULT_COLOR_CONFIG.dark.warning
2207
+ )(
2208
+ `[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn] `
2209
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2198
2210
  `
2199
2211
  );
2200
2212
  };
@@ -2203,7 +2215,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.warning ?? DEFAULT_COLOR_C
2203
2215
  return (message) => {
2204
2216
  console.info(
2205
2217
  `
2206
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_CONFIG.dark.success)(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2218
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2219
+ colors.success ?? DEFAULT_COLOR_CONFIG.dark.success
2220
+ )(
2221
+ `[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success] `
2222
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2207
2223
  `
2208
2224
  );
2209
2225
  };
@@ -2212,7 +2228,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.success ?? DEFAULT_COLOR_C
2212
2228
  return (message) => {
2213
2229
  console.info(
2214
2230
  `
2215
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONFIG.dark.info)(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2231
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2232
+ colors.info ?? DEFAULT_COLOR_CONFIG.dark.info
2233
+ )(
2234
+ `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
2235
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2216
2236
  `
2217
2237
  );
2218
2238
  };
@@ -2221,7 +2241,11 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.info ?? DEFAULT_COLOR_CONF
2221
2241
  return (message) => {
2222
2242
  console.debug(
2223
2243
  `
2224
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug)(`[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2244
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2245
+ colors.debug ?? DEFAULT_COLOR_CONFIG.dark.debug
2246
+ )(
2247
+ `[${CONSOLE_ICONS[LogLevelLabel.DEBUG]} Debug] `
2248
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2225
2249
  `
2226
2250
  );
2227
2251
  };
@@ -2230,7 +2254,9 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.debug ?? DEFAULT_COLOR_CON
2230
2254
  return (message) => {
2231
2255
  console.debug(
2232
2256
  `
2233
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2257
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(
2258
+ `[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Trace] `
2259
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2234
2260
  `
2235
2261
  );
2236
2262
  };
@@ -2238,14 +2264,18 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex("#bbbbbb")(`[${CONSOLE_ICONS[LogL
2238
2264
  return (message) => {
2239
2265
  console.log(
2240
2266
  `
2241
- ${_chalk.gray(formatTimestamp())} ${_chalk.hex(colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand)(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `)}${_chalk.bold.whiteBright(formatLogMessage(message))}
2267
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2268
+ colors.brand ?? DEFAULT_COLOR_CONFIG.dark.brand
2269
+ )(
2270
+ `[${CONSOLE_ICONS[LogLevelLabel.ALL]} System] `
2271
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2242
2272
  `
2243
2273
  );
2244
2274
  };
2245
2275
  };
2246
2276
  var writeWarning = (message, config3) => getLogFn(LogLevel.WARN, config3)(message);
2247
2277
  var writeTrace = (message, config3) => getLogFn(LogLevel.TRACE, config3)(message);
2248
- var MAX_DEPTH = 4;
2278
+ var MAX_DEPTH = 6;
2249
2279
  var formatLogMessage = (message, options = {}, depth2 = 0) => {
2250
2280
  if (depth2 > MAX_DEPTH) {
2251
2281
  return "<max depth>";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.169.78",
3
+ "version": "0.169.80",
4
4
  "type": "module",
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -165,7 +165,7 @@
165
165
  "@eslint/markdown": "^6.6.0",
166
166
  "@nx/eslint-plugin": "^22.3.3",
167
167
  "@storm-software/config": "^1.135.0",
168
- "@storm-software/config-tools": "^1.188.77",
168
+ "@storm-software/config-tools": "^1.188.79",
169
169
  "@stylistic/eslint-plugin": "^4.4.1",
170
170
  "@typescript-eslint/eslint-plugin": "^8.50.1",
171
171
  "@typescript-eslint/parser": "^8.50.1",
@@ -241,5 +241,5 @@
241
241
  },
242
242
  "publishConfig": { "access": "public" },
243
243
  "sideEffects": false,
244
- "gitHead": "d07f74f1d50951459260d2738dea47586e194f7f"
244
+ "gitHead": "07050b1e3d753efd24562340d5a7381d600dafc6"
245
245
  }