1.88.1
2.2.2
1.7.2
When noUnusedImports
is enabled, autofix on save leaves an empty import.
Given:
biome.json
:
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"linter": {
"enabled": true,
"rules": {
"correctness": {
"noUnusedImports": "warn"
}
}
}
}
.vscode/settings.json
:
{
"editor.codeActionsOnSave": {
"quickfix.biome": "explicit"
}
}
index.ts
:
import { A, B } from 'foo';
// edit this comment and save the file
When I save index.ts
and the autofix runs, I end up with an empty import:
import {} from 'foo';
Import is removed.
Not sure / Not applicable
No response
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too