Skip to content

Commit

Permalink
change log
Browse files Browse the repository at this point in the history
  • Loading branch information
Yang Su committed Apr 22, 2019
1 parent c7a4410 commit d038dc6
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions CHANGELOG.unreleased.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,40 @@ Examples:
```
-->


- JavaScript: Improved multiline closure compiler typecast comment detection ([#6070] by [@yangsu])

Previously, multiline closure compiler typecast comments with lines that
start with * weren't flagged correctly and the subsequent parenthesis were
stripped. Prettier master fixes this issue.

<!-- prettier-ignore --\>
```js
// Input
const style =/**
* @type {{
* width: number,
* }}
*/({
width,
});
// Output (Prettier stable)
const style =/**
* @type {{
* width: number,
* }}
*/ {
width,
};
// Output (Prettier master)
const style =/**
* @type {{
* width: number,
* }}
*/({
width,
});
```

0 comments on commit d038dc6

Please sign in to comment.