Change8

3.5.0

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

Summary

Prettier 3.5.0 introduces an experimental operator position option, improves TypeScript and Angular template formatting, and resolves several CSS and Markdown layout bugs.

Migration Steps

  1. Review any changes in CSS nesting or TypeScript expressions by running `prettier --check .`.

✨ New Features

  • Added support for the --experimental-operator-position option to control line breaks around operators.
  • Added support for the --use-tabs option in the CLI for better accessibility.
  • Improved formatting for CSS nesting and media queries.
  • Enhanced TypeScript 5.4+ support, including improved formatting for 'satisfies' and 'as' expressions.
  • Added support for formatting Angular 17+ control flow syntax in templates.
  • Improved formatting for Liquid templates and Ruby-like syntax in various plugins.

🐛 Bug Fixes

  • Fixed an issue where comments were incorrectly moved in certain JSX structures.
  • Fixed inconsistent indentation in nested Markdown lists.
  • Resolved a bug where trailing commas were incorrectly added in some TypeScript function signatures.
  • Fixed formatting regressions in SCSS and Less files regarding variable declarations.

🔧 Affected Symbols

--experimental-operator-position--use-tabscsstypescriptangularmarkdown