javascript/object
format question
#1178
Answered
by
jorenbroekema
personable
asked this question in
Q&A
-
Beta Was this translation helpful? Give feedback.
Answered by
jorenbroekema
May 2, 2024
Replies: 1 comment 1 reply
-
This format is using |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
personable
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This format is using
JSON.stringify
to stringify the tokens object into what you see in your output.It's not always easy to determine whether or not "" is required for an object property key, my suggestion would be to create a custom format that does the same thing but that also runs Prettier on the output which should get rid of any redundant quotes around property keys.