@storm-software/eslint 0.168.3 → 0.168.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.168.1-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.168.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)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/dist/preset.js CHANGED
@@ -2459,6 +2459,7 @@ var rootFiles = [
2459
2459
  var rootDirectories = [
2460
2460
  ".storm-workspace",
2461
2461
  ".nx",
2462
+ ".git",
2462
2463
  ".github",
2463
2464
  ".vscode",
2464
2465
  ".verdaccio"
@@ -5236,6 +5237,7 @@ var getConfigFile = async (filePath, additionalFileNames = []) => {
5236
5237
  // ../config-tools/src/create-storm-config.ts
5237
5238
  init_esm_shims();
5238
5239
  import defu3 from "defu";
5240
+ import { existsSync as existsSync4 } from "node:fs";
5239
5241
 
5240
5242
  // ../config-tools/src/env/get-env.ts
5241
5243
  init_esm_shims();
@@ -5849,6 +5851,9 @@ var createStormWorkspaceConfig = async (extensionName, schema, workspaceRoot, sk
5849
5851
  configFile,
5850
5852
  defaultConfig
5851
5853
  );
5854
+ if (!configInput.variant) {
5855
+ configInput.variant = existsSync4(joinPaths2(_workspaceRoot, "nx.json")) || existsSync4(joinPaths2(_workspaceRoot, ".nx")) || existsSync4(joinPaths2(_workspaceRoot, "lerna.json")) || existsSync4(joinPaths2(_workspaceRoot, "turbo.json")) ? "monorepo" : "minimal";
5856
+ }
5852
5857
  try {
5853
5858
  result = applyDefaultConfig(
5854
5859
  await workspaceConfigSchema.parseAsync(configInput)
@@ -7437,7 +7442,7 @@ import {
7437
7442
  createProjectGraphAsync,
7438
7443
  readCachedProjectGraph
7439
7444
  } from "@nx/devkit";
7440
- import { existsSync as existsSync4 } from "node:fs";
7445
+ import { existsSync as existsSync5 } from "node:fs";
7441
7446
  import { readFile as readFile2 } from "node:fs/promises";
7442
7447
  async function pnpm(options = {}) {
7443
7448
  const {
@@ -7470,7 +7475,7 @@ async function pnpm(options = {}) {
7470
7475
  projectNode.data.root,
7471
7476
  "package.json"
7472
7477
  );
7473
- if (existsSync4(projectPackageJsonPath)) {
7478
+ if (existsSync5(projectPackageJsonPath)) {
7474
7479
  const projectPackageJsonContent = await readFile2(
7475
7480
  projectPackageJsonPath,
7476
7481
  "utf8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/eslint",
3
- "version": "0.168.3",
3
+ "version": "0.168.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": {
@@ -164,8 +164,8 @@
164
164
  "@eslint/eslintrc": "^3.3.1",
165
165
  "@eslint/markdown": "^6.6.0",
166
166
  "@nx/eslint-plugin": "^21.4.1",
167
- "@storm-software/config": "^1.132.2",
168
- "@storm-software/config-tools": "^1.186.3",
167
+ "@storm-software/config": "^1.133.0",
168
+ "@storm-software/config-tools": "^1.187.0",
169
169
  "@stylistic/eslint-plugin": "^4.4.1",
170
170
  "@typescript-eslint/eslint-plugin": "^8.35.0",
171
171
  "@typescript-eslint/parser": "^8.35.0",
@@ -241,5 +241,5 @@
241
241
  },
242
242
  "publishConfig": { "access": "public" },
243
243
  "sideEffects": false,
244
- "gitHead": "4685d950fde94a24f6739526637a100d134c3623"
244
+ "gitHead": "4d44644a8d56ed0d61e060cf74147fcc83210a5c"
245
245
  }