-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
no-unresolved for react native #32
Comments
@damusnet That sounds useful, let me look into it! |
additionally, is there a way to have eslint pick up on the Static Image Resources ie: files that are named as follows:
but referenced as: |
Hi, I encounter a problem with const flagImg = require('./img/Login_flag_1.png'); and ESLint reports the error (import/no-unresolved):
How do I do to resolve this problem to suppress this error if the image resource is found? Can it report if the image resource is not found? |
@bbrock25 Have you found a solution for this? |
@gustavjf I haven't been working in RN lately, I'm pretty sure we ended up ignoring those imports 😢 |
@gustavjf |
This plugin works for me: https://www.npmjs.com/package/eslint-import-resolver-react-native |
For using react-native-web, this works good 🔥🔥🔥
|
Basically, could the settings in this issue be included in the
eslint-plugin-react-native
?The text was updated successfully, but these errors were encountered: