Skip to content

Update TypeScript to 6.0.3 - #2515

Merged
spaceninja merged 1 commit into
mainfrom
typescript-6
Sep 29, 2026
Merged

spaceninja merged 1 commit into
mainfrom
typescript-6

Conversation

@spaceninja

Copy link
Copy Markdown
Member

Overview

This repo has been stuck on TypeScript 5.9.3, which no longer satisfies the lint stack. @cloudfour/eslint-config v28 pulls in eslint-config-xo 2.0.0, which requires typescript >=6. To satisfy that, npm has been installing a second, unused typescript@7.0.2 (plus 20 platform-specific binaries) inside the eslint config. At the same time, typescript-eslint only supports TypeScript <6.1.0, so 6.0.3 is the only release that works with both.

This bumps TypeScript to 6.0.3 and removes the nested 7.0.2 copy from the lockfile. The lint false positives that originally blocked TypeScript 6 (#2465) came from the older typescript-eslint 8.55.0 that eslint-config v25 pinned, and they no longer reproduce. No source or config changes were needed, and the built dist/ output is byte-identical to the 5.9.3 build.

Screenshots

Testing

  • Check out this branch and run npm ci
  • Run npm ls typescript --all — every entry should be typescript@6.0.3, with no 7.0.2 anywhere
  • Open the deploy preview and view the Input component's elastic textarea story — typing several lines should still make the textarea grow

@cloudfour/eslint-config v28 (via eslint-config-xo 2.0.0) peers
typescript >=6, so on 5.9.3 npm installed an unused nested
typescript@7.0.2 plus its 20 platform binaries. typescript-eslint caps
TypeScript at <6.1.0, so 6.0.3 is the only line that satisfies both.
The nested copy is dropped from the lockfile.

Fixes #2465
@changeset-bot

changeset-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: d927e62

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for cloudfour-patterns ready!

Name Link
🔨 Latest commit d927e62
🔍 Latest deploy log https://app.netlify.com/projects/cloudfour-patterns/deploys/6abc3feaeefd9900087d9b34
😎 Deploy Preview https://deploy-preview-2515--cloudfour-patterns.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@spaceninja
spaceninja merged commit bc54d94 into main Sep 29, 2026
8 checks passed
@spaceninja
spaceninja deleted the typescript-6 branch September 29, 2026 22:50
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.

TypeScript 6 is blocked: typescript-eslint misreads types under it

1 participant