jscs-dev / node-jscs

:arrow_heading_up: JavaScript Code Style checker (unmaintained)
https://jscs-dev.github.io
MIT License
4.97k stars 515 forks source link

About jsx curly braces variable #2287

Closed monochrome-yeh closed 8 years ago

monochrome-yeh commented 8 years ago

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 ?

markelog commented 8 years ago

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