From 96a2b2d54dfeaa96005527c6d6f9f99cf2cfa312 Mon Sep 17 00:00:00 2001 From: Brendan Ashworth Date: Tue, 18 Aug 2015 16:33:11 -0700 Subject: [PATCH] tools: enable space-after-keywords in eslint Requires that you do: if (x) { ... } Rather than: if(x) { ... } --- .eslintrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.eslintrc b/.eslintrc index 532ac8b50c..0bf34c8390 100644 --- a/.eslintrc +++ b/.eslintrc @@ -66,6 +66,8 @@ rules: eol-last: 2 ## no trailing spaces no-trailing-spaces: 2 + # require space after keywords, eg 'for (..)' + space-after-keywords: 2 # Strict Mode # list: https://github.com/eslint/eslint/tree/master/docs/rules#strict-mode