Plugin required disclaimer for Prettier section of the editor setup docs #10877
Labels
improve or update documentation
Enhance / update existing documentation (e.g. add example, improve description, update for changes)
while trying to set up prettier with
"prettier-plugin-tailwindcss"
plugin, I faced an issue where the tailwind class sorting wasn't working .astro files but worked fine on .tsx files.The issue turned out to be that because how
"prettier-plugin-tailwindcss"
behaves (it's required that it's the last plugin in tailwind config) theprettier-plugin-astro
plugin needs to be installedand the .prettierrc should look something like :
The Docs for the use of Prettier with Astro mentions:
If you’re using the Astro VS Code Extension or the Astro language server within another editor, code formatting with Prettier is included."
but there's no mention that the
prettier-plugin-astro
would be required for.astro
files when using the prettier tailwind plugin.The text was updated successfully, but these errors were encountered: