Skip to content

v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 29 Dec 07:48

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.