Skip to content

Commit

Permalink
fix(website): fix eslint remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
tmorin committed Feb 25, 2024
1 parent 22fa95e commit c896d18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/generator/website/resource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class MdtoHtmlResource extends TransformedResource {
).replace(/\/index$/g, ""),
content: marked
.parse(contentAsMd)
// @ts-ignore
// @ts-expect-error - marked types are wrong
.replace(/README\.md/g, "")
.replace(/\.md/g, ".html"),
summary: SideSummaryAsHtml.create(
Expand Down
2 changes: 1 addition & 1 deletion source/generator/website/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class SideSummaryAsHtml implements Summary {
- [<%= m.readme.label %>](<%= m.readme.href %>)<% } %>
<% } %>`,
)({ sitemap: this.sitemap })
// @ts-ignore
// @ts-expect-error - marked types are wrong
return marked.parse(summaryAsMd, {})
}
}

0 comments on commit c896d18

Please sign in to comment.