-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump TypeScript in template from 4.8.4 to 5.0.4 #36862
Conversation
Base commit: 14b2b1c |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need to bump the version of the typescript eslint plug-in we bring in as well?
Previously, using TS 4.9 was enough to generate a warning with the resolved plug-in, but I don't recall how loose our constraints were, so maybe new apps will use a compatible version of the plug-in now.
Could we confirm linting a new project doesn't result in any warnings? Otherwise this LGTM.
great point ^ fixing the ESLint warning (to support TS 5) only needed bumping ref: https://github.com/typescript-eslint/typescript-eslint/releases/tag/v5.55.0
|
can confirm no warnings in |
➜ RN0720RC1 git:(main) npm list @typescript-eslint/parser
RN0720RC1@0.0.1 /Users/leo/Documents/GitHub/RN0720RC1
└─┬ @react-native/eslint-config@0.72.1
├─┬ @typescript-eslint/eslint-plugin@5.57.1
│ └── @typescript-eslint/parser@5.57.1 deduped
└── @typescript-eslint/parser@5.57.1 👌 |
cc @lunaleaps |
Co-authored-by: Luna <lunaleaps@gmail.com>
Hey @leotm when you say
what do you mean? What is the "everything" here? I'm surprised that bumping to 5.x didn't need any types changes 🤔 |
This eslint config is also in the repo, so it can be bumped alongside this change. |
my bad ^ was referring to
and gave android/ios a test run in repro |
been monitoring TS 5 nightly/dev/rc in https://github.com/leotm/react-native-template-new-architecture past few mo which types changes we expecting? edit: oops worth noting, template above on 0.71.6 atm (not 0.72.0-rc.1 like the repro) |
bumped @react-native/eslint-config from 0.72.1 to 0.73.0 in repro, still LGTM we're already on
done in
|
while we're at it bumped eslint from 8.19.0 to 8.38.0 in repro, still LGTM also done alongside in this pr, feel free to revert if needed |
these types of bumps needs to be done repo wide, we can't misalign the template from the rest of the codebase. |
sry bk from node congress berlin ^ makes sense like before and should be small w/o pkg lockfiles now i'll bump remaining relevant pkgs and pray CI passes |
Headsup, for typescript, you are missing the root package.json - it's still at 4.x there. |
ci/circleci: test_android_template-NewArch-Release-JSC ci/circleci: test_ios_template-NewArch-Release-WithoutFlipper-Hermes-StaticLibraries ci/circleci: test_windows |
@NickGerleman has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0 ## Changelog: [GENERAL] [CHANGED] - Bump TypeScript in template from 4.8.4 to 5.0.4 and ESLint pkgs from 8.19.0 to 8.38.0 X-link: facebook/react-native#36862 Reviewed By: cortinico Differential Revision: D45720238 Pulled By: NickGerleman fbshipit-source-id: d38b60110434760fdedc84ad941e0918bb986a40
@NickGerleman merged this pull request in d2e446d. |
Summary: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0 ## Changelog: [GENERAL] [CHANGED] - Bump TypeScript in template from 4.8.4 to 5.0.4 and ESLint pkgs from 8.19.0 to 8.38.0 Pull Request resolved: facebook/react-native#36862 Test Plan: Everything builds and runs as expected Reviewed By: cortinico Differential Revision: D45720238 Pulled By: NickGerleman fbshipit-source-id: d38b60110434760fdedc84ad941e0918bb986a40 Original: facebook/react-native@d2e446d
Summary: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0 ## Changelog: [GENERAL] [CHANGED] - Bump TypeScript in template from 4.8.4 to 5.0.4 and ESLint pkgs from 8.19.0 to 8.38.0 Pull Request resolved: facebook/react-native#36862 Test Plan: Everything builds and runs as expected Reviewed By: cortinico Differential Revision: D45720238 Pulled By: NickGerleman fbshipit-source-id: d38b60110434760fdedc84ad941e0918bb986a40 Original-Commit: facebook/react-native@d2e446d
Summary: https://devblogs.microsoft.com/typescript/announcing-typescript-5-0 ## Changelog: [GENERAL] [CHANGED] - Bump TypeScript in template from 4.8.4 to 5.0.4 and ESLint pkgs from 8.19.0 to 8.38.0 Pull Request resolved: facebook/react-native#36862 Test Plan: Everything builds and runs as expected Reviewed By: cortinico Differential Revision: D45720238 Pulled By: NickGerleman fbshipit-source-id: d38b60110434760fdedc84ad941e0918bb986a40 Original-Commit: facebook/react-native@d2e446d
Summary:
https://devblogs.microsoft.com/typescript/announcing-typescript-5-0
Changelog:
[GENERAL] [CHANGED] - Bump TypeScript in template from 4.8.4 to 5.0.4 and ESLint pkgs from 8.19.0 to 8.38.0
Test Plan:
Everything builds and runs as expected