From 22e9d52c919b58eae19086ae5645ff8a096017ba Mon Sep 17 00:00:00 2001 From: StevenMia <166844090+StevenMia@users.noreply.github.com> Date: Mon, 29 Apr 2024 04:10:45 +0800 Subject: [PATCH] chore: fix some typos in comments (#16221) Signed-off-by: StevenMia --- website/blog/2017-04-13-1.0.0.md | 4 ++-- website/blog/2018-02-26-1.11.0.md | 2 +- website/blog/2020-03-21-2.0.0.md | 2 +- website/blog/2020-08-24-2.1.0.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/website/blog/2017-04-13-1.0.0.md b/website/blog/2017-04-13-1.0.0.md index 56b17f1be..6bea4b52e 100644 --- a/website/blog/2017-04-13-1.0.0.md +++ b/website/blog/2017-04-13-1.0.0.md @@ -877,7 +877,7 @@ function f( ```ts // Before type UploadState = - // The upload hasnt begun yet + // The upload hasn't begun yet | A | // The upload timed out B @@ -886,7 +886,7 @@ type UploadState = // After type UploadState = - // The upload hasnt begun yet + // The upload hasn't begun yet | A // The upload timed out | B diff --git a/website/blog/2018-02-26-1.11.0.md b/website/blog/2018-02-26-1.11.0.md index a70753e60..5d4201b7f 100644 --- a/website/blog/2018-02-26-1.11.0.md +++ b/website/blog/2018-02-26-1.11.0.md @@ -1077,7 +1077,7 @@ This was not intended to be allowed, and has been reverted (in this case, you wo #### Respect EditorConfig when `--config` is passed ([#3992] by [@josephfrazier]) -This is a minor change to the the way `.editorconfig` files are handled. Previously when `--config` was provided, `.editorconfig` was ignored. +This is a minor change to the way `.editorconfig` files are handled. Previously when `--config` was provided, `.editorconfig` was ignored. --- diff --git a/website/blog/2020-03-21-2.0.0.md b/website/blog/2020-03-21-2.0.0.md index 02f79eaec..0e820b886 100644 --- a/website/blog/2020-03-21-2.0.0.md +++ b/website/blog/2020-03-21-2.0.0.md @@ -754,7 +754,7 @@ type A = { [key in B] }; #### Fix edge cases of printing index signatures ([#7228](https://github.com/prettier/prettier/pull/7228) by [@cola119](https://github.com/cola119)) -Even though index signatures without type annotations or with multiple parameters aren't valid TypeScript, the TypeScript parser supports this syntax. In line with the [previous error recovery efforts](https://prettier.io/blog/2019/11/09/1.19.0.html#enable-formatting-even-if-there-are-parse-errors-in-some-cases-6816-by-thorn0-and-the-babel-team), Prettier now makes sure its output still can be parsed in these cases. Previous versions produced unparseable code. +Even though index signatures without type annotations or with multiple parameters aren't valid TypeScript, the TypeScript parser supports this syntax. In line with the [previous error recovery efforts](https://prettier.io/blog/2019/11/09/1.19.0.html#enable-formatting-even-if-there-are-parse-errors-in-some-cases-6816-by-thorn0-and-the-babel-team), Prettier now makes sure its output still can be parsed in these cases. Previous versions produced unparsable code. ```ts diff --git a/website/blog/2020-08-24-2.1.0.md b/website/blog/2020-08-24-2.1.0.md index 7145720d8..36ca65f41 100644 --- a/website/blog/2020-08-24-2.1.0.md +++ b/website/blog/2020-08-24-2.1.0.md @@ -512,7 +512,7 @@ SyntaxError: Unexpected token (1:1) // Prettier 2.0
< 5; -// Prettier 2.0 second outout +// Prettier 2.0 second output SyntaxError: Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...? (1:9) > 1 |
< 5; | ^