-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Migrate to TypeScript v5 stable #5984
Description
Description
TypeScript 5 announced and released (March 16th, 2023)
- https://devblogs.microsoft.com/typescript/announcing-typescript-5-0
- TypeScript 5.0 Iteration Plan microsoft/TypeScript#51362
and merged into React Native core (May 10th, 2023)
but we're delaying this since our MM shared ESLint config isn't compatible with v5 yet (still on ~4.8.4)
otherwise this will be introducing peer dependency warnings and potentially other incompatibilities
we're now ready since MM shared ESLint config TS v5 support (July 13th, 2023)
https://github.com/MetaMask/eslint-config/releases/tag/v12.1.0
Technical Details
Upgrade TS/ESLint devDeps first to support TS v5
or ESLint warns we're running an incompatible TS version
details: MetaMask/KeyringController#202 (comment)
Acceptance Criteria
TSC: 0 errors, 0-X (tolerated) warnings
Note TSC diagnostics stats
References
this can be a follow-up to
or before in order to fix errors and refactor while utilising TS v5 features