[eslint config] [react] Add guide section on react/jsx-curly-spacing

Per #693.
This commit is contained in:
Jordan Harband
2016-04-19 20:54:45 -07:00
parent 13cddaf51e
commit 2dfd520930

View File

@@ -184,6 +184,16 @@
<Foo />
```
- Do not pad JSX curly braces with spaces. eslint: [`react/jsx-curly-spacing`](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md)
```jsx
// bad
<Foo bar={ baz } />
// good
<Foo bar={baz} />
```
## Props
- Always use camelCase for prop names.