Merge branch 'patch-release'

# Conflicts:
#	.git-blame-ignore-revs
#	package.json
#	yarn.lock
This commit is contained in:
fisker committed 2023-03-24 16:24:07 +08:00
commit dd779dae55
11 files changed
+87 -81

No files matched your search

+36
View File
@@ -1,3 +1,39 @@
# 2.8.7
[diff](https://github.com/prettier/prettier/compare/2.8.6...2.8.7)
#### Allow multiple decorators on same getter/setter ([#14584](https://github.com/prettier/prettier/pull/14584) by [@fisker](https://github.com/fisker))
<!-- prettier-ignore -->
```ts
// Input
class A {
@decorator()
get foo () {}
@decorator()
set foo (value) {}
}
// Prettier 2.8.6
SyntaxError: Decorators cannot be applied to multiple get/set accessors of the same name. (5:3)
3 | get foo () {}
4 |
> 5 | @decorator()
| ^^^^^^^^^^^^
6 | set foo (value) {}
7 | }
// Prettier 2.8.7
class A {
@decorator()
get foo() {}
@decorator()
set foo(value) {}
}
```
# 2.8.6
[diff](https://github.com/prettier/prettier/compare/2.8.5...2.8.6)