-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
94 lines (93 loc) · 2.36 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
{
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"globals": {
"ga": true,
"mapboxgl": true,
"turf": true,
"describe": true,
"it": true,
"expect": true,
"sinon": true,
"google": true,
"mixpanel": true,
"GA_TRACKING_ID": true,
"MAPBOX_ACCESS_TOKEN": true,
"LOG_LEVEL": true,
"SERVER_URL": true,
"AUTH_URL": true,
"AUTH_REALM_NAME": true,
"AUTH_CLIENT_ID": true,
"MIXPANEL_APIKEY": true,
"CAMPAIGN_MANAGEMENT": true
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
},
"sourceType": "module"
},
"plugins": [
"react",
"flowtype"
],
"settings": {
"react": {
"createClass": "createClass", // Regex for Component Factory to use, default to "createClass"
"pragma": "React", // Pragma to use, default to "React"
"version": "15.0" // React version, default to the latest React stable release
}
},
"rules": {
"no-var": [
"error"
],
"no-trailing-spaces": 2,
"indent": [
"error",
4,
{ "SwitchCase": 1 }
],
"key-spacing": [2, {
"singleLine": {
"beforeColon": true,
"afterColon": true
},
"multiLine": {
"beforeColon": true,
"afterColon": true,
"align": "colon"
}
}],
"linebreak-style": [
"error",
"unix"
],
"comma-dangle": [
"error",
"never"
],
"semi": [
"error",
"always"
],
"react/no-deprecated": "error",
"flowtype/space-before-type-colon": "off",
"flowtype/space-after-type-colon": "off",
"flowtype/union-intersection-spacing": "error",
"flowtype/semi": "error",
"flowtype/delimiter-dangle": "off",
"flowtype/no-dupe-keys": "error",
"flowtype/valid-syntax": "error"
}
}