Releases: tailwindlabs/prettier-plugin-tailwindcss
Releases · tailwindlabs/prettier-plugin-tailwindcss
v0.2.8
v0.2.7
v0.2.6
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
Changed
- Don't bundle
prettier-plugin-svelte
(#101)
Added
Upgrading from v0.1.x for Svelte users
As of v0.2.0 we no longer bundle prettier-plugin-svelte
as part of this plugin, so to bring back formatting for Svelte code you need to explicitly install that dependency yourself:
npm install -D prettier-plugin-svelte
Next, disable autoloading by setting pluginSearchDirs
to false
in your Prettier configuration, and add any plugins you're using to your plugins
list, making sure prettier-plugin-tailwindcss
is last in the list:
// .prettierrc
{
// ..
"plugins": [
"prettier-plugin-svelte",
"prettier-plugin-tailwindcss" // Must come last
],
"pluginSearchDirs": false
}