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.
- Set both PATH and Path environment variables for Windows compatibility
- Add tilde (~) path expansion for user home directories
- Implement actual path deduplication using Set instead of just filtering empty strings
- Properly split and combine existing PATH with additional platform-specific paths
Ensures spawned typst processes can find executables reliably across all platforms.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Fixed vault.adapter operations to use vault-relative paths instead of absolute paths
- Added platform detection to cache data for invalidation on OS changes
- Enhanced error recovery with corrupted cache detection and automatic regeneration
- Improved cache validation with structure and content checks
- Added platform-specific PATH building for better Typst executable discovery
- Enhanced Windows, macOS, and Linux font path resolution
- Added comprehensive fallback mechanisms for all error scenarios
- Improved type safety and error handling throughout
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Replace path.join operations with PathUtils methods
- Remove path module import, use PathUtils for all path operations
- Already used vault.adapter correctly for file operations
- Maintain consistency with other migrated files
- Replace all 'any' types with proper TypeScript types throughout codebase
- Fix processedResult parameters to use PreprocessingResult interface
- Update UI modal types: app parameter (App), pluginDefaults (obsidianTypstPDFExportSettings)
- Fix dropdown components to use DropdownComponent from Obsidian API
- Replace plugin 'any' types with obsidianTypstPDFExport throughout converters
- Fix margins parameter to use proper interface structure
- Update fs parameter to use proper Node.js fs module type
- Improve error handling with proper unknown type and type guards
- Remove unused PdfEmbedProcessor and clean up imports
Achieves complete type safety with zero remaining 'any' types across src/ directory.
Provides better IDE support, compile-time error detection, and maintainability.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Extract all font management functionality from main.ts into a focused
FontManager module to improve maintainability and reduce complexity.
- Create FontManager.ts with font discovery and caching logic
- Extract cacheAvailableFonts() and getCachedFonts() methods
- Add getAvailableFonts() wrapper method for consistent API
- Delegate font operations from main.ts to FontManager
- Fix initialization order: FontManager before PluginLifecycle
- Make resolveExecutablePath() public for FontManager access
- Reduce main.ts by ~115 lines while maintaining all functionality
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>