-
Notifications
You must be signed in to change notification settings - Fork 19
/
.eslintrc
61 lines (61 loc) · 1.41 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
{
"extends": "airbnb",
"env": {
"node": true
},
"globals": {
"__DEV__": true,
"wx": true,
"getApp": true,
"getCurrentPages": true
},
"parser": "babel-eslint",
"plugins": ["flowtype", "flowtype-errors"],
"rules": {
"flowtype/define-flow-type": 1,
"flowtype/use-flow-type": 1,
"flowtype-errors/show-errors": 2,
"arrow-parens": [2, "always"],
"prefer-const": 0,
"prefer-template": 0,
"no-param-reassign": 0,
"comma-dangle": [1, "never"],
"spaced-comment": [0, "always"],
"func-names": 0,
"no-underscore-dangle": 0,
"import/prefer-default-export": 1,
"class-methods-use-this": 1,
"no-prototype-builtins": 0,
"import/no-extraneous-dependencies": 1,
"radix": 0,
"max-len": [2, {"code": 120, "ignoreComments": true}],
"require-yield": 1,
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 1,
"react/prefer-stateless-function": 0,
"react/sort-comp": [
2, {
"order": [
"static-methods",
"lifecycle",
"everything-else"
],
"groups": {
"lifecycle": [
"propTypes",
"defaultProps",
"state",
"constructor",
"children",
"onLoad",
"onReady",
"onUpdate",
"onShow",
"onHide",
"onUnload"
]
}
}
]
}
}