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

Prettier is adding extra parentheses around a condition assignment inside other parentheses #3010

Closed
sanket-codes opened this issue May 27, 2023 · 2 comments
Labels
locked Please open a new issue and fill out the template instead of commenting. need-more-info

Comments

@sanket-codes
Copy link

sanket-codes commented May 27, 2023

The issue relates to the behavior of the Prettier extension in Visual Studio Code, which adds extra parentheses when there is an if condition with an assignment. This formatting inconsistency affects the clarity and intended precedence of the code.

if ((a = 1)) { console.log('hi'); }
Capture

@github-actions
Copy link

This bug is missing information needed to diagnose the problem. Please see our guide on how to open a good issue and provide the missing information. Most configuration-related issues can only be resolved by providing a full repro. If you don't provide a sample to reproduce your issue, your bug will most likely be closed.

@ntotten ntotten closed this as not planned Won't fix, can't repro, duplicate, stale Jul 17, 2023
@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot added the locked Please open a new issue and fill out the template instead of commenting. label Oct 16, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked Please open a new issue and fill out the template instead of commenting. need-more-info
Projects
None yet
Development

No branches or pull requests

2 participants