@nx/eslint 19.6.0-canary.20240725-3890edc → 19.6.0-canary.20240727-efa59fa

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/eslint",
3
- "version": "19.6.0-canary.20240725-3890edc",
3
+ "version": "19.6.0-canary.20240727-efa59fa",
4
4
  "private": false,
5
5
  "description": "The ESLint plugin for Nx contains executors, generators and utilities used for linting JavaScript/TypeScript projects within an Nx workspace.",
6
6
  "repository": {
@@ -35,12 +35,12 @@
35
35
  "eslint": "^8.0.0 || ^9.0.0"
36
36
  },
37
37
  "dependencies": {
38
- "@nx/devkit": "19.6.0-canary.20240725-3890edc",
39
- "@nx/js": "19.6.0-canary.20240725-3890edc",
38
+ "@nx/devkit": "19.6.0-canary.20240727-efa59fa",
39
+ "@nx/js": "19.6.0-canary.20240727-efa59fa",
40
40
  "semver": "^7.5.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.4.2",
43
- "@nx/linter": "19.6.0-canary.20240725-3890edc"
43
+ "@nx/linter": "19.6.0-canary.20240727-efa59fa"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@zkochan/js-yaml": {
@@ -137,7 +137,7 @@ Please see https://nx.dev/recipes/tips-n-tricks/eslint for full guidance on how
137
137
  if (printInfo) {
138
138
  outputPrintInfo(totals);
139
139
  }
140
- if (totals.warnings > options.maxWarnings) {
140
+ if (options.maxWarnings >= 0 && totals.warnings > options.maxWarnings) {
141
141
  console.info(`ESLint found too many warnings (maximum: ${options.maxWarnings}).`);
142
142
  }
143
143
  return {
@@ -215,6 +215,7 @@ function isMigrationToMonorepoNeeded(tree, graph) {
215
215
  for (const targetConfig of Object.values(rootProject.data.targets ?? {})) {
216
216
  if (['@nx/eslint:lint', '@nrwl/linter:eslint', '@nx/linter:eslint'].includes(targetConfig.executor) ||
217
217
  (targetConfig.executor === 'nx:run-commands' &&
218
+ targetConfig.options?.command &&
218
219
  targetConfig.options?.command.startsWith('eslint '))) {
219
220
  return true;
220
221
  }