Upgrade TypeScript to ^6.0.3 (#56772)#56772
Closed
huntie wants to merge 1 commit into
Closed
Conversation
|
@huntie has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104658690. |
huntie
added a commit
to huntie/react-native
that referenced
this pull request
May 12, 2026
Summary: Pull Request resolved: facebook#56772 Upgrades to TypeScript 6.0.3 and updates `typescript-eslint/*` for TS 6.0 compatibility across `react-native` and `metro`. #### Motivation TypeScript 6.0 (Mar 2026) will resolve facebook#53565. Before updating in the React Native CLI template, align in RN and Metro source for consistency. This is an internal change since: - This upgrade only applies to TS analysis of these repos' source code. - Edits to `react-native/typescript-config/tsconfig.json` (which *is* distributed) maintain backwards compatibility. #### Changes **react-native** - Bump `typescript` from `^5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.24.0` to `^8.59.2` - Replace deprecated `moduleResolution: "node"` with `"node16"` and `target: "es5"` with `"es2015"` in codegen-typescript-test - Add explicit `types: ["jest", "node"]` where needed (TS 6.0 defaults `types` to `[]`) - Set `strict: false` in configs that only enable specific strict flags (TS 6.0 defaults `strict` to `true`) - Update `ModuleResolutionKind.NodeJs` to `Node16` in build config **metro** - Bump `typescript` from `5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.36.0` to `^8.59.2` - No tsconfig changes needed (`tsconfig/node20` preset is already TS 6.0 compatible) Changelog: [Internal] Differential Revision: D104658690
huntie
added a commit
to huntie/react-native
that referenced
this pull request
May 12, 2026
Summary: Pull Request resolved: facebook#56772 Upgrades to TypeScript 6.0.3 and updates `typescript-eslint/*` for TS 6.0 compatibility across `react-native` and `metro`. #### Motivation TypeScript 6.0 (Mar 2026) will resolve facebook#53565. Before updating in the React Native CLI template, align in RN and Metro source for consistency. This is an internal change since: - This upgrade only applies to TS analysis of these repos' source code. - Edits to `react-native/typescript-config/tsconfig.json` (which *is* distributed) maintain backwards compatibility. #### Changes **react-native** - Bump `typescript` from `^5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.24.0` to `^8.59.2` - Replace deprecated `moduleResolution: "node"` with `"node16"` and `target: "es5"` with `"es2015"` in codegen-typescript-test - Add explicit `types: ["jest", "node"]` where needed (TS 6.0 defaults `types` to `[]`) - Set `strict: false` in configs that only enable specific strict flags (TS 6.0 defaults `strict` to `true`) - Update `ModuleResolutionKind.NodeJs` to `Node16` in build config **metro** - Bump `typescript` from `5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.36.0` to `^8.59.2` - No tsconfig changes needed (`tsconfig/node20` preset is already TS 6.0 compatible) Changelog: [Internal] Differential Revision: D104658690
Summary: Pull Request resolved: facebook#56772 Upgrades to TypeScript 6.0.3 and updates `typescript-eslint/*` for TS 6.0 compatibility across `react-native` and `metro`. #### Motivation TypeScript 6.0 (Mar 2026) will resolve facebook#53565. Before updating in the React Native CLI template, align in RN and Metro source for consistency. This is an internal change since: - This upgrade only applies to TS analysis of these repos' source code. - Edits to `react-native/typescript-config/tsconfig.json` (which *is* distributed) maintain backwards compatibility. #### Changes **react-native** - Bump `typescript` from `^5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.24.0` to `^8.59.2` - Replace deprecated `moduleResolution: "node"` with `"node16"` and `target: "es5"` with `"es2015"` in codegen-typescript-test - Add explicit `types: ["jest", "node"]` where needed (TS 6.0 defaults `types` to `[]`) - Set `strict: false` in configs that only enable specific strict flags (TS 6.0 defaults `strict` to `true`) - Update `ModuleResolutionKind.NodeJs` to `Node16` in build config **metro** - Bump `typescript` from `5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.36.0` to `^8.59.2` - No tsconfig changes needed (`tsconfig/node20` preset is already TS 6.0 compatible) Changelog: [Internal] Differential Revision: D104658690
|
This pull request has been merged in 2991a97. |
Collaborator
|
This pull request was successfully merged by @huntie in 2991a97 When will my fix make it into a release? | How to file a pick request? |
meta-codesync Bot
pushed a commit
to facebook/metro
that referenced
this pull request
May 13, 2026
Summary: X-link: facebook/react-native#56772 Upgrades to TypeScript 6.0.3 and updates `typescript-eslint/*` for TS 6.0 compatibility across `react-native` and `metro`. #### Motivation TypeScript 6.0 (Mar 2026) will resolve facebook/react-native#53565. Before updating in the React Native CLI template, align in RN and Metro source for consistency. This is an internal change since: - This upgrade only applies to TS analysis of these repos' source code. - Edits to `react-native/typescript-config/tsconfig.json` (which *is* distributed) maintain backwards compatibility. #### Changes **react-native** - Bump `typescript` from `^5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.24.0` to `^8.59.2` - Replace deprecated `moduleResolution: "node"` with `"node16"` and `target: "es5"` with `"es2015"` in codegen-typescript-test - Add explicit `types: ["jest", "node"]` where needed (TS 6.0 defaults `types` to `[]`) - Set `strict: false` in configs that only enable specific strict flags (TS 6.0 defaults `strict` to `true`) - Update `ModuleResolutionKind.NodeJs` to `Node16` in build config **metro** - Bump `typescript` from `5.8.3` to `^6.0.3` - Bump `typescript-eslint/*` from `^8.36.0` to `^8.59.2` - No tsconfig changes needed (`tsconfig/node20` preset is already TS 6.0 compatible) Changelog: [Internal] Reviewed By: christophpurrer Differential Revision: D104658690 fbshipit-source-id: 9a2feeb257d5783431941a911b17065fcd0389a5
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary:
Upgrades to TypeScript 6.0.3 and updates
typescript-eslint/*for TS 6.0 compatibility acrossreact-nativeandmetro.Motivation
TypeScript 6.0 (Mar 2026) will resolve #53565. Before updating in the React Native CLI template, align in RN and Metro source for consistency.
This is an internal change since:
react-native/typescript-config/tsconfig.json(which is distributed) maintain backwards compatibility.Changes
react-native
typescriptfrom^5.8.3to^6.0.3typescript-eslint/*from^8.24.0to^8.59.2moduleResolution: "node"with"node16"andtarget: "es5"with"es2015"in codegen-typescript-testtypes: ["jest", "node"]where needed (TS 6.0 defaultstypesto[])strict: falsein configs that only enable specific strict flags (TS 6.0 defaultsstricttotrue)ModuleResolutionKind.NodeJstoNode16in build configmetro
typescriptfrom5.8.3to^6.0.3typescript-eslint/*from^8.36.0to^8.59.2tsconfig/node20preset is already TS 6.0 compatible)Changelog: [Internal]
Differential Revision: D104658690