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
We now default to tabs and single quotes in new files
We have guessIndentString, but it's only used for JSON. Can we use guessIndentString for JS/TS as well? Barring that, can we set the formatting for existing files to match the default for new files?
The text was updated successfully, but these errors were encountered:
I don't think this is possible in a reasonable manner. If this would work then as post-processing step after serializing the ast. In that case i think we should rather spend effort in solving the problem once and for all via #100
Wouldn't we need to do roughly the same thing in either case? Whether we're using recast or esrap to print the file, I'd expect we would need to tell it whether to use tabs/spaces and single/double quotes. Or does esrap have built-in detection for that already?
Fair point, looks like you are right. esrap seems to always use tabs and single quotes. Does not look like it has any detection for it, or any options regarding this...
We now default to tabs and single quotes in new files
We have
guessIndentString
, but it's only used for JSON. Can we useguessIndentString
for JS/TS as well? Barring that, can we set the formatting for existing files to match the default for new files?The text was updated successfully, but these errors were encountered: