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
@@ -3,6 +3,7 @@
|
||||
* Handles font discovery, caching, and retrieval for the plugin
|
||||
*/
|
||||
|
||||
import { spawn } from 'child_process';
|
||||
import type { obsidianTypstPDFExport } from '../../main';
|
||||
import { ExportErrorHandler } from '../core/ExportErrorHandler';
|
||||
import { FALLBACK_FONTS } from '../core/constants';
|
||||
@@ -16,8 +17,6 @@ export class FontManager {
|
||||
*/
|
||||
async cacheAvailableFonts(): Promise<void> {
|
||||
try {
|
||||
const { spawn } = require('child_process');
|
||||
|
||||
const typstPath = this.plugin.resolveExecutablePath(this.plugin.settings.typstPath, 'typst');
|
||||
|
||||
// Use spawn instead of exec for security - arguments passed separately
|
||||
|
||||
Reference in new issue
Block a user