🐛 Biome --apply Command Hangs Due to Incorrect rel Attribute Recommendation #2675
Closed
1 task done
Labels
A-Linter
Area: linter
L-JavaScript
Language: JavaScript and super languages
S-Bug-confirmed
Status: report has been confirmed as a valid bug
Environment information
What happened?
In a specific situation biome get stuck and don't exit.
Steps to reproduce:
yarn biome check --apply .
Why this happend
When the --apply option is not used, the command suggests adding "noreferrer" for security reasons.
However, if the suggestion is applied and the command is run again, it leads to an erroneous and repetitive rel attribute suggestion, causing a infinite loop in recommendation if you continue applying them.
Current behavior
The command never completes.
Examples
Playground to see the rule
Also create a small repo to easy reproduce: https://github.com/luarmr/reproduceIssueBiome/
Expected result
OR The rel attribute noreferrer is added rel="noreferrer noreferer" without duplication
OR The error is mark for manual fix
Code of Conduct
The text was updated successfully, but these errors were encountered: