Skip to content

Releases: MatrixAges/prettier-plugin-tailwindcss-pro

v0.2.0

29 Dec 07:48

Choose a tag to compare

Added

  • Logical Depth Assertion: Improved indentation logic that strictly calculates nesting depth from AST.
  • Support for TSModuleBlock in depth calculation.
  • New complex-jsx test case for verifying deep nesting scenarios.

Fixed

  • Indentation Locking: Fixed an issue where manual tabs/spaces would persist in multi-line className attributes.
  • Strict Re-formatting: Implemented a "Collapse-First" strategy that ignores all original source indentation for multi-line classes.
  • Precise Alignment: Removed redundant node counts (like ReturnStatement or FunctionDeclaration) and included JSXAttribute to achieve perfect Prettier-standard alignment.
  • Fixed duplicated internal getNestingDepth functions in index.ts.

Improved

  • Enhanced multi-line detection: now forces indentation for any user-provided newlines, regardless of class count.
  • Robust whitespace stripping in individual class names during categorization.

v0.1.16

29 Dec 06:08

Choose a tag to compare

Fixed

  • Fix multi-line className indentation: now correctly preserves original string indentation format
  • Optimize single-line/multi-line expansion logic: only expand to multi-line categorized format when class count >= 5

Added

  • Add complex-jsx test case covering complex nested JSX scenarios

v0.1.15

29 Dec 05:22

Choose a tag to compare

fix indent.

v0.1.14

11 Dec 11:56

Choose a tag to compare

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string

v0.1.13

11 Dec 11:52

Choose a tag to compare

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string

v0.1.12

11 Dec 11:41

Choose a tag to compare

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string

v0.1.11

11 Dec 11:36

Choose a tag to compare

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string

v0.1.10

11 Dec 11:28

Choose a tag to compare

Features

  • support grouping tailwindcss classes
  • support custom categories
  • support dynamic wrapping
  • support format fn string args in className
  • support format class in template string