@storm-software/eslint 0.114.3 → 0.114.5

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.114.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.114.4-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
@@ -210,21 +210,27 @@ var _promises = require('fs/promises');
210
210
  var _path = require('path');
211
211
 
212
212
  // ../config-tools/src/utilities/correct-paths.ts
213
- var _devkit = require('@nx/devkit');
213
+
214
+ var removeWindowsDriveLetter = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (osSpecificPath) => {
215
+ return osSpecificPath.replace(/^[A-Z]:/, "");
216
+ }, "removeWindowsDriveLetter");
214
217
  var correctPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (path) => {
215
218
  if (!path) {
216
219
  return "";
217
220
  }
218
- if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
219
- path = `C:${path}`;
221
+ if (path.includes("\\")) {
222
+ if (!path.toUpperCase().startsWith("C:")) {
223
+ path = `C:${path}`;
224
+ }
225
+ return path.replaceAll("/", "\\");
220
226
  }
221
- return path.replaceAll("\\", "/");
227
+ return removeWindowsDriveLetter(path).split("\\").join("/");
222
228
  }, "correctPaths");
223
229
  var joinPaths = /* @__PURE__ */ _chunkUSNT2KNTcjs.__name.call(void 0, (...paths) => {
224
230
  if (!paths || paths.length === 0) {
225
231
  return "";
226
232
  }
227
- return correctPaths(_devkit.joinPathFragments.call(void 0, ...paths.map((path) => correctPaths(path))));
233
+ return correctPaths(_path.join.call(void 0, ...paths));
228
234
  }, "joinPaths");
229
235
 
230
236
  // ../config-tools/src/utilities/find-up.ts
package/dist/preset.js CHANGED
@@ -207,38 +207,44 @@ var StormConfigSchema = z.object({
207
207
  // ../config-tools/src/utilities/get-default-config.ts
208
208
  import { existsSync as existsSync2 } from "node:fs";
209
209
  import { readFile } from "node:fs/promises";
210
- import { join as join2 } from "node:path";
210
+ import { join as join3 } from "node:path";
211
211
 
212
212
  // ../config-tools/src/utilities/correct-paths.ts
213
- import { joinPathFragments } from "@nx/devkit";
213
+ import { join } from "node:path";
214
+ var removeWindowsDriveLetter = /* @__PURE__ */ __name((osSpecificPath) => {
215
+ return osSpecificPath.replace(/^[A-Z]:/, "");
216
+ }, "removeWindowsDriveLetter");
214
217
  var correctPaths = /* @__PURE__ */ __name((path) => {
215
218
  if (!path) {
216
219
  return "";
217
220
  }
218
- if (!path.toUpperCase().startsWith("C:") && path.includes("\\")) {
219
- path = `C:${path}`;
221
+ if (path.includes("\\")) {
222
+ if (!path.toUpperCase().startsWith("C:")) {
223
+ path = `C:${path}`;
224
+ }
225
+ return path.replaceAll("/", "\\");
220
226
  }
221
- return path.replaceAll("\\", "/");
227
+ return removeWindowsDriveLetter(path).split("\\").join("/");
222
228
  }, "correctPaths");
223
229
  var joinPaths = /* @__PURE__ */ __name((...paths) => {
224
230
  if (!paths || paths.length === 0) {
225
231
  return "";
226
232
  }
227
- return correctPaths(joinPathFragments(...paths.map((path) => correctPaths(path))));
233
+ return correctPaths(join(...paths));
228
234
  }, "joinPaths");
229
235
 
230
236
  // ../config-tools/src/utilities/find-up.ts
231
237
  import { existsSync } from "node:fs";
232
- import { join } from "node:path";
238
+ import { join as join2 } from "node:path";
233
239
  var MAX_PATH_SEARCH_DEPTH = 30;
234
240
  var depth = 0;
235
241
  function findFolderUp(startPath, endFileNames) {
236
242
  const _startPath = startPath ?? process.cwd();
237
- if (endFileNames.some((endFileName) => existsSync(join(_startPath, endFileName)))) {
243
+ if (endFileNames.some((endFileName) => existsSync(join2(_startPath, endFileName)))) {
238
244
  return _startPath;
239
245
  }
240
246
  if (_startPath !== "/" && depth++ < MAX_PATH_SEARCH_DEPTH) {
241
- const parent = join(_startPath, "..");
247
+ const parent = join2(_startPath, "..");
242
248
  return findFolderUp(parent, endFileNames);
243
249
  }
244
250
  return void 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.114.3",
3
+ "version": "0.114.5",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {