All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Nothing yet!
- Logical Depth Assertion: Improved indentation logic that strictly calculates nesting depth from AST.
- Support for
TSModuleBlockin depth calculation. - New
complex-jsxtest case for verifying deep nesting scenarios.
- Indentation Locking: Fixed an issue where manual tabs/spaces would persist in multi-line
classNameattributes. - 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
ReturnStatementorFunctionDeclaration) and includedJSXAttributeto achieve perfect Prettier-standard alignment. - Fixed duplicated internal
getNestingDepthfunctions inindex.ts.
- 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.
- 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
- Add complex-jsx test case covering complex nested JSX scenarios
- support grouping tailwindcss classes
- support custom categories
- support dynamic wrapping
- support format fn string args in className
- support format class in template string