Skip to content

[Due for payment 2025-12-04] [$250] Enable no-array-for-each lint rule #67422

@roryabraham

Description

@roryabraham

Coming from #67420


Problem

When .forEach() is used, then we incur unnecessary performance overhead because function calls are used for each loop iteration, and it is impossible to stop iteration early.

Solution

Enable eslint-plugin-unicorn’s no-array-for-each rule to enforce that plain for or for-of loops are used instead of .forEach loops.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~021968163385112918222
  • Upwork Job ID: 1968163385112918222
  • Last Price Increase: 2025-10-17
Issue OwnerCurrent Issue Owner: @greg-schroeder

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.ExternalAdded to denote the issue can be worked on by a contributorWeeklyKSv2

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions