Skip to content

Format JSX expression and closing token#13092

Merged
mhegazy merged 4 commits into
microsoft:masterfrom
saschanaz:jsxdangling
Dec 22, 2016
Merged

Format JSX expression and closing token#13092
mhegazy merged 4 commits into
microsoft:masterfrom
saschanaz:jsxdangling

Conversation

@saschanaz
Copy link
Copy Markdown
Contributor

@saschanaz saschanaz commented Dec 21, 2016

Fixes #8663, fixes #12238.

Input+Fixed:

<div name="test"
     data="test"
     onClick={() => { }}
>
  <div>test</div>
</div>

(function () {}())

Current:

<div name="test"
    onClick={() => { } }
    data="test"
    >
    <div>test</div>
</div>

(function () {} ())

@saschanaz saschanaz changed the title Format JSX expression and cloning token Format JSX expression and closing token Dec 21, 2016
@mhegazy
Copy link
Copy Markdown
Contributor

mhegazy commented Dec 21, 2016

@saschanaz, can you rebase?

@saschanaz
Copy link
Copy Markdown
Contributor Author

Done!

@mhegazy mhegazy merged commit c563e83 into microsoft:master Dec 22, 2016
@saschanaz saschanaz deleted the jsxdangling branch December 22, 2016 01:09
@mhegazy mhegazy mentioned this pull request Dec 22, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Format Code: func-call-spacing error? JSX formatting

3 participants