-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Closed
Description
Description
The biome formatter is configured to use biome format --write which only formats code but does not sort imports. When using the edit tool, this causes errors like The imports and exports are not sorted. because biome format does not handle import sorting.
Using biome check --write would format AND sort imports, fixing this issue.
And here is a fix: #8057
Plugins
biome formatter
OpenCode version
1.1.14
Steps to reproduce
- Run opencode in a project with biome.json and this configuration:
{
"assist": {
"enabled": true,
"actions": {
"source": {
"organizeImports": "on"
}
}
}
}- Use the
edittool to make changes to a file with unsorted imports - See the error:
The imports and exports are not sorted.
Operating System
macOS 26.1
Terminal
ghostty
Metadata
Metadata
Assignees
Labels
No labels