rome/tools
📎 `useForOf`, prefer-for-of, @typescript-eslint/prefer-for-of
Ouverte
#4 174 ouverte le 24 janv. 2023
A-LinterHelp wantedI-Normalgood first issuetask
Métriques du dépôt
- Stars
-  (23 438 étoiles)
- Métriques de merge PR
-  (Aucune PR mergée en 30 j)
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).