Add missing parentheses for decorator (#14393)
This commit is contained in:
1 parent
2a5b391cc0
commit
bc098779c4
5 files changed
+216
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#### Add missing parentheses for decorator (#14393 by @fisker)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```jsx
|
||||
// Input
|
||||
class Person {
|
||||
@(myDecoratorArray[0])
|
||||
greet() {}
|
||||
}
|
||||
|
||||
// Prettier stable
|
||||
class Person {
|
||||
@myDecoratorArray[0]
|
||||
greet() {}
|
||||
}
|
||||
|
||||
// Prettier main
|
||||
class Person {
|
||||
@(myDecoratorArray[0])
|
||||
greet() {}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user