Sorting tailwindcss class names with prettier plugin?
When developing in Fresh, I would like to have my class names automatically sorted with the official prettier plugin.
How do I enable prettier plugins in a Deno project?
1 Reply
I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, if you want to enable Prettier plugins in a Deno project, you would typically need to ensure that Prettier is installed and configured correctly in your project.
Since Deno does not use
npm
or package.json
, you cannot install Prettier or its plugins in the same way you would in a Node.js project. Deno has its own set of tools and does not natively support Prettier plugins.
However, you can still format your code using Prettier by running it as a separate process outside of Deno's toolchain. You would need to install Prettier and the Tailwind CSS plugin globally or in a separate Node.js environment, and then run Prettier as a command-line tool to format your files.
Please note that this advice is not based on the Deno documentation, and I would advise you to double-check the accuracy of this advice and consult the Prettier and Tailwind CSS plugin documentation for more detailed instructions on how to integrate them with your development workflow.