mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-20 10:39:11 +00:00
f48a91b124
* open action modal on long press * fix styling on about screen * better/optimized image component
39 lines
872 B
JavaScript
39 lines
872 B
JavaScript
module.exports = {
|
|
extends: [require.resolve('@sd/config/eslint/reactNative.js')],
|
|
parserOptions: {
|
|
tsconfigRootDir: __dirname,
|
|
project: './tsconfig.json'
|
|
},
|
|
rules: {
|
|
'tailwindcss/classnames-order': [
|
|
'warn',
|
|
{
|
|
config: './tailwind.config.js'
|
|
}
|
|
],
|
|
'tailwindcss/no-contradicting-classname': 'warn',
|
|
'tailwindcss/enforces-shorthand': 'off',
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
name: 'react-native',
|
|
importNames: ['SafeAreaView'],
|
|
message: 'Import SafeAreaView from react-native-safe-area-context instead'
|
|
},
|
|
{
|
|
name: 'react-native',
|
|
importNames: ['Image', 'ImageProps', 'ImageBackground'],
|
|
message: 'Import it from expo-image instead'
|
|
},
|
|
{
|
|
name: 'react-native-toast-message',
|
|
message: 'Import it from components instead'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
};
|