💅 useJsxKeyInIterable reports missing key even if JSX element is not returned in interable #3084
Closed
1 task done
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
Rule name
lint/correctness/useJsxKeyInIterable
Playground link
https://biomejs.dev/playground/?code=YwBvAG4AcwB0ACAAYQByAHIAIAA9ACAAWwAxACwAIAAyACwAIAAzAF0AOwAKAAoAZgB1AG4AYwB0AGkAbwBuACAATQB5AEYAdQBuAGMAKAApACAAewAKACAAIABjAG8AbgBzAHQAIABlAGwAZQBtAGUAbgB0AHMAIAA9ACAAYQByAHIALgBtAGEAcAAoAGUAbAAgAD0APgAgAHsACgAgACAAIAAgAGMAbwBuAHMAdAAgAGMAbwBuAHQAZQBuAHQAIAA9ACAAPABwAD4AUABhAHIAYQBnAHIAYQBwAGgAPAAvAHAAPgAKACAAIAAgACAACgAgACAAIAAgAHIAZQB0AHUAcgBuACAAKAAKACAAIAAgACAAIAAgADwAZABpAHYAIABrAGUAeQA9AHsAZQBsAH0APgAKACAAIAAgACAAIAAgACAAIAB7AGMAbwBuAHQAZQBuAHQAfQAKACAAIAAgACAAIAAgADwALwBkAGkAdgA%2BAAoAIAAgACAAIAApADsACgAgACAAfQApAAoACgAgACAAcgBlAHQAdQByAG4AIABlAGwAZQBtAGUAbgB0AHMAOwAKAH0A
Expected result
In playground linked above, Biome should continue to check for missing key in
div
, but not inp
, which does not require a key.Code of Conduct
The text was updated successfully, but these errors were encountered: