@storm-software/eslint 0.131.1 → 0.131.3
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.js +8 -7
- 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.js
CHANGED
|
@@ -3415,6 +3415,10 @@ __name(toml, "toml");
|
|
|
3415
3415
|
// src/configs/typescript.ts
|
|
3416
3416
|
async function typescript(options = {}) {
|
|
3417
3417
|
const { componentExts = [], overrides = {}, overridesTypeAware = {}, parserOptions = {}, type = "app" } = options;
|
|
3418
|
+
let tsconfigRootDir = process.cwd();
|
|
3419
|
+
if (process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH) {
|
|
3420
|
+
tsconfigRootDir = process.env.STORM_WORKSPACE_ROOT || process.env.NX_WORKSPACE_ROOT_PATH;
|
|
3421
|
+
}
|
|
3418
3422
|
const files = options.files ?? [
|
|
3419
3423
|
GLOB_TS,
|
|
3420
3424
|
GLOB_TSX,
|
|
@@ -3448,10 +3452,10 @@ async function typescript(options = {}) {
|
|
|
3448
3452
|
"ts/no-implied-eval": "error",
|
|
3449
3453
|
"ts/no-misused-promises": "error",
|
|
3450
3454
|
"ts/no-unnecessary-type-assertion": "error",
|
|
3451
|
-
"ts/no-unsafe-
|
|
3452
|
-
"ts/no-unsafe-
|
|
3455
|
+
"ts/no-unsafe-assignment": "off",
|
|
3456
|
+
"ts/no-unsafe-argument": "off",
|
|
3457
|
+
"ts/no-unsafe-member-access": "off",
|
|
3453
3458
|
"ts/no-unsafe-call": "error",
|
|
3454
|
-
"ts/no-unsafe-member-access": "error",
|
|
3455
3459
|
"ts/no-unsafe-return": "off",
|
|
3456
3460
|
"ts/promise-function-async": "error",
|
|
3457
3461
|
"ts/restrict-plus-operands": "error",
|
|
@@ -3487,7 +3491,7 @@ async function typescript(options = {}) {
|
|
|
3487
3491
|
],
|
|
3488
3492
|
defaultProject: tsconfigPath
|
|
3489
3493
|
},
|
|
3490
|
-
tsconfigRootDir
|
|
3494
|
+
tsconfigRootDir
|
|
3491
3495
|
} : {},
|
|
3492
3496
|
...parserOptions
|
|
3493
3497
|
}
|
|
@@ -3532,9 +3536,6 @@ async function typescript(options = {}) {
|
|
|
3532
3536
|
*
|
|
3533
3537
|
**************************************************************/
|
|
3534
3538
|
"ts/no-explicit-any": "off",
|
|
3535
|
-
"ts/no-unsafe-assignment": "off",
|
|
3536
|
-
"ts/no-unsafe-argument": "off",
|
|
3537
|
-
"ts/no-unsafe-member-access": "off",
|
|
3538
3539
|
"ts/no-empty-function": "off",
|
|
3539
3540
|
"ts/no-var-requires": "off",
|
|
3540
3541
|
"ts/ban-ts-comment": "off",
|
package/package.json
CHANGED