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

[JSX] Expand last argument of arrow function #195

Closed
vjeux opened this issue Jan 14, 2017 · 1 comment
Closed

[JSX] Expand last argument of arrow function #195

vjeux opened this issue Jan 14, 2017 · 1 comment
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program

Comments

@vjeux
Copy link
Contributor

vjeux commented Jan 14, 2017

const els = items.map(item => (
  <div className="whatever">
    <span>{children}</span>
  </div>
));

Right now turns to

const els = items.map(
  item => (
    <div className="whatever">
      <span>{children}</span>
    </div>
  )
);
@vjeux vjeux mentioned this issue Jan 14, 2017
11 tasks
@vramana vramana added the type:bug Issues identifying ugly output, or a defect in the program label Jan 14, 2017
vjeux added a commit to vjeux/prettier that referenced this issue Jan 15, 2017
@vjeux
Copy link
Contributor Author

vjeux commented Jan 15, 2017

Reported by @gaearon

jlongster pushed a commit that referenced this issue Jan 15, 2017
* Last argument expansion works for arrow functions that return JSX

Fixes #195

* Fixes #130
@lock lock bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jul 8, 2018
@lock lock bot locked as resolved and limited conversation to collaborators Jul 8, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. type:bug Issues identifying ugly output, or a defect in the program
Projects
None yet
Development

No branches or pull requests

2 participants