-
Notifications
You must be signed in to change notification settings - Fork 9
/
.eslintrc.json
51 lines (51 loc) Β· 1.11 KB
/
.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"env": {
"node": true,
"es6": true
},
"extends": ["plugin:prettier/recommended"],
"parserOptions": {
"ecmaVersion": 2016
},
"rules": {
"prettier/prettier": "error",
"strict": "error",
"no-console": "off",
"no-eval": "error",
"no-implied-eval": "error",
"no-implicit-globals": "error",
"no-control-regex":"off",
"no-empty-function": "error",
"no-unused-vars": "warn",
"no-undefined": "error",
"no-undef-init": "error",
"no-param-reassign": "warn",
"no-unneeded-ternary": "error",
"no-nested-ternary": "error",
"no-throw-literal": "error",
"no-tabs": "error",
"indent": [
"error",
4
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
],
"block-scoped-var": "warn",
"prefer-const": "warn",
"prefer-arrow-callback": "error",
"prefer-template": "error",
"default-case": "warn",
"require-await": "error",
"yoda": "warn",
"no-new-func": "error",
"no-new-wrappers": "error",
"handle-callback-err": "error"
},
"plugins": ["prettier"]
}