Skip to content

chore: update TypeScript to v6#740

Merged
fasttime merged 17 commits into
eslint:mainfrom
sethamus:update-typescript-to-v6
Jul 2, 2026
Merged

chore: update TypeScript to v6#740
fasttime merged 17 commits into
eslint:mainfrom
sethamus:update-typescript-to-v6

Conversation

@sethamus

@sethamus sethamus commented Mar 26, 2026

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 the repo’s TypeScript tooling to v6.

What changes did you make? (Give an overview)

  • bump typescript to v6 in package.json.
  • updated the TypeScript module settings to use moduleResolution: "nodenext" and module: "nodenext" instead of the deprecated moduleResolution: "node" setup.
  • added rootDir: "lib" to eslint-visitor-keys.

Related Issues

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

@nzakas

nzakas commented Mar 26, 2026

Copy link
Copy Markdown
Member

Please hold off. There's already a bunch of "Update TypeScript to v6" PRs across the org and we're not even sure we want to upgrade immediately.

@sethamus

sethamus commented Mar 27, 2026

Copy link
Copy Markdown
Contributor Author

@nzakas Sorry for the PRs! I opened these based on the discussion in my other PR (eslint/eslint#20547 (comment)), which suggested that once TypeScript 6 is officially released, we should update our tooling.

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown
Contributor

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions Bot added Stale and removed Stale labels Apr 6, 2026
@lumirlumir lumirlumir moved this from Needs Triage to Implementing in Triage Apr 18, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Hi everyone, it looks like we lost track of this pull request. Please review and see what the next steps are. This pull request will auto-close in 7 days without an update.

@github-actions github-actions Bot added the Stale label Apr 20, 2026
@sethamus
sethamus marked this pull request as ready for review April 22, 2026 15:23
@github-actions github-actions Bot removed the Stale label Apr 22, 2026
@nzakas

nzakas commented Apr 24, 2026

Copy link
Copy Markdown
Member

Gotcha. @fasttime I'll leave it up to you to review.

@lumirlumir lumirlumir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just a note that there are currently some CI failures related to this update.

Comment thread package.json
@fasttime

Copy link
Copy Markdown
Member

The type tests are still failing.

Comment thread tsconfig.base.json
Comment thread packages/eslint-scope/tests/types/tsconfig.json
Comment thread packages/eslint-scope/tests/types/cjs-import.test.cts
Comment thread packages/eslint-visitor-keys/test-d/index.test-d.ts Outdated
@fasttime

Copy link
Copy Markdown
Member

Are the types wrong? CI job is now failing with attw --pack crashing on Cannot read properties of undefined (reading 'filename'). This seems related to arethetypeswrong/arethetypeswrong.github.io#258, and may require the same temporary workaround used in eslint/eslint#20877 or eslint/rewrite#458.

@fasttime

Copy link
Copy Markdown
Member

To clear the CI failure: #751.

fasttime
fasttime previously approved these changes May 28, 2026

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks! Leaving open for @lumirlumir to review the changes.

@fasttime fasttime moved this from Implementing to Second Review Needed in Triage May 28, 2026
@lumirlumir

Copy link
Copy Markdown
Member

I’m sorry for the delay. I need some dedicated time to review this PR, and I’ll make sure to review it by the end of this weekend.

Comment thread tsconfig.base.json Outdated
Comment thread tsconfig.base.json Outdated
Comment thread tsconfig.base.json
Comment thread packages/eslint-visitor-keys/tsconfig.json
Comment thread packages/espree/rollup.config.js
Comment thread package.json
Comment thread packages/eslint-scope/tsconfig.json Outdated
Comment thread packages/eslint-scope/tests/types/tsconfig.json Outdated
Comment thread .github/workflows/ci.yml
@sethamus
sethamus requested a review from a team as a code owner June 15, 2026 23:35
lumirlumir
lumirlumir previously approved these changes Jun 19, 2026

@lumirlumir lumirlumir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for your patience and hard work on this PR.

Would like @fasttime to verify the changes before merging.

@lumirlumir
lumirlumir requested a review from fasttime June 19, 2026 10:32
Comment thread packages/eslint-scope/tests/types/tsconfig.json Outdated
Comment thread tsconfig.dist-legacy.json Outdated
Comment thread tsconfig.dist.json Outdated

@lumirlumir lumirlumir left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Re-approving.

@lumirlumir
lumirlumir requested a review from fasttime July 2, 2026 04:28

@fasttime fasttime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks!

@fasttime
fasttime merged commit 922e7ee into eslint:main Jul 2, 2026
20 checks passed
@github-project-automation github-project-automation Bot moved this from Second Review Needed to Complete in Triage Jul 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment