forked from Array-Huang/webpack-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 886 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
{
"extends": "airbnb",
"globals": {
// Put things like jQuery, etc
"jQuery": true,
"$": true
},
"env": {
// I write for browser
"browser": true,
// in CommonJS
//"node": true
// in jQuery
"jquery": true
},
"rules": {
"no-console": 0, //console 未删除
"no-var": 0,
"no-new": 0,
"import/no-unresolved": 0,
"no-underscore-dangle": [0],
"prefer-template": 0,
"object-shorthand": [0],
"prefer-arrow-callback": 0,
"prefer-rest-params": 0,
"no-param-reassign": 0,
"max-len": ["error", {
"code": 200,
"tabWidth": 2,
"comments": 200,
"ignoreComments": false,
"ignoreTrailingComments": false,
"ignoreUrls": true
}],
"global-require": 0,
"no-alert": 0,
'no-restricted-syntax': [
2,
'LabeledStatement',
'WithStatement',
]
}
}