From 994bff56468a68e780be77c262fbc2271232db45 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk Date: Wed, 27 Mar 2019 10:55:48 -0400 Subject: [PATCH 1/3] Add const and var rules to lit config --- lit-config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lit-config.js b/lit-config.js index de885ab..6ee8dc6 100644 --- a/lit-config.js +++ b/lit-config.js @@ -12,6 +12,8 @@ module.exports = { "Promise": false }, "rules": { + "no-var": 2, + "prefer-const": 2, "strict": [2, "never"], "lit/no-duplicate-template-bindings": 2, "lit/no-legacy-template-syntax": 2, From 3ef2a7f8ce2e8c7a6b34930e922a887f58634378 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk Date: Wed, 27 Mar 2019 10:58:03 -0400 Subject: [PATCH 2/3] Increase version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 55c3577..905402d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "eslint-config-brightspace", - "version": "0.5.1", + "version": "0.5.2", "description": "Common Brightspace eslint configs.", "main": "index.js", "scripts": { From b803dbbdd2feb003cd49b74ac03aa690ca9ebb70 Mon Sep 17 00:00:00 2001 From: Stacey Van Herk Date: Wed, 27 Mar 2019 14:48:45 -0400 Subject: [PATCH 3/3] Add more es6 rules --- lit-config.js | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/lit-config.js b/lit-config.js index 6ee8dc6..d1416f1 100644 --- a/lit-config.js +++ b/lit-config.js @@ -2,7 +2,8 @@ module.exports = { "extends": "./index.js", "parser": "babel-eslint", "env": { - "browser": true + "browser": true, + "es6": true }, "plugins": [ "lit", "html" @@ -12,8 +13,16 @@ module.exports = { "Promise": false }, "rules": { + "arrow-spacing": 2, + "no-confusing-arrow": 2, + "no-duplicate-imports": 2, + "no-useless-constructor": 2, "no-var": 2, + "prefer-arrow-callback": 2, "prefer-const": 2, + "prefer-spread": 2, + "prefer-template": 2, + "sort-imports": [2, { "ignoreCase": true }], "strict": [2, "never"], "lit/no-duplicate-template-bindings": 2, "lit/no-legacy-template-syntax": 2,