complexity/noEmptyTypeParameters
complexity · since 1.5.0
No autofixRecommended
biome.json
{
"linter": {
"rules": {
"complexity": {
"noEmptyTypeParameters": "error"
}
}
}
}Disallow empty type parameters in type aliases and interfaces.
interface Foo<> {}type Bar<> = {};interface Foo {}type Foo<T> = {
bar: T;
}Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
complexity/noEmptyTypeParameters
complexity · since 1.5.0
{
"linter": {
"rules": {
"complexity": {
"noEmptyTypeParameters": "error"
}
}
}
}Disallow accessing namespace imports dynamically.
Require all variable definitions to be unique.