Fix comment in abstract methods (#12185)
This commit is contained in:
1 parent
e3efd11401
commit
72ac2bbe5f
5 files changed
+78
No files matched your search
@@ -0,0 +1,26 @@
|
||||
#### Fix misplaced argument comment in abstract methods (#12185 by @duailibe)
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
```ts
|
||||
// Input
|
||||
abstract class Foo {
|
||||
abstract bar(
|
||||
/** comment explaining userId param */
|
||||
userId
|
||||
)
|
||||
}
|
||||
|
||||
// Prettier stable
|
||||
abstract class Foo {
|
||||
abstract bar(userId);
|
||||
/** comment explaining userId param */
|
||||
}
|
||||
|
||||
// Prettier main
|
||||
abstract class Foo {
|
||||
abstract bar(
|
||||
/** comment explaining userId param */
|
||||
userId
|
||||
);
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user