Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

ignoreRequire: true but still getting warnings on imports #88

Open
piotrblasiak opened this issue Dec 29, 2022 · 2 comments
Open

ignoreRequire: true but still getting warnings on imports #88

piotrblasiak opened this issue Dec 29, 2022 · 2 comments

Comments

@piotrblasiak
Copy link

Is ignoreRequire supposed to disable warnings for lines like:

import { graphql } from "react-relay"?

@aotaduy
Copy link
Owner

aotaduy commented Dec 29, 2022

Hi

graphql is a name of a function and currently is not ignored, function names are expected to be spelled correctly. The string in the import will be ignored ("react-relay"). You can workaround this by adding the mispelled function names you import to the skipWords list.

@piotrblasiak
Copy link
Author

I see the logic behind this, but in reality a lot of third party libraries are giving warnings and adding them to the skipWords does work but creates a coupling on that dependency. Any plans on some setting to ignore words use in imports overall?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants