node-jscs
node-jscs copied to clipboard
About jsx curly braces variable
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