-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.eslintrc
109 lines (108 loc) · 2.36 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"env": {
"es6": true,
"browser": true,
"node": true
},
"extends": "airbnb",
"parser": "babel-eslint",
"rules": {
"func-names": [
"error",
"never"
],
"import/extensions": "off",
"indent": [
"error",
4
],
"import/no-named-default": "off",
"space-before-function-paren": [
"error",
"always"
],
"no-multi-assign": "off",
"max-len": [
"error",
120
],
"one-var": [
"error",
"never"
],
"no-plusplus": "off",
"no-continue": "off",
"no-unused-expressions": "off",
"class-methods-use-this": "off",
"import/prefer-default-export": "off",
"no-multiple-empty-lines": [
"error",
{
"max": 1,
"maxEOF": 1,
"maxBOF": 0
}
],
"comma-dangle": ["error", "never"],
"no-underscore-dangle": 0,
"no-mixed-operators": 0,
"no-loop-func": "warn",
"no-param-reassign": "off",
"no-iterator": "off",
"guard-for-in": "warn",
"no-nested-ternary": "off",
"import/no-extraneous-dependencies": "off",
"no-cond-assign": "off",
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"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": ".+"
}
]
}
}