fix .eslint for web extensions
This commit is contained in:
parent
e73d405c56
commit
f1d4bb8c37
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,8 @@
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"node" : true,
|
"node" : true,
|
||||||
"browser" : true
|
"browser" : true,
|
||||||
|
"webextensions": true
|
||||||
},
|
},
|
||||||
"parser": "babel-eslint",
|
"parser": "babel-eslint",
|
||||||
"parserOptions": {
|
"parserOptions": {
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
"newline-before-return": "off",
|
"newline-before-return": "off",
|
||||||
"multiline-ternary": "off",
|
"multiline-ternary": "off",
|
||||||
"max-statements": ["error", 15],
|
"max-statements": ["error", 15],
|
||||||
"no-console": ["error", { allow: ["warn", "error"] }],
|
"no-console": "off",
|
||||||
"no-magic-numbers": ["error", { "ignore": [0, 1, 2] }],
|
"no-magic-numbers": ["error", { "ignore": [0, 1, 2] }],
|
||||||
"no-param-reassign": "off",
|
"no-param-reassign": "off",
|
||||||
"no-ternary": "off",
|
"no-ternary": "off",
|
||||||
|
|
Reference in a new issue