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 sorting "forgets" import #1924

Closed
1 task done
ematipico opened this issue Feb 27, 2024 · 0 comments · Fixed by #1936
Closed
1 task done

🐛 Import sorting "forgets" import #1924

ematipico opened this issue Feb 27, 2024 · 0 comments · Fixed by #1936
Labels
A-Analyzer Area: analyzer S-Bug-confirmed Status: report has been confirmed as a valid bug S-Help-wanted Status: you're familiar with the code base and want to help the project

Comments

@ematipico
Copy link
Member

Environment information

`main`

What happened?

The import sorting forgets the move an import in a specific case. Link

Before

import { path } from './foo';
import { relative as relativePath, relative } from 'node:path';

After

import { relative , } from 'node:path';
import { path } from './foo';

The relative as relativePath is lost.

Expected result

The import sorting shouldn't lose members of the import group.

Code of Conduct

  • I agree to follow Biome's Code of Conduct
@ematipico ematipico added S-Help-wanted Status: you're familiar with the code base and want to help the project S-Bug-confirmed Status: report has been confirmed as a valid bug A-Analyzer Area: analyzer labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Analyzer Area: analyzer S-Bug-confirmed Status: report has been confirmed as a valid bug S-Help-wanted Status: you're familiar with the code base and want to help the project
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant