-
-
Notifications
You must be signed in to change notification settings - Fork 504
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
📎 organizeImports: node > npm > absolute > relative #449
Comments
Completely missed this! 😮 The only thing here is the absolute / relative imports. How are they handled? |
@Conaclos I see nothing about this in the documentation. |
Not sure. I think absolute imports appear before relative imports, because |
By absolute, I mean that in the
It will import from "./src/myfolder". I am trying on the playground. Absolute imports seems to come before relative imports. However, it seems that import from npm packages might not necessarily come before absolute imports? |
Biome doesn't read
I think the order is as follows:
|
And it makes sense the behavior depends on these files no? It is important that |
This is my eslint config at the moment:
|
What if a folder clashes with the name of a package? Regardless, we can't provide this at the moment because Biome doesn't use the I can't give you a timeline because we haven't published a roadmap yet, but I assure you that we plan to integrate Biome with some parts of TS. I advise you to open a GitHub discussion and hopefully, other people will upvote it. We will consider it when we will start planning a roadmap. |
@lcswillems FYI the |
@SuperchupuDev I didn't know, thanks! 🙏 @ematipico Are |
From #449 (comment)
|
We could place |
@arendjr Any thoughts? |
Wasn't aware of the special import syntax. Seems good to add indeed 👍 Agreed they should go between the library imports and the relative imports. |
In my codebase, I rather use "$import" and "~import", but I could rename to #import. Also, in eslint, I can say that "$import" and "~import" are special imports. |
Thanks for the great work @Conaclos !! 🙏 |
Description
Right now organizeImports sorts are based on alphabetical order. That's already great, but I think it doesn't satisfy most of projects need.
In my case I would like:
This is the only thing retaining me from using Biome. I am still using ESLint because of this and everytime I setup a new project, setting up ESLint is a nightmare. I hope this could be fixed soon and I could start using Biome
The text was updated successfully, but these errors were encountered: