Applies Obsidian linter and fixes code issues
Applies linting rules to the codebase and resolves identified issues. Addresses: - Renamed headings in settings tabs to improve UI consistency and style. - Resolved require() style imports - Added void operator to ensure correct promise handling. - Replaced deprecated Obsidian API calls. - Enforces sentence case to enhance UI text consistency.
This commit is contained in:
37 files changed
+4314
-872
No files matched your search
@@ -13,10 +13,12 @@ export class TypographySection implements ModalSection {
|
||||
render(containerEl: HTMLElement, state: ModalState, app?: App): void {
|
||||
if (app) this.app = app;
|
||||
this.container = containerEl.createDiv('export-section');
|
||||
this.container.createEl('h3', { text: 'Typography' });
|
||||
new Setting(this.container)
|
||||
.setName('Typography')
|
||||
.setHeading();
|
||||
|
||||
// Create font settings asynchronously
|
||||
this.createFontSettings(state);
|
||||
void this.createFontSettings(state);
|
||||
this.createFontSizeSettings(state);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user