-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
38 lines (38 loc) · 842 Bytes
/
.eslintrc.js
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
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
extends: 'standard',
plugins: [
'html', 'babel'
],
'globals': {
'API': false,
'CONSTANT': false,
'$': false,
'Vue': false,
'wx': false,
'Image': false,
"WeixinJSBridge": false,
'Raven': false,
'bqLog': false,
'bq': false
},
'rules': {
'arrow-parens': 0,
"semi": [2, "never"],
"max-len": [2, 200, 2],
"generator-star-spacing": 0,
"space-before-function-paren": 0,
"padded-blocks": 0,
"no-var": 2,
"no-unused-vars": ["error", {
"varsIgnorePattern": "Service|Inject|Injector|Factory|Globar|Controller|[iI]gnored|Module|Directive",
"caughtErrors": "none",
"argsIgnorePattern": "^_",
"ignoreRestSiblings": true
}, ],
}
}