💅 useSemanticElements
false positive is roles are added to semantic elements
#5212
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
useSemanticElements
Playground link
https://biomejs.dev/playground/?code=PAA%2BAAoAIAAgADwAbgBhAHYAIAByAG8AbABlAD0AIgBuAGEAdgBpAGcAYQB0AGkAbwBuACIAPgAKACAAIAAgACAAJiAKACAAIAA8AC8AbgBhAHYAPgAKACAAIAA8AGYAbwBvAHQAZQByACAAcgBvAGwAZQA9ACIAYwBvAG4AdABlAG4AdABpAG4AZgBvACIAPgAKACAAIAAgACAAJiAKACAAIAA8AC8AZgBvAG8AdABlAHIAPgAKADwALwA%2BAA%3D%3D
Expected result
There's a false positive if role is added to a semantic element:
That
role
should only have been flagged by noRedundantRoles, but NOT by useSemanticElements.Code of Conduct
The text was updated successfully, but these errors were encountered: