You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use this library to make a change in the AST, and then write it back to a file, I lose commas . This seems to be a standard part of the library, but I am wondering if there's a way to stop this?
The text was updated successfully, but these errors were encountered:
It seems we don't currently have a configuration to preserve commas.
The recommended way is to do one round of formatting first, which will unconditionally remove all the unnecessary commas, and then do the automated edits you want to do.
It is possible to add a new config to optionally preserve commas, let me know if you're interested in contributing it!
👋🏻 Sure, here's a minimal example. I made a script that changes something in an unrelated part of a config via parsing into an AST, changing it within the AST, and then dumping back to the file, and that removes all commas from the file.
When I use this library to make a change in the AST, and then write it back to a file, I lose commas . This seems to be a standard part of the library, but I am wondering if there's a way to stop this?
The text was updated successfully, but these errors were encountered: