-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.04 KB
/
.eslintrc.js
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
module.exports = {
root: true,
extends: [
'xo',
'plugin:react/recommended',
'plugin:flowtype/recommended',
'standard',
],
env: {
'react-native/react-native': true,
jest: true,
node: true,
},
parser: 'babel-eslint',
plugins: ['react', 'react-native', 'prettier', 'flowtype'],
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: true,
},
react: {
version: '16.5',
},
},
globals: {
__FACEBOOK_APP_ID__: true,
__GOOGLE_MAPS_ID__: true,
__API_HOST__: true,
Headers: true,
Request: true,
Response: true,
sinon: true,
},
rules: {
'comma-dangle': [2, 'always-multiline'],
semi: [2, 'never'],
'max-len': [2, 80, 2, { ignorePattern: '^import.*from.*$|t\\(.*\\)$' }],
'max-nested-callbacks': [2, 5],
yoda: 0,
'padded-blocks': ['error', { classes: 'always' }],
'space-before-function-paren': [2, 'never'],
'no-console': 2,
'prefer-promise-reject-errors': 0,
'promise/catch-or-return': 'error',
'react/display-name': 0,
},
}