From 948cb9696fbac9ff81bbe08a20a43d16eba9df0e Mon Sep 17 00:00:00 2001
From: Chris Hallberg <crhallberg@gmail.com>
Date: Fri, 10 Jun 2016 09:53:43 -0400
Subject: [PATCH] Add eslint configuration file.

---
 .eslintrc.json | 32 ++++++++++++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 .eslintrc.json

diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 00000000000..38cee1aa3be
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,32 @@
+{
+  "extends": "eslint:recommended",
+  "globals": {
+    "$": false,
+    "document": false,
+    "window": false
+  },
+  "rules": {
+    "block-scoped-var": "error",
+    "func-names": "error",
+    "no-loop-func": "error",
+    "no-param-reassign": "error",
+    "no-shadow": "error",
+    "no-unused-expressions": "error",
+
+    "dot-notation": "warn",
+    "eqeqeq": ["warn", "smart"],
+    "guard-for-in": "warn",
+    "key-spacing": ["warn", { "beforeColon": false, "afterColon": true }],
+    "no-lonely-if": "warn",
+    "no-console": ["warn", { "allow": ["warn", "error"] }],
+    "no-unneeded-ternary": "warn",
+
+    "block-spacing" : ["warn", "always"],
+    "indent": ["error", 2],
+    "keyword-spacing": ["warn", { "before": true, "after": true }],
+    "linebreak-style": ["error", "unix"],
+    "no-multi-spaces": "warn",
+    "semi-spacing": ["warn", { "before": false, "after": true }],
+    "space-infix-ops": "warn"
+  }
+}
-- 
GitLab