2.0.0-beta.1 noUselessFragments removes important code #5484
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/complexity/noUselessFragments
Playground link
https://next.biomejs.dev/playground/?code=ZQB4AHAAbwByAHQAIABjAG8AbgBzAHQAIABDAGgAYQB0AFMAZQB0AHQAaQBuAGcAcwA6ACAAQwBvAG0AcABvAG4AZQBuAHQAPABDAGgAYQB0AFAAcgBvAHAAcwA%2BACAAPQAgACgAcAByAG8AcABzACkAIAA9AD4AIAB7AAoAIAAgAHIAZQB0AHUAcgBuACAAKAAKACAAIAAgACAAPABkAGkAdgAgAHsALgAuAC4AcwB0AHkAbABlAHgALgBhAHQAdAByAHMAKABzAHQAeQBsAGUAcwAuAGIAYQBzAGUAKQB9AD4ACgAgACAAIAAgACAAIAA8AD4AcwB5AHMAdABlAG0AIABwAHIAbwBtAHAAdAA6AHsAJwAgACcAfQA8AC8APgAKACAAIAAgACAAIAAgADwAQgBsAG8AYwBrAEEAcgByAGEAeQAgAGIAbABvAGMAawBBAHIAcgBhAHkAPQB7AHAAcgBvAHAAcwAuAGMAaABhAHQALgBzAHQAYQB0AGUALgBzAHkAcwB0AGUAbQBfAHAAcgBvAG0AcAB0AH0AIABwAHIAbwBjAGUAcwBzAE0AYQByAGsAZABvAHcAbgA9AHsAZgBhAGwAcwBlAH0AIAAvAD4ACgAgACAAIAAgACAAIAA8AE0AbwBkAGUAbABTAGUAbABlAGMAdABvAHIAIABjAGgAYQB0AD0AewBwAHIAbwBwAHMALgBjAGgAYQB0AH0AIAAvAD4ACgAgACAAIAAgADwALwBkAGkAdgA%2BAAoAIAAgACkACgB9AAoA&ruleDomains.solid=recommended
Expected result
Playground doesn't show this, but it's actually totally destroyed with check --write --unsafe.
It becomes this!!
Code of Conduct
The text was updated successfully, but these errors were encountered: