@storm-software/eslint 0.149.4 → 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 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.149.3-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.149.4-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 -->
@@ -40,6 +40,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
40
40
 
41
41
  <!-- START doctoc -->
42
42
  <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
43
+
43
44
  ## Table of Contents
44
45
 
45
46
  - [Storm Base ESLint Package](#storm-base-eslint-package)
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 { overrides = {}, ignore = ["typescript"] } = options;
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 ?? false) {
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.149.4",
3
+ "version": "0.149.5",
4
4
  "type": "module",
5
5
  "description": "⚡ A package containing the base ESLint configuration used by Storm Software across many projects.",
6
6
  "repository": {