tools: enable space-in-parens ESLint rule
authorRoman Reiss <me@silverwind.io>
Tue, 19 Jan 2016 02:17:39 +0000 (03:17 +0100)
committerMyles Borins <mborins@us.ibm.com>
Mon, 15 Feb 2016 19:30:23 +0000 (11:30 -0800)
Ref: http://eslint.org/docs/rules/space-in-parens.html
PR-URL: https://github.com/nodejs/node/pull/4753
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
.eslintrc

index 2197bf3..f70fe2e 100644 (file)
--- a/.eslintrc
+++ b/.eslintrc
@@ -65,8 +65,10 @@ rules:
   eol-last: 2
   ## no trailing spaces
   no-trailing-spaces: 2
-  # require space after keywords, eg 'for (..)'
+  ## require space after keywords, eg 'for (..)'
   space-after-keywords: 2
+  ## no leading/trailing spaces in parens
+  space-in-parens: [2, "never"]
 
   # ECMAScript 6
   # list: http://eslint.org/docs/rules/#ecmascript-6