forked from pushtell/react-ab-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
70 lines (69 loc) · 1.53 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
{
"env": {
"browser": true,
"es6":true
},
"globals": {
"Raven": true,
"react": true,
"Stripe":true,
"process":true,
"module":true,
"jest":true,
"require":true,
"__DEV__":true,
"__COMPONENT_DEV__": true,
"__STRIPE_KEY__":true,
"__STAGING__":true,
"__PRODUCTION__":true,
"__ENV__":true,
"_":true,
"global": true,
"__dirname": true,
"describe": true,
"it": true,
"__CLIENT__": true,
"__SERVER__": true,
"__DEVELOPMENT__": true,
"__OFFLINE__": true,
"__state__": true
},
"ecmaFeatures": {
"blockBindings": true,
"jsx": true,
"classes": true
},
"plugins": [
"react"
],
"parser": "babel-eslint",
"rules": {
"quotes": ["error", "single"],
"no-underscore-dangle": [0],
"no-console":[0],
"strict": [0],
"global-strict":[0],
"no-constant-condition":[1],
"valid-jsdoc":[0],
"no-throw-literal":[1],
"indent": [2, 2],
"no-dupe-keys": ["error"],
"no-unused-vars": ["error"],
"consistent-return":[1],
"semi":[1],
"no-trailing-spaces":["error"],
"no-debugger":["error"],
"no-multi-spaces": [0],
"key-spacing": ["error", { "align": "value" }],
"no-extra-semi": ["error"],
"comma-dangle":["error", "only-multiline"],
"comma-spacing":["error"],
"react/jsx-no-undef": 1,
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
"space-infix-ops": [0],
"new-cap": [0],
"no-var": [0],
"eol-last": ["error"]
}
}