Skip to content

Biome formatter does not sort imports #8061

@kynnyhsap

Description

@kynnyhsap

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

  1. Run opencode in a project with biome.json and this configuration:
{
  "assist": {
    "enabled": true,
    "actions": {
      "source": {
        "organizeImports": "on"
      }
    }
  }
}
  1. Use the edit tool to make changes to a file with unsorted imports
  2. See the error: The imports and exports are not sorted.

Operating System

macOS 26.1

Terminal

ghostty

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions