-
-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy path.eslintrc.json
48 lines (48 loc) · 1.14 KB
/
.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
43
44
45
46
47
48
{
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"es6": true,
"node": true
},
"ecmaFeatures": {
"modules": true
},
"rules": {
"no-console": 0,
"no-control-regex": 0,
"no-alert": 1,
"no-else-return": 1,
"no-redeclare": 2,
"no-useless-escape": 1,
"no-inner-declarations": 0,
"array-bracket-spacing": ["warn", "never"],
"brace-style": ["warn", "1tbs", { "allowSingleLine": true }],
"no-trailing-spaces": 1,
"space-before-function-paren": ["warn", "never"],
"arrow-spacing": 1,
"comma-spacing": ["warn", { "before": false, "after": true }],
"indent": ["error", "tab", { "SwitchCase": 1 }],
"require-jsdoc": ["warn", { "require": { "MethodDefinition": true, "ClassDeclaration": true } }],
"valid-jsdoc": ["warn", {
"prefer": {
"arg": "param",
"argument": "param",
"constructor": "class",
"return": "returns",
"virtual": "abstract"
},
"preferType": {
"boolean": "Boolean",
"number": "Number",
"object": "Object",
"string": "String"
},
"requireReturn": false,
"requireParamDescription": true,
"requireReturnDescription": true
}]
},
"extends": "eslint:recommended"
}