Skip to content
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

fix(44694): nodeWillIndentChild judge for BinaryExpression with JsxElement child #44695

Merged
merged 2 commits into from
Aug 12, 2021

Conversation

hanzooo
Copy link
Contributor

@hanzooo hanzooo commented Jun 22, 2021

Fixes #44694

fix the indent child check for BinaryExpression with JsxElement child, to cover the case that parent and child not on the same line.

@typescript-bot typescript-bot added the For Uncommitted Bug PR for untriaged, rejected, closed or missing bug label Jun 22, 2021
@ghost
Copy link

ghost commented Jun 22, 2021

CLA assistant check
All CLA requirements met.

@typescript-bot typescript-bot added For Backlog Bug PRs that fix a backlog bug and removed For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels Jun 23, 2021
@hanzooo hanzooo changed the title fix: nodeWillIndentChild judge for BinaryExpression with JsxElement child fix(44694): nodeWillIndentChild judge for BinaryExpression with JsxElement child Jun 27, 2021
@hanzooo
Copy link
Contributor Author

hanzooo commented Aug 11, 2021

Hi, @gabritto , would you mind reviewing this PR ?

Copy link
Member

@gabritto gabritto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, thanks!

@gabritto gabritto merged commit 7139f37 into microsoft:main Aug 12, 2021
BobobUnicorn pushed a commit to BobobUnicorn/TypeScript that referenced this pull request Oct 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
For Backlog Bug PRs that fix a backlog bug
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Formatter: unexpected indent for jsx element when format a selection
5 participants