correctness/noUnusedImports
correctness · since 1.3.0
Unsafe autofixRecommended
biome.json
{
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "error"
}
}
}
}import A from 'mod';import * as A from 'mod';import { type A, B } from 'mod';
export { B }import { A, type B } from 'mod';
function f(arg: B): A {
return new A(arg);
}import type {} from '@mui/lab/themeAugmentation';Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
correctness/noUnusedImports
correctness · since 1.3.0
{
"linter": {
"rules": {
"correctness": {
"noUnusedImports": "error"
}
}
}
}Disallow an unsafe combination of the sandbox attribute.
Disallow unnecessary escapes in string literals.
Disallow An+B formulas that cannot select an element.
Disallow unnecessary String.raw function in template string literals without any escape sequence.