Skip to content

fix(lint/noUselessFragments): apply the same logic for shorthand fragments and Fragment elements#6717

Merged
siketyan merged 1 commit intobiomejs:mainfrom
siketyan:fix/GH-6688
Jul 7, 2025
Merged

fix(lint/noUselessFragments): apply the same logic for shorthand fragments and Fragment elements#6717
siketyan merged 1 commit intobiomejs:mainfrom
siketyan:fix/GH-6688

Conversation

@siketyan
Copy link
Copy Markdown
Member

@siketyan siketyan commented Jul 5, 2025

Summary

Fixes #6688

Fixed the noUselessFragments rule used different logic for shorthand fragments (<></>) and Fragment elements (<Fragment></Fragment>), causing some false positives only on the latter.

Test Plan

Updated snapshot tests.

@siketyan siketyan requested review from a team July 5, 2025 08:55
@siketyan siketyan self-assigned this Jul 5, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jul 5, 2025

🦋 Changeset detected

Latest commit: 9d589bf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 13 packages
Name Type
@biomejs/biome Patch
@biomejs/cli-win32-x64 Patch
@biomejs/cli-win32-arm64 Patch
@biomejs/cli-darwin-x64 Patch
@biomejs/cli-darwin-arm64 Patch
@biomejs/cli-linux-x64 Patch
@biomejs/cli-linux-arm64 Patch
@biomejs/cli-linux-x64-musl Patch
@biomejs/cli-linux-arm64-musl Patch
@biomejs/wasm-web Patch
@biomejs/wasm-bundler Patch
@biomejs/wasm-nodejs Patch
@biomejs/backend-jsonrpc Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions Bot added A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Jul 5, 2025
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Jul 5, 2025

CodSpeed Performance Report

Merging #6717 will not alter performance

Comparing siketyan:fix/GH-6688 (9d589bf) with main (4aa0e50)

Summary

✅ 114 untouched benchmarks

@siketyan siketyan merged commit 7f5b541 into biomejs:main Jul 7, 2025
30 checks passed
@github-actions github-actions Bot mentioned this pull request Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Linter Area: linter L-JavaScript Language: JavaScript and super languages

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💅 Invalid unnecessary fragment warning for HTML entities

2 participants