-
Notifications
You must be signed in to change notification settings - Fork 12.8k
De-duplicate indentations in JSX Texts #36552
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
Offload all jsx text indentation handling to indentMultilineCommentOrJsxText
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.
Nice!
@typescript-bot cherry-pick this to branchname release-3.8 |
Heya @orta, I couldn't find the branch 'branchname' on Microsoft/TypeScript. You may need to make it and try again. |
@typescript-bot cherry-pick this to release-3.8 |
1 similar comment
@typescript-bot cherry-pick this to release-3.8 |
@typescript-bot cherry-pick this to release-3.8 and LKG |
* WIP on making the JSX text node not include whitespace * Scans to the last newline for JSX correctly * Handle JSX closing element wrapping * Offload all jsx text indentation handling to indentMultilineCommentOrJsxText * Switch from find node -> find inde in formatting Co-authored-by: Wesley Wigham <[email protected]>
Thanks, was just coming to do that |
Woah, hold up, this thing doesn't make PRs anymore @weswigham? |
Uhhh, that's news to me, especially since I had it open a PR (#36644) just the other day after it was updated. |
Fixes #20766 - Some of the interesting notes are in orta#1