Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix some typos in comments #16221

Merged
merged 1 commit into from Apr 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/blog/2017-04-13-1.0.0.md
Expand Up @@ -877,7 +877,7 @@ function f(
```ts
// Before
type UploadState<E, EM, D> =
// The upload hasnt begun yet
// The upload hasn't begun yet
| A
| // The upload timed out
B
Expand All @@ -886,7 +886,7 @@ type UploadState<E, EM, D> =

// After
type UploadState<E, EM, D> =
// The upload hasnt begun yet
// The upload hasn't begun yet
| A
// The upload timed out
| B
Expand Down
2 changes: 1 addition & 1 deletion website/blog/2018-02-26-1.11.0.md
Expand Up @@ -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.

---

Expand Down
2 changes: 1 addition & 1 deletion website/blog/2020-03-21-2.0.0.md
Expand Up @@ -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.

<!-- prettier-ignore -->
```ts
Expand Down
2 changes: 1 addition & 1 deletion website/blog/2020-08-24-2.1.0.md
Expand Up @@ -512,7 +512,7 @@ SyntaxError: Unexpected token (1:1)
// Prettier 2.0
<div/> < 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 | <div /> < 5;
| ^
Expand Down