Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
a14fcca
test: add test case for noExtraBooleanCast parentheses preservation
JeetuSuthar Aug 17, 2025
4e5ffe6
docs: improve changeset description following guidelines
JeetuSuthar Aug 17, 2025
57b2305
docs: update changeset to clarify test-only addition per review
JeetuSuthar Aug 17, 2025
32ba1e7
chore: remove changeset .
JeetuSuthar Aug 17, 2025
27c1c87
fix: preserve parentheses in noExtraBooleanCast rule when removing Bo…
JeetuSuthar Aug 17, 2025
3b2aebe
[autofix.ci] apply automated fixes
autofix-ci[bot] Aug 17, 2025
2196fdc
fix: add support for logical and sequence expressions in parentheses …
JeetuSuthar Aug 17, 2025
040defa
Resolve merge conflict and integrate CodeRabbit review feedback
JeetuSuthar Aug 17, 2025
600d5fa
Fix unused imports warning with allow attribute
JeetuSuthar Aug 17, 2025
0500c6b
[autofix.ci] apply automated fixes
autofix-ci[bot] Aug 17, 2025
1617b75
Fix unused imports warning with allow attribute
JeetuSuthar Aug 17, 2025
d2e9574
refactor action function and remove test files
JeetuSuthar Aug 17, 2025
4fedd9f
Fix clippy lint: use #[expect] instead of #[allow]
JeetuSuthar Aug 17, 2025
fbac80e
[autofix.ci] apply automated fixes
autofix-ci[bot] Aug 17, 2025
7a79776
test: update
JeetuSuthar Aug 17, 2025
3e8c850
Merge update
JeetuSuthar Aug 17, 2025
70066e5
fix
JeetuSuthar Aug 17, 2025
81ad304
Merge branch 'main' into fix-boolean-cast-parentheses
ematipico Aug 21, 2025
e1f57f3
Update .changeset/fix-boolean-cast-parentheses.md
JeetuSuthar Aug 21, 2025
4f07e18
Remove test files that shouldn't be in the PR
JeetuSuthar Aug 21, 2025
196f806
Merge remote changes and remove unwanted test files
JeetuSuthar Aug 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/add-boolean-cast-test-case.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@biomejs/biome": patch
---

Fixed [#7225](https://github.com/biomejs/biome/issues/7225): Added test case for noExtraBooleanCast rule to verify parentheses preservation in `!Boolean(b0 && b1)` expressions.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,9 @@ new Boolean(!!x);

!!!x;

!Boolean(x);
!Boolean(x);

// Test case for issue #7225 - should preserve parentheses
const b0 = false;
const b1 = false;
const boolean = !Boolean(b0 && b1);
Loading