-
Notifications
You must be signed in to change notification settings - Fork 12
/
.eslintrc
43 lines (43 loc) · 1.01 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
{
"extends": "airbnb",
"parser": "babel-eslint",
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"rules": {
"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", "log", "dir"]
}],
"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"]
}
}