Change8

3.5.2

📦 prettierView on GitHub →
4 features🐛 4 fixes🔧 6 symbols

Summary

Prettier 3.5.2 introduces support for CSS light-dark() functions and TypeScript import attributes, alongside various bug fixes for JSX and Markdown formatting.

✨ New Features

  • Added support for formatting CSS `light-dark()` function.
  • Improved formatting for nested ternary expressions in JavaScript.
  • Added support for the `as` keyword in TypeScript `import` attributes.
  • Enhanced formatting for Ruby-style block comments in SCSS.

🐛 Bug Fixes

  • Fixed an issue where comments in JSX were sometimes moved to incorrect positions.
  • Fixed a bug where long strings in template literals were incorrectly wrapped in some edge cases.
  • Resolved a crash when parsing invalid syntax in Vue SFC style blocks.
  • Fixed inconsistent indentation in Markdown list items containing code blocks.

🔧 Affected Symbols

csstypescriptjsxscssmarkdownvue