-
-
Notifications
You must be signed in to change notification settings - Fork 732
Labels
S-Needs triageStatus: this issue needs to be triagedStatus: this issue needs to be triaged
Description
Environment information
CLI:
Version: 2.0.0
Color support: true
Platform:
CPU Architecture: aarch64
OS: macos
Environment:
BIOME_LOG_PATH: unset
BIOME_LOG_PREFIX_NAME: unset
BIOME_CONFIG_PATH: unset
BIOME_THREADS: unset
NO_COLOR: unset
TERM: xterm-256color
JS_RUNTIME_VERSION: v24.0.2
JS_RUNTIME_NAME: node
NODE_PACKAGE_MANAGER: npm/11.3.0
Biome Configuration:
Status: Loaded successfully
Path: biome.json
Formatter enabled: true
Linter enabled: true
Assist enabled: true
VCS enabled: true
Workspace:
Open Documents: 0Rule name
lint/complexity/noUselessFragments
Playground link
In this playground, you can see both my code and what Biome has suggested.
In this CodeSandbox, the exact same code is ran, showcasing how following Biome's advice breaks the UI.
https://codesandbox.io/p/sandbox/5m3c25
Expected result
Biome not to suggest removing a fragment where resulting HTML would differ, e.g. when there are HTML entities inside (possibly there might be more cases like this?)
Code of Conduct
- I agree to follow Biome's Code of Conduct
Metadata
Metadata
Assignees
Labels
S-Needs triageStatus: this issue needs to be triagedStatus: this issue needs to be triaged