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:
15 files changed
+349
-41
No files matched your search
@@ -36,7 +36,7 @@ export class FileDiscovery {
|
||||
filePath: expectedOutputPath,
|
||||
found: true
|
||||
};
|
||||
} catch (error) {
|
||||
} catch {
|
||||
// File not found with expected name, try to find alternatives
|
||||
return await this.findAlternativeFile(outputDir, expectedFileName, expectedOutputPath);
|
||||
}
|
||||
@@ -82,7 +82,7 @@ export class FileDiscovery {
|
||||
filePath: actualOutputPath,
|
||||
found: true
|
||||
};
|
||||
} catch (finalError) {
|
||||
} catch {
|
||||
return {
|
||||
filePath: '',
|
||||
found: false,
|
||||
|
||||
Reference in new issue
Block a user