-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
49 lines (49 loc) · 1.36 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
module.exports = {
root: true,
extends: '@react-native',
plugins: ['@typescript-eslint', 'react', 'prettier', 'react-native', 'import'],
overrides: [
{
files: ['*.ts', '*.tsx', '*.js', '*.jsx'],
rules: {
'import/order': [
'error',
{
groups: ['builtin', 'external', 'internal', 'sibling'],
pathGroups: [
{
pattern: 'react',
group: 'builtin',
position: 'before'
}
],
pathGroupsExcludedImportTypes: ['react'],
'newlines-between': 'always',
alphabetize: {
order: 'asc',
caseInsensitive: true
}
}
],
'sort-imports': [
'error',
{
ignoreDeclarationSort: true
}
],
'@typescript-eslint/no-shadow': ['error'],
'no-shadow': 'off',
'no-undef': 'off',
semi: 'off',
'no-catch-shadow': 'off',
'import/no-default-export': 'off',
'react-native/no-unused-styles': 2,
'react-native/split-platform-components': 'off',
'react-native/no-inline-styles': 2,
'react-native/no-color-literals': 'off',
'react-native/no-single-element-style-arrays': 2,
'react-hooks/exhaustive-deps': 'warn'
}
}
]
}