suspicious/noEvolvingTypes
suspicious · since 1.6.3
No autofix
biome.json
{
"linter": {
"rules": {
"suspicious": {
"noEvolvingTypes": "error"
}
}
}
}Disallow variables from evolving into any type through reassignments.
let a;
````
```ts,expect_diagnostic
const b = [];
````
```ts,expect_diagnostic
let c = null;
````
### Valid
```ts
let a: number;
let b = 1;
var c : string;
var d = "abn";
const e: never[] = [];
const f = [null];
const g = ['1'];
const h = [1];
let workspace: Workspace | null = null;The documentation shows no correct example for this rule.
Examples from the Biome documentation.
ESLint does not have this rule.
Oxlint does not have this rule.
suspicious/noEvolvingTypes
suspicious · since 1.6.3
{
"linter": {
"rules": {
"suspicious": {
"noEvolvingTypes": "error"
}
}
}
}Checks if a default export exports the same symbol as a named export.