-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
92 lines (92 loc) · 1.75 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
{
"extends": "standard",
"root": true,
"env": {
"es6": true,
"browser": true
},
"globals": {
"before": true,
"after": true,
"assert": true,
"it": true,
"describe": true,
"JSWeapon": true,
"window": true,
"DEBUG": true
},
"rules": {
"semi": [
"error",
"always"
], //必须使用分号
"spaced-comment": 0, //注释风格要不要有空格什么的
"space-before-function-paren": 0, // function前面的空格没有必要校验
"comma-dangle": [
1,
"always-multiline"
],
// ECMAScript 6
"arrow-body-style": [
1,
"as-needed"
],
"arrow-parens": 1,
"arrow-spacing": [
1,
{
"before": true,
"after": true
}
],
"constructor-super": 1,
"generator-star-spacing": [
1,
{
"before": true,
"after": false
}
],
"no-class-assign": 1,
"no-confusing-arrow": [
1,
{
"allowParens": true
}
],
"no-const-assign": 1,
"no-dupe-class-members": 1,
"no-duplicate-imports": 1,
"no-new-symbol": 1,
"no-restricted-imports": 0,
"no-this-before-super": 1,
"no-useless-computed-key": 1,
"no-useless-constructor": 1,
"no-useless-rename": 1,
"no-var": 1,
"one-var": 0,
"yoda": 0,
"no-self-compare": 0,
"object-shorthand": 1,
"prefer-arrow-callback": 0,
"prefer-const": 1,
"prefer-reflect": 0,
"prefer-rest-params": 0,
"prefer-spread": 0,
"prefer-template": 1,
"require-yield": 1,
"rest-spread-spacing": [
1,
"never"
],
"sort-imports": 0,
"template-curly-spacing": [
1,
"never"
],
"yield-star-spacing": [
1,
"before"
]
}
}