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-spacing is inconsistent #26

Open
sbking opened this issue Jul 28, 2017 · 0 comments
Open

jsx-curly-spacing is inconsistent #26

sbking opened this issue Jul 28, 2017 · 0 comments

Comments

@sbking
Copy link

sbking commented Jul 28, 2017

All of the following are given as proper examples on standardjs.com:

function foo () { return true }
var obj = { 'key': 'value' }
import { myFunc1, myFunc2 } from 'module'
const { a: { b } } = foo
setTimeout(function () { alert('Hello world') })

And this produces no errors:

<div>{ this.someMethod() }</div>

But this produces an error:

 <div className={ foo }></div>

Why the inconsistent curly spacing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

No branches or pull requests

1 participant