-
-
Notifications
You must be signed in to change notification settings - Fork 495
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
🐛 lint/a11y/noBlankTarget
hangs while applying fix
#676
Comments
Hi @cianx, thanks for opening an issue. Are you able to share a repository that reproduces this behavior? |
I included instruction to generate the code in the bug report. If you run |
Yes, thank you for these instructions, as they are vital. If you allow me, I'd like to explain why providing a reproduction repository is important. Between the moment you submit an issue, and when someone attempts to reproduce it, the skeleton on which the Hope you understand. |
Thanks, much appreciated! |
I was able to narrow down the issue to the The following minimal reproduction produces the issue on Biome 1.3.3 function Reproduction () {
return (
<a href="https://vitejs.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
)
} Fixing the rule manually confirms that it's the one blocking the rest. function Reproduction () {
return (
- <a href="https://vitejs.dev" target="_blank">
+ <a href="https://vitejs.dev" target="_blank" rel="noreferrer">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
)
} We seem to end up in a loop when applying the fix. log (truncated for brevity)
|
int/a11y/noBlankTarget
hangs while applying fix
int/a11y/noBlankTarget
hangs while applying fixlint/a11y/noBlankTarget
hangs while applying fix
Applying the quick fix via VS Code works. Screen.Recording.2023-11-06.at.21.47.06.mov |
Environment information
the check returns that it found 5 errors
if I run yarn
dlx @biomejs/biome check ./src --apply
biome hangsWhat happened?
Expected result
A successful check run with any fixable errors fixed
Code of Conduct
The text was updated successfully, but these errors were encountered: