-
Notifications
You must be signed in to change notification settings - Fork 36
/
.eslintrc
71 lines (69 loc) · 1.49 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
{
"extends": "airbnb",
"plugins": [
"react"
],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
"react/prefer-stateless-function": "off"
},
"globals": {
"__BUNDLE_START_TIME__": false,
"__DEV__": true,
"__dirname": false,
"__filename": false,
"__fbBatchedBridgeConfig": false,
"alert": false,
"cancelAnimationFrame": false,
"clearImmediate": true,
"clearInterval": false,
"clearTimeout": false,
"console": false,
"document": false,
"escape": false,
"exports": false,
"global": false,
"jest": false,
"pit": false,
"Map": true,
"module": false,
"navigator": false,
"process": false,
"Promise": false,
"requestAnimationFrame": true,
"require": false,
"Set": true,
"setImmediate": true,
"setInterval": false,
"setTimeout": false,
"window": false,
"FormData": true,
"XMLHttpRequest": false,
// Flow "known-globals" annotations:
"ReactElement": false,
"ReactClass": false,
"Class": false,
// sinon + chai globals for testing
"expect": true,
"mock": true,
"sandbox": true,
"sinon": true,
"spy": true,
"stub": true,
"useFakeServer": true,
"useFakeTimers": true,
"useFakeXMLHttpRequest": true
},
"env": {
"browser": true,
"node": true,
"mocha": true
}
}