Environment information
Details
CLI:
Version: 2.4.0
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_LOG_LEVEL: unset
BIOME_LOG_KIND: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
BIOME_WATCHER_KIND: unset
BIOME_WATCHER_POLLING_INTERVAL: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v24.13.0
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: npm/11.8.0
Biome Configuration:
Status: Loaded successfully
Path: biome.json
Formatter enabled: false
Linter enabled: false
Assist enabled: true
VCS enabled: true
HTML full support enabled: unset
Workspace:
Open Documents:
What happened?
When using organizeImports with any :BLANK_LINE: groups, some Astro frontmatter sections are breaking by suggesting to
- remove the opening
---
- add a blank line.
Removing the :BLANK_LINE: groups works. The above issue seems to only happen in some Astro files in our project, not all.
Minimal reproduction repository: https://github.com/setchy/biome-astro-organize-imports
> biome check
src/index.astro:2:1 assist/source/organizeImports FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ The imports and exports are not sorted.
1 │ ---
> 2 │ import Page from "./page.astro";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3 │ ---
4 │
ℹ Safe fix: Organize Imports (Biome)
1 1 │
2 │ +
2 3 │ import Page from "./page.astro";
3 4 │
Checked 4 files in 1991µs. No fixes applied.
Found 1 error.
check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Some errors were emitted while running checks.
Expected result
Organize imports correctly
Code of Conduct
Environment information
Details
What happened?
When using
organizeImportswith any:BLANK_LINE:groups, some Astro frontmatter sections are breaking by suggesting to---Removing the
:BLANK_LINE:groups works. The above issue seems to only happen in some Astro files in our project, not all.Minimal reproduction repository: https://github.com/setchy/biome-astro-organize-imports
Expected result
Organize imports correctly
Code of Conduct