diff --git a/main.ts b/main.ts index ca2cc3c..cdcfbac 100644 --- a/main.ts +++ b/main.ts @@ -79,6 +79,7 @@ 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); }); diff --git a/src/ui/modal/sections/TypographySection.ts b/src/ui/modal/sections/TypographySection.ts index 30aa5af..ff2c0d7 100644 --- a/src/ui/modal/sections/TypographySection.ts +++ b/src/ui/modal/sections/TypographySection.ts @@ -164,6 +164,8 @@ export class TypographySection implements ModalSection { } private addFallbackBodyFonts(dropdown: DropdownComponent, state: ModalState, fontType: 'body' | 'heading'): void { + /* eslint-disable obsidianmd/ui/sentence-case */ + // Font names are proper nouns and must maintain original capitalization dropdown .addOption('Concourse OT', 'Concourse OT') .addOption('Times New Roman', 'Times New Roman') @@ -174,6 +176,7 @@ export class TypographySection implements ModalSection { .addOption('Cambria', 'Cambria') .addOption('Palatino', 'Palatino') .addOption('Book Antiqua', 'Book Antiqua'); + /* eslint-enable obsidianmd/ui/sentence-case */ // Set the appropriate value based on font type const currentValue = fontType === 'body' @@ -192,6 +195,8 @@ export class TypographySection implements ModalSection { } private addFallbackMonospaceFonts(dropdown: DropdownComponent, state: ModalState): void { + /* eslint-disable obsidianmd/ui/sentence-case */ + // Font names are proper nouns and must maintain original capitalization dropdown .addOption('Source Code Pro', 'Source Code Pro') .addOption('Courier New', 'Courier New') @@ -205,6 +210,7 @@ export class TypographySection implements ModalSection { .onChange((value: string) => { state.updateTemplateVariables({ monospaceFont: value }); }); + /* eslint-enable obsidianmd/ui/sentence-case */ } validate(): ValidationResult {