@storm-software/eslint 0.109.2 → 0.109.3

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 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
- [![Version](https://img.shields.io/badge/version-0.109.1-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.109.3-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.cjs CHANGED
@@ -46,6 +46,7 @@ var LogLevelLabel = {
46
46
  FATAL: "fatal",
47
47
  ERROR: "error",
48
48
  WARN: "warn",
49
+ SUCCESS: "success",
49
50
  INFO: "info",
50
51
  DEBUG: "debug",
51
52
  TRACE: "trace",
@@ -189,6 +190,7 @@ var StormConfigSchema = _zod2.default.object({
189
190
  "fatal",
190
191
  "error",
191
192
  "warn",
193
+ "success",
192
194
  "info",
193
195
  "debug",
194
196
  "trace",
@@ -332,12 +334,17 @@ var chalkDefault = {
332
334
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
333
335
  }), "bgHex"),
334
336
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright"),
337
+ gray: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "gray"),
335
338
  bold: {
336
339
  hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
337
340
  bgHex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => ({
338
341
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
339
342
  }), "bgHex"),
340
343
  whiteBright: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "whiteBright")
344
+ },
345
+ dim: {
346
+ hex: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (_) => (message) => message, "hex"),
347
+ gray: /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (message) => message, "gray")
341
348
  }
342
349
  };
343
350
  var getChalk = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
@@ -348,6 +355,38 @@ var getChalk = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, () => {
348
355
  return _chalk;
349
356
  }, "getChalk");
350
357
 
358
+ // ../config-tools/src/logger/is-unicode-supported.ts
359
+ var _process = require('process'); var _process2 = _interopRequireDefault(_process);
360
+ function isUnicodeSupported() {
361
+ const { env } = _process2.default;
362
+ const { TERM, TERM_PROGRAM } = env;
363
+ if (_process2.default.platform !== "win32") {
364
+ return TERM !== "linux";
365
+ }
366
+ return Boolean(env.WT_SESSION) || // Windows Terminal
367
+ Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
368
+ env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
369
+ TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
370
+ }
371
+ _chunkUSNT2KNTcjs.__name.call(void 0, isUnicodeSupported, "isUnicodeSupported");
372
+
373
+ // ../config-tools/src/logger/console-icons.ts
374
+ var useIcon = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
375
+ var CONSOLE_ICONS = {
376
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
377
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
378
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
379
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
380
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
381
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
382
+ [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
383
+ };
384
+
385
+ // ../config-tools/src/logger/format-timestamp.ts
386
+ var formatTimestamp = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (date = /* @__PURE__ */ new Date()) => {
387
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
388
+ }, "formatTimestamp");
389
+
351
390
  // ../config-tools/src/logger/get-log-level.ts
352
391
  var getLogLevel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label) => {
353
392
  switch (label) {
@@ -383,42 +422,49 @@ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel =
383
422
  }
384
423
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
385
424
  return (message) => {
386
- console.error(`${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a"))).whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
425
+ console.error(`
426
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(_nullishCoalesce(colors.fatal, () => ( "#7d1a1a")))(formatLogMessage(message))}
387
427
  `);
388
428
  };
389
429
  }
390
430
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
391
431
  return (message) => {
392
- console.error(`${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.danger, () => ( "#f85149"))).whiteBright(" \u2718 Error ")} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
432
+ console.error(`
433
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(_nullishCoalesce(colors.danger, () => ( "#f85149")))(formatLogMessage(message))}
393
434
  `);
394
435
  };
395
436
  }
396
437
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
397
438
  return (message) => {
398
- console.warn(`${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.warning, () => ( "#e3b341"))).whiteBright(" \u26A0 Warn ")} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
439
+ console.warn(`
440
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(_nullishCoalesce(colors.warning, () => ( "#e3b341")))(formatLogMessage(message))}
399
441
  `);
400
442
  };
401
443
  }
402
444
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
403
445
  return (message) => {
404
- console.info(`${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.success, () => ( "#56d364"))).whiteBright(" \u2713 Success ")} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
446
+ console.info(`
447
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(_nullishCoalesce(colors.success, () => ( "#56d364")))(formatLogMessage(message))}
405
448
  `);
406
449
  };
407
450
  }
408
451
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
409
452
  return (message) => {
410
- console.info(`${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.info, () => ( "#58a6ff"))).whiteBright(" \u2139 Info ")} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
453
+ console.info(`
454
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(_nullishCoalesce(colors.info, () => ( "#58a6ff")))(formatLogMessage(message))}
411
455
  `);
412
456
  };
413
457
  }
414
458
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
415
459
  return (message) => {
416
- console.debug(`${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6"))).whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
460
+ console.debug(`
461
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
417
462
  `);
418
463
  };
419
464
  }
420
465
  return (message) => {
421
- console.log(`${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(">")} ${_chalk.bold.bgHex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6"))).whiteBright(" \u2709 System ")} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
466
+ console.log(`
467
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(_nullishCoalesce(colors.brand, () => ( "#1fb2a6")))(formatLogMessage(message))}
422
468
  `);
423
469
  };
424
470
  }, "getLogFn");
package/dist/preset.js CHANGED
@@ -46,6 +46,7 @@ var LogLevelLabel = {
46
46
  FATAL: "fatal",
47
47
  ERROR: "error",
48
48
  WARN: "warn",
49
+ SUCCESS: "success",
49
50
  INFO: "info",
50
51
  DEBUG: "debug",
51
52
  TRACE: "trace",
@@ -189,6 +190,7 @@ var StormConfigSchema = z.object({
189
190
  "fatal",
190
191
  "error",
191
192
  "warn",
193
+ "success",
192
194
  "info",
193
195
  "debug",
194
196
  "trace",
@@ -332,12 +334,17 @@ var chalkDefault = {
332
334
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
333
335
  }), "bgHex"),
334
336
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright"),
337
+ gray: /* @__PURE__ */ __name((message) => message, "gray"),
335
338
  bold: {
336
339
  hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
337
340
  bgHex: /* @__PURE__ */ __name((_) => ({
338
341
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
339
342
  }), "bgHex"),
340
343
  whiteBright: /* @__PURE__ */ __name((message) => message, "whiteBright")
344
+ },
345
+ dim: {
346
+ hex: /* @__PURE__ */ __name((_) => (message) => message, "hex"),
347
+ gray: /* @__PURE__ */ __name((message) => message, "gray")
341
348
  }
342
349
  };
343
350
  var getChalk = /* @__PURE__ */ __name(() => {
@@ -348,6 +355,38 @@ var getChalk = /* @__PURE__ */ __name(() => {
348
355
  return _chalk;
349
356
  }, "getChalk");
350
357
 
358
+ // ../config-tools/src/logger/is-unicode-supported.ts
359
+ import process2 from "node:process";
360
+ function isUnicodeSupported() {
361
+ const { env } = process2;
362
+ const { TERM, TERM_PROGRAM } = env;
363
+ if (process2.platform !== "win32") {
364
+ return TERM !== "linux";
365
+ }
366
+ return Boolean(env.WT_SESSION) || // Windows Terminal
367
+ Boolean(env.TERMINUS_SUBLIME) || // Terminus (<0.2.27)
368
+ env.ConEmuTask === "{cmd::Cmder}" || // ConEmu and cmder
369
+ TERM_PROGRAM === "Terminus-Sublime" || TERM_PROGRAM === "vscode" || TERM === "xterm-256color" || TERM === "alacritty" || TERM === "rxvt-unicode" || TERM === "rxvt-unicode-256color" || env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
370
+ }
371
+ __name(isUnicodeSupported, "isUnicodeSupported");
372
+
373
+ // ../config-tools/src/logger/console-icons.ts
374
+ var useIcon = /* @__PURE__ */ __name((c, fallback) => isUnicodeSupported() ? c : fallback, "useIcon");
375
+ var CONSOLE_ICONS = {
376
+ [LogLevelLabel.ERROR]: useIcon("\u2718", "\xD7"),
377
+ [LogLevelLabel.FATAL]: useIcon("\u{1F480}", "\xD7"),
378
+ [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
379
+ [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
380
+ [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
381
+ [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
382
+ [LogLevelLabel.TRACE]: useIcon("\u2709", "\u2192")
383
+ };
384
+
385
+ // ../config-tools/src/logger/format-timestamp.ts
386
+ var formatTimestamp = /* @__PURE__ */ __name((date = /* @__PURE__ */ new Date()) => {
387
+ return `${date.toLocaleDateString()} ${date.toLocaleTimeString()}`;
388
+ }, "formatTimestamp");
389
+
351
390
  // ../config-tools/src/logger/get-log-level.ts
352
391
  var getLogLevel = /* @__PURE__ */ __name((label) => {
353
392
  switch (label) {
@@ -383,42 +422,49 @@ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) =>
383
422
  }
384
423
  if (typeof logLevel === "number" && LogLevel.FATAL >= logLevel || typeof logLevel === "string" && LogLevel.FATAL >= getLogLevel(logLevel)) {
385
424
  return (message) => {
386
- console.error(`${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(">")} ${_chalk.bold.bgHex(colors.fatal ?? "#7d1a1a").whiteBright(" \u{1F480} Fatal ")} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
425
+ console.error(`
426
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.fatal ?? "#7d1a1a")(`[${CONSOLE_ICONS[LogLevelLabel.FATAL]} Fatal]`)} ${_chalk.hex(colors.fatal ?? "#7d1a1a")(formatLogMessage(message))}
387
427
  `);
388
428
  };
