Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

About jsx curly braces variable #2287

Closed
monochrome-yeh opened this issue Jul 10, 2016 · 1 comment
Closed

About jsx curly braces variable #2287

monochrome-yeh opened this issue Jul 10, 2016 · 1 comment

Comments

@monochrome-yeh
Copy link

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 monochrome-yeh changed the title About jsx curly brake About jsx curly brake variable Jul 10, 2016
@monochrome-yeh monochrome-yeh changed the title About jsx curly brake variable About jsx curly braces variable Jul 10, 2016
@markelog
Copy link
Member

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

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants