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

About jsx curly braces variable #2287

@monochrome-yeh

Description

@monochrome-yeh

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 ?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions