Skip to content

Releases: tailwindlabs/prettier-plugin-tailwindcss

v0.2.6

29 Mar 12:59
Compare
Choose a tag to compare

Added

  • Support ESM and TS config files (#137)

Fixed

  • Load tailwindcss modules from nearest instance only (#139)

v0.2.5

17 Mar 15:21
Compare
Choose a tag to compare

Fixed

  • Fix class sorting in capture liquid tag (#131)

v0.2.4

02 Mar 14:45
Compare
Choose a tag to compare

Fixed

  • Add support for sorting class attribute on custom elements and Astro components (#129)

v0.2.3

15 Feb 14:02
Compare
Choose a tag to compare

Fixed

  • Don't sort classes in Glimmer concat helper (#119)
  • Add support for @ianvs/prettier-plugin-sort-imports (#122)

v0.2.2

24 Jan 20:41
Compare
Choose a tag to compare

Fixed

  • Add prettier plugins to peer dependencies (#114)
  • Traverse await expression blocks in Svelte (#118)

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)