Skip to content

v0.2.0

Compare
Choose a tag to compare
@reinink reinink released this 25 Nov 22:22
· 145 commits to main since this release

Changed

  • Don't bundle prettier-plugin-svelte (#101)

Added

  • Improve compatibility with other Prettier plugins (#101, #102)

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
}