-
Notifications
You must be signed in to change notification settings - Fork 25k
[Codegen 89 & 90] Remove hardcoded language from modules/index.js #36435
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
Conversation
cipolleschi
left a comment
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.
Great job, thank you for this!
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Base commit: 803bb16 |
|
Hi @MaeIg! Sorry to bother, but something landed that requires a rebase + conflict resolution. Could you please take care of that? 🙏 |
caed085 to
09dde4b
Compare
Hello @cipolleschi, it's done :) |
|
@cipolleschi has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@cipolleschi merged this pull request in 26b22a6. |
Summary: This PR aims to remove the hardcoded language constants to use common parser instead. It is a task of facebook#34872: > [Codegen 89 - Assigned to MaeIg] Remove the const language variable from flow/modules/index.js and replace its usage with parser.language() > [Codegen 90 - Assigned to MaeIg] Remove the const language variable from typescript/modules/index.js and replace its usage with parser.language() ## Changelog <!-- Help reviewers and the release process by writing your own changelog entry. Pick one each for the category and type tags: [ANDROID|GENERAL|IOS|INTERNAL] [BREAKING|ADDED|CHANGED|DEPRECATED|REMOVED|FIXED|SECURITY] - Message For more details, see: https://reactnative.dev/contributing/changelogs-in-pull-requests --> [Internal] [Changed] - Remove hardcoded language from modules/index.js to use common parser instead Pull Request resolved: facebook#36435 Test Plan: yarn flow: <img width="145" alt="image" src="https://user-images.githubusercontent.com/40902940/224333480-600cefd0-9dc6-4142-8e88-db20785e49e6.png"> yarn lint: <img width="504" alt="image" src="https://user-images.githubusercontent.com/40902940/224333852-d510594f-053e-4866-8ceb-5e3e3d074bc2.png"> yarn test <img width="383" alt="image" src="https://user-images.githubusercontent.com/40902940/224333600-8c772829-2362-4943-895d-1949a0d88918.png"> Reviewed By: cortinico Differential Revision: D43979030 Pulled By: cipolleschi fbshipit-source-id: 39c5b99fc628620f1831ed8c4ee531eec0e866c4
Summary
This PR aims to remove the hardcoded language constants to use common parser instead. It is a task of #34872:
Changelog
[Internal] [Changed] - Remove hardcoded language from modules/index.js to use common parser instead
Test Plan
yarn flow:

yarn lint:

yarn test
