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-curly-brace-presence never breaks multi-line strings #1592

Closed
kripod opened this issue Dec 10, 2017 · 1 comment
Closed

jsx-curly-brace-presence never breaks multi-line strings #1592

kripod opened this issue Dec 10, 2017 · 1 comment

Comments

@kripod
Copy link

kripod commented Dec 10, 2017

Using eslint-preset-airbnb, the jsx-curly-brace-presence rule breaks multi-line strings given as props, e.g.:

<div css={`
  background: #009688;
  transition: background 0.5s;
`}>
  Hello world!
</div>

Gets transformed into

<div css="
  background: #009688;
  transition: background 0.5s;
">
  Hello world!
</div>

By eslint --fix, which is invalid. Multi-line strings given as props shall not be flagged as mistakes.

@renet
Copy link

renet commented Feb 4, 2018

+1 from me, this definitely is a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants