Configure ESLint with Prettier and TypeScript support.

- Baseline existing errors to warnings.
- Fix Image to PDF tool for HEIC and WebP inputs.
- Apply linting auto-fixes.
This commit is contained in:
abdullahalam123
2026-01-05 19:04:47 +05:30
parent c9b9482cb6
commit a347cbda3d
10 changed files with 1188 additions and 605 deletions

View File

@@ -306,19 +306,19 @@ export const renderPageThumbnails = async (toolId: any, pdfDoc: any) => {
// Event Listeners
decrementBtn.addEventListener('click', (e) => {
e.stopPropagation();
let current = parseInt(angleInput.value) || 0;
const current = parseInt(angleInput.value) || 0;
updateRotation(current - 1);
});
incrementBtn.addEventListener('click', (e) => {
e.stopPropagation();
let current = parseInt(angleInput.value) || 0;
const current = parseInt(angleInput.value) || 0;
updateRotation(current + 1);
});
angleInput.addEventListener('change', (e) => {
e.stopPropagation();
let val = parseInt((e.target as HTMLInputElement).value) || 0;
const val = parseInt((e.target as HTMLInputElement).value) || 0;
updateRotation(val);
});
angleInput.addEventListener('click', (e) => e.stopPropagation());
@@ -331,7 +331,7 @@ export const renderPageThumbnails = async (toolId: any, pdfDoc: any) => {
rotateBtn.innerHTML = '<i data-lucide="rotate-cw" class="w-4 h-4"></i>';
rotateBtn.addEventListener('click', (e) => {
e.stopPropagation();
let current = parseInt(angleInput.value) || 0;
const current = parseInt(angleInput.value) || 0;
updateRotation(current + 90);
});