Add Section 18.11 - Add spaces inside curly braces

Fixes #593
This commit is contained in:
Stefano Pigozzi
2015-11-28 13:29:12 +01:00
parent ee3759a7ed
commit 6debbcdd73
2 changed files with 12 additions and 2 deletions

View File

@@ -1587,6 +1587,16 @@ Other Style Guides
console.log(foo[0]);
```
- [18.11](#18.11) <a name='18.11'></a> Add spaces inside curly braces.
```javascript
// bad
const foo = {clark: 'kent'};
// good
const foo = { clark: 'kent' };
```
**[⬆ back to top](#table-of-contents)**
## Commas