prettier
3.10.1 · 12 Nov 2026MIT196.9M / weekRepositoryHomepagenpmAtom feed
1.19.1 is the newest release of 1.x.
In short
7 new13 fixed12 changed
Release note
JavaScript: Support
htmJavaScript: Support logical assignment operator
JavaScript: Do not add quotes for interpolation-only attributes in
htmltemplatesJavaScript: Add missing parenthesis for binary in optional member
JavaScript: Fix a parser regression
JavaScript: Improve union types with leading comments
TypeScript: Inline method decorators should stay inlined
TypeScript: Do not change
moduleintonamespaceand break/hug their body correctlyTypeScript: Do not add invalid semicolon for construct in interface with
// prettier-ignoreHTML: Do not touch comments
HTML: Preserve bogus comments
<! ... >/<? ... >HTML: Support IE conditional start/end comment
HTML: Do not add extra indentation for js template in
<script>HTML: Leading spaces for the first interpolation in
<textarea>are sensitiveHTML: Preserve content for element in
<pre>correctlyHTML: Correct column for error code frame
Angular: Support interpolation in attributes
Angular: Do not print colon for
thenandelsein*ngIfAngular/Vue: Do not normalize tag/attribute names (#5526, #5549)
Vue: Preserve custom block
Vue: Remove unnecessary semicolon and preserve necessary semicolon for single expression in event bindings
Vue: Group
slot-scopecorrectlyMarkdown: Do not trim content in inline-math
Markdown: Add more category to CJK regex
SCSS: Update parser for performance improvements
YAML: Preserve the first document head end marker
---API: Resolve
ignoredfield correctly in.getFileInfo()with absolute filePathAPI/CLI: Fix a bug that caches for
.jsconfig files did not respect.clearConfigCache()API/CLI: Ignore
unsetin.editorconfigCLI: Report status code
0for--list-different+--writeStandalone: Fix a regression for browser compatibility
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.