# no-misused-spread

Rule `typescript/no-misused-spread`. Disallow using the spread operator when it might cause unexpected behavior

- Source: typescript
- Technologies: TypeScript
- Kind: correctness
- Needs type information: yes
- Autofix: yes, in at least one linter
- Reach: 97.4M weekly downloads of presets that enable it
- Trend: +83.0% last quarter
- Rank: #191 by reach, #405 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `@typescript-eslint/no-misused-spread` | no | suggestion | package `@typescript-eslint/eslint-plugin` | [docs](https://typescript-eslint.io/rules/no-misused-spread) |
| Oxlint | `typescript/no-misused-spread` | yes | safe | plugin `typescript`, category correctness | [docs](https://oxc.rs/docs/guide/usage/linter/rules/typescript/no-misused-spread.html) |
| Biome | `nursery/noMisusedSpread` | no | no | group nursery, since 2.6.8 | [docs](https://biomejs.dev/linter/rules/no-misused-spread/) |

## Code examples

### Incorrect: the rule reports this

```ts
declare const promise: Promise<number>;
const spreadPromise = { ...promise };

declare function getObject(): Record<string, string>;
const getObjectSpread = { ...getObject };

declare const map: Map<string, number>;
const mapSpread = { ...map };

declare const userName: string;
const characters = [...userName];
```

```ts
declare class Box {
  value: number;
}
const boxSpread = { ...Box };

declare const instance: Box;
const instanceSpread = { ...instance };
```

### Correct: the rule accepts this

```ts
declare const promise: Promise<number>;
const spreadPromise = { ...(await promise) };

declare function getObject(): Record<string, string>;
const getObjectSpread = { ...getObject() };

declare const map: Map<string, number>;
const mapObject = Object.fromEntries(map);

declare const userName: string;
const characters = userName.split('');
```

Examples from the ESLint documentation.

## Enable it

### ESLint: `eslint.config.js`

```js
import tseslint from "typescript-eslint";

export default [
  {
    plugins: { "@typescript-eslint": tseslint.plugin },
    rules: {
      "@typescript-eslint/no-misused-spread": "error",
    },
  },
];
```

### Oxlint: `.oxlintrc.json`

```json
{
  "rules": {
    "typescript/no-misused-spread": "error"
  }
}
```

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "nursery": {
        "noMisusedSpread": "error"
      }
    }
  }
}
```

## Presets that enable it

| Preset | Linter | Package | Rules | Weekly downloads | Trend |
| --- | --- | --- | --- | --- | --- |
| [Oxlint default](https://lintradar.dev/presets/oxlint-default.md) | Oxlint | `oxlint` | 111 | 50.8M | +183.6% |
| [typescript-eslint strict type-checked](https://lintradar.dev/presets/typescript-eslint-strict-type-checked.md) | ESLint | `@typescript-eslint/eslint-plugin` | 75 | 175.9M | +29.5% |
| [Ultracite for Oxlint](https://lintradar.dev/presets/ultracite-oxlint.md) | Oxlint | `ultracite` | 475 | 2.1M | +151.7% |
| [XO](https://lintradar.dev/presets/xo.md) | ESLint | `eslint-config-xo` | 618 | 413K | −5.0% |
| [eslint-config-love](https://lintradar.dev/presets/love.md) | ESLint | `eslint-config-love` | 258 | 171.7K | +39.3% |

## Related rules

- [typescript/no-meaningless-void-operator](https://lintradar.dev/rules/typescript/no-meaningless-void-operator.md): Disallow the `void` operator except when used to discard a value
- [typescript/no-useless-default-assignment](https://lintradar.dev/rules/typescript/no-useless-default-assignment.md): Disallow default values that will never be used
- [typescript/restrict-template-expressions](https://lintradar.dev/rules/typescript/restrict-template-expressions.md): Enforce template literal expressions to be of `string` type
- [typescript/unbound-method](https://lintradar.dev/rules/typescript/unbound-method.md): Enforce unbound methods are called with their expected scope
- [typescript/await-thenable](https://lintradar.dev/rules/typescript/await-thenable.md): Disallow awaiting a value that is not a Thenable
- [typescript/no-base-to-string](https://lintradar.dev/rules/typescript/no-base-to-string.md): Require `.toString()` and `.toLocaleString()` to only be called on objects which provide useful information when stringified

---

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