-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
112 lines (112 loc) · 3.06 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{
"extends": "airbnb",
"env": {
"node": true,
"browser": true
},
"globals": {
},
"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"],
"class-methods-use-this": 0,
"prefer-const": 0,
"prefer-template": 0,
"prefer-destructuring": 1,
"no-await-in-loop": 0,
"no-duplicate-imports": 0,
"no-empty-function": 0,
"no-lonely-if": 0,
"no-param-reassign": 0,
"no-prototype-builtins": 0,
"no-underscore-dangle": 0,
"no-continue": 0,
"no-console": [1, {"allow": ["warn", "error", "trace"]}],
"no-multiple-empty-lines": ["error", {"max": 1}],
"no-return-await": 0,
"no-restricted-syntax": [
"error",
"LabeledStatement",
"WithStatement"
],
"comma-dangle": [
"error", {
"arrays": "only-multiline",
"objects": "only-multiline",
"imports": "never",
"exports": "never",
"functions": "never"
}
],
"space-before-function-paren": [
"error", {
"anonymous": "always",
"named": "never",
"asyncArrow": "never"
}
],
"consistent-return": ["error", {"treatUndefinedAsUnspecified": true}],
"spaced-comment": [0, "always"],
"func-names": 0,
"import/extensions": 0,
"import/no-unresolved": 0,
"import/no-extraneous-dependencies": 0,
"import/no-duplicates": 2,
"import/prefer-default-export": 0,
"radix": 0,
"max-len": [2, {"code": 120, "ignoreComments": true}],
"jsx-a11y/anchor-is-valid": 1,
"jsx-a11y/click-events-have-key-events": 0,
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/label-has-for": 0,
"jsx-a11y/img-has-alt": 0,
"jsx-a11y/no-static-element-interactions": 1,
"jsx-a11y/no-noninteractive-element-interactions": 1,
"react/forbid-prop-types": 0,
"react/no-unused-prop-types": 1,
"react/prefer-stateless-function": 0,
"react/jsx-wrap-multilines": [2, {"declaration": false, "assignment": false, "return": true}],
"react/jsx-closing-tag-location": 0,
"react/sort-comp": [
2, {
"order": [
"static-methods",
"type-annotations",
"lifecycle",
"everything-else",
"/^handle.+$/",
"/^render.+$/",
"render"
],
"groups": {
"lifecycle": [
"displayName",
"propTypes",
"contextTypes",
"childContextTypes",
"mixins",
"statics",
"defaultProps",
"props",
"state",
"constructor",
"getDefaultProps",
"getInitialState",
"getChildContext",
"componentWillMount",
"componentDidMount",
"componentWillReceiveProps",
"shouldComponentUpdate",
"componentWillUpdate",
"componentDidUpdate",
"componentWillUnmount"
]
}
}
]
}
}