Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.prettierrc format problem in documentation #110

Open
behnamgolds opened this issue May 9, 2024 · 2 comments
Open

.prettierrc format problem in documentation #110

behnamgolds opened this issue May 9, 2024 · 2 comments

Comments

@behnamgolds
Copy link

I followed the README and the issue referenced to solve the installation problem, and yet in the README file it says to put the config in the .prettierrc file like this :

// .prettierrc
{
  "plugins": ["prettier-plugin-go-template"]
}

but when I did that the prretier plugin threw a bunch of errors about invalid config file format.

Seems that the config file should be in YAML format and not JSON. So I changed the file like this:

---
goTemplateBracketSpacing: true
plugins:
  - prettier-plugin-go-template

Seems there is an upstream prettier plugin change in the config file parsing that should be reflected here in the documentation.

@NiklasPor
Copy link
Owner

Weird, the prettier docs still state that json or yml are ok:

image

https://prettier.io/docs/en/configuration.html

@behnamgolds
Copy link
Author

I din't follow up on that , but yeah it says JSON too! I don't know maybe I did something wrong the first time. But I'm sure my json config was correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants