Browse Source

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
Vitaly Kramskikh 2 years ago
parent
commit
9df86496c2
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      .eslintrc

+ 1
- 1
.eslintrc View File

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

Loading…
Cancel
Save