# noAccumulatingSpread

Rule `biome/noAccumulatingSpread`. Disallow the use of spread (`...`) syntax on accumulators.

- Source: biome
- Technologies: JavaScript
- Kind: performance
- Needs type information: no
- Autofix: no
- Reach: 30.6M weekly downloads of presets that enable it
- Trend: +109.3% last quarter
- Rank: #487 by reach, #122 by growth

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| Biome | `performance/noAccumulatingSpread` | yes | no | group performance, since 1.0.0 | [docs](https://biomejs.dev/linter/rules/no-accumulating-spread/) |

## Code examples

### Incorrect: the rule reports this

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => [...acc, val], []);
```

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => {return [...acc, val];}, []);
```

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => ({...acc, [val]: val}), {});
```

### Correct: the rule accepts this

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => {acc.push(val); return acc}, []);
```

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => Object.assign(acc, val), []);
```

```js
var a = ['a', 'b', 'c'];
a.reduce((acc, val) => {return Object.assign(acc, val);}, []);
```

Examples from the Biome documentation.

## Enable it

### Biome: `biome.json`

```json
{
  "linter": {
    "rules": {
      "performance": {
        "noAccumulatingSpread": "error"
      }
    }
  }
}
```

## Presets that enable it

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

## Related rules

- [biome/noAstroComponentDefaultExport](https://lintradar.dev/rules/biome/noAstroComponentDefaultExport.md): Disallow runtime default exports in Astro component frontmatter.
- [biome/noAstroConflictingSetDirectives](https://lintradar.dev/rules/biome/noAstroConflictingSetDirectives.md): Disallow conflicting content sources on Astro elements.
- [biome/noAstroSetHtmlDirective](https://lintradar.dev/rules/biome/noAstroSetHtmlDirective.md): Disallow the use of Astro's `set:html` directive.
- [biome/noBiomeFirstException](https://lintradar.dev/rules/biome/noBiomeFirstException.md): Disallow ineffective ordering in `files.includes` patterns.
- [biome/noConstEnum](https://lintradar.dev/rules/biome/noConstEnum.md): Disallow TypeScript `const enum`
- [biome/noConvexDuplicateIndexes](https://lintradar.dev/rules/biome/noConvexDuplicateIndexes.md): Disallow Convex database indexes whose fields are the first fields of another index on the same table.

---

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