-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 863 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
module.exports = {
root: true,
extends: ['@react-native'],
parser: '@typescript-eslint/parser',
plugins: ['jest', '@typescript-eslint'],
rules: {
semi: ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'array-bracket-spacing': ['error', 'never'],
'react/require-default-props': ['error'],
'react/default-props-match-prop-types': ['error'],
'react/sort-prop-types': ['error'],
'no-shadow': 'off',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': 'off',
'@typescript-eslint/no-shadow': ['error'],
'react-native/no-inline-styles': 0,
'react-hooks/exhaustive-deps': 'off',
'no-undef': 'off',
'prettier/prettier': [
'error',
{
'no-inline-styles': false,
},
],
},
settings: {
'import/resolver': {
'babel-module': {},
},
},
}