Prettier 3.5 released with new formatting options, TypeScript config files support, & more

Prettier 3.5 released with new formatting options, TypeScript config files support, & more

Prettier has released version 3.5 of its popular opinionated code formatter, introducing several new features and improvements. This update includes two new options: experimentalOperatorPosition, which allows for line breaks before binary operators, and objectWrap, which aids in formatting multi-line objects by configuring how Prettier wraps object literals. These options aim to tackle longstanding formatting issues while maintaining Prettier's core philosophy.

Version 3.5 also brings support for TypeScript config files, although TypeScript support in Node.js remains experimental. Enhancements in this release cover word wrapping in JSX, const type parameters in Flow, and improvements across CSS, Vue, Angular, Ember/Handlebars, and Markdown. Additionally, the API sees improvements alongside various minor enhancements and bug fixes.

by Paul

MORE ABOUT: #Prettier
  • FreeOpen Source
  • ...

Prettier is an opinionated code formatter designed to enforce a consistent style across your codebase. It supports a range of programming languages, automatically reformatting code to adhere to defined stylistic rules. Key alternatives include ESLint, Biome, and textlint, which offer different features and levels of customization for code formatting and linting tasks.

No comments so far, maybe you want to be first?
Gu