-
Notifications
You must be signed in to change notification settings - Fork 17
/
.eslintrc.js
32 lines (32 loc) · 939 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
module.exports = {
"root": true,
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"plugins": ["promise"],
"extends": [
"eslint:recommended",
"plugin:promise/recommended"
],
"rules": {
"max-len": ["warn", { "code": 120 }],
"no-console": 0,
"no-var": 1,
"no-unused-vars": ["warn", { "vars": "all", "args": "all" , "varsIgnorePattern": "^_" , "argsIgnorePattern": "^_" } ],
"no-undef": ["warn"],
"no-proto": ["error"],
"no-trailing-spaces" : ["error"],
"prefer-arrow-callback": ["warn"],
"prefer-spread": ["warn"],
"prefer-template": ["warn"],
"indent": ["error", 2, {"FunctionDeclaration" : {"parameters" : "first"},
"FunctionExpression": {"parameters": "first"},
"CallExpression": {"arguments": "first"}
}]
}
};