-
Notifications
You must be signed in to change notification settings - Fork 3
/
.eslintrc
44 lines (44 loc) · 982 Bytes
/
.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
{
"extends": "airbnb-base",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"max-len": [
"error",
{
// 代码长度
"code": 150,
// 忽略正则表达式匹配的行;可以只匹配单行,而且在 YAML 或 JSON 中需要双重转义
// "ignorePattern": true,
// 忽略所有拖尾注释和行内注释
"ignoreComments": true,
// 强制注释的最大长度;默认长度同 code, 暂未生效,因此加入上方的规则
"comments": 120
}
],
"func-names": [
"warn",
"never"
],
"no-underscore-dangle": [
"error",
{
"allow": [
"_id",
"_json",
"__channelService__"
]
}
],
"comma-dangle": [
"error",
"only-multiline"
],
"global-require": 0,
"class-methods-use-this": 0,
"no-param-reassign": 0,
"no-continue": 0
}
}