rome/tools
馃搸 `useForOf`, prefer-for-of, @typescript-eslint/prefer-for-of
Open
#4,174 opened on Jan 24, 2023
A-LinterHelp wantedI-Normalgood first issuetask
Repository metrics
- Stars
- 聽(23,438 stars)
- PR merge metrics
- 聽(No merged PRs in 30d)
Description
Description
https://typescript-eslint.io/rules/prefer-for-of
This rule forces loop functions to use for of if the index of a for loop is never used, greatly improving readability and ensuring there are no unused variables being referenced (in this case, the index variable).