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

Prettier plugin content is incorrect. #8249

Open
chun37 opened this issue May 10, 2024 · 1 comment
Open

Prettier plugin content is incorrect. #8249

chun37 opened this issue May 10, 2024 · 1 comment
Labels
improve documentation Enhance existing documentation (e.g. add an example, improve description)

Comments

@chun37
Copy link

chun37 commented May 10, 2024

📚 Subject area/topic

Prettier

📋 Page(s) affected (or suggested, for new content)

https://docs.astro.build/en/editor-setup/

📋 Description of content that is out-of-date or incorrect

Prettier will then automatically detect the plugin and use it to process .astro files when you run it:
it is written like this.

However, it seems that automatic detection of plugins has been discontinued since Prettier v3. (#7507)

If the plugin is not automatically detected, I think automatically detect is a lie.
I think this part needs to be deleted.

🖥️ Reproduction in StackBlitz (if reporting incorrect content or code samples)

No response

@chun37 chun37 added the improve documentation Enhance existing documentation (e.g. add an example, improve description) label May 10, 2024
@at-the-vr
Copy link
Contributor

at-the-vr commented May 11, 2024

That's a great observation, Fixit🛠️ 😄
Adding in more: This can use Starlight Steps
Rough Example:

1. Installation Tabs (npm/pnpm/yarn)
2. Create `.prettierrc` with plugins option set to `prettier-plugin-astro`
3. Start formatting with `prettier --write .`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improve documentation Enhance existing documentation (e.g. add an example, improve description)
Projects
None yet
Development

No branches or pull requests

2 participants