Prettier is an opinionated code formatter that parses source code and reprints it using consistent formatting rules, including automatic line wrapping based on maximum line length. It supports many languages such as JavaScript, TypeScript, CSS (SCSS, Less), HTML (Vue, Angular), GraphQL, JSON, Markdown, and YAML, and can be used via editor integrations, pre-commit hooks, or in CI to standardize code style.
Project status
- Prettier/prettier appears actively maintained, with a recent GitHub push dated 2026-06-07, and multiple version updates in 2026 (3.8.1, 3.8.2, 3.8.3).
- Update cadence looks ongoing but not strictly regular, with updates on 2026-01-21 (3.8.1), 2026-04-10 (3.8.2), and 2026-04-15 (3.8.3), suggesting frequent follow-up during that period.
AI summary generated Today
Recent updates
3.8.3
1 month agoPrettier 3.8.3 ships a SCSS-specific formatting fix for the `if()` function, preventing Prettier from introducing a trailing comma in certain `if(sass(condition): value; else: value)` constructs. The release notes only mention this SCSS change, while the code diff also includes dependency upgrades and a broader SCSS detection tweak.
3.8.2
1 month agoPrettier 3.8.2 ships with support for Angular v21.2. The code changes focus on Angular-specific formatting improvements, including new handling for Angular control flow syntax (exhaustive switch checks). It also bumps several Angular parser/compiler dependencies to match the supported Angular version.
Features3.8.1
4 months agoPrettier 3.8.1 primarily updates TypeScript plugin typings so that plugin modules expose a typed `printers` export instead of leaving it untyped or missing. The release notes only mention this change explicitly, and the code diff shows the typing generation logic was expanded to include printer type declarations wherever a plugin provides them.
Features3.8.0
4 months agoPrettier 3.8.0 adds support for Angular v21.1. The code diff shows multiple Angular-specific formatting improvements (control flow, expressions, and Markdown embedded formatting), alongside internal release-script changes.
BreakingFeatures3.7.4
6 months agoPrettier 3.7.4 documents formatting fixes for LWC interpolation quoting and two TypeScript union type comment rendering bugs. However, the code diff shows several additional changes beyond the release notes, mostly around the build system internals (module export shape during bundling, evaluation logic), plus a few dependency and tooling/version bumps.
3.7.3
6 months agoPrettier 3.7.3 is a targeted patch release that addresses a regression where `prettier.getFileInfo()` broke VSCode extension plugin loading. The change is primarily an internal refactor around how `getFileInfo` loads builtin and configured plugins, with follow-on adjustments in CLI call sites.
3.7.2
6 months agoRelease 3.7.2 documents three targeted formatting fixes: switching quote handling in JavaScript string printing, preserving quotes for embedded HTML attribute values, and fixing comment placement for empty TypeScript type literals. The code changes for those documented items are present in the diff. However, the diff also includes additional JavaScript formatting logic changes and dependency bumps that are not mentioned in the release notes.
3.7.1
6 months agoPrettier 3.7.1 is a small patch release focused on fixing a performance regression in the document printer when formatting large files. The release notes only mention the doc printer performance fix.
3.7.0
6 months agoPrettier 3.7.0 introduces several plugin API enhancements around preprocessing, comment attachment, and ignored-node printing, plus some tooling and build-related updates. However, the provided release notes content contains no actual change descriptions (only external links), so the main changes are only visible from the code diff. Most user-visible items in the diff are additive, but there is at least one potential compatibility risk around the callback signature for `plugin.printer.canAttachComment`.
Features3.6.2
11 months agoPrettier 3.6.2 includes a Markdown formatting fix intended to add a missing blank line around code blocks. The diff also shows a wider set of changes, including updates to parsing-related dependencies (Babel, Flow, OXC) and corresponding test/diagnostic updates.