389
429
  }
390
430
  if (typeof logLevel === "number" && LogLevel.ERROR >= logLevel || typeof logLevel === "string" && LogLevel.ERROR >= getLogLevel(logLevel)) {
391
431
  return (message) => {
392
- console.error(`${_chalk.bold.hex(colors.danger ?? "#f85149")(">")} ${_chalk.bold.bgHex(colors.danger ?? "#f85149").whiteBright(" \u2718 Error ")} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
432
+ console.error(`
433
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.danger ?? "#f85149")(`[${CONSOLE_ICONS[LogLevelLabel.ERROR]} Error]`)} ${_chalk.hex(colors.danger ?? "#f85149")(formatLogMessage(message))}
393
434
  `);
394
435
  };
395
436
  }
396
437
  if (typeof logLevel === "number" && LogLevel.WARN >= logLevel || typeof logLevel === "string" && LogLevel.WARN >= getLogLevel(logLevel)) {
397
438
  return (message) => {
398
- console.warn(`${_chalk.bold.hex(colors.warning ?? "#e3b341")(">")} ${_chalk.bold.bgHex(colors.warning ?? "#e3b341").whiteBright(" \u26A0 Warn ")} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
439
+ console.warn(`
440
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.warning ?? "#e3b341")(`[${CONSOLE_ICONS[LogLevelLabel.WARN]} Warn]`)} ${_chalk.hex(colors.warning ?? "#e3b341")(formatLogMessage(message))}
399
441
  `);
400
442
  };
401
443
  }
402
444
  if (typeof logLevel === "number" && LogLevel.SUCCESS >= logLevel || typeof logLevel === "string" && LogLevel.SUCCESS >= getLogLevel(logLevel)) {
403
445
  return (message) => {
404
- console.info(`${_chalk.bold.hex(colors.success ?? "#56d364")(">")} ${_chalk.bold.bgHex(colors.success ?? "#56d364").whiteBright(" \u2713 Success ")} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
446
+ console.info(`
447
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.success ?? "#56d364")(`[${CONSOLE_ICONS[LogLevelLabel.SUCCESS]} Success]`)} ${_chalk.hex(colors.success ?? "#56d364")(formatLogMessage(message))}
405
448
  `);
406
449
  };
407
450
  }
408
451
  if (typeof logLevel === "number" && LogLevel.INFO >= logLevel || typeof logLevel === "string" && LogLevel.INFO >= getLogLevel(logLevel)) {
409
452
  return (message) => {
410
- console.info(`${_chalk.bold.hex(colors.info ?? "#58a6ff")(">")} ${_chalk.bold.bgHex(colors.info ?? "#58a6ff").whiteBright(" \u2139 Info ")} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
453
+ console.info(`
454
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.info ?? "#58a6ff")(`[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info]`)} ${_chalk.hex(colors.info ?? "#58a6ff")(formatLogMessage(message))}
411
455
  `);
412
456
  };
413
457
  }
414
458
  if (typeof logLevel === "number" && LogLevel.TRACE >= logLevel || typeof logLevel === "string" && LogLevel.TRACE >= getLogLevel(logLevel)) {
415
459
  return (message) => {
416
- console.debug(`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(" \u{1F6E0} Debug ")} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
460
+ console.debug(`
461
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.TRACE]} Debug]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
417
462
  `);
418
463
  };
419
464
  }
420
465
  return (message) => {
421
- console.log(`${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(">")} ${_chalk.bold.bgHex(colors.brand ?? "#1fb2a6").whiteBright(" \u2709 System ")} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
466
+ console.log(`
467
+ ${_chalk.gray(formatTimestamp())} ${_chalk.bold.hex(colors.brand ?? "#1fb2a6")(`[${CONSOLE_ICONS[LogLevelLabel.ALL]} System]`)} ${_chalk.hex(colors.brand ?? "#1fb2a6")(formatLogMessage(message))}
422
468
  `);
423
469
  };
424
470
  }, "getLogFn");
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@storm-software/eslint","version":"0.109.2","type":"module","description":"⚡ A package containing the base ESLint configuration used by Storm Software across many projects.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/eslint"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"maintainers":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},{"name":"Pat Sullivan","email":"admin@stormsoftware.com","url":"https://patsullivan.org"}],"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"packageManager":"pnpm@9.15.2","engines":{"node":">=22.4.0","pnpm":">=9.15.2"},"main":"./dist/preset.cjs","module":"./dist/preset.js","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./index":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./preset":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./rules/*":{"import":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"},"require":{"types":"./dist/rules/*.d.cts","default":"./dist/rules/*.cjs"},"default":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"}},"./utils/*":{"import":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"},"require":{"types":"./dist/utils/*.d.cts","default":"./dist/utils/*.cjs"},"default":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"}}},"types":"./dist/preset.d.ts","files":["dist/**/*"],"keywords":["eslint","eslint-config","eslintconfig","monorepo","storm","storm-ops","sullivanpj"],"peerDependencies":{"@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","eslint":"^9.12.0","graphql":">=16.9.0"},"peerDependenciesMeta":{"@nx/eslint":{"optional":true},"@nx/eslint-plugin":{"optional":true},"eslint":{"optional":false},"graphql":{"optional":true}},"dependencies":{"@cspell/eslint-plugin":"8.13.1","@graphql-eslint/eslint-plugin":"3.20.1","@next/eslint-plugin-next":"14.2.4","defu":"6.1.4","eslint-plugin-es-x":"7.6.0","eslint-plugin-import":"^2.29.1","eslint-plugin-json":"4.0.0","eslint-plugin-jsonc":"2.16.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-markdownlint":"0.6.0","eslint-plugin-mdx":"3.1.5","eslint-plugin-n":"17.8.1","eslint-plugin-prettier":"^5.0.0","eslint-plugin-promise":"6.2.0","eslint-plugin-react":"^7.34.3","eslint-plugin-react-compiler":"0.0.0-experimental-b6997ec-20240909","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-relay":"1.8.3","eslint-plugin-sonarjs":"1.0.3","eslint-plugin-storybook":"0.11.0","eslint-plugin-tsdoc":"0.4.0","eslint-plugin-unicorn":"56.0.0","eslint-plugin-yml":"1.14.0","globals":"^15.8.0","jsonc-eslint-parser":"2.4.0","synckit":"0.9.0","typescript-eslint":"^8.13.0","ws":"8.17.1","yaml-eslint-parser":"1.2.3"},"devDependencies":{"@eslint/config-inspector":"^0.5.1","@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@types/node":"^22.10.2","eslint":"^9.12.0","eslint-typegen":"^1.0.0","graphql":">=16.9.0","tsup":"8.3.5","typescript":"^5.7.2"},"publishConfig":{"access":"public"}}
1
+ {"name":"@storm-software/eslint","version":"0.109.3","type":"module","description":"⚡ A package containing the base ESLint configuration used by Storm Software across many projects.","repository":{"type":"github","url":"https://github.com/storm-software/storm-ops","directory":"packages/eslint"},"homepage":"https://stormsoftware.com","bugs":"https://github.com/storm-software/storm-ops/issues","author":{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},"maintainers":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"},{"name":"Pat Sullivan","email":"admin@stormsoftware.com","url":"https://patsullivan.org"}],"contributors":[{"name":"Storm Software","email":"contact@stormsoftware.com","url":"https://stormsoftware.com"}],"funding":{"type":"github","url":"https://github.com/sponsors/storm-software"},"license":"Apache-2.0","private":false,"packageManager":"pnpm@9.15.2","engines":{"node":">=22.4.0","pnpm":">=9.15.2"},"main":"./dist/preset.cjs","module":"./dist/preset.js","exports":{"./package.json":"./package.json",".":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./index":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./preset":{"import":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"},"require":{"types":"./dist/preset.d.cts","default":"./dist/preset.cjs"},"default":{"types":"./dist/preset.d.ts","default":"./dist/preset.js"}},"./rules/*":{"import":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"},"require":{"types":"./dist/rules/*.d.cts","default":"./dist/rules/*.cjs"},"default":{"types":"./dist/rules/*.d.ts","default":"./dist/rules/*.js"}},"./utils/*":{"import":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"},"require":{"types":"./dist/utils/*.d.cts","default":"./dist/utils/*.cjs"},"default":{"types":"./dist/utils/*.d.ts","default":"./dist/utils/*.js"}}},"types":"./dist/preset.d.ts","files":["dist/**/*"],"keywords":["eslint","eslint-config","eslintconfig","monorepo","storm","storm-ops","sullivanpj"],"peerDependencies":{"@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","eslint":"^9.12.0","graphql":">=16.9.0"},"peerDependenciesMeta":{"@nx/eslint":{"optional":true},"@nx/eslint-plugin":{"optional":true},"eslint":{"optional":false},"graphql":{"optional":true}},"dependencies":{"@cspell/eslint-plugin":"8.13.1","@graphql-eslint/eslint-plugin":"3.20.1","@next/eslint-plugin-next":"14.2.4","defu":"6.1.4","eslint-plugin-es-x":"7.6.0","eslint-plugin-import":"^2.29.1","eslint-plugin-json":"4.0.0","eslint-plugin-jsonc":"2.16.0","eslint-plugin-jsx-a11y":"^6.8.0","eslint-plugin-markdown":"^5.1.0","eslint-plugin-markdownlint":"0.6.0","eslint-plugin-mdx":"3.1.5","eslint-plugin-n":"17.8.1","eslint-plugin-prettier":"^5.0.0","eslint-plugin-promise":"6.2.0","eslint-plugin-react":"^7.34.3","eslint-plugin-react-compiler":"0.0.0-experimental-b6997ec-20240909","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-relay":"1.8.3","eslint-plugin-sonarjs":"1.0.3","eslint-plugin-storybook":"0.11.0","eslint-plugin-tsdoc":"0.4.0","eslint-plugin-unicorn":"56.0.0","eslint-plugin-yml":"1.14.0","globals":"^15.8.0","jsonc-eslint-parser":"2.4.0","synckit":"0.9.0","typescript-eslint":"^8.13.0","ws":"8.17.1","yaml-eslint-parser":"1.2.3"},"devDependencies":{"@eslint/config-inspector":"^0.5.1","@nx/eslint":"^20.3.1","@nx/eslint-plugin":"^20.3.1","@types/eslint":"^9.6.1","@types/eslint__js":"^8.42.3","@types/node":"^22.10.2","eslint":"^9.12.0","eslint-typegen":"^1.0.0","graphql":">=16.9.0","tsup":"8.3.5","typescript":"^5.7.2"},"publishConfig":{"access":"public"}}