Skip to content

Commit

Permalink
update blog post
Browse files Browse the repository at this point in the history
  • Loading branch information
thorn0 committed Mar 21, 2020
1 parent 8f7164f commit 4314e9c
Showing 1 changed file with 52 additions and 50 deletions.
102 changes: 52 additions & 50 deletions website/blog/2020-03-21-2.0.0.md
Expand Up @@ -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.

<!--truncate-->

## Highlights
Expand Down Expand Up @@ -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))

Expand Down Expand Up @@ -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]: };
Expand Down Expand Up @@ -1698,78 +1700,78 @@ type Type2 implements A, B & C {
<!-- prettier-ignore -->
```md
<!-- Input -->
- a
b
c
d
- a

This comment has been minimized.

Copy link
@kachkaev

kachkaev Mar 21, 2020

Member

🚨

Removed trailing spaces are necessary – you've been probably tricked by VSCode. I got into this trap too while working on #7819

This comment has been minimized.

Copy link
@thorn0

thorn0 Mar 21, 2020

Author Member

Thanks. I'll fix it now.

This comment has been minimized.

Copy link
@kachkaev

kachkaev Mar 21, 2020

Member

Done in #7819 (forgot to mention that here, sorry)

This comment has been minimized.

Copy link
@thorn0

thorn0 Mar 21, 2020

Author Member

Oh! I've committed already.

This comment has been minimized.

Copy link
@kachkaev

kachkaev Mar 21, 2020

Member

No worries! Cleaned #7819 from conflicts just now 😉

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

<!-- Prettier stable -->
- 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

<!-- Prettier master -->
- 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
```
Expand Down

0 comments on commit 4314e9c

Please sign in to comment.