Skip to content

Releases: tailwindlabs/prettier-plugin-tailwindcss

v0.2.1

08 Dec 21:52
Compare
Choose a tag to compare

Fixed

  • Fix support for latest Shopify Liquid plugin (#109)

v0.2.0

25 Nov 22:22
Compare
Choose a tag to compare

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
}

v0.1.13

25 Jul 16:19
Compare
Choose a tag to compare

Fixed

  • Fix error when using Angular pipes (#86)

v0.1.12

07 Jul 14:55
Compare
Choose a tag to compare

Added

  • Add support for Glimmer / Handlebars (#83)

v0.1.11

16 May 10:33
Compare
Choose a tag to compare

Changed

  • Update prettier-plugin-svelte to v2.7.0 (#77)

Fixed

  • Fix sorting in Svelte :else blocks (#79)

v0.1.10

20 Apr 08:19
Compare
Choose a tag to compare

Removed

  • Remove whitespace tidying and duplicate class removal due to issues with whitespace removal (#72)

v0.1.9

19 Apr 19:22
Compare
Choose a tag to compare

Added

  • Add license file (#64)
  • Add whitespace tidying and duplicate class removal (#70)

v0.1.8

24 Feb 17:48
Compare
Choose a tag to compare

Changed

  • Use Tailwind's getClassOrder API when available (#57)

Fixed

  • Fix Tailwind config file resolution when Prettier config file is not present (#62)

v0.1.7

09 Feb 10:48
Compare
Choose a tag to compare

Fixed

  • Fix single quotes being converted to double quotes (#51)

v0.1.6

08 Feb 11:27
Compare
Choose a tag to compare

Fixed

  • Fix error when no Prettier options provided (#46)