Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lint): don't report missing dependency on incomplete statement #4864

Conversation

arendjr
Copy link
Contributor

@arendjr arendjr commented Jan 9, 2025

Summary

Adds a test case for #4567 . It appears the panic was already fixed, so I didn't have to do much for it. But I did notice an error was reported on the hook call, while the statement itself is not even complete in the given snippet. In practice, I think this means people may see the error appear while they're still writing the code, which seems not very user-friendly. So all I did was disable the error in this case.

Seeing how small this change is, I don't even think it warrants a CHANGELOG entry 😅

Test Plan

Test case added.

@arendjr arendjr changed the title fix(linter): don't report missing dependency on incomplete statement fix(lint): don't report missing dependency on incomplete statement Jan 9, 2025
@arendjr arendjr merged commit 016046e into biomejs:next Jan 9, 2025
12 checks passed
Copy link

codspeed-hq bot commented Jan 9, 2025

CodSpeed Performance Report

Merging #4864 will not alter performance

Comparing arendjr:dont-report-missing-dependency-on-incomplete-statement (d32aff8) with next (12e3936)

Summary

✅ 95 untouched benchmarks

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.

2 participants