/
.eslintrc.js
39 lines (39 loc) · 893 Bytes
/
.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
module.exports = {
extends: ['airbnb', 'plugin:react-native/all'],
parser: 'babel-eslint',
env: {
jest: true,
browser: true,
node: true,
'react-native/react-native': true,
},
settings: {
'import/resolver': {
node: {
paths: [
'./',
'node_modules',
],
alias: [
['@components', './components'],
],
extensions: ['', '.json', '.js', '.jsx']
}
}
},
plugins: ['react-native'],
rules: {
indent: ['error', 'tab'],
'react/jsx-indent': ['error', 'tab'],
'no-tabs': 0,
'react/jsx-filename-extension': 0,
'import/no-unresolved': 1, // eslint config cannot handle aliases with the @ character in them
'react/forbid-prop-types': 0,
'arrow-parens': 0,
'class-methods-use-this': 1,
'react/jsx-closing-bracket-location': 0,
'react/jsx-indent-props': [1, 'tab'],
'prefer-promise-reject-errors': 0,
'arrow-body-style': 1,
},
};