rome/tools

📎 `useForOf`, prefer-for-of, @typescript-eslint/prefer-for-of

Aperta

#4174 aperta il 24 gen 2023

 (2 commenti) (0 reazioni) (0 assegnatari)Rust (647 fork)batch import
A-LinterHelp wantedI-Normalgood first issuetask

Metriche repository

Star
 (23.438 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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).

Guida contributor