-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
36 lines (36 loc) · 907 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
{
"env": {
"node": true,
"jest": true
},
"extends": "airbnb-base",
"globals": {
"expect": true
},
"rules": {
"no-console": ["error", { "allow": ["warn", "error", "log"] }],
"no-underscore-dangle": ["error", { "allow": ["_id"] }],
"comma-dangle": [2, {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}],
"max-len": ["error", {
"code": 100,
"ignoreTemplateLiterals": true,
"ignorePattern": "^\\s*const\\s.+=\\s*require\\s*\\(",
"ignoreRegExpLiterals": true,
"ignoreStrings": true
}],
"prefer-destructuring": ["error", {"object": false, "array": false}],
"prefer-promise-reject-errors": [
"off",
{
"allowEmptyReject": true
}
],
"semi": ["error", "never"]
}
}