Skip to content

[ci] Pin typescript in eslint pre-commit hook to fix plugin load crash - #64618

Merged
elliot-barn merged 1 commit into
masterfrom
fix-eslint-typescript-pin
Jul 8, 2026
Merged

elliot-barn merged 1 commit into
masterfrom
fix-eslint-typescript-pin

Conversation

@elliot-barn

Copy link
Copy Markdown
Collaborator

The eslint pre-commit hook pinned @typescript-eslint parser/eslint-plugin to 5.41.0 but left typescript unpinned. eslint-config-react-app declares typescript: "*", so npm floated it to a TS major (6.x) incompatible with @typescript-eslint 5.41, breaking plugin load in CI:

Failed to load plugin '@typescript-eslint' ...
Cannot read properties of undefined (reading 'Undefined')

Pin typescript to 4.8.4 (matching the dashboard client's own devDependency) so resolution is deterministic, and drop the duplicated parser/eslint-plugin entries.

Thank you for contributing to Ray! 🚀
Please review the Ray Contribution Guide before opening a pull request.

⚠️ Remove these instructions before submitting your PR.

💡 Tip: Mark as draft if you want early feedback, or ready for review when it's complete.

Description

Briefly describe what this PR accomplishes and why it's needed.

Related issues

Link related issues: "Fixes #1234", "Closes #1234", or "Related to #1234".

Additional information

Optional: Add implementation details, API changes, usage examples, screenshots, etc.

@elliot-barn
elliot-barn requested a review from abrarsheikh July 8, 2026 23:16

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .pre-commit-config.yaml file by removing duplicate eslint parser and plugin dependencies, and pinning the typescript package to version 4.8.4 to prevent version mismatch issues with @typescript-eslint in CI. There are no review comments, and I have no feedback to provide.

The eslint pre-commit hook pinned @typescript-eslint parser/eslint-plugin
to 5.41.0 but left `typescript` unpinned. eslint-config-react-app declares
`typescript: "*"`, so npm floated it to a TS major (6.x) incompatible with
@typescript-eslint 5.41, breaking plugin load in CI:

  Failed to load plugin '@typescript-eslint' ...
  Cannot read properties of undefined (reading 'Undefined')

Pin typescript to 4.8.4 (matching the dashboard client's own devDependency)
so resolution is deterministic, and drop the duplicated parser/eslint-plugin
entries.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: elliot-barn <[email protected]>
@elliot-barn
elliot-barn force-pushed the fix-eslint-typescript-pin branch from dd83d14 to 48939a3 Compare July 8, 2026 23:18
@elliot-barn
elliot-barn merged commit c2e8875 into master Jul 8, 2026
3 checks passed
@elliot-barn
elliot-barn deleted the fix-eslint-typescript-pin branch July 8, 2026 23:38
avigyabb pushed a commit to avigyabb/ray that referenced this pull request Jul 13, 2026
ray-project#64618)

The eslint pre-commit hook pinned @typescript-eslint
parser/eslint-plugin to 5.41.0 but left `typescript` unpinned.
eslint-config-react-app declares `typescript: "*"`, so npm floated it to
a TS major (6.x) incompatible with @typescript-eslint 5.41, breaking
plugin load in CI:

  Failed to load plugin '@typescript-eslint' ...
  Cannot read properties of undefined (reading 'Undefined')

Pin typescript to 4.8.4 (matching the dashboard client's own
devDependency) so resolution is deterministic, and drop the duplicated
parser/eslint-plugin entries.

> Thank you for contributing to Ray! 🚀
> Please review the [Ray Contribution
Guide](https://docs.ray.io/en/master/ray-contribute/getting-involved.html)
before opening a pull request.

> ⚠️ Remove these instructions before submitting your PR.

> 💡 Tip: Mark as draft if you want early feedback, or ready for review
when it's complete.

## Description
> Briefly describe what this PR accomplishes and why it's needed.

## Related issues
> Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to
ray-project#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: Avi Basnet <[email protected]>
elliot-barn added a commit that referenced this pull request Jul 15, 2026
#64618)

The eslint pre-commit hook pinned @typescript-eslint
parser/eslint-plugin to 5.41.0 but left `typescript` unpinned.
eslint-config-react-app declares `typescript: "*"`, so npm floated it to
a TS major (6.x) incompatible with @typescript-eslint 5.41, breaking
plugin load in CI:

  Failed to load plugin '@typescript-eslint' ...
  Cannot read properties of undefined (reading 'Undefined')

Pin typescript to 4.8.4 (matching the dashboard client's own
devDependency) so resolution is deterministic, and drop the duplicated
parser/eslint-plugin entries.

> Thank you for contributing to Ray! 🚀
> Please review the [Ray Contribution
Guide](https://docs.ray.io/en/master/ray-contribute/getting-involved.html)
before opening a pull request.

> ⚠️ Remove these instructions before submitting your PR.

> 💡 Tip: Mark as draft if you want early feedback, or ready for review
when it's complete.

## Description
> Briefly describe what this PR accomplishes and why it's needed.

## Related issues
> Link related issues: "Fixes #1234", "Closes #1234", or "Related to
#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
(cherry picked from commit c2e8875)
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
ray-project#64618)

The eslint pre-commit hook pinned @typescript-eslint
parser/eslint-plugin to 5.41.0 but left `typescript` unpinned.
eslint-config-react-app declares `typescript: "*"`, so npm floated it to
a TS major (6.x) incompatible with @typescript-eslint 5.41, breaking
plugin load in CI:

  Failed to load plugin '@typescript-eslint' ...
  Cannot read properties of undefined (reading 'Undefined')

Pin typescript to 4.8.4 (matching the dashboard client's own
devDependency) so resolution is deterministic, and drop the duplicated
parser/eslint-plugin entries.

> Thank you for contributing to Ray! 🚀
> Please review the [Ray Contribution
Guide](https://docs.ray.io/en/master/ray-contribute/getting-involved.html)
before opening a pull request.

> ⚠️ Remove these instructions before submitting your PR.

> 💡 Tip: Mark as draft if you want early feedback, or ready for review
when it's complete.

## Description
> Briefly describe what this PR accomplishes and why it's needed.

## Related issues
> Link related issues: "Fixes ray-project#1234", "Closes ray-project#1234", or "Related to
ray-project#1234".

## Additional information
> Optional: Add implementation details, API changes, usage examples,
screenshots, etc.

Signed-off-by: elliot-barn <[email protected]>
Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>
Signed-off-by: 400Ping <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ray fails to serialize self-reference objects

2 participants