-
Notifications
You must be signed in to change notification settings - Fork 1k
/
.eslintrc
39 lines (39 loc) · 976 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
{
"extends": "eslint-config-egg",
"parser": "babel-eslint",
"plugins": ["prettier"],
"rules": {
"no-control-regex": 0,
"no-unused-vars": "off",
"one-var-declaration-per-line": ["error", "initializations"],
"quotes": [2, "single"],
"arrow-parens": ["error", "always"],
"array-bracket-spacing": [2, "never"],
"space-before-function-paren": 0,
"indent": [0, 2],
"prettier/prettier": ["error", {}],
"linebreak-style": ["error", "unix"]
},
"globals": {
"exec": true,
"concatPopulate": true,
"getDateStr": true,
"getContentListFields": true,
"getAuthUserFields": true,
"checkCurrentId": true,
"remote": true,
"hot": true,
"news": true,
"random": true,
"near_post": true,
"hottags": true,
"ads": true,
"recommend": true,
"tags": true,
"navtree": true,
"childnav": true,
"PluginsExtension": true,
"HeaderExtension": true,
"AssetsExtension": true
}
}