Add more settings to eslintrc

This commit is contained in:
toasted-nutbread 2020-02-01 15:00:11 -05:00
parent 65dfb855fb
commit cb6e8d07d0

View File

@ -1,7 +1,14 @@
{ {
"root": true,
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {
"ecmaVersion": 8 "ecmaVersion": 8,
"sourceType": "script"
},
"env": {
"browser": true,
"es2017": true,
"webextensions": true
}, },
"ignorePatterns": [ "ignorePatterns": [
"/ext/mixed/lib/", "/ext/mixed/lib/",
@ -18,6 +25,7 @@
"no-constant-condition": "off", "no-constant-condition": "off",
"no-undef": "off", "no-undef": "off",
"no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}], "no-unused-vars": ["error", {"vars": "local", "args": "after-used", "argsIgnorePattern": "^_", "caughtErrors": "none"}],
"no-unused-expressions": "error",
"no-var": "error", "no-var": "error",
"prefer-const": ["error", {"destructuring": "all"}], "prefer-const": ["error", {"destructuring": "all"}],
"quote-props": ["error", "consistent"], "quote-props": ["error", "consistent"],