Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@arendjr
Copy link
Contributor

@arendjr arendjr commented Jul 18, 2025

Summary

Fixed #6915: useHookAtTopLevel no longer hangs when rules call themselves recursively.

Test Plan

Tests added. Added one for useHookAtTopLevel to check indirect recursion, and another in the CLI tests to make sure other rules don't trip over it either (but stopped short of enabled all rules, since we don't have a convenient config setting for that 😅 ).

@arendjr arendjr requested review from a team July 18, 2025 09:49
@changeset-bot
Copy link

changeset-bot bot commented Jul 18, 2025

🦋 Changeset detected

Latest commit: 6ee95f8

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

@arendjr arendjr force-pushed the fix-recursive-hooks branch from dd3890f to fb686a9 Compare July 18, 2025 09:50
@github-actions github-actions bot added A-CLI Area: CLI A-Project Area: project A-Linter Area: linter L-JavaScript Language: JavaScript and super languages labels Jul 18, 2025
@arendjr arendjr force-pushed the fix-recursive-hooks branch from fb686a9 to bb87586 Compare July 18, 2025 09:55
@arendjr arendjr force-pushed the fix-recursive-hooks branch from bb87586 to 283e612 Compare July 18, 2025 09:56
@github-actions github-actions bot removed the A-Project Area: project label Jul 18, 2025
@codspeed-hq
Copy link

codspeed-hq bot commented Jul 18, 2025

CodSpeed Performance Report

Merging #6931 will not alter performance

Comparing arendjr:fix-recursive-hooks (6ee95f8) with main (c434f01)

Summary

✅ 115 untouched benchmarks

@arendjr arendjr merged commit e6b2380 into biomejs:main Jul 18, 2025
29 checks passed
@github-actions github-actions bot mentioned this pull request Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

💅 biome lint hangs and causes high CPU usage

2 participants