-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc
77 lines (77 loc) · 1.69 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
{
"parser": "babel-eslint",
"extends": [
"airbnb",
"plugin:jest/recommended"
],
"plugins": [
"react",
"react-native",
"jest"
],
"globals": {
"navigator": true,
"__DEV__": true,
"fetch": true
},
"rules": {
"global-require": 1,
"no-console": 1,
"no-alert": 0,
"no-debugger": 2,
"no-return-assign": [1, "always"],
"no-plusplus": 0,
"max-len": [1, {
"code": 150,
"tabWidth": 2
}],
"no-use-before-define": 2,
"import/prefer-default-export": 0,
"react/jsx-no-bind": [2, {
"allowArrowFunctions": true
}],
"react/prefer-stateless-function": 0,
"react/jsx-filename-extension": [1, {
"extensions": [
".js",
".jsx"
]
}],
"react/no-unescaped-entities": 2,
"react/forbid-prop-types": 0,
"react/sort-comp": 1,
"react-native/no-unused-styles": 1,
"react-native/split-platform-components": 0,
"react-native/no-inline-styles": 0,
"react-native/no-color-literals": 1,
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"no-confusing-arrow": 0,
"dot-notation": 0,
"new-cap": 0,
"import/no-extraneous-dependencies": 1,
"import/no-unresolved": 1,
"react/no-unused-prop-types": 1
},
"settings": {
"import/resolver": {
"babel-module": {
"alias": {
"assets": "./src/assets",
"helpers": "./src/helpers",
"components": "./src/components",
"scenes": "./src/scenes",
"env": "./env.json"
}
}
}
},
"env": {
"jest/globals": true
}
}