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 executable path resolution and output path preparation
|
||||
*/
|
||||
|
||||
import { spawnSync } from 'child_process';
|
||||
import { TFile } from 'obsidian';
|
||||
import type { obsidianTypstPDFExport } from '../../main';
|
||||
import { SecurityUtils } from '../core/SecurityUtils';
|
||||
@@ -26,8 +27,6 @@ export class PathResolver {
|
||||
}
|
||||
|
||||
// Try to find the executable using which command
|
||||
const { spawnSync } = require('child_process');
|
||||
|
||||
// Use platform-specific command: 'where' on Windows, 'which' on Unix
|
||||
const whichCommand = process.platform === 'win32' ? 'where' : 'which';
|
||||
|
||||
|
||||
Reference in new issue
Block a user