-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
78 lines (78 loc) · 1.93 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
73
74
75
76
77
78
{
"env": {
"es6": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"func-names": ["error", "never"],
"import/extensions": "off",
"indent": ["error", 4, { "MemberExpression": 4 }],
"space-before-function-paren": "off",
"no-multi-assign": "off",
"max-len": ["error", 120],
"no-plusplus": "off",
"no-unused-expressions": "off",
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"comma-dangle": "off",
"no-underscore-dangle": 0,
"no-mixed-operators" : 0,
"brace-style": "off",
"no-param-reassign": "off",
"no-iterator" : "off",
"no-nested-ternary": "off",
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"prefer-const": 0,
"require-jsdoc": [
"warn",
{
"require": {
"FunctionDeclaration": true,
"MethodDefinition": true,
"ClassDeclaration": true,
"ArrowFunctionExpression": true
}
}
],
"valid-jsdoc": [
"warn",
{
"prefer": {
"arg": "param",
"argument": "param",
"returns": "return",
"constructor": "class",
"augments": "extends",
"const": "constant",
"defaultvalue": "default",
"desc": "description",
"host": "external",
"fileoverview": "file",
"overview": "file",
"emits": "fires",
"var": "member",
"prop": "property",
"exception": "throws"
},
"preferType": {
"Boolean": "boolean",
"Null": "null",
"Undefined": "undefined",
"Number": "number",
"String": "string",
"Symbol": "symbol",
"object": "Object",
"array": "Array",
"function": "Function"
},
"requireReturn": false,
"matchDescription": ".+"
}
]
}
}