rome/tools
📎 `useForOf`, prefer-for-of, @typescript-eslint/prefer-for-of
Aberta
#4.174 aberto em 24 de jan. de 2023
A-LinterHelp wantedI-Normalgood first issuetask
Métricas do repositório
- Stars
- (23.438 estrelas)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 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).