@storm-software/eslint 0.163.0 → 0.163.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.162.0-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.163.0-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 -->
@@ -0,0 +1,33 @@
1
+ import {
2
+ joinPaths
3
+ } from "./chunk-4T2VGUKQ.js";
4
+ import {
5
+ init_esm_shims
6
+ } from "./chunk-VQHWUYQL.js";
7
+
8
+ // src/utils/tsconfig-path.ts
9
+ init_esm_shims();
10
+ import { existsSync, statSync } from "node:fs";
11
+ function getTsConfigPath(tsconfigPath = "./", workspaceRoot = "./") {
12
+ let result = "tsconfig.json";
13
+ if (tsconfigPath && existsSync(tsconfigPath) && statSync(tsconfigPath).isFile()) {
14
+ result = tsconfigPath;
15
+ } else if (tsconfigPath === workspaceRoot && existsSync(joinPaths(workspaceRoot, "tsconfig.base.json"))) {
16
+ result = "tsconfig.base.json";
17
+ } else if (existsSync(joinPaths(tsconfigPath, "tsconfig.app.json"))) {
18
+ result = "tsconfig.app.json";
19
+ } else if (existsSync(joinPaths(tsconfigPath, "tsconfig.lib.json"))) {
20
+ result = "tsconfig.lib.json";
21
+ } else if (existsSync(joinPaths(workspaceRoot, "tsconfig.base.json"))) {
22
+ result = "tsconfig.base.json";
23
+ } else {
24
+ console.warn(
25
+ `No tsconfig.json found${tsconfigPath !== "./" ? ` provided: ${tsconfigPath}` : ""}. Consider adding a tsconfig.json file to your project's ESLint configuration.`
26
+ );
27
+ }
28
+ return result;
29
+ }
30
+
31
+ export {
32
+ getTsConfigPath
33
+ };
package/dist/preset.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  } from "./chunk-D7COKLND.js";
9
9
  import {
10
10
  getTsConfigPath
11
- } from "./chunk-ROE6YWPJ.js";
11
+ } from "./chunk-2ITZ6WL5.js";
12
12
  import {
13
13
  banner_plugin_default
14
14
  } from "./chunk-BBKL5SSX.js";
@@ -7924,7 +7924,10 @@ async function typescript(options = {}) {
7924
7924
  GLOB_ASTRO_TS
7925
7925
  ];
7926
7926
  const workspaceRoot = findWorkspaceRoot();
7927
- const tsconfigPath = getTsConfigPath(options?.tsconfigPath || workspaceRoot);
7927
+ const tsconfigPath = getTsConfigPath(
7928
+ options?.tsconfigPath || workspaceRoot,
7929
+ workspaceRoot
7930
+ );
7928
7931
  const typeAwareRules = {
7929
7932
  "dot-notation": "off",
7930
7933
  "no-implied-eval": "off",
@@ -1,3 +1,3 @@
1
- declare function getTsConfigPath(basePath?: string): string;
1
+ declare function getTsConfigPath(tsconfigPath?: string, workspaceRoot?: string): string;
2
2
 
3
3
  export { getTsConfigPath };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getTsConfigPath
3
- } from "../chunk-ROE6YWPJ.js";
3
+ } from "../chunk-2ITZ6WL5.js";
4
4
  import "../chunk-4T2VGUKQ.js";
5
5
  import "../chunk-VQHWUYQL.js";
6
6
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.163.0",
3
+ "version": "0.163.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": {
@@ -163,8 +163,8 @@
163
163
  "@eslint/eslintrc": "^3.3.1",
164
164
  "@eslint/markdown": "^6.6.0",
165
165
  "@nx/eslint-plugin": "^21.3.10",
166
- "@storm-software/config": "^1.128.2",
167
- "@storm-software/config-tools": "^1.180.2",
166
+ "@storm-software/config": "^1.128.4",
167
+ "@storm-software/config-tools": "^1.180.4",
168
168
  "@stylistic/eslint-plugin": "^4.4.1",
169
169
  "@typescript-eslint/eslint-plugin": "^8.35.0",
170
170
  "@typescript-eslint/parser": "^8.35.0",
@@ -191,7 +191,7 @@
191
191
  "eslint-plugin-perfectionist": "^4.15.0",
192
192
  "eslint-plugin-pnpm": "0.3.0",
193
193
  "eslint-plugin-prettier": "^5.5.4",
194
- "eslint-plugin-regexp": "^2.9.1",
194
+ "eslint-plugin-regexp": "^2.10.0",
195
195
  "eslint-plugin-toml": "^0.12.0",
196
196
  "eslint-plugin-tsdoc": "0.4.0",
197
197
  "eslint-plugin-unicorn": "^57.0.0",
@@ -240,5 +240,5 @@
240
240
  },
241
241
  "publishConfig": { "access": "public" },
242
242
  "sideEffects": false,
243
- "gitHead": "55b0c11271ee9c8d4324df6ab1077d4328b002d0"
243
+ "gitHead": "e414fb473eaa0769b65368cdcee28af8225fc977"
244
244
  }
@@ -1,29 +0,0 @@
1
- import {
2
- joinPaths
3
- } from "./chunk-4T2VGUKQ.js";
4
- import {
5
- init_esm_shims
6
- } from "./chunk-VQHWUYQL.js";
7
-
8
- // src/utils/tsconfig-path.ts
9
- init_esm_shims();
10
- import { existsSync } from "node:fs";
11
- function getTsConfigPath(basePath = "./") {
12
- let tsconfigPath = "tsconfig.json";
13
- if (existsSync(joinPaths(basePath, "tsconfig.base.json"))) {
14
- tsconfigPath = "tsconfig.base.json";
15
- } else if (existsSync(joinPaths(basePath, "tsconfig.app.json"))) {
16
- tsconfigPath = "tsconfig.app.json";
17
- } else if (existsSync(joinPaths(basePath, "tsconfig.lib.json"))) {
18
- tsconfigPath = "tsconfig.lib.json";
19
- } else {
20
- console.warn(
21
- "No tsconfig.json found. Consider adding a tsconfig.json file to your project's ESLint configuration."
22
- );
23
- }
24
- return tsconfigPath;
25
- }
26
-
27
- export {
28
- getTsConfigPath
29
- };