Skip to content

Commit

Permalink
fix(linter): restore package update group for `@typescript-eslint/esl…
Browse files Browse the repository at this point in the history
…int-plugin` requirement (#30204)

Restores a package update group with a `requires` entry to handle
workspaces using `@typescript-eslint/eslint-plugin` and not
`typescript-eslint`.

## Current Behavior

## Expected Behavior

## Related Issue(s)

Fixes #
  • Loading branch information
leosvelperez authored Feb 27, 2025
1 parent 811bac5 commit 7a73e8a
Show file tree
Hide file tree
Showing 4 changed files with 82 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/generated/manifests/nx-api.json
Original file line number Diff line number Diff line change
Expand Up @@ -1718,6 +1718,16 @@
"path": "/nx-api/eslint/migrations/20.4.0-typescript-eslint-package-updates",
"type": "migration"
},
"/nx-api/eslint/migrations/20.4.0-@typescript-eslint-package-updates": {
"description": "",
"file": "generated/packages/eslint/migrations/20.4.0-@typescript-eslint-package-updates.json",
"hidden": false,
"name": "20.4.0-@typescript-eslint-package-updates",
"version": "20.4.0-beta.1",
"originalFilePath": "/packages/eslint",
"path": "/nx-api/eslint/migrations/20.4.0-@typescript-eslint-package-updates",
"type": "migration"
},
"/nx-api/eslint/migrations/add-file-extensions-to-overrides": {
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
"file": "generated/packages/eslint/migrations/add-file-extensions-to-overrides.json",
Expand Down
10 changes: 10 additions & 0 deletions docs/generated/packages-metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -1706,6 +1706,16 @@
"path": "eslint/migrations/20.4.0-typescript-eslint-package-updates",
"type": "migration"
},
{
"description": "",
"file": "generated/packages/eslint/migrations/20.4.0-@typescript-eslint-package-updates.json",
"hidden": false,
"name": "20.4.0-@typescript-eslint-package-updates",
"version": "20.4.0-beta.1",
"originalFilePath": "/packages/eslint",
"path": "eslint/migrations/20.4.0-@typescript-eslint-package-updates",
"type": "migration"
},
{
"description": "Update ESLint flat config to include .cjs, .mjs, .cts, and .mts files in overrides (if needed)",
"file": "generated/packages/eslint/migrations/add-file-extensions-to-overrides.json",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "20.4.0-@typescript-eslint-package-updates",
"version": "20.4.0-beta.1",
"requires": { "@typescript-eslint/eslint-plugin": ">8.0.0 <8.19.0" },
"packages": {
"typescript-eslint": { "version": "^8.19.0" },
"@typescript-eslint/eslint-plugin": { "version": "^8.19.0" },
"@typescript-eslint/parser": { "version": "^8.19.0" },
"@typescript-eslint/utils": { "version": "^8.19.0" },
"@typescript-eslint/rule-tester": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
},
"@typescript-eslint/scope-manager": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
},
"@typescript-eslint/typescript-estree": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
}
},
"aliases": [],
"description": "",
"hidden": false,
"implementation": "",
"path": "/packages/eslint",
"schema": null,
"type": "migration"
}
32 changes: 32 additions & 0 deletions packages/eslint/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,38 @@
"alwaysAddToPackageJson": false
}
}
},
"20.4.0-@typescript-eslint": {
"version": "20.4.0-beta.1",
"requires": {
"@typescript-eslint/eslint-plugin": ">8.0.0 <8.19.0"
},
"packages": {
"typescript-eslint": {
"version": "^8.19.0"
},
"@typescript-eslint/eslint-plugin": {
"version": "^8.19.0"
},
"@typescript-eslint/parser": {
"version": "^8.19.0"
},
"@typescript-eslint/utils": {
"version": "^8.19.0"
},
"@typescript-eslint/rule-tester": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
},
"@typescript-eslint/scope-manager": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
},
"@typescript-eslint/typescript-estree": {
"version": "^8.19.0",
"alwaysAddToPackageJson": false
}
}
}
}
}

0 comments on commit 7a73e8a

Please sign in to comment.