-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Support flow jsx opening element type arguments #17028
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
Merged
JLHwung
merged 9 commits into
babel:main
from
JLHwung:support-flow-jsx-opening-element-type-arguments
Jan 8, 2025
Merged
Support flow jsx opening element type arguments #17028
JLHwung
merged 9 commits into
babel:main
from
JLHwung:support-flow-jsx-opening-element-type-arguments
Jan 8, 2025
Conversation
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
Collaborator
|
Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58525 |
JLHwung
commented
Dec 16, 2024
|
|
||
| # Re-enable this test once prettier updated the snapshot | ||
| # https://github.com/babel/babel/pull/17028 | ||
| rm -r tests/format/flow/jsx/format.test.js |
Contributor
Author
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.
/cc @fisker
JLHwung
commented
Dec 16, 2024
|
|
||
| JSX/invalid_unpaired_gt.js | ||
| JSX/invalid_unpaired_rcurly.js | ||
| JSX/jsx_type_args_types_disabled.js |
Contributor
Author
This PR introduces support for the Flow type arguments in JSXOpeningElement, e.g.
<Component<string>></Component>. The implementation is mostly borrowed directly from the previous TypeScript implementation (#11912 and #14145).