Skip to content

Commit

Permalink
Regenerate
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Nov 21, 2021
1 parent f324059 commit b2ae0f4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions website/blog/2021-11-21-2.5.0.md
Expand Up @@ -240,26 +240,35 @@ class Foo {

### TypeScript

#### Fix formatting for tagged template decorators ([#11717](https://github.com/prettier/prettier/pull/11717) by [@sosukesuzuki](https://github.com/sosukesuzuki))
#### Remove unnecessary parentheses for decorators ([#11717](https://github.com/prettier/prettier/pull/11717), [#11849](https://github.com/prettier/prettier/pull/11849) by [@sosukesuzuki](https://github.com/sosukesuzuki))

<!-- prettier-ignore -->
```tsx
// Input
class Test {
@foo`bar`
test: string = "test"
test1: string = "test"

@test().x("global").y()
test2: string = "test";
}

// Prettier 2.4
class Test {
@(foo`bar`)
test: string = "test"

@(test().x("global").y())
test2: string = "test";
}

// Prettier 2.5
class Test {
@foo`bar`
test: string = "test"

@test().x("global").y()
test2: string = "test";
}
```

Expand Down

0 comments on commit b2ae0f4

Please sign in to comment.