@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 +1 -1
- package/dist/chunk-2ITZ6WL5.js +33 -0
- package/dist/preset.js +5 -2
- package/dist/utils/tsconfig-path.d.ts +1 -1
- package/dist/utils/tsconfig-path.js +1 -1
- package/package.json +5 -5
- package/dist/chunk-ROE6YWPJ.js +0 -29
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 -->
|
|
@@ -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-
|
|
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(
|
|
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",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storm-software/eslint",
|
|
3
|
-
"version": "0.163.
|
|
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.
|
|
167
|
-
"@storm-software/config-tools": "^1.180.
|
|
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.
|
|
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": "
|
|
243
|
+
"gitHead": "e414fb473eaa0769b65368cdcee28af8225fc977"
|
|
244
244
|
}
|
package/dist/chunk-ROE6YWPJ.js
DELETED
|
@@ -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
|
-
};
|