Skip to content

jsx-curly-spacing is inconsistent #26

Open
@sbking

Description

@sbking

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions