rome/tools
📎 `useForOf`, prefer-for-of, @typescript-eslint/prefer-for-of
Offen
#4.174 geöffnet am 24.01.2023
A-LinterHelp wantedI-Normalgood first issuetask
Repository-Metriken
- Stars
- (23.438 Sterne)
- PR-Merge-Metriken
- (Keine gemergten PRs in 30 T)
Beschreibung
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).