-
Notifications
You must be signed in to change notification settings - Fork 16
/
.eslintrc.js
36 lines (36 loc) · 865 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
module.exports = {
root: true,
extends: ['@gfez/react-native', 'plugin:prettier/recommended', 'prettier/react'],
overrides: [
{
files: ['jest/*'],
env: {
jest: true,
},
},
],
rules: {
'no-shadow': 0,
'no-bitwise': 0,
'react-native/no-inline-styles': 0,
'no-restricted-imports': [
'error',
{
paths: [],
},
],
'no-restricted-syntax': [
'error',
{
selector:
"ImportDeclaration[source.value='react-native'] > ImportSpecifier[imported.name=/Touchable\\w*/]",
message: 'Use Pressable instead',
},
// {
// selector:
// "ImportDeclaration[source.value='react-native'] > ImportSpecifier[imported.name='Image']",
// message: 'Use FastImage from react-native-fast-image instead',
// },
],
},
}