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

贡献者指南