nx/docs/generated/packages/angular/migrations/20.2.0-angular-eslint-package-updates.json
Jack Hsu 09ebf5f2da
fix(eslint): ensure that packages in the same group as updated together (#30187)
This PR updates `migrations.json` for `@nx/eslint` and `@nx/angular` so
that `@typescript-eslint/*` and `@angular-eslint/*` packages that are
installed in the workspaces are updated to the same version.

I've updated it for v20 and v19, but if we need to go back further we
could. This will also require patch versions for each major that we want
to fix.

**Note:** Previously there were two entries for `@nx/esilnt@20.4.0` that
handles cases where one of `typescript-eslint` or
`@typescript-eslint/eslint-plugin` are > 8. The packages in both entries
overlap, so I collapsed them down to one entry that checks
`typescript-eslint > 8`.

## Current Behavior
If user has `@typescript-eslint/rule-tester` or
`@angular-eslint/test-utils` installed, our migrations do not update
these versions. This makes them out of sync with
`@typescript-eslint/utils`, etc. which can lead to problems.

## Expected Behavior
Packages in the same `@typescript-eslint/*` and `@angular-eslint/*` are
updated together. If they are not installed, we don't add them to the
workspace.

## Related Issue(s)
<!-- Please link the issue being fixed so it gets closed when this is
merged. -->

Fixes #
2025-02-26 14:07:03 -05:00

51 lines
1.3 KiB
JSON

{
"name": "20.2.0-angular-eslint-package-updates",
"version": "20.2.0-beta.5",
"requires": {
"eslint": "^8.57.0 || ^9.0.0",
"@angular/core": ">= 19.0.0 < 20.0.0"
},
"packages": {
"angular-eslint": { "version": "^19.0.0", "alwaysAddToPackageJson": false },
"@angular-eslint/eslint-plugin": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/eslint-plugin-template": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/template-parser": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/utils": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/schematics": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/test-utils": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/builder": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
},
"@angular-eslint/bundled-angular-compiler": {
"version": "^19.0.0",
"alwaysAddToPackageJson": false
}
},
"aliases": [],
"description": "",
"hidden": false,
"implementation": "",
"path": "/packages/angular",
"schema": null,
"type": "migration"
}