From d39ddd189e40e5587741274ade5002e61bddee85 Mon Sep 17 00:00:00 2001 From: Alexander Kucera Date: Sun, 9 Nov 2025 13:59:06 +0100 Subject: [PATCH] Refines inline comments in plugin code Consolidates existing comments by removing redundancy and improves clarity for ESLint directives, enhancing code readability and maintenance. --- main.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.ts b/main.ts index cdcfbac..88b6b92 100644 --- a/main.ts +++ b/main.ts @@ -79,7 +79,6 @@ export class obsidianTypstPDFExport extends Plugin { `); // Add ribbon icon using custom icon - // eslint-disable-next-line obsidianmd/ui/sentence-case -- "PDF" is an acronym and "Typst" is a proper noun this.addRibbonIcon('typst-pdf-export', 'Export to PDF with Typst', (event: MouseEvent) => { this.eventHandlers.handleRibbonClick(event); }); @@ -239,9 +238,7 @@ export class obsidianTypstPDFExport extends Plugin { } - // Obsidian supports async onunload and will await it properly, even though - // the Plugin type definition shows void return. This ensures cleanup completes. - // eslint-disable-next-line @typescript-eslint/no-misused-promises + // eslint-disable-next-line @typescript-eslint/no-misused-promises -- Obsidian supports async onunload and will await it properly, even though the Plugin type definition shows void return. This ensures cleanup completes. async onunload(): Promise { // Use lifecycle manager for cleanup await this.lifecycle.cleanup();