From 9df86496c26ff8d5ad963c8723e94c2f0e2db62d Mon Sep 17 00:00:00 2001 From: Vitaly Kramskikh Date: Thu, 12 May 2016 18:26:05 +0300 Subject: [PATCH] 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 --- .eslintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 2c821ce..cea5eff 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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