Apply eslint overrides for capitalization in UI
Disables sentence-case rule for UI elements where proper nouns are used, ensuring intended capitalization is preserved for acronyms and font names. Adds comments to justify each override and re-enables the rule after relevant sections.
This commit is contained in:
2 files changed
+7
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user