-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
47 lines (47 loc) · 1.19 KB
/
.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
40
41
42
43
44
45
46
47
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"no-underscore-dangle": ["error", {
"allowAfterThis": true
}],
"valid-jsdoc": ["error", {
"requireReturn": true,
"requireReturnType": true,
"requireParamDescription": true,
"requireReturnDescription": true
}],
"require-jsdoc": ["error", {
"require": {
"FunctionDeclaration": false,
"MethodDefinition": false,
"ClassDeclaration": false
}
}],
"padded-blocks": ["error", {
"blocks": "never",
"classes": "always",
"switches": "never"
}],
"no-console": ["error", {
"allow": ["warn", "error", "info", "trace", "debug", "table"]
}],
"prefer-arrow-callback": ["error", {
"allowNamedFunctions": true,
"allowUnboundThis": true
}],
"object-shorthand": ["error", "consistent"],
"func-names": ["error", "as-needed"],
"no-unused-vars": ["error", {
"args": "none"
}],
"arrow-body-style": ["error", "as-needed"],
"object-curly-newline": ["error", { "multiline": true, "consistent": true }]
}
}