@storm-software/eslint 0.160.20 → 0.160.22

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.160.18-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.160.20-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.js CHANGED
@@ -3371,12 +3371,28 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
3371
3371
  }
3372
3372
  }
3373
3373
  const defaultConfig = await getPackageJsonConfig(_workspaceRoot);
3374
- result = applyDefaultConfig(
3375
- await stormWorkspaceConfigSchema.parseAsync(
3376
- defu3(configEnv, configFile, defaultConfig)
3377
- )
3374
+ const configInput = defu3(
3375
+ configEnv,
3376
+ configFile,
3377
+ defaultConfig
3378
3378
  );
3379
- result.workspaceRoot ??= _workspaceRoot;
3379
+ try {
3380
+ result = applyDefaultConfig(
3381
+ await stormWorkspaceConfigSchema.parseAsync(configInput)
3382
+ );
3383
+ result.workspaceRoot ??= _workspaceRoot;
3384
+ } catch (error) {
3385
+ throw new Error(
3386
+ `Failed to parse Storm Workspace configuration${error?.message ? `: ${error.message}` : ""}
3387
+
3388
+ Please ensure your configuration file is valid JSON and matches the expected schema. The current workspace configuration input is: ${formatLogMessage(
3389
+ configInput
3390
+ )}`,
3391
+ {
3392
+ cause: error
3393
+ }
3394
+ );
3395
+ }
3380
3396
  } else {
3381
3397
  result = _static_cache.data;
3382
3398
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.160.20",
3
+ "version": "0.160.22",
4
4
  "type": "module",
5
5
  "description": "A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {
@@ -162,8 +162,8 @@
162
162
  "@eslint/eslintrc": "^3.3.1",
163
163
  "@eslint/markdown": "^6.6.0",
164
164
  "@nx/eslint-plugin": "21.0.3",
165
- "@storm-software/config": "^1.125.5",
166
- "@storm-software/config-tools": "^1.176.6",
165
+ "@storm-software/config": "^1.125.7",
166
+ "@storm-software/config-tools": "^1.176.8",
167
167
  "@stylistic/eslint-plugin": "^4.4.1",
168
168
  "@typescript-eslint/eslint-plugin": "^8.35.0",
169
169
  "@typescript-eslint/parser": "^8.35.0",
@@ -237,5 +237,5 @@
237
237
  },
238
238
  "publishConfig": { "access": "public" },
239
239
  "sideEffects": false,
240
- "gitHead": "0b18a51d7803eb961008b0a9e747edf296c82693"
240
+ "gitHead": "b0d8f489b75626777c4ba65ba127298f9cafa3f0"
241
241
  }