update blog post
This commit is contained in:
1 parent
8f7164fdf4
commit
4314e9cacc
1 file changed
+52
-50
@@ -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
|
||||
@@ -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 {
|
||||
<!-- prettier-ignore -->
|
||||
```md
|
||||
<!-- Input -->
|
||||
- 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 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
|
||||
```
|
||||
|
||||
|
||||
Reference in new issue
Block a user