@storm-software/eslint 0.111.0 → 0.111.2

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.110.2-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.111.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.cjs CHANGED
@@ -1,5 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
+ var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
4
+
5
+
6
+ var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
7
+
8
+
3
9
  var _chunkR5BQJYBXcjs = require('./chunk-R5BQJYBX.cjs');
4
10
 
5
11
 
@@ -10,17 +16,11 @@ var _chunkLFHG33FOcjs = require('./chunk-LFHG33FO.cjs');
10
16
  require('./chunk-HMBBDY5L.cjs');
11
17
 
12
18
 
13
- var _chunkGMT3V67Ncjs = require('./chunk-GMT3V67N.cjs');
14
-
15
-
16
19
 
17
20
 
18
21
  var _chunkESFBJFNUcjs = require('./chunk-ESFBJFNU.cjs');
19
22
 
20
23
 
21
- var _chunkYQQ366F7cjs = require('./chunk-YQQ366F7.cjs');
22
-
23
-
24
24
  var _chunkUSNT2KNTcjs = require('./chunk-USNT2KNT.cjs');
25
25
 
26
26
  // src/preset.ts
@@ -413,8 +413,7 @@ var getLogLevel = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (label)
413
413
  }, "getLogLevel");
414
414
 
415
415
  // ../config-tools/src/logger/console.ts
416
- var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}) => {
417
- const _chalk = getChalk();
416
+ var getLogFn = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
418
417
  const colors = !_optionalChain([config, 'access', _7 => _7.colors, 'optionalAccess', _8 => _8.dark]) && !_optionalChain([config, 'access', _9 => _9.colors, 'optionalAccess', _10 => _10["base"]]) && !_optionalChain([config, 'access', _11 => _11.colors, 'optionalAccess', _12 => _12["base"], 'optionalAccess', _13 => _13.dark]) ? DEFAULT_COLOR_CONFIG : _optionalChain([config, 'access', _14 => _14.colors, 'optionalAccess', _15 => _15.dark]) && typeof config.colors.dark === "string" ? config.colors : _optionalChain([config, 'access', _16 => _16.colors, 'optionalAccess', _17 => _17["base"], 'optionalAccess', _18 => _18.dark]) && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : _optionalChain([config, 'access', _19 => _19.colors, 'optionalAccess', _20 => _20["base"]]) ? _optionalChain([config, 'access', _21 => _21.colors, 'optionalAccess', _22 => _22["base"]]) : DEFAULT_COLOR_CONFIG;
419
418
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
420
419
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
package/dist/preset.js CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ formatConfig
3
+ } from "./chunk-FTXILLLE.js";
4
+ import {
5
+ ignores
6
+ } from "./chunk-VJ6CKC4P.js";
1
7
  import {
2
8
  getStormRulesConfig
3
9
  } from "./chunk-XMT3QM5B.js";
@@ -8,17 +14,11 @@ import {
8
14
  banner_plugin_default
9
15
  } from "./chunk-LSG5T3ZK.js";
10
16
  import "./chunk-Y67QTC5U.js";
11
- import {
12
- formatConfig
13
- } from "./chunk-FTXILLLE.js";
14
17
  import {
15
18
  CODE_BLOCK,
16
19
  CODE_FILE,
17
20
  TS_FILE
18
21
  } from "./chunk-RTM5LCEB.js";
19
- import {
20
- ignores
21
- } from "./chunk-VJ6CKC4P.js";
22
22
  import {
23
23
  __name
24
24
  } from "./chunk-SHUYVCID.js";
@@ -413,8 +413,7 @@ var getLogLevel = /* @__PURE__ */ __name((label) => {
413
413
  }, "getLogLevel");
414
414
 
415
415
  // ../config-tools/src/logger/console.ts
416
- var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}) => {
417
- const _chalk = getChalk();
416
+ var getLogFn = /* @__PURE__ */ __name((logLevel = LogLevel.INFO, config = {}, _chalk = getChalk()) => {
418
417
  const colors = !config.colors?.dark && !config.colors?.["base"] && !config.colors?.["base"]?.dark ? DEFAULT_COLOR_CONFIG : config.colors?.dark && typeof config.colors.dark === "string" ? config.colors : config.colors?.["base"]?.dark && typeof config.colors["base"].dark === "string" ? config.colors["base"].dark : config.colors?.["base"] ? config.colors?.["base"] : DEFAULT_COLOR_CONFIG;
419
418
  const configLogLevel = config.logLevel || process.env.STORM_LOG_LEVEL || LogLevelLabel.INFO;
420
419
  if (typeof logLevel === "number" && (logLevel >= getLogLevel(configLogLevel) || logLevel <= LogLevel.SILENT) || typeof logLevel === "string" && getLogLevel(logLevel) >= getLogLevel(configLogLevel)) {
@@ -3,6 +3,7 @@
3
3
  var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
4
4
 
5
5
 
6
+ var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
6
7
 
7
8
 
8
9
 
@@ -12,10 +13,9 @@ var _chunkGMT3V67Ncjs = require('../chunk-GMT3V67N.cjs');
12
13
 
13
14
 
14
15
 
15
- var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
16
16
 
17
17
 
18
- var _chunkYQQ366F7cjs = require('../chunk-YQQ366F7.cjs');
18
+ var _chunkESFBJFNUcjs = require('../chunk-ESFBJFNU.cjs');
19
19
  require('../chunk-USNT2KNT.cjs');
20
20
 
21
21
 
@@ -1,6 +1,9 @@
1
1
  import {
2
2
  formatConfig
3
3
  } from "../chunk-FTXILLLE.js";
4
+ import {
5
+ ignores
6
+ } from "../chunk-VJ6CKC4P.js";
4
7
  import {
5
8
  ACRONYMS_LIST,
6
9
  CODE_BLOCK,
@@ -13,9 +16,6 @@ import {
13
16
  RESTRICTED_SYNTAX,
14
17
  TS_FILE
15
18
  } from "../chunk-RTM5LCEB.js";
16
- import {
17
- ignores
18
- } from "../chunk-VJ6CKC4P.js";
19
19
  import "../chunk-SHUYVCID.js";
20
20
  export {
21
21
  ACRONYMS_LIST,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.111.0",
3
+ "version": "0.111.2",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {