@storm-software/eslint 0.114.3 → 0.114.4
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 +1 -1
- package/dist/preset.cjs +11 -5
- package/dist/preset.js +15 -9
- package/package.json +1 -1
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
|
-
[](https://prettier.io/) [](http://nx.dev/) [](https://nextjs.org/) [](http://commitizen.github.io/cz-cli/)  [](https://fumadocs.vercel.app/) 
|
|
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
|
-
|
|
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 (
|
|
219
|
-
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.
|
|
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(
|
|
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
|
|
210
|
+
import { join as join3 } from "node:path";
|
|
211
211
|
|
|
212
212
|
// ../config-tools/src/utilities/correct-paths.ts
|
|
213
|
-
import {
|
|
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 (
|
|
219
|
-
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.
|
|
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(
|
|
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(
|
|
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 =
|
|
247
|
+
const parent = join2(_startPath, "..");
|
|
242
248
|
return findFolderUp(parent, endFileNames);
|
|
243
249
|
}
|
|
244
250
|
return void 0;
|
package/package.json
CHANGED