Closed AjaiKN closed 1 year ago
I wonder if there is an automatic formatter that can be applied to the html, similar to gofmt for golang.
Prettier can format HTML, CSS, JSON, and JavaScript.
I wonder if there is an automatic formatter script. Kind of like gofmt
Sent from my iPhone
On May 14, 2022, at 18:55, Ajai @.***> wrote:
We've been inconsistent about tabs vs. spaces, and we should decide which one to use.
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.
That's exactly what prettier is.
We now have prettier set up. It should format on save in VSCode, and we also added a GitHub Action that re-formats the code in the main branch (with an automated commit) if it's not formatted.
We've been inconsistent about tabs vs. spaces, and we should decide which one to use.