Skip to content

import/no-duplicates warn for duplicates imports from .d.ts file #61

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

Closed
Kerumen opened this issue Dec 7, 2020 · 1 comment
Closed

Comments

@Kerumen
Copy link

Kerumen commented Dec 7, 2020

I'm using date-fns and importing several helpers from the library:

import format from "date-fns/format";
import parseISO from "date-fns/parseISO";
import getUnixTime from "date-fns/getUnixTime";

With the rule import/no-duplicates enabled, I have this error:

'~/node_modules/date-fns/typings.d.ts' imported multiple times

I'm using the library properly and don't have duplicates so I guess it's a bug in the resolver no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants