Fix comment in abstract methods (#12185)

This commit is contained in:
Lucas Duailibe authored and GitHub committed 2022-01-29 19:25:53 -03:00
1 parent e3efd11401
commit 72ac2bbe5f
5 files changed
+78

No files matched your search

+26
View File
@@ -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
);
}
```