spacedrive/apps/mobile/.eslintrc.js
Utku f48a91b124
[MOB-82] Switch to expo image & inspector long press (#2301)
* open action modal on long press

* fix styling on about screen

* better/optimized image component
2024-04-09 12:13:27 +00:00

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'
}
]
}
]
}
};