summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVitaly Kramskikh <vkramskikh@mirantis.com>2016-05-12 18:26:05 +0300
committerVitaly Kramskikh <vkramskikh@mirantis.com>2016-05-12 18:26:05 +0300
commit9df86496c26ff8d5ad963c8723e94c2f0e2db62d (patch)
tree8ffeab2bc87259e735ffc22a26da1f6ae5a82307
parent5c164b6bea214ea3e776327e86aeff7d6b8a1935 (diff)
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
Notes
Notes (review): Code-Review+1: Michael Krotscheck <krotscheck@gmail.com> Code-Review+1: Julia Aranovich <jkirnosova@mirantis.com> Code-Review+1: Kate Pimenova <kpimenova@mirantis.com> Code-Review+2: Timur Sufiev <tsufiev@mirantis.com> Code-Review+2: Beth Elwell <e.r.elwell@gmail.com> Workflow+1: Beth Elwell <e.r.elwell@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Thu, 02 Jun 2016 16:08:51 +0000 Reviewed-on: https://review.openstack.org/315641 Project: openstack/eslint-config-openstack Branch: refs/heads/master
-rw-r--r--.eslintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/.eslintrc b/.eslintrc
index 2c821ce..cea5eff 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -855,7 +855,7 @@ rules:
855 855
856 # require parens in arrow function arguments 856 # require parens in arrow function arguments
857 # http://eslint.org/docs/rules/arrow-parens 857 # http://eslint.org/docs/rules/arrow-parens
858 arrow-parens: 0 858 arrow-parens: 2
859 859
860 # require space before/after arrow function's arrow 860 # require space before/after arrow function's arrow
861 # http://eslint.org/docs/rules/arrow-spacing 861 # http://eslint.org/docs/rules/arrow-spacing