Closed monochrome-yeh closed 8 years ago
refer to https://facebook.github.io/react/docs/jsx-gotchas.html
const test = 'test'; <div>{'First · Second'}</div> <div>{test}</div>
I would like find the rule to do like these: (add space before/after curly braces)
const test = 'test'; <div>{ 'First · Second' }</div> <div>{ test }</div>
however, I haven't found that yet, maybe I've missed keywords.
Does jscs has this relevant rules ?
I don't think so, if it's not on there we don't have it, sorry
refer to https://facebook.github.io/react/docs/jsx-gotchas.html
I would like find the rule to do like these: (add space before/after curly braces)
however, I haven't found that yet, maybe I've missed keywords.
Does jscs has this relevant rules ?