node-jscs icon indicating copy to clipboard operation
node-jscs copied to clipboard

About jsx curly braces variable

Open monochrome-yeh opened this issue 10 years ago • 1 comments

refer to https://facebook.github.io/react/docs/jsx-gotchas.html

const test = 'test';
<div>{'First &middot; 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 &middot; Second' }</div>
<div>{ test }</div>

however, I haven't found that yet, maybe I've missed keywords.

Does jscs has this relevant rules ?

monochrome-yeh avatar Jul 10 '16 10:07 monochrome-yeh

I don't think so, if it's not on there we don't have it, sorry

markelog avatar Jul 10 '16 17:07 markelog