Official Prettier plugin for formatting LitSX-authored source files (`.litsx` and `.litsx.jsx`). Version 0.3.3 requires Prettier ^3.0.0 and supports ESM and CJS. It preserves LitSX-specific syntax such as `@event`, `.prop`, `?attr`, and static CSS templates. CSS inside `static styles = \`...\`;` is formatted with Prettier's CSS parser only when no `${...}` interpolation is present. This plugin does not handle plain `.tsx` or `.jsx` files, focusing solely on LitSX formats. It is actively maintained with a public release.
npm install prettier-plugin-litsxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows installation, configuration using overrides for LitSX files, and formatting command.
Update Prettier to ^3.0.0.
Upgrade to 0.3.0 or later for reliable CSS formatting.
Use @prettier/plugin-prettier or other plugins for standard TSX/JSX.
Ensure static styles are literal strings; interpolations will not be reformatted.
Update to 0.3.x for stable API.
Run 'npm install -D prettier-plugin-litsx' and ensure Prettier >=3.0.0.
Upgrade Prettier to ^3.0.0 and use async APIs if needed.
Add override for .litsx files or use correct parser explicitly.