rome/tools

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

開放

#4,174 建立於 2023年1月24日

 (2 則留言) (0 個反應) (0 位負責人)Rust (647 個分叉)batch import
A-LinterHelp wantedI-Normalgood first issuetask

倉庫指標

星標
 (23,438 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南