unused-enumerate-index Disallow indexed iteration when its index is unused Indexed iteration constructs an index-value pair for every element even when the index is unused. Instead, you SHOULD iterate over the values directly. - Category: style - Level: warning - Fix: automatic - Scope: module Reported function copy(values: int32[], output: int32[]): void { for (const (_, value) of values.entries()) { output.push(value); } } Accepted function copy(values: int32[], output: int32[]): void { for (const value of values) { output.push(value); } } Prior art - Clippy ยท unusedenumerateindex language/linter/src/rules/style/unusedenumerateindex.rs:8