Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 542 Bytes

File metadata and controls

16 lines (13 loc) · 542 Bytes

Preserve parentheses for JSDoc type casting with extra trailing spaces and asterisks (#7011 by @evilebottnawi)

// Input
const foo = /** @type {!Foo} **/ (baz);
const bar = /** @type {!Foo}  * * */(baz);

// Prettier stable
const foo = /** @type {!Foo} **/ baz;
const bar = /** @type {!Foo}  * * */ baz;

// Prettier master
const foo = /** @type {!Foo} **/ (baz);
const bar = /** @type {!Foo}  * * */ (baz);