Closed sleroq closed 1 year ago
What exactly is wrong with the way shfmt aligns comments? If you found a bug, we should fix it. Aside from that, I think it's somewhat natural that different languages will format differently. We borrowed this particular idea from Go's gofmt, for example.
In general, we avoid adding more formatting options, as they add complexity for both users and maintainers. Just testing all combinations of formatting options is exponentially more expensive.
Fair enough! Thanks for taking the time to explain that to me.
I use prettier for js code and it doesn’t align comments but instead removes unnecessary spaces.
We want our codebase to be uniform, so it would be great if shfmt had an option to disable comment alignment.