forked from greatsuspender/thegreatsuspender
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
33 lines (33 loc) · 995 Bytes
/
.eslintrc.json
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
33
{
"root": true,
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"browser": true,
"es6": true,
"webextensions": true
},
"extends": [
"eslint:recommended"
],
"rules": {
"no-console": 0,
"no-unused-vars": ["error", { "vars": "all", "args": "none", "ignoreRestSiblings": false }],
"no-undef": ["error"],
"no-proto": ["error"],
// "prefer-arrow-callback": ["warn"], TODO: refactor to use arrow functions
// "no-var": ["error"], TODO: refactor to use let and const
"prefer-spread": ["warn"],
"semi": ["error", "always"],
"padded-blocks": ["off", { "blocks": "never" }],
"indent": ["error", 4],
"one-var": ["off", "never"],
"spaced-comment": ["off", "always"],
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "always"
}]
}
}