# noEvolvingTypes

Rule `biome/noEvolvingTypes`. Disallow variables from evolving into `any` type through reassignments.

- Source: biome
- Technologies: TypeScript
- Kind: suspicious
- Needs type information: no
- Autofix: no
- Reach: 2.1M weekly downloads of presets that enable it
- Trend: +151.7% last quarter
- Rank: #1542 by reach, #46 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `suspicious/noEvolvingTypes` | no | no | group suspicious, since 1.6.3 | [docs](https://biomejs.dev/linter/rules/no-evolving-types/) |

## Code examples

### Incorrect: the rule reports this

`````ts
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;
`````

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "suspicious": {
        "noEvolvingTypes": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Ultracite for Biome](https://lintradar.dev/presets/ultracite-biome.md) | Biome | `ultracite` | 616 | 2.1M | +151.7% |

## Related rules

- [biome/noEnum](https://lintradar.dev/rules/biome/noEnum.md): Disallow TypeScript enum.
- [biome/noExportedImports](https://lintradar.dev/rules/biome/noExportedImports.md): Disallow exporting an imported variable.
- [biome/noEmptyObjectKeys](https://lintradar.dev/rules/biome/noEmptyObjectKeys.md): Disallow empty keys in JSON objects.
- [biome/noRedundantDefaultExport](https://lintradar.dev/rules/biome/noRedundantDefaultExport.md): Checks if a default export exports the same symbol as a named export.
- [biome/noDuplicateSelectors](https://lintradar.dev/rules/biome/noDuplicateSelectors.md): Disallow duplicate selectors.
- [biome/noRootType](https://lintradar.dev/rules/biome/noRootType.md): Disallow configured GraphQL root operation types.

---

Web page: https://lintradar.dev/rules/biome/noEvolvingTypes. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
