From ee73665cbb94c89a58638e477854a4bd352fcd40 Mon Sep 17 00:00:00 2001 From: Michael Krotscheck Date: Fri, 28 Aug 2015 06:51:59 -0700 Subject: [PATCH] Enable space-in-parens This rule will enforce consistency of spacing directly inside of parentheses, by disallowing or requiring one or more spaces to the right of ( and to the left of ). In either case, () will still be allowed. Change-Id: I83edef0598f82c2b34fd3a4d7262b6ea9204d2b3 --- .eslintrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc b/.eslintrc index 8ef185b..929e5b6 100644 --- a/.eslintrc +++ b/.eslintrc @@ -726,7 +726,9 @@ rules: # require or disallow spaces inside parentheses # http://eslint.org/docs/rules/space-in-parens - space-in-parens: 0 # TODO(krotscheck): Discuss & Activate + space-in-parens: + - 2 + - "never" # Require spaces around operators # http://eslint.org/docs/rules/space-infix-ops