Replies: 2 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
|
Here is my proposal: As you suggested, we could add a new So, your example could be expressed as follows: {
"organizeImports": {
"level": "on",
"options": {
"sortBareImports": true, // required to sort bare imports with other imports
"groups": [
{ "kind": "!bare", "source": [":BUN:", ":NODE:"] },
":BLANK_LINE:",
{ "kind": "!bare", "source": ":PACKAGE:" },
{ "kind": "!bare", "source": ":PACKAGE_WITH_PROTOCOL:" },
":BLANK_LINE:",
{ "kind": "!bare", "source": ":ALIAS:" },
{ "kind": "!bare", "source": ":PATH:" },
":URL:",
{ "kind": "bare" }
]
}
}
}This is more verbose, however this respects the in-order nature of our matching system. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bare imports have side effects, so biome ignores bare imports.
But in some special places, the order of bare imports does not matter, so I want to sort them, such as putting them at the end:
The methods I thought of:
Beta Was this translation helpful? Give feedback.
All reactions