-
-
Notifications
You must be signed in to change notification settings - Fork 46
no-duplicates
fails for svelte packages with shared type definitions file
#308
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
Comments
|
This is a known issue and we want to resolve this in next major: import-js/eslint-plugin-import#1479 cc @SukkaW |
Does it resolves if used with any next resolvers current version? |
Unless you don't use But this would have other issues, for example, if In the meantime, I think an ESLint disable comment is good enough. |
Repro repo
ESLint config
Code:
Eslint output:
Eslint autofix rewrites the imports to just
import { onMount, fly } from "svelte";
however, svelte package does not exportfly
.Is there any way to configure
import-x
plugin to not resolve bytypes
for svelte and its subpackages?The text was updated successfully, but these errors were encountered: