mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-05 05:46:24 -04:00
28 lines
579 B
JavaScript
28 lines
579 B
JavaScript
module.exports = {
|
|
extends: [require.resolve('./base.js')],
|
|
env: {
|
|
'react-native/react-native': true
|
|
},
|
|
plugins: ['react-native'],
|
|
ignorePatterns: ['android', 'ios', '.expo'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: 'react-native',
|
|
importNames: ['SafeAreaView'],
|
|
message: 'Import SafeAreaView from react-native-safe-area-context instead'
|
|
}
|
|
// {
|
|
// name: 'react-native',
|
|
// importNames: ['Button'],
|
|
// message: 'Import Button from ~/components instead.'
|
|
// }
|
|
]
|
|
}
|
|
]
|
|
}
|
|
};
|