jellyfin / jellyfin-expo

Jellyfin Mobile for iOS
https://jellyfin.org
Mozilla Public License 2.0
292 stars 63 forks source link

Eslint fails on TypeScript components #365

Open thornbill opened 2 years ago

thornbill commented 2 years ago

Describe the bug

eslint is misconfigured in some way causing it to fail if react-native is imported in a TypeScript file.

/home/bill/Projects/Jellyfin/jellyfin-expo/screens/DownloadScreen.tsx
  13:45  error  Parse errors in imported module 'react-native': ';' expected. (14:32)  import/namespace

This appears to be a configuration issue of the import plugin in some way.

We should also probably be including @types/react and @types/react-native as dev dependencies for type definitions… unless those are already being included by Expo.