fix eslint configuration

This commit is contained in:
Andrew Dolgov 2021-02-19 07:07:45 +03:00
parent 00310d2d23
commit 0832dd9d40
1 changed files with 7 additions and 7 deletions

View File

@ -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",