summaryrefslogtreecommitdiff
path: root/.eslintrc.js
diff options
context:
space:
mode:
Diffstat (limited to '.eslintrc.js')
-rw-r--r--.eslintrc.js26
1 files changed, 13 insertions, 13 deletions
diff --git a/.eslintrc.js b/.eslintrc.js
index e13969d..d2f24d6 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -2,12 +2,12 @@ module.exports = {
"env": {
"browser": true,
"es6": true,
- "jquery": true,
- "webextensions": true
+ "jquery": false,
+ "webextensions": false
},
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": 2016
+ "ecmaVersion": 2018
},
"rules": {
"accessor-pairs": "error",
@@ -59,7 +59,7 @@ module.exports = {
"id-blacklist": "error",
"id-length": "off",
"id-match": "error",
- "implicit-arrow-linebreak": "error",
+ "implicit-arrow-linebreak": "off",
"indent": "off",
"indent-legacy": "off",
"init-declarations": "off",
@@ -88,10 +88,10 @@ module.exports = {
"max-nested-callbacks": "error",
"max-params": "off",
"max-statements": "off",
- "max-statements-per-line": "error",
+ "max-statements-per-line": [ "warn", { "max" : 2 } ],
"multiline-comment-style": "off",
"multiline-ternary": "off",
- "new-cap": "error",
+ "new-cap": "warn",
"new-parens": "error",
"newline-after-var": "off",
"newline-before-return": "off",
@@ -99,14 +99,14 @@ module.exports = {
"no-alert": "off",
"no-array-constructor": "error",
"no-async-promise-executor": "off",
- "no-await-in-loop": "error",
+ "no-await-in-loop": "warn",
"no-bitwise": "off",
"no-buffer-constructor": "error",
"no-caller": "error",
"no-catch-shadow": "off",
"no-confusing-arrow": "error",
"no-continue": "off",
- "no-console": "off",
+ "no-console": "off",
"no-div-regex": "error",
"no-duplicate-imports": "error",
"no-else-return": "off",
@@ -150,7 +150,7 @@ module.exports = {
"no-negated-condition": "off",
"no-negated-in-lhs": "error",
"no-nested-ternary": "error",
- "no-new": "error",
+ "no-new": "warn",
"no-new-func": "error",
"no-new-object": "off",
"no-new-require": "error",
@@ -162,7 +162,7 @@ module.exports = {
"no-process-env": "error",
"no-process-exit": "error",
"no-proto": "error",
- "no-prototype-builtins": "error",
+ "no-prototype-builtins": "warn",
"no-restricted-globals": "error",
"no-restricted-imports": "error",
"no-restricted-modules": "error",
@@ -187,7 +187,7 @@ module.exports = {
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-undefined": "off",
- "no-undef": "warn",
+ "no-undef": "warn",
"no-underscore-dangle": "off",
"no-unmodified-loop-condition": "error",
"no-unneeded-ternary": [
@@ -197,7 +197,7 @@ module.exports = {
}
],
"no-unused-expressions": "off",
- "no-unused-vars": "warn",
+ "no-unused-vars": "warn",
"no-use-before-define": "off",
"no-useless-call": "error",
"no-useless-computed-key": "error",
@@ -244,7 +244,7 @@ module.exports = {
"as-needed"
],
"require-atomic-updates": "off",
- "require-await": "error",
+ "require-await": "warn",
"require-jsdoc": "off",
"require-unicode-regexp": "off",
"rest-spread-spacing": "error",