Enable arrow-parens

Arrow functions can omit parentheses when they have exactly one
parameter. In all other cases the parameter(s) must be wrapped
in parentheses. This rule enforces the consistent use of
parentheses in arrow functions.

http://eslint.org/docs/rules/arrow-parens

Change-Id: I40fca3fc2ecaf99ebb8ab9c40e7eaed8e78bdbd7
This commit is contained in:
Vitaly Kramskikh 2016-05-12 18:26:05 +03:00
parent 5c164b6bea
commit 9df86496c2
1 changed files with 1 additions and 1 deletions

View File

@ -855,7 +855,7 @@ rules:
# require parens in arrow function arguments
# http://eslint.org/docs/rules/arrow-parens
arrow-parens: 0
arrow-parens: 2
# require space before/after arrow function's arrow
# http://eslint.org/docs/rules/arrow-spacing