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(js_formatter): add parens for nullish coalescing in ternary #3765

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

Conaclos
Copy link
Member

@Conaclos Conaclos commented Sep 2, 2024

Summary

Fix #3742
I also updated the Prettier snapshots and compatibility reports.

Test Plan

Covered by Prettier tests.

@Conaclos Conaclos added the A-Changelog Area: changelog label Sep 2, 2024
@github-actions github-actions bot added A-Parser Area: parser A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages and removed A-Changelog Area: changelog labels Sep 2, 2024
Copy link
Contributor

github-actions bot commented Sep 2, 2024

Parser conformance results on

js/262

Test result main count This PR count Difference
Total 48504 48504 0
Passed 47313 47313 0
Failed 1191 1191 0
Panics 0 0 0
Coverage 97.54% 97.54% 0.00%

jsx/babel

Test result main count This PR count Difference
Total 40 40 0
Passed 37 37 0
Failed 3 3 0
Panics 0 0 0
Coverage 92.50% 92.50% 0.00%

symbols/microsoft

Test result main count This PR count Difference
Total 6568 6568 0
Passed 2201 2201 0
Failed 4367 4367 0
Panics 0 0 0
Coverage 33.51% 33.51% 0.00%

ts/babel

Test result main count This PR count Difference
Total 671 671 0
Passed 599 599 0
Failed 72 72 0
Panics 0 0 0
Coverage 89.27% 89.27% 0.00%

ts/microsoft

Test result main count This PR count Difference
Total 18417 18417 0
Passed 14099 14099 0
Failed 4318 4318 0
Panics 0 0 0
Coverage 76.55% 76.55% 0.00%

@Conaclos Conaclos merged commit 392626e into main Sep 2, 2024
14 checks passed
@Conaclos Conaclos deleted the conaclos/js_formatter_3742 branch September 2, 2024 17:50
@Conaclos Conaclos added the A-Changelog Area: changelog label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Changelog Area: changelog A-Formatter Area: formatter A-Parser Area: parser L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Align with prettier 3.3.3 on adding parentheses for nullish coalescing in ternary
1 participant