forked from wahello/peerio-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
55 lines (55 loc) · 1.52 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
47
48
49
50
51
52
53
54
55
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
ecmaVersion: 6,
sourceType: 'module',
ecmaFeatures: {
jsx: true,
experimentalObjectRestSpread: true,
legacyDecorators: true
}
},
plugins: [ 'typescript', 'babel' ],
extends: [ 'peerio', 'prettier' ],
settings: {
"import/resolver": {
node: {
extensions: ['.js', '.ts', '.tsx']
}
}
},
rules: {
'global-require': 0,
'generator-star-spacing': 0,
'import/extensions': 0,
'react/prefer-stateless-function': 0,
'react/jsx-filename-extension': 0,
'react/sort-comp': 0,
'react/require-default-props': 0,
'react/no-array-index-key': 1,
'react/prop-types': 0,
'no-mixed-operators': 0,
'new-cap': 0,
'prefer-rest-params': 0,
'no-multi-assign': 0,
'no-unused-vars': 1,
'no-await-in-loop': 0,
'react/no-array-index-key': 0,
'max-len': 0,
'space-before-function-paren': 0,
'babel/semi': 1,
'import/prefer-default-export': 0,
'no-restricted-imports': [2, { paths: [{
name: 'react-native',
importNames: ['Text'],
message: 'Do not use react-native Text, use custom-text instead'
}] }]
},
globals: {
'fetch': false,
'requestAnimationFrame': false,
'__DEV__': false,
'__PROD__': false
}
};