-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
42 lines (42 loc) · 996 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
34
35
36
37
38
39
40
41
42
{
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"env": {
"node": true
},
"globals": {
"Req": true,
"Symbol": true
// For some reason eslint doesn't
// recognize that Symbol is a builtin
},
"extends": "eslint:recommended",
"rules": {
"no-console": "off",
"no-inner-declarations": ["warn", "both"],
"curly": "error",
"dot-location": ["error", "property"],
"eqeqeq": "error",
"guard-for-in": "warn",
"dot-notation": ["error", {"allowKeywords": false}],
"no-alert": "error",
"no-eq-null": "error",
"no-eval": "error",
"no-extra-bind": "warn",
"no-extra-label": "warn",
"no-param-reassign": "error",
"no-warning-comments": ["warn", {"terms": ["todo", "fixme"]}],
"no-useless-return": "warn",
"no-with": "error",
"require-await": "warn",
"wrap-iife": "error",
"yoda": "error",
"strict": ["error", "global"],
"no-label-var": "error",
"no-shadow": "warn",
"no-undefined": "error",
"no-use-before-define": "error"
}
}