@storm-software/eslint 0.131.0 → 0.131.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-UAGSKXUP.js → chunk-NXBMVNV2.js} +1 -0
- package/dist/preset.js +34 -37
- package/dist/utils/ignores.js +1 -1
- package/dist/utils/index.js +1 -1
- 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
|
@@ -2667,34 +2667,26 @@ async function perfectionist() {
|
|
|
2667
2667
|
type: "natural"
|
|
2668
2668
|
}
|
|
2669
2669
|
],
|
|
2670
|
-
"perfectionist/sort-imports": [
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
"object",
|
|
2691
|
-
"unknown"
|
|
2692
|
-
],
|
|
2693
|
-
newlinesBetween: "ignore",
|
|
2694
|
-
order: "asc",
|
|
2695
|
-
type: "natural"
|
|
2696
|
-
}
|
|
2697
|
-
],
|
|
2670
|
+
// "perfectionist/sort-imports": [
|
|
2671
|
+
// "error",
|
|
2672
|
+
// {
|
|
2673
|
+
// groups: [
|
|
2674
|
+
// "type",
|
|
2675
|
+
// ["parent-type", "sibling-type", "index-type", "internal-type"],
|
|
2676
|
+
// "builtin",
|
|
2677
|
+
// "external",
|
|
2678
|
+
// "internal",
|
|
2679
|
+
// ["parent", "sibling", "index"],
|
|
2680
|
+
// "side-effect",
|
|
2681
|
+
// "object",
|
|
2682
|
+
// "unknown"
|
|
2683
|
+
// ],
|
|
2684
|
+
// newlinesBetween: "ignore",
|
|
2685
|
+
// order: "asc",
|
|
2686
|
+
// type: "natural"
|
|
2687
|
+
// }
|
|
2688
|
+
// ],
|
|
2689
|
+
"perfectionist/sort-imports": "off",
|
|
2698
2690
|
"perfectionist/sort-named-exports": [
|
|
2699
2691
|
"error",
|
|
2700
2692
|
{
|
|
@@ -2702,13 +2694,11 @@ async function perfectionist() {
|
|
|
2702
2694
|
type: "natural"
|
|
2703
2695
|
}
|
|
2704
2696
|
],
|
|
2705
|
-
"perfectionist/sort-named-imports": [
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
}
|
|
2711
|
-
]
|
|
2697
|
+
// "perfectionist/sort-named-imports": [
|
|
2698
|
+
// "error",
|
|
2699
|
+
// { order: "asc", type: "natural" }
|
|
2700
|
+
// ],
|
|
2701
|
+
"perfectionist/sort-named-imports": "off"
|
|
2712
2702
|
}
|
|
2713
2703
|
}
|
|
2714
2704
|
];
|
|
@@ -3423,9 +3413,12 @@ async function toml(options = {}) {
|
|
|
3423
3413
|
__name(toml, "toml");
|
|
3424
3414
|
|
|
3425
3415
|
// src/configs/typescript.ts
|
|
3426
|
-
import process2 from "node:process";
|
|
3427
3416
|
async function typescript(options = {}) {
|
|
3428
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
|
+
}
|
|
3429
3422
|
const files = options.files ?? [
|
|
3430
3423
|
GLOB_TS,
|
|
3431
3424
|
GLOB_TSX,
|
|
@@ -3490,6 +3483,7 @@ async function typescript(options = {}) {
|
|
|
3490
3483
|
parserOptions: {
|
|
3491
3484
|
extraFileExtensions: componentExts.map((ext) => `.${ext}`),
|
|
3492
3485
|
sourceType: "module",
|
|
3486
|
+
projectService: true,
|
|
3493
3487
|
...typeAware ? {
|
|
3494
3488
|
projectService: {
|
|
3495
3489
|
allowDefaultProject: [
|
|
@@ -3497,7 +3491,7 @@ async function typescript(options = {}) {
|
|
|
3497
3491
|
],
|
|
3498
3492
|
defaultProject: tsconfigPath
|
|
3499
3493
|
},
|
|
3500
|
-
tsconfigRootDir
|
|
3494
|
+
tsconfigRootDir
|
|
3501
3495
|
} : {},
|
|
3502
3496
|
...parserOptions
|
|
3503
3497
|
}
|
|
@@ -3542,6 +3536,9 @@ async function typescript(options = {}) {
|
|
|
3542
3536
|
*
|
|
3543
3537
|
**************************************************************/
|
|
3544
3538
|
"ts/no-explicit-any": "off",
|
|
3539
|
+
"ts/no-unsafe-assignment": "off",
|
|
3540
|
+
"ts/no-unsafe-argument": "off",
|
|
3541
|
+
"ts/no-unsafe-member-access": "off",
|
|
3545
3542
|
"ts/no-empty-function": "off",
|
|
3546
3543
|
"ts/no-var-requires": "off",
|
|
3547
3544
|
"ts/ban-ts-comment": "off",
|
package/dist/utils/ignores.js
CHANGED
package/dist/utils/index.js
CHANGED
package/package.json
CHANGED