chore(prettier): fix all files

This commit is contained in:
Elian Doran
2025-01-09 18:07:02 +02:00
parent 19ee861699
commit 4cbb529fd4
571 changed files with 23226 additions and 23940 deletions

View File

@@ -6,7 +6,7 @@ import markdownService from "../../services/import/markdown.js";
function getIconUsage() {
const iconClassToCountMap: Record<string, number> = {};
for (const {value: iconClass, noteId} of becca.findAttributes('label', 'iconClass')) {
for (const { value: iconClass, noteId } of becca.findAttributes("label", "iconClass")) {
if (noteId.startsWith("_")) {
continue; // ignore icons of "system" notes since they were not set by the user
}
@@ -16,7 +16,7 @@ function getIconUsage() {
}
for (const clazz of iconClass.trim().split(/\s+/)) {
if (clazz === 'bx') {
if (clazz === "bx") {
continue;
}
@@ -31,7 +31,7 @@ function renderMarkdown(req: Request) {
const { markdownContent } = req.body;
return {
htmlContent: markdownService.renderToHtml(markdownContent, '')
htmlContent: markdownService.renderToHtml(markdownContent, "")
};
}