refactor: clean up ESLint warnings and code quality

- Remove unused imports and variables across multiple files
- Fix prefer-const warnings by changing let to const
- Remove unused catch block variables or convert to parameter-less catch blocks
- Update package-lock.json with TypeScript-ESLint v8 dependencies
- Reduce ESLint warnings from 42 to 22 (remaining are necessary 'any' types)
- All remaining warnings are for Obsidian API compatibility

Fixes improve code quality while maintaining functionality.
Remaining 'any' type warnings are appropriate for Obsidian plugin development.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-10 17:47:17 +02:00
1 parent c40f5af1fb
commit 9345198337
15 files changed
+349 -41

No files matched your search

+1 -1
View File
@@ -81,7 +81,7 @@ export class PluginLifecycle {
try {
const vaultPath = (this.plugin.app.vault.adapter as any).basePath;
const cleanupManager = TempDirectoryManager.create(vaultPath, this.plugin.app.vault.configDir);
const result = cleanupManager.cleanupAllTempDirs();
const _result = cleanupManager.cleanupAllTempDirs();
if (this.plugin.settings.behavior.debugMode) {
// Debug logging was here but empty in original
-1
View File
@@ -7,7 +7,6 @@ import {
App,
PluginSettingTab,
Setting,
Notice,
normalizePath
} from 'obsidian';
import type { obsidianTypstPDFExport } from '../../main';