-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
47 lines (47 loc) · 1.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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"react-native-globals/all": true
},
"plugins": ["react", "react-native", "react-native-globals"],
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-native/all"
],
"rules": {
"no-console": 0,
"no-sequences": 2,
"semi": 2,
"curly": 2,
"no-eval": 2,
"no-extend-native": 2,
"no-new-wrappers": 2,
"no-with": 2,
"no-var": 2,
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
],
"react/no-access-state-in-setstate": 2,
"react/no-array-index-key": 2,
"react/no-did-mount-set-state": 2,
"react/no-did-update-set-state": 2,
"react/no-direct-mutation-state": 2,
"react/jsx-no-bind": 1,
"react/prop-types": 2,
"react/jsx-boolean-value": 2
},
"globals": {
"__DEV__": true,
"Promise": true,
"require": true
}
}