fix eslint configuration

master
Andrew Dolgov 4 years ago
parent 00310d2d23
commit 0832dd9d40

@ -1,13 +1,13 @@
module.exports = { module.exports = {
"env": { "env": {
"browser": true, "browser": true,
"ecmaVersion": 8, "es6": true,
"jquery": true, "jquery": false,
"webextensions": true "webextensions": false
}, },
"extends": "eslint:recommended", "extends": "eslint:recommended",
"parserOptions": { "parserOptions": {
"ecmaVersion": 2017 "ecmaVersion": 2018
}, },
"rules": { "rules": {
"accessor-pairs": "error", "accessor-pairs": "error",
@ -106,7 +106,7 @@ module.exports = {
"no-catch-shadow": "off", "no-catch-shadow": "off",
"no-confusing-arrow": "error", "no-confusing-arrow": "error",
"no-continue": "off", "no-continue": "off",
"no-console": "off", "no-console": "off",
"no-div-regex": "error", "no-div-regex": "error",
"no-duplicate-imports": "error", "no-duplicate-imports": "error",
"no-else-return": "off", "no-else-return": "off",
@ -187,7 +187,7 @@ module.exports = {
"no-trailing-spaces": "error", "no-trailing-spaces": "error",
"no-undef-init": "error", "no-undef-init": "error",
"no-undefined": "off", "no-undefined": "off",
"no-undef": "warn", "no-undef": "warn",
"no-underscore-dangle": "off", "no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error", "no-unmodified-loop-condition": "error",
"no-unneeded-ternary": [ "no-unneeded-ternary": [
@ -197,7 +197,7 @@ module.exports = {
} }
], ],
"no-unused-expressions": "off", "no-unused-expressions": "off",
"no-unused-vars": "warn", "no-unused-vars": "warn",
"no-use-before-define": "off", "no-use-before-define": "off",
"no-useless-call": "error", "no-useless-call": "error",
"no-useless-computed-key": "error", "no-useless-computed-key": "error",

Loading…
Cancel
Save