mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-18 13:09:15 +00:00
* add tailwind prettier plugin + run prettier * add eslint tailwind plugin and eslint fix to turbo * Ran eslint fix + fixed every other lint issues * twStyle and lint stuff * remove auto lint as it's buggy * update eslint & add twStyle to tailwind regex * Fix auto lint + config inconsistencies * Add tailwind config to prettier config * run lint:fix --------- Co-authored-by: Brendan Allan <brendonovich@outlook.com>
33 lines
661 B
JavaScript
33 lines
661 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.'
|
|
// }
|
|
]
|
|
}
|
|
]
|
|
},
|
|
settings: {
|
|
tailwindcss: {
|
|
config: 'apps/mobile/tailwind.config.js'
|
|
}
|
|
}
|
|
};
|