This repository has been archived by the owner on Aug 31, 2023. It is now read-only.
🐛 Formatter detaches // rome-ignore
comment from associated logic expression
#3734
Labels
A-Formatter
Area: formatter
S-Bug: confirmed
Status: report has been confirmed as a valid bug
S-Planned
Status: planned by the team, but not in the short term
Environment information
What happened?
Consider the following code (from
@github/webauthn-json
):Playground link
The
// rome-ignore
comment works as intended.However, as the playground shows, the formatter introduces parentheses around the
&&
logic:This disconnects the
// rome-ignore
comment, which in turn causes the linter to error again.Expected result
The formatter doesn't break linter compatibility of the code.
Code of Conduct
The text was updated successfully, but these errors were encountered: