Merge branch 'patch-release'
# Conflicts: # .git-blame-ignore-revs # package.json # yarn.lock
This commit is contained in:
commit
dd779dae55
11 files changed
+87
-81
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user