Skip to content

[import/no-duplicates]: issue while using --fix #2460

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
slice-anuj opened this issue May 25, 2022 · 3 comments
Closed

[import/no-duplicates]: issue while using --fix #2460

slice-anuj opened this issue May 25, 2022 · 3 comments

Comments

@slice-anuj
Copy link

slice-anuj commented May 25, 2022

Environment

Node version: v16.13.2
npm version: 8.1.2
Local ESLint version: 8.15.0
Global ESLint version: 8.15.0
Operating System: macOS

What parser are you using?

@typescript-eslint/parser

What did you do?

if two import is similar then, its merge them both which create a new issue which not identified by eslint.

import {a} from "./foo"; import {a} from "./foo";

if do eslint --fix

import { a,a } from "./foo"; # this create new issue duplicate identifier.

What did you expect to happen?

import {a} from "./foo";

What actually happened?

import {a,a} from "./foo";

@ljharb
Copy link
Member

ljharb commented May 25, 2022

What version of this plugin are you using?

@slice-anuj
Copy link
Author

using "eslint-plugin-import": "^2.26.0".

@ljharb
Copy link
Member

ljharb commented May 25, 2022

Looks like this is a duplicate of #2437.

@ljharb ljharb closed this as not planned Won't fix, can't repro, duplicate, stale May 25, 2022
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