@storm-software/eslint 0.169.129 → 0.169.131

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
@@ -27,7 +27,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.169.127-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)
30
+ [![Version](https://img.shields.io/badge/version-0.169.129-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)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
package/dist/preset.cjs CHANGED
@@ -2497,6 +2497,7 @@ var LogLevel = {
2497
2497
  WARN: 30,
2498
2498
  SUCCESS: 35,
2499
2499
  INFO: 40,
2500
+ PERFORMANCE: 50,
2500
2501
  DEBUG: 60,
2501
2502
  TRACE: 70,
2502
2503
  ALL: 100
@@ -2508,6 +2509,7 @@ var LogLevelLabel = {
2508
2509
  WARN: "warn",
2509
2510
  SUCCESS: "success",
2510
2511
  INFO: "info",
2512
+ PERFORMANCE: "performance",
2511
2513
  DEBUG: "debug",
2512
2514
  TRACE: "trace",
2513
2515
  ALL: "all"
@@ -2523,7 +2525,8 @@ var DEFAULT_COLOR_CONFIG = {
2523
2525
  debug: "#8afafc",
2524
2526
  warning: "#f3d371",
2525
2527
  danger: "#D8314A",
2526
- fatal: "#a40e26"}
2528
+ fatal: "#a40e26",
2529
+ performance: "#00ff00"}
2527
2530
  };
2528
2531
 
2529
2532
  // ../config-tools/src/logger/chalk.ts
@@ -2581,6 +2584,7 @@ var CONSOLE_ICONS = {
2581
2584
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
2582
2585
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
2583
2586
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
2587
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
2584
2588
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
2585
2589
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
2586
2590
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -2603,6 +2607,8 @@ var getLogLevel = (label) => {
2603
2607
  return LogLevel.TRACE;
2604
2608
  case "debug":
2605
2609
  return LogLevel.DEBUG;
2610
+ case "performance":
2611
+ return LogLevel.PERFORMANCE;
2606
2612
  case "info":
2607
2613
  return LogLevel.INFO;
2608
2614
  case "warn":
@@ -2627,6 +2633,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2627
2633
  if (logLevel >= LogLevel.DEBUG) {
2628
2634
  return LogLevelLabel.DEBUG;
2629
2635
  }
2636
+ if (logLevel >= LogLevel.PERFORMANCE) {
2637
+ return LogLevelLabel.PERFORMANCE;
2638
+ }
2630
2639
  if (logLevel >= LogLevel.INFO) {
2631
2640
  return LogLevelLabel.INFO;
2632
2641
  }
@@ -2714,6 +2723,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2714
2723
  )(
2715
2724
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
2716
2725
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2726
+ `
2727
+ );
2728
+ };
2729
+ }
2730
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
2731
+ return (message) => {
2732
+ console.debug(
2733
+ `
2734
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2735
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
2736
+ )(
2737
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
2738
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2717
2739
  `
2718
2740
  );
2719
2741
  };
@@ -4629,6 +4651,10 @@ var fatalColorSchema = optional(colorSchema);
4629
4651
  schemaRegistry.add(fatalColorSchema, {
4630
4652
  description: "The fatal color of the workspace"
4631
4653
  });
4654
+ var performanceColorSchema = _default(colorSchema, "#00ff00");
4655
+ schemaRegistry.add(performanceColorSchema, {
4656
+ description: "The performance color of the workspace"
4657
+ });
4632
4658
  var positiveColorSchema = _default(colorSchema, "#4ade80");
4633
4659
  schemaRegistry.add(positiveColorSchema, {
4634
4660
  description: "The positive number color of the workspace"
@@ -4655,6 +4681,7 @@ var darkColorsSchema = object({
4655
4681
  warning: warningColorSchema,
4656
4682
  danger: dangerColorSchema,
4657
4683
  fatal: fatalColorSchema,
4684
+ performance: performanceColorSchema,
4658
4685
  positive: positiveColorSchema,
4659
4686
  negative: negativeColorSchema,
4660
4687
  gradient: gradientStopsSchema
@@ -4673,6 +4700,7 @@ var lightColorsSchema = object({
4673
4700
  warning: warningColorSchema,
4674
4701
  danger: dangerColorSchema,
4675
4702
  fatal: fatalColorSchema,
4703
+ performance: performanceColorSchema,
4676
4704
  positive: positiveColorSchema,
4677
4705
  negative: negativeColorSchema,
4678
4706
  gradient: gradientStopsSchema
@@ -4695,6 +4723,7 @@ var singleColorsSchema = object({
4695
4723
  warning: warningColorSchema,
4696
4724
  danger: dangerColorSchema,
4697
4725
  fatal: fatalColorSchema,
4726
+ performance: performanceColorSchema,
4698
4727
  positive: positiveColorSchema,
4699
4728
  negative: negativeColorSchema,
4700
4729
  gradient: gradientStopsSchema
@@ -5062,6 +5091,7 @@ var logLevelSchema = _default(
5062
5091
  "warn",
5063
5092
  "success",
5064
5093
  "info",
5094
+ "performance",
5065
5095
  "debug",
5066
5096
  "trace",
5067
5097
  "all"
@@ -5142,6 +5172,7 @@ var COLOR_KEYS = [
5142
5172
  "warning",
5143
5173
  "danger",
5144
5174
  "fatal",
5175
+ "performance",
5145
5176
  "positive",
5146
5177
  "negative"
5147
5178
  ];
@@ -5465,6 +5496,7 @@ var getSingleThemeColorsEnv = (prefix) => {
5465
5496
  warning: process.env[`${prefix}WARNING`],
5466
5497
  danger: process.env[`${prefix}DANGER`],
5467
5498
  fatal: process.env[`${prefix}FATAL`],
5499
+ performance: process.env[`${prefix}PERFORMANCE`],
5468
5500
  positive: process.env[`${prefix}POSITIVE`],
5469
5501
  negative: process.env[`${prefix}NEGATIVE`],
5470
5502
  gradient
@@ -5504,6 +5536,7 @@ var getBaseThemeColorsEnv = (prefix) => {
5504
5536
  warning: process.env[`${prefix}WARNING`],
5505
5537
  danger: process.env[`${prefix}DANGER`],
5506
5538
  fatal: process.env[`${prefix}FATAL`],
5539
+ performance: process.env[`${prefix}PERFORMANCE`],
5507
5540
  positive: process.env[`${prefix}POSITIVE`],
5508
5541
  negative: process.env[`${prefix}NEGATIVE`],
5509
5542
  gradient
@@ -5815,6 +5848,9 @@ var setSingleThemeColorsEnv = (prefix, config3) => {
5815
5848
  if (config3.fatal) {
5816
5849
  process.env[`${prefix}FATAL`] = config3.fatal;
5817
5850
  }
5851
+ if (config3.performance) {
5852
+ process.env[`${prefix}PERFORMANCE`] = config3.performance;
5853
+ }
5818
5854
  if (config3.positive) {
5819
5855
  process.env[`${prefix}POSITIVE`] = config3.positive;
5820
5856
  }
@@ -5873,6 +5909,9 @@ var setBaseThemeColorsEnv = (prefix, config3) => {
5873
5909
  if (config3.fatal) {
5874
5910
  process.env[`${prefix}FATAL`] = config3.fatal;
5875
5911
  }
5912
+ if (config3.performance) {
5913
+ process.env[`${prefix}PERFORMANCE`] = config3.performance;
5914
+ }
5876
5915
  if (config3.positive) {
5877
5916
  process.env[`${prefix}POSITIVE`] = config3.positive;
5878
5917
  }
package/dist/preset.js CHANGED
@@ -1935,6 +1935,7 @@ var LogLevel = {
1935
1935
  WARN: 30,
1936
1936
  SUCCESS: 35,
1937
1937
  INFO: 40,
1938
+ PERFORMANCE: 50,
1938
1939
  DEBUG: 60,
1939
1940
  TRACE: 70,
1940
1941
  ALL: 100
@@ -1946,6 +1947,7 @@ var LogLevelLabel = {
1946
1947
  WARN: "warn",
1947
1948
  SUCCESS: "success",
1948
1949
  INFO: "info",
1950
+ PERFORMANCE: "performance",
1949
1951
  DEBUG: "debug",
1950
1952
  TRACE: "trace",
1951
1953
  ALL: "all"
@@ -1961,7 +1963,8 @@ var DEFAULT_COLOR_CONFIG = {
1961
1963
  debug: "#8afafc",
1962
1964
  warning: "#f3d371",
1963
1965
  danger: "#D8314A",
1964
- fatal: "#a40e26"}
1966
+ fatal: "#a40e26",
1967
+ performance: "#00ff00"}
1965
1968
  };
1966
1969
 
1967
1970
  // ../config-tools/src/logger/chalk.ts
@@ -2019,6 +2022,7 @@ var CONSOLE_ICONS = {
2019
2022
  [LogLevelLabel.FATAL]: useIcon("\u{1F571}", "\xD7"),
2020
2023
  [LogLevelLabel.WARN]: useIcon("\u26A0", "\u203C"),
2021
2024
  [LogLevelLabel.INFO]: useIcon("\u2139", "i"),
2025
+ [LogLevelLabel.PERFORMANCE]: useIcon("\u23F1", "\u23F1"),
2022
2026
  [LogLevelLabel.SUCCESS]: useIcon("\u2714", "\u221A"),
2023
2027
  [LogLevelLabel.DEBUG]: useIcon("\u{1F6E0}", "D"),
2024
2028
  [LogLevelLabel.TRACE]: useIcon("\u2699", "T"),
@@ -2041,6 +2045,8 @@ var getLogLevel = (label) => {
2041
2045
  return LogLevel.TRACE;
2042
2046
  case "debug":
2043
2047
  return LogLevel.DEBUG;
2048
+ case "performance":
2049
+ return LogLevel.PERFORMANCE;
2044
2050
  case "info":
2045
2051
  return LogLevel.INFO;
2046
2052
  case "warn":
@@ -2065,6 +2071,9 @@ var getLogLevelLabel = (logLevel = LogLevel.INFO) => {
2065
2071
  if (logLevel >= LogLevel.DEBUG) {
2066
2072
  return LogLevelLabel.DEBUG;
2067
2073
  }
2074
+ if (logLevel >= LogLevel.PERFORMANCE) {
2075
+ return LogLevelLabel.PERFORMANCE;
2076
+ }
2068
2077
  if (logLevel >= LogLevel.INFO) {
2069
2078
  return LogLevelLabel.INFO;
2070
2079
  }
@@ -2152,6 +2161,19 @@ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2152
2161
  )(
2153
2162
  `[${CONSOLE_ICONS[LogLevelLabel.INFO]} Info] `
2154
2163
  )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2164
+ `
2165
+ );
2166
+ };
2167
+ }
2168
+ if (typeof logLevel === "number" && LogLevel.PERFORMANCE >= logLevel) {
2169
+ return (message) => {
2170
+ console.debug(
2171
+ `
2172
+ ${_chalk.gray(formatTimestamp())} ${_chalk.hex(
2173
+ colors.performance ?? DEFAULT_COLOR_CONFIG.dark.performance
2174
+ )(
2175
+ `[${CONSOLE_ICONS[LogLevelLabel.PERFORMANCE]} Performance] `
2176
+ )}${_chalk.bold.whiteBright(formatLogMessage(message))}
2155
2177
  `
2156
2178
  );
2157
2179
  };
@@ -4067,6 +4089,10 @@ var fatalColorSchema = optional(colorSchema);
4067
4089
  schemaRegistry.add(fatalColorSchema, {
4068
4090
  description: "The fatal color of the workspace"
4069
4091
  });
4092
+ var performanceColorSchema = _default(colorSchema, "#00ff00");
4093
+ schemaRegistry.add(performanceColorSchema, {
4094
+ description: "The performance color of the workspace"
4095
+ });
4070
4096
  var positiveColorSchema = _default(colorSchema, "#4ade80");
4071
4097
  schemaRegistry.add(positiveColorSchema, {
4072
4098
  description: "The positive number color of the workspace"
@@ -4093,6 +4119,7 @@ var darkColorsSchema = object({
4093
4119
  warning: warningColorSchema,
4094
4120
  danger: dangerColorSchema,
4095
4121
  fatal: fatalColorSchema,
4122
+ performance: performanceColorSchema,
4096
4123
  positive: positiveColorSchema,
4097
4124
  negative: negativeColorSchema,
4098
4125
  gradient: gradientStopsSchema
@@ -4111,6 +4138,7 @@ var lightColorsSchema = object({
4111
4138
  warning: warningColorSchema,
4112
4139
  danger: dangerColorSchema,
4113
4140
  fatal: fatalColorSchema,
4141
+ performance: performanceColorSchema,
4114
4142
  positive: positiveColorSchema,
4115
4143
  negative: negativeColorSchema,
4116
4144
  gradient: gradientStopsSchema
@@ -4133,6 +4161,7 @@ var singleColorsSchema = object({
4133
4161
  warning: warningColorSchema,
4134
4162
  danger: dangerColorSchema,
4135
4163
  fatal: fatalColorSchema,
4164
+ performance: performanceColorSchema,
4136
4165
  positive: positiveColorSchema,
4137
4166
  negative: negativeColorSchema,
4138
4167
  gradient: gradientStopsSchema
@@ -4500,6 +4529,7 @@ var logLevelSchema = _default(
4500
4529
  "warn",
4501
4530
  "success",
4502
4531
  "info",
4532
+ "performance",
4503
4533
  "debug",
4504
4534
  "trace",
4505
4535
  "all"
@@ -4580,6 +4610,7 @@ var COLOR_KEYS = [
4580
4610
  "warning",
4581
4611
  "danger",
4582
4612
  "fatal",
4613
+ "performance",
4583
4614
  "positive",
4584
4615
  "negative"
4585
4616
  ];
@@ -4903,6 +4934,7 @@ var getSingleThemeColorsEnv = (prefix) => {
4903
4934
  warning: process.env[`${prefix}WARNING`],
4904
4935
  danger: process.env[`${prefix}DANGER`],
4905
4936
  fatal: process.env[`${prefix}FATAL`],
4937
+ performance: process.env[`${prefix}PERFORMANCE`],
4906
4938
  positive: process.env[`${prefix}POSITIVE`],
4907
4939
  negative: process.env[`${prefix}NEGATIVE`],
4908
4940
  gradient
@@ -4942,6 +4974,7 @@ var getBaseThemeColorsEnv = (prefix) => {
4942
4974
  warning: process.env[`${prefix}WARNING`],
4943
4975
  danger: process.env[`${prefix}DANGER`],
4944
4976
  fatal: process.env[`${prefix}FATAL`],
4977
+ performance: process.env[`${prefix}PERFORMANCE`],
4945
4978
  positive: process.env[`${prefix}POSITIVE`],
4946
4979
  negative: process.env[`${prefix}NEGATIVE`],
4947
4980
  gradient
@@ -5253,6 +5286,9 @@ var setSingleThemeColorsEnv = (prefix, config3) => {
5253
5286
  if (config3.fatal) {
5254
5287
  process.env[`${prefix}FATAL`] = config3.fatal;
5255
5288
  }
5289
+ if (config3.performance) {
5290
+ process.env[`${prefix}PERFORMANCE`] = config3.performance;
5291
+ }
5256
5292
  if (config3.positive) {
5257
5293
  process.env[`${prefix}POSITIVE`] = config3.positive;
5258
5294
  }
@@ -5311,6 +5347,9 @@ var setBaseThemeColorsEnv = (prefix, config3) => {
5311
5347
  if (config3.fatal) {
5312
5348
  process.env[`${prefix}FATAL`] = config3.fatal;
5313
5349
  }
5350
+ if (config3.performance) {
5351
+ process.env[`${prefix}PERFORMANCE`] = config3.performance;
5352
+ }
5314
5353
  if (config3.positive) {
5315
5354
  process.env[`${prefix}POSITIVE`] = config3.positive;
5316
5355
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.169.129",
3
+ "version": "0.169.131",
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,8 +141,8 @@
141
141
  "@eslint/eslintrc": "^3.3.5",
142
142
  "@eslint/markdown": "^6.6.0",
143
143
  "@nx/eslint-plugin": "22.5.1",
144
- "@storm-software/config": "^1.135.41",
145
- "@storm-software/config-tools": "^1.189.40",
144
+ "@storm-software/config": "^1.136.1",
145
+ "@storm-software/config-tools": "^1.189.42",
146
146
  "@stylistic/eslint-plugin": "^4.4.1",
147
147
  "@typescript-eslint/eslint-plugin": "^8.57.1",
148
148
  "@typescript-eslint/parser": "^8.57.1",
@@ -239,5 +239,5 @@
239
239
  "prettier-plugin-astro": "^0.14.0"
240
240
  },
241
241
  "publishConfig": { "access": "public" },
242
- "gitHead": "f5dd2e96c8a8f7afd74015f40e6fbfb7fb0b57c9"
242
+ "gitHead": "44dac4c2a9df20ceaf583923530d42d05cfc020c"
243
243
  }