Skip to content
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

import/no-duplicates reports incorrectly for date-fns and date-fns/locales #2478

Closed
Mikilll94 opened this issue Jun 16, 2022 · 2 comments
Closed

Comments

@Mikilll94
Copy link

import { formatDuration } from "date-fns";
import { enGB, de, fr, it, es } from "date-fns/locale";

This code triggers import/no-duplicates error although date-fns and date-fns/locale are different modules so these imports cannot be combined.

@SQReder
Copy link

SQReder commented Jul 1, 2022

Bump for this

import { format, isValid, parseISO } from 'date-fns';
import ruLocale from 'date-fns/locale/ru';

"eslint-plugin-import": "2.25.4"

@JounQin
Copy link
Collaborator

JounQin commented Jul 19, 2022

duplicate of #1479

@JounQin JounQin closed this as not planned Won't fix, can't repro, duplicate, stale Jul 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants