💅 noUselessFragments does not consider HTML escape codes #4247
Labels
S-Needs response
Status: await response from OP
S-Needs triage
Status: this issue needs to be triaged
Environment information
Rule name
lint/complexity/noUselessFragments
Playground link
https://biomejs.dev/playground/?code=aQBtAHAAbwByAHQAIAB0AHkAcABlACAAUgBlAGEAYwB0ACAAZgByAG8AbQAgACIAcgBlAGEAYwB0ACIAOwAKAAoAZgB1AG4AYwB0AGkAbwBuACAAZABvAE4AbwB0AGgAaQBuAGcAKABfADoAIABSAGUAYQBjAHQALgBSAGUAYQBjAHQATgBvAGQAZQApACAAewB9AAoACgBkAG8ATgBvAHQAaABpAG4AZwAoADwAPgBoAGUAbABsAG8AJgBoAGUAbABsAGkAcAA7ADwALwA%2BACkAOwAKAAoA
Expected result
"hello…"
should not be a suggested replacement for<>hello…</>
because the HTML escape sequence…
is not rendered correctly when it is a plain string.Code of Conduct
The text was updated successfully, but these errors were encountered: