From cb6e8d07d02e77389e3d395517863a2c9ff8e170 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 1 Feb 2020 15:00:11 -0500 Subject: [PATCH] Add more settings to eslintrc --- .eslintrc.json | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 0e3b939a..81fe517f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,7 +1,14 @@ { + "root": true, "extends": "eslint:recommended", "parserOptions": { - "ecmaVersion": 8 + "ecmaVersion": 8, + "sourceType": "script" + }, + "env": { + "browser": true, + "es2017": true, + "webextensions": true }, "ignorePatterns": [ "/ext/mixed/lib/", @@ -18,6 +25,7 @@ "no-constant-condition": "off", "no-undef": "off", "no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}], + "no-unused-expressions": "error", "no-var": "error", "prefer-const": ["error", {"destructuring": "all"}], "quote-props": ["error", "consistent"],