Files
test-repo/changelog_unreleased/javascript/18751.md
T

478 B

Print leading semicolon before type cast comments (#18751 by @fisker)

// Input
;/** @type {string[]} */ (['foo', 'bar']).forEach(doStuff)

// Prettier stable (--no-semi, first format)
/** @type {string[]} */ ;(["foo", "bar"]).forEach(doStuff)

// Prettier stable (--no-semi, second format)
/** @type {string[]} */ ;["foo", "bar"].forEach(doStuff)

// Prettier main (--no-semi)
;/** @type {string[]} */ (["foo", "bar"]).forEach(doStuff)