@nx/eslint 19.4.0-canary.20240622-963f753 → 19.4.0-canary.20240626-3a2e8d4

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.4.0-canary.20240622-963f753",
3
+ "version": "19.4.0-canary.20240626-3a2e8d4",
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.4.0-canary.20240622-963f753",
39
- "@nx/js": "19.4.0-canary.20240622-963f753",
38
+ "@nx/devkit": "19.4.0-canary.20240626-3a2e8d4",
39
+ "@nx/js": "19.4.0-canary.20240626-3a2e8d4",
40
40
  "semver": "^7.5.3",
41
41
  "tslib": "^2.3.0",
42
42
  "typescript": "~5.4.2",
43
- "@nx/linter": "19.4.0-canary.20240622-963f753"
43
+ "@nx/linter": "19.4.0-canary.20240626-3a2e8d4"
44
44
  },
45
45
  "peerDependenciesMeta": {
46
46
  "@zkochan/js-yaml": {
@@ -9,10 +9,14 @@ const utils_1 = require("nx/src/tasks-runner/utils");
9
9
  const plugin_migration_utils_1 = require("@nx/devkit/src/generators/plugin-migrations/plugin-migration-utils");
10
10
  async function convertToInferred(tree, options) {
11
11
  const projectGraph = await (0, devkit_1.createProjectGraphAsync)();
12
- const migratedProjectsModern = await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nx/eslint:lint', '@nx/eslint/plugin', (targetName) => ({ targetName }), postTargetTransformer, plugin_1.createNodesV2, options.project);
13
- const migratedProjectsLegacy = await (0, executor_to_plugin_migrator_1.migrateExecutorToPlugin)(tree, projectGraph, '@nrwl/linter:eslint', '@nx/eslint/plugin', (targetName) => ({ targetName }), postTargetTransformer, plugin_1.createNodesV2, options.project);
14
- const migratedProjects = migratedProjectsModern.size + migratedProjectsLegacy.size;
15
- if (migratedProjects === 0) {
12
+ const migratedProjects = await (0, executor_to_plugin_migrator_1.migrateProjectExecutorsToPlugin)(tree, projectGraph, '@nx/eslint/plugin', plugin_1.createNodesV2, { targetName: 'lint' }, [
13
+ {
14
+ executors: ['@nx/eslint:lint', '@nrwl/linter:eslint'],
15
+ postTargetTransformer,
16
+ targetPluginOptionMapper: (targetName) => ({ targetName }),
17
+ },
18
+ ], options.project);
19
+ if (migratedProjects.size === 0) {
16
20
  throw new Error('Could not find any targets to migrate.');
17
21
  }
18
22
  if (!options.skipFormat) {