You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./services/CustomersService.ts:2:21 lint/correctness/noUnusedImports FIXABLE ━━━━━━━━━━━━━━━━━━━━━
⚠ This import is unused.
1 │ import { type HttpClient, HttpError } from "./HttpClient";> 2 │ import type { Cart, CartItem } from "./models/Cart";
│ ^^^^^^^^
3 │ import type { Customer } from "./models/Customer";
4 │
ℹ Unused imports might be the result of an incomplete refactoring.
ℹ Safe fix: Remove the unused import.
2 │ import·type·{·Cart,·CartItem·}·from·"./models/Cart";
│ ---------
Checked 1 file in 2ms. No fixes applied.
Found 1 warning.
lint ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ Some warnings were emitted while running checks.
Biome did not write the fix even though it found an error.
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
Environment information
Rule name
lint/correctness/noUnusedImports
Playground link
https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAB7ACAAdABlAHMAdAAgAH0AIABmAHIAbwBtACAAJwB0AGUAcwB0ACcAOwA%3D
Expected result
Biome finds the error and with the
--error-on-warnings
flag it should properly fix the file. It does not fix the file.As you can see from the command:
> npx @biomejs/biome lint --write --error-on-warnings --only=correctness/noUnusedImports ./services/CustomersService.ts
And the output:
Biome did not write the fix even though it found an error.
Code of Conduct
The text was updated successfully, but these errors were encountered: