@storm-software/eslint 0.149.3 → 0.149.5
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 +52 -2
- package/dist/types.d.ts +6 -0
- 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
|
@@ -2890,13 +2890,63 @@ async function perfectionist() {
|
|
|
2890
2890
|
}
|
|
2891
2891
|
|
|
2892
2892
|
// src/configs/pnpm.ts
|
|
2893
|
+
import {
|
|
2894
|
+
createProjectGraphAsync,
|
|
2895
|
+
readCachedProjectGraph
|
|
2896
|
+
} from "@nx/devkit";
|
|
2897
|
+
import { existsSync as existsSync2 } from "node:fs";
|
|
2898
|
+
import { readFile } from "node:fs/promises";
|
|
2893
2899
|
async function pnpm(options = {}) {
|
|
2894
|
-
const {
|
|
2900
|
+
const {
|
|
2901
|
+
overrides = {},
|
|
2902
|
+
ignore = ["typescript"],
|
|
2903
|
+
ignoreWorkspaceDeps = true
|
|
2904
|
+
} = options;
|
|
2905
|
+
const workspaceRoot = findWorkspaceRoot();
|
|
2895
2906
|
await ensurePackages(["jsonc-eslint-parser", "yaml-eslint-parser"]);
|
|
2896
2907
|
const [parserJsonc, parserYaml] = await Promise.all([
|
|
2897
2908
|
interopDefault(import("jsonc-eslint-parser")),
|
|
2898
2909
|
interopDefault(import("yaml-eslint-parser"))
|
|
2899
2910
|
]);
|
|
2911
|
+
if (ignoreWorkspaceDeps !== false) {
|
|
2912
|
+
let projectGraph;
|
|
2913
|
+
try {
|
|
2914
|
+
projectGraph = readCachedProjectGraph();
|
|
2915
|
+
} catch {
|
|
2916
|
+
await createProjectGraphAsync();
|
|
2917
|
+
projectGraph = readCachedProjectGraph();
|
|
2918
|
+
}
|
|
2919
|
+
const localPackages = [];
|
|
2920
|
+
if (projectGraph) {
|
|
2921
|
+
await Promise.all(
|
|
2922
|
+
Object.keys(projectGraph.nodes).map(async (node2) => {
|
|
2923
|
+
const projectNode = projectGraph.nodes[node2];
|
|
2924
|
+
if (projectNode?.data.root) {
|
|
2925
|
+
const projectPackageJsonPath = joinPaths(
|
|
2926
|
+
workspaceRoot,
|
|
2927
|
+
projectNode.data.root,
|
|
2928
|
+
"package.json"
|
|
2929
|
+
);
|
|
2930
|
+
if (existsSync2(projectPackageJsonPath)) {
|
|
2931
|
+
const projectPackageJsonContent = await readFile(
|
|
2932
|
+
projectPackageJsonPath,
|
|
2933
|
+
"utf8"
|
|
2934
|
+
);
|
|
2935
|
+
const projectPackageJson = JSON.parse(projectPackageJsonContent);
|
|
2936
|
+
if (projectPackageJson.private !== true) {
|
|
2937
|
+
localPackages.push(projectPackageJson.name);
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
}
|
|
2941
|
+
})
|
|
2942
|
+
);
|
|
2943
|
+
}
|
|
2944
|
+
localPackages.forEach((pkg) => {
|
|
2945
|
+
if (!ignore.includes(pkg)) {
|
|
2946
|
+
ignore.push(pkg);
|
|
2947
|
+
}
|
|
2948
|
+
});
|
|
2949
|
+
}
|
|
2900
2950
|
return [
|
|
2901
2951
|
{
|
|
2902
2952
|
name: "storm/pnpm/setup",
|
|
@@ -4185,7 +4235,7 @@ function getStormConfig(options, ...userConfigs) {
|
|
|
4185
4235
|
})
|
|
4186
4236
|
);
|
|
4187
4237
|
}
|
|
4188
|
-
if (options.markdown
|
|
4238
|
+
if (options.markdown === true) {
|
|
4189
4239
|
configs3.push(
|
|
4190
4240
|
markdown({
|
|
4191
4241
|
componentExts,
|
package/dist/types.d.ts
CHANGED
|
@@ -17288,6 +17288,12 @@ interface OptionsPnpm extends OptionsOverrides {
|
|
|
17288
17288
|
* @defaultValue ["typescript"]
|
|
17289
17289
|
*/
|
|
17290
17290
|
ignore?: string[];
|
|
17291
|
+
/**
|
|
17292
|
+
* Should local workspace dependencies be ignored by the `pnpm/json-enforce-catalog` rule.
|
|
17293
|
+
*
|
|
17294
|
+
* @defaultValue true
|
|
17295
|
+
*/
|
|
17296
|
+
ignoreWorkspaceDeps?: boolean;
|
|
17291
17297
|
}
|
|
17292
17298
|
interface OptionsCSpell extends OptionsOverrides {
|
|
17293
17299
|
/**
|
package/package.json
CHANGED