-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
39 lines (39 loc) · 1.07 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
module.exports = {
root: true,
parserOptions: {
parser: 'babel-eslint'
},
extends: '@react-native-community',
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'arrow-parens': 0,
'import/order': 0,
'comma-dangle': ['error', 'never'],
semi: ['error', 'never'],
quotes: ['error', 'single'],
'space-before-function-paren': 0,
'react/jsx-indent': [1, 2],
'react/jsx-indent-props': [1, 2],
'react/jsx-closing-bracket-location': [
1,
{ selfClosing: 'tag-aligned', nonEmpty: 'tag-aligned' }
],
// 'react/jsx-first-prop-new-line': [1, 'multiline'],
// 'react/jsx-max-props-per-line': [2, { maximum: 1, when: 'always' }],
'no-useless-catch': 0,
'no-empty': ['error', { allowEmptyCatch: true }],
'no-unused-vars': 'off',
'spaced-comment': [
'error',
'always',
{
exceptions: ['*'],
block: {
exceptions: ['*'],
balanced: true
}
}
]
}
}