biomejs/biome

☂️ Import sorter revamping - custom order

Conaclos opened this issue · 11 comments

Description

We recently published an RFC to improve the Biome import sorter.

This issue tracks the implementation of the RFC.
The main goal of this implementation is to:

  • Allow specifying a custom order based on groups
  • Allow adding blank lines between some groups.
  • Allow merging imports
  • Allow sorting export from statements

We will provide a legacy configuration to enable the old way of sorting imports.
By disabling this configuration, the new system will be used.

Upvote & Fund

  • It will be done by a core contributor to Biome.
  • To support this effort, please consider funding the issue through Polar.sh or sponsoring Biome.
  • All funds raised on Polar.sh will be redirected to the Biome Open Collective once the task completed.
  • Use 👍 to upvote the issue
Fund with Polar