Using go-template prettier plugin for .json files

quite generic question. without any details on how you use and how things are configured.

Short answer

prettier supports formatting JSON out of the box.
Prettier docs on Configuration overrides

And this seems to work :wink:

Looks like you might find answers on a generic support forum like stackoverflow…or the prettier ones.

But whereever yoiu ask a question like this you will be asked about details

  • Command line or integrated
  • Which Editor, How it is installed , your Config files…
  • What’s your problem “does not seem to work” is not helpful
  • Use case : singe JSON files or embedded content in some other file?

See Requesting Help