diff options
| author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-01 15:00:11 -0500 | 
|---|---|---|
| committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2020-02-11 22:22:16 -0500 | 
| commit | cb6e8d07d02e77389e3d395517863a2c9ff8e170 (patch) | |
| tree | ed8e053a2f80f3f5b040f3497b77b2ac25eda6c9 | |
| parent | 65dfb855fb23d8279367651ab650f3347aa236ac (diff) | |
Add more settings to eslintrc
| -rw-r--r-- | .eslintrc.json | 10 | 
1 files changed, 9 insertions, 1 deletions
| 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"], |