From 8149852ff99e95f69fcdd1f18c3e38d967e55a5f Mon Sep 17 00:00:00 2001 From: Lucas Duailibe Date: Mon, 13 May 2019 15:10:25 -0300 Subject: [PATCH] Update CHANGELOG.unreleased.md --- CHANGELOG.unreleased.md | 112 ++++++++++++++++++++-------------------- 1 file changed, 56 insertions(+), 56 deletions(-) diff --git a/CHANGELOG.unreleased.md b/CHANGELOG.unreleased.md index 848e557a..00a24771 100644 --- a/CHANGELOG.unreleased.md +++ b/CHANGELOG.unreleased.md @@ -2,20 +2,20 @@ Format: -- Category: Title ([#PR] by [@user]) +### Category: Title ([#PR] by [@user]) - Description +Description - ``` - // Input - Code Sample +``` +// Input +Code Sample - // Output (Prettier stable) - Code Sample +// Output (Prettier stable) +Code Sample - // Output (Prettier master) - Code Sample - ``` +// Output (Prettier master) +Code Sample +``` Details: @@ -23,64 +23,64 @@ Details: Examples: -- TypeScript: Correctly handle `//` in TSX ([#5728] by [@JamesHenry]) +### TypeScript: Correctly handle `//` in TSX ([#5728] by [@JamesHenry]) - Previously, putting `//` as a child of a JSX element in TypeScript led to an error - because it was interpreted as a comment. Prettier master fixes this issue. +Previously, putting `//` as a child of a JSX element in TypeScript led to an error +because it was interpreted as a comment. Prettier master fixes this issue. - -- JavaScript: Don't break simple template literals ([#5979] by [@jwbay]) +### JavaScript: Don't break simple template literals ([#5979] by [@jwbay]) - - ```js - // Input - console.log(chalk.white(`Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${coverageSummary.total.lines.pct}%`)) + +```js +// Input +console.log(chalk.white(`Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${coverageSummary.total.lines.pct}%`)) - // Output (Prettier stable) - console.log( - chalk.white( - `Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${ - coverageSummary.total.lines.pct - }%` - ) - ); +// Output (Prettier stable) +console.log( + chalk.white( + `Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${ + coverageSummary.total.lines.pct + }%` + ) +); - // Output (Prettier master) - console.log( - chalk.white( - `Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${coverageSummary.total.lines.pct}%` - ) - ); - ``` +// Output (Prettier master) +console.log( + chalk.white( + `Covered Lines below threshold: ${coverageSettings.lines}%. Actual: ${coverageSummary.total.lines.pct}%` + ) +); +``` -- TypeScript: Keep trailing comma in tsx type parameters ([#6115] by [@sosukesuzuki]) +### TypeScript: Keep trailing comma in tsx type parameters ([#6115] by [@sosukesuzuki]) - Previously, a trailing comma after single type parameter in arrow function was cleaned up. The formatted result is valid as ts, but is invalid as tsx. Prettier master fixes this issue. +Previously, a trailing comma after single type parameter in arrow function was cleaned up. The formatted result is valid as ts, but is invalid as tsx. Prettier master fixes this issue. - - ```tsx - // Input - type G = any; - const myFunc = (arg1: G) => false; + +```tsx +// Input +type G = any; +const myFunc = (arg1: G) => false; - // Output (Prettier stable) - type G = any; - const myFunc = (arg1: G) => false; +// Output (Prettier stable) +type G = any; +const myFunc = (arg1: G) => false; - // Output (prettier master) - type G = any; - const myFunc = (arg1: G) => false; - ``` +// Output (prettier master) +type G = any; +const myFunc = (arg1: G) => false; +```