Disallow mutating array methods.
| Property | Value |
|---|---|
| Type | suggestion |
| Fixable | No |
| Recommended | warn |
| Strict | error |
Mutating arrays in place creates hidden side effects. Immutable array operations make behavior easier to reason about and safer to refactor.
const next = [...items, value];items.push(value);'zero-tolerance/no-array-mutation': 'error'