prettier
3.10.1 · 12 Nov 2026MIT196.9M / weekRepositoryHomepagenpmAtom feed
Your version
2.8.8 is the newest release of 2.x.
Release note
Improve formatting for empty tuple types
// Input
type Foo =
Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
? Foo3
: Foo4;
// Prettier 2.5.0
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
]
? Foo3
: Foo4;
// Prettier 2.5.0 (tailingCommma = all)
// Invalid TypeScript code
type Foo = Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends [
,
]
? Foo3
: Foo4;
// Prettier 2.5.1
type Foo =
Foooooooooooooooooooooooooooooooooooooooooooooooooooooooooo extends []
? Foo3
: Foo4;
Fix compatibility with Jest inline snapshot test
A internal change in Prettier@v2.5.0 accidentally breaks the Jest inline snapshot test.
Support Glimmer's named blocks
Prettier already supported this feature, but it converted empty named blocks to self-closing, which is not supported by the Glimmer compiler.
See: Glimmer's named blocks.
// Input <Component> <:named></:named> </Component> // Prettier 2.5.0 <Component> <:named /> </Component> // Prettier 2.5.1 <Component> <:named></:named> </Component>
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.