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: function component is not beautified well #7

Closed
dai-shi opened this issue Dec 13, 2016 · 2 comments
Closed

JSX: function component is not beautified well #7

dai-shi opened this issue Dec 13, 2016 · 2 comments

Comments

@dai-shi
Copy link
Owner

dai-shi commented Dec 13, 2016

Given the code:

const App = () => <div><span>aaaaaaaaaaaaaaaa</span><span>bbbbbbbbbbbbbbbb</span></div>;

The expected result:

const App = () => (
  <div>
    <span>aaaaaaaaaaaaaaaa</span>
    <span>bbbbbbbbbbbbbbbb</span>
  </div>
);
@dai-shi
Copy link
Owner Author

dai-shi commented Dec 13, 2016

It looks like the jsx-wrap-multiline rule doesn't put parentheses.

The relevant issue: jsx-eslint/eslint-plugin-react#790

@dai-shi
Copy link
Owner Author

dai-shi commented Aug 16, 2017

fixed in v1.0.0.

@dai-shi dai-shi closed this as completed Aug 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant