-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[named] flow-typed definitions are not used unless node_modules are ignored #931
Comments
Honestly just ignoring |
this would be a great start, I would support this. not sure how to discriminate between flow imports and others, but I think an extra line or two in the |
btw, adding |
I was running into this issue and was curious if you all would entertain PRs for typing support. Refs import-js#931
It looks like #988 fixed this for |
It looks like the resolution has been to ignore all |
Thanks a lot for the work here all - this has been causing us some issues. Am I right in thinking this needs a new plugin release (not in 2.11.0)? If so, @benmosher could we plleeeeease get one, even if it's beta? :) |
eslint-plugin-import:
7.2.0
I was having the same issue as #708, where modules whose types are defined in a
flow-typed
definition were throwing false positiveimport/named
errors about not being found.I realized that adding the following to my
.eslintrc
solves the problem:So, it seems that if
node_modules
are not ignored, this plugin will look into the node_module for the type definition, and if it doesn't find it, it throws an error. Ideally, it would also look inflow-typed
(using whatever method it's currently using whennode_modules
are ignored) before reporting the error.The text was updated successfully, but these errors were encountered: