-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc
39 lines (37 loc) · 873 Bytes
/
.eslintrc
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
{
"extends": [
"airbnb-base"
],
"plugins": [
"jest"
],
"env": {
"node": true,
"jest": true
},
"rules": {
// unit tests
"jest/no-disabled-tests": "error",
"jest/no-focused-tests": "error",
"jest/no-identical-title": "warn",
// best practices
"valid-jsdoc": ["warn", {
"requireReturn": false,
"requireParamDescription": false,
"requireReturnDescription": false,
"prefer": {
"returns": "return",
"params": "param"
}
}],
"complexity": ["warn", 7],
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
// style
"arrow-body-style": "off",
"object-curly-newline": ["error", {
"ObjectExpression": { "consistent": true },
"ObjectPattern": { "consistent": true }
}],
"function-paren-newline": ["error", "consistent"]
}
}