-
-
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
rule not working
#901
Comments
What does |
|
I am experiencing the same issue. Have you found a solution yet? |
I figured out how to reproduce this. The Example: entry.js: import { foo, nonExistent } from './dep.js'
import { nothing } from './empty.js' dep.js: (correct) export const foo = 'bar' empty.js: (incorrect) console.log('no exports to be found here') command
|
@conundrumer thanks! That sounds like a bug we need to fix - that a file with no |
@conundrumer It looks like that’s happening because |
Has there really been no progress on this in almost 3 years? I just ran into this; saw a sudden strange occurrence of Any suggestions for workarounds appreciated. |
@mdecurtins the passage of time doesn't change the availability of people to work on it. Nobody's submitted a PR yet. |
That was meant more to express surprise; after all, there are huge numbers of projects using this package, and I'm sure the cases that get trapped up in this bug are not uncommon. Anyway, thanks for your comment. |
Hi,
First off, thanks for the great plugin. The
named
rule doesn't seem to be working for me (at least as expected) while others do.Context
package.json
.eslintrc
Issue
I've got a file with the following contents
As you can probably imagine,
butts
doesn't exist in./errors
and certainly isn'texport
ed. Eslint raises no issue about this.However, I know that
eslint-plugin-import
is doing something because if I change./errors
to a path that doesn't exist, I get the following output from eslint:So why would one rule be working (
import/no-unresolved
) but not the other (import/named
)? Any guidance is much appreciated.The text was updated successfully, but these errors were encountered: