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
@@ -299,7 +299,7 @@ export class PandocTypstConverter {
|
||||
this.processCleanupHandler = () => {
|
||||
// Only cleanup if not already disposed to avoid double-cleanup
|
||||
if (!this.isDisposed) {
|
||||
this.cleanup();
|
||||
void this.cleanup();
|
||||
}
|
||||
};
|
||||
|
||||
@@ -364,14 +364,14 @@ export class PandocTypstConverter {
|
||||
if (!this.tempDir) {
|
||||
if (this.pandocOptions.vaultBasePath) {
|
||||
// Use TempDirectoryManager for plugin temp directories
|
||||
const configDir = this.plugin?.app?.vault?.configDir || '.obsidian';
|
||||
const configDir = this.plugin?.app?.vault?.configDir;
|
||||
const tempManager = TempDirectoryManager.create(this.pandocOptions.vaultBasePath, configDir, undefined, this.plugin?.app);
|
||||
this.tempDir = await tempManager.ensureTempDir('pandoc');
|
||||
} else {
|
||||
// Fallback to system temp if plugin folder not available - use TempDirectoryManager fallback
|
||||
const pathUtils = new PathUtils(this.plugin.app);
|
||||
const vaultPath = pathUtils.getVaultPath();
|
||||
const configDir = this.plugin?.app?.vault?.configDir || '.obsidian';
|
||||
const configDir = this.plugin?.app?.vault?.configDir;
|
||||
const tempManager = new TempDirectoryManager({ vaultPath, configDir, app: this.plugin.app });
|
||||
this.tempDir = await tempManager.ensureTempDir('pandoc');
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user