Skip to content

chore: update TypeScript to v7 - #681

Draft
sethamus wants to merge 1 commit into
eslint:mainfrom
sethamus:update-typescript-to-v7
Draft

chore: update TypeScript to v7#681
sethamus wants to merge 1 commit into
eslint:mainfrom
sethamus:update-typescript-to-v7

Conversation

@sethamus

Copy link
Copy Markdown
Contributor

Prerequisites checklist

AI acknowledgment

  • I did not use AI to generate this PR.
  • (If the above is not checked) I have reviewed the AI-generated content before submitting.

What is the purpose of this pull request?

This PR updates TypeScript to v7.

What changes did you make? (Give an overview)

Updated typescript to ^7.0.2 and replaced the 7.x tests with 6.x tests.

Related Issues

eslint/eslint#21070

Is there anything you'd like reviewers to focus on?

@eslintbot eslintbot added this to Triage Jul 10, 2026
@github-project-automation github-project-automation Bot moved this to Needs Triage in Triage Jul 10, 2026
@DMartens

Copy link
Copy Markdown
Contributor

Can you please checkout the CI problem.
The problem seems to be that the example in examples/typescript uses typescript-eslint which cannot use TypeScript 7 yet as it has no API.
This can be circumvented by also providing TypeScript 6 as described in the release note.

@DMartens DMartens moved this from Needs Triage to Implementing in Triage Jul 10, 2026
@lumirlumir

Copy link
Copy Markdown
Member

If there’s no clean solution for this, I think another possible approach would be to mark this PR as blocked, like in the eslint, rewrite, and js repositories, as mentioned in eslint/eslint#21070.

Since the generated .d.ts files would be the same with TS 6 and TS 7 (and TS 6 was mainly intended to bridge the transition to TS 7), I don’t think there’s a need to rush this PR.

Also, the type tests still run against the latest @typescript/native-preview, which should be very close to typescript@7.0.2.

@sethamus

Copy link
Copy Markdown
Contributor Author

I agree with lumirlumir. There's no need to rush this, so I'll convert this PR to a draft for now.

@sethamus
sethamus marked this pull request as draft July 12, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Implementing

Development

Successfully merging this pull request may close these issues.

4 participants