💅 useForOf
- false-positive when using index
as a shorthand value
#1653
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
S-Help-wanted
Status: you're familiar with the code base and want to help the project
Environment information
Rule name
useForOf
Playground link
https://biomejs.dev/playground/?lintRules=all&code=YwBvAG4AcwB0ACAAYQByAHIAYQB5ACAAPQAgAFsAJwBhACcALAAgACcAYgAnACwAIAAnAGMAJwBdADsACgBmAG8AcgAgACgAbABlAHQAIABpAG4AZABlAHgAIAA9ACAAMAA7ACAAaQBuAGQAZQB4ACAAPAAgAGEAcgByAGEAeQAuAGwAZQBuAGcAdABoADsAIABpAG4AZABlAHgAKwArACkAIAB7AAoAIAAgAGMAbwBuAHMAbwBsAGUALgBpAG4AZgBvACgAaQBuAGQAZQB4ACkAOwAKAH0ACgAKAGYAbwByACAAKABsAGUAdAAgAGkAbgBkAGUAeAAgAD0AIAAwADsAIABpAG4AZABlAHgAIAA8ACAAYQByAHIAYQB5AC4AbABlAG4AZwB0AGgAOwAgAGkAbgBkAGUAeAArACsAKQAgAHsACgAgACAAYwBvAG4AcwBvAGwAZQAuAGkAbgBmAG8AKAB7ACAAaQBuAGQAZQB4ACAAfQApADsACgB9AAoACgBmAG8AcgAgACgAbABlAHQAIABpAG4AZABlAHgAIAA9ACAAMAA7ACAAaQBuAGQAZQB4ACAAPAAgAGEAcgByAGEAeQAuAGwAZQBuAGcAdABoADsAIABpAG4AZABlAHgAKwArACkAIAB7AAoAIAAgAGMAbwBuAHMAbwBsAGUALgBpAG4AZgBvACgAewAgAGkAbgBkAGUAeAA6ACAAaQBuAGQAZQB4ACAAfQApADsACgB9AAoACgBmAG8AcgAgACgAbABlAHQAIABpAG4AZABlAHgAIAA9ACAAMAA7ACAAaQBuAGQAZQB4ACAAPAAgAGEAcgByAGEAeQAuAGwAZQBuAGcAdABoADsAIABpAG4AZABlAHgAKwArACkAIAB7AAoAIAAgAGMAbwBuAHMAbwBsAGUALgBpAG4AZgBvACgAewAgAGkAbgBkAGUAeAA6ACAAaQBuAGQAZQB4ACAAKwAgADEAMQAgAH0AKQA7AAoAfQAKAAoAZgBvAHIAIAAoAGwAZQB0ACAAaQBuAGQAZQB4ACAAPQAgADAAOwAgAGkAbgBkAGUAeAAgADwAIABhAHIAcgBhAHkALgBsAGUAbgBnAHQAaAA7ACAAaQBuAGQAZQB4ACsAKwApACAAewAKACAAIABjAG8AbgBzAG8AbABlAC4AaQBuAGYAbwAoAGAAJAB7AGkAbgBkAGUAeAB9AGAAKQA7AAoAfQAKAAoA
Expected result
Should not show lint error
Code of Conduct
The text was updated successfully, but these errors were encountered: