[guide] Add eslint rule to spacing in a function signature topic

[guide] Add eslint rules to spacing in a function signature topic
This commit is contained in:
felipethome
2016-08-02 17:55:25 -03:00
parent 6454839e76
commit f94f6e21c6

View File

@@ -743,7 +743,7 @@ Other Style Guides
```
<a name="functions--signature-spacing"></a><a name="7.11"></a>
- [7.11](#functions--signature-spacing) Spacing in a function signature.
- [7.11](#functions--signature-spacing) Spacing in a function signature. eslint: [`space-before-function-paren`](http://eslint.org/docs/rules/space-before-function-paren) [`space-before-blocks`](http://eslint.org/docs/rules/space-before-blocks)
> Why? Consistency is good, and you shouldnt have to add or remove a space when adding or removing a name.