From cff447f2bb5a315ebe12908bd1ba6a46fd40fefe Mon Sep 17 00:00:00 2001 From: John Pignata Date: Mon, 14 Mar 2016 10:43:21 -0400 Subject: [PATCH 1/3] Unhide eslintrc.js --- .eslintrc.js => eslintrc.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .eslintrc.js => eslintrc.js (100%) diff --git a/.eslintrc.js b/eslintrc.js similarity index 100% rename from .eslintrc.js rename to eslintrc.js From ed4a44bc1edb0473abb466915e8fd99c03438b4d Mon Sep 17 00:00:00 2001 From: John Pignata Date: Mon, 14 Mar 2016 11:02:30 -0400 Subject: [PATCH 2/3] Remove comma-dangle rule --- eslintrc.js | 1 - 1 file changed, 1 deletion(-) diff --git a/eslintrc.js b/eslintrc.js index 849c64b..d4f30ac 100644 --- a/eslintrc.js +++ b/eslintrc.js @@ -6,7 +6,6 @@ module.exports = { }, "rules": { "brace-style": [2, "1tbs", { "allowSingleLine": true }], - "comma-dangle": [2, "never"], "comma-style": [2, "first", { exceptions: {ArrayExpression: true, ObjectExpression: true} }], "complexity": [2, 6], "curly": 2, From 57a877c68c83d5c301a56771a87641ac0c701345 Mon Sep 17 00:00:00 2001 From: John Pignata Date: Mon, 14 Mar 2016 11:11:09 -0400 Subject: [PATCH 3/3] Enable ES6 * Add trailing commas --- eslintrc.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eslintrc.js b/eslintrc.js index d4f30ac..331376d 100644 --- a/eslintrc.js +++ b/eslintrc.js @@ -2,7 +2,8 @@ module.exports = { "env": { "node": true, // When in a backend context "browser": true, // When in a web context - "jquery": true // When in a web context + "jquery": true, // When in a web context + "es6": true, }, "rules": { "brace-style": [2, "1tbs", { "allowSingleLine": true }], @@ -16,11 +17,11 @@ module.exports = { "radix": 2, "semi": 2, "space-infix-ops": 2, - "strict": 0 + "strict": 0, }, /** * globals should be defined per file when possible. Use the directive here * when there are project-level globals (such as jquery) */ - "globals": {} + "globals": {}, };