summaryrefslogtreecommitdiff
path: root/.eslintrc
diff options
context:
space:
mode:
authorBrendan Ashworth <brendan.ashworth@me.com>2015-08-18 16:33:11 -0700
committerBrendan Ashworth <brendan.ashworth@me.com>2015-08-22 18:01:53 -0700
commit96a2b2d54dfeaa96005527c6d6f9f99cf2cfa312 (patch)
tree1107492f44497af749fab0828db42fba19b482a9 /.eslintrc
parent8af5962608311676a89a0d287cde8e97c9d37fcc (diff)
downloadandroid-node-v8-96a2b2d54dfeaa96005527c6d6f9f99cf2cfa312.tar.gz
android-node-v8-96a2b2d54dfeaa96005527c6d6f9f99cf2cfa312.tar.bz2
android-node-v8-96a2b2d54dfeaa96005527c6d6f9f99cf2cfa312.zip
tools: enable space-after-keywords in eslint
Requires that you do: if (x) { ... } Rather than: if(x) { ... }
Diffstat (limited to '.eslintrc')
-rw-r--r--.eslintrc2
1 files changed, 2 insertions, 0 deletions
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