-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
72 lines (72 loc) · 1.63 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"env": {
"es6": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module"
},
"rules": {
"array-callback-return": 2,
"block-scoped-var": 2,
"class-methods-use-this": 2,
"complexity": [2, {
"max": 20
}],
"consistent-return": [2, {
"treatUndefinedAsUnspecified": false
}],
"curly": [2, "all"],
"default-case": 2,
"dot-location": [2, "property"],
"dot-notation": [2, {
"allowKeywords": false
}],
"eqeqeq": [2, "always"],
"guard-for-in": 2,
"max-classes-per-file": [2, 1],
"no-alert": 2,
"no-await-in-loop": 2,
"no-caller": 2,
"no-else-return": [2, {
"allowElseIf": false
}],
"no-empty-function": [2, {
"allow": [
"generatorMethods"
]
}],
"no-eq-null": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-extra-bind": 2,
"no-extra-label": 2,
"no-floating-decimal": 2,
"no-implicit-coercion": 2,
"no-implicit-globals": 2,
"no-implied-eval": 2,
"no-template-curly-in-string": 2,
"valid-jsdoc": [2, {
"matchDescription": "[A-Z]+.{5}.*",
"prefer": {
"arg": "param",
"argument": "param",
"class": "constructor",
"return": "return",
"virtual": "abstract"
},
"preferType": {
"Boolean": "Boolean",
"Number": "Number",
"object": "Object",
"String": "String"
},
"requireParamDescription": true,
"requireParamType": true,
"requireReturn": true,
"requireReturnDescription": true,
"requireReturnType": true
}]
}
}