From 42d448295c3c103a53946229be77a207304136a8 Mon Sep 17 00:00:00 2001 From: Georgii Dolzhykov Date: Sun, 22 Mar 2020 00:01:50 +0200 Subject: [PATCH] update blog post --- website/blog/2020-03-21-2.0.0.md | 102 ++++++++++++++++--------------- 1 file changed, 52 insertions(+), 50 deletions(-) diff --git a/website/blog/2020-03-21-2.0.0.md b/website/blog/2020-03-21-2.0.0.md index 0d83b3f83ffe..d403728a9f37 100644 --- a/website/blog/2020-03-21-2.0.0.md +++ b/website/blog/2020-03-21-2.0.0.md @@ -6,6 +6,8 @@ title: "Prettier 2.0 “2020”" Better defaults, a better CLI and better heuristics. Oh, and TypeScript 3.8. +After a long and careful consideration, we decided to change the default values for the `trailingComma`, `arrowParens`, and `endOfLine` options. We made the CLI more intuitive. And we've finally dropped support for Node versions older than 10, which had grown to become a huge maintenance hassle and an obstacle for contributors. Read below in details. + ## Highlights @@ -97,7 +99,7 @@ Previously, [configuration overrides](/docs/en/configuration.html#configuration- #### Drop support for Node versions older than 10 ([#6908](https://github.com/prettier/prettier/pull/6908) by [@fisker](https://github.com/fisker)) -The minimal required Node version now is 10.13.0. +The minimal required Node version now is 10.13.0. For our contributors this means, there is no need anymore to jump through hoops to make tests pass on Node 4. #### Change default value for `trailingComma` to `es5` ([#6963](https://github.com/prettier/prettier/pull/6963) by [@fisker](https://github.com/fisker)) @@ -750,7 +752,7 @@ Even though index signatures without type annotations or with multiple parameter ```ts // Input type A = { [key: string] }; -type B = { [a: string, b: string]: string; }; +type B = { [a: string, b: string]: string; }; // Prettier stable type A = { [key: string]: }; @@ -1698,78 +1700,78 @@ type Type2 implements A, B & C { ```md -- a - b - c - d +- a + b + c + d e -- a - b - c - d +- a + b + c + d e -1. a - b - c - d +1. a + b + c + d e -1. a - b - c - d +1. a + b + c + d e -- a - b - c - d +- a + b + c + d e -- a - b - c - d +- a + b + c + d e -1. a - b - c - d +1. a + b + c + d e -1. a - b - c - d +1. a + b + c + d e -- a - b - c - d +- a + b + c + d e -- a - b - c - d +- a + b + c + d e -1. a - b - c - d +1. a + b + c + d e -1. a - b - c - d +1. a + b + c + d e ```