Skip to content

Commit bf365b0

Browse files
committed
Fix lint
1 parent b29d7ac commit bf365b0

File tree

1 file changed

+5
-3
lines changed
  • packages/webdoc-default-template/helper/renderer-plugins

1 file changed

+5
-3
lines changed

packages/webdoc-default-template/helper/renderer-plugins/signature.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ exports.signaturePlugin = {
5151
if (doc.returns) {
5252
signature += ` → {${
5353
(doc.returns || [])
54-
.map((returns) =>
55-
(returns.dataType ? linker.linkTo(returns.dataType, undefined, {htmlSafe: false}) : ""))
54+
.map((returns) => (returns.dataType ?
55+
linker.linkTo(returns.dataType, undefined, {htmlSafe: false}) :
56+
""))
5657
.join(", ")
5758
}} `;
5859
}
@@ -71,7 +72,8 @@ exports.signaturePlugin = {
7172
}
7273
if (doc.implements) {
7374
signature += `\nimplements ${
74-
(doc.implements || []).map((ifc) => linker.linkTo(ifc, undefined, {htmlSafe: false})).join(", ")
75+
(doc.implements || [])
76+
.map((ifc) => linker.linkTo(ifc, undefined, {htmlSafe: false})).join(", ")
7577
}`;
7678
}
7779
break;

0 commit comments

Comments
 (0)