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

Overlapping ESLint rules for duplicate imports #28

Open
Tlacenka opened this issue Dec 31, 2024 · 0 comments
Open

Overlapping ESLint rules for duplicate imports #28

Tlacenka opened this issue Dec 31, 2024 · 0 comments
Labels
➕ enhancement new feature or request

Comments

@Tlacenka
Copy link
Collaborator

User story

As an engineer, I want only one ESLint rule to target a given issue, so that I only get one finding per issue and avoid unnecessary noise.

Acceptance criteria

There is only one rule for duplicate import.

Minimal reproduction of current behaviour

The no-duplicate-imports rule included here targets duplicate module import lines and aims to merge them.
The import/no-duplicates rule included from recommended config here seems to be an expanded version of that rule - it recognises type import as separate, allows for path variation for file formats.

Desired behaviour showcase

The vanilla no-duplicate-imports can be removed.

Which configuration is this related to?

default

ESLint version

No response

@Tlacenka Tlacenka added the ➕ enhancement new feature or request label Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement new feature or request
Projects
None yet
Development

No branches or pull requests

1 participant