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): normalize keys then check if quotes are needed #3558

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

Conaclos
Copy link
Member

Summary

Fix #3482

We now normalize member keys before checking if we can remove the quotes.
This eliminates a reformat issue.

Test Plan

I updated the snapshots.

@github-actions github-actions bot added A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages labels Jul 31, 2024
Copy link
Contributor

@arendjr arendjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@Conaclos Conaclos changed the title fix(js_formatter): normalize mamber key before evaluating if quotes are needed fix(js_formatter): normalize member key before evaluating if quotes are needed Jul 31, 2024
@Conaclos Conaclos changed the title fix(js_formatter): normalize member key before evaluating if quotes are needed fix(js_formatter): normalize keys before checking if quotes are needed Jul 31, 2024
@Conaclos Conaclos changed the title fix(js_formatter): normalize keys before checking if quotes are needed fix(js_formatter): normalize keys then check if quotes are needed Jul 31, 2024
Copy link

codspeed-hq bot commented Jul 31, 2024

CodSpeed Performance Report

Merging #3558 will not alter performance

Comparing conaclos/string-formatting (8d2f7e2) with main (c9ecdac)

Summary

✅ 104 untouched benchmarks

@Conaclos Conaclos merged commit 74397eb into main Jul 31, 2024
18 checks passed
@Conaclos Conaclos deleted the conaclos/string-formatting branch July 31, 2024 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Formatter Area: formatter L-JavaScript Language: JavaScript and super languages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 Reformat issue with escaped character in stringified object key
2 participants