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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
478 B
Markdown
Raw Normal View History

#### Print leading semicolon before type cast comments (#18751 by @fisker)
<!-- prettier-ignore -->
```jsx
// 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)
```