chore: eslint 10 (#26490)

This commit is contained in:
Daniel Dietzler
2026-02-24 14:24:18 +01:00
committed by GitHub
parent 30f6d4439e
commit 55ee9f76da
22 changed files with 195 additions and 179 deletions
@@ -223,7 +223,7 @@
}
void tracker.invoke(async () => {
let hasNext = false;
let hasNext: boolean;
if ($slideshowState === SlideshowState.PlaySlideshow && $slideshowNavigation === SlideshowNavigation.Shuffle) {
hasNext = order === 'previous' ? slideshowHistory.previous() : slideshowHistory.next();
@@ -42,16 +42,7 @@
}
function ratioSelected(ratio: AspectRatioOption): boolean {
let currentRatioRotated;
if (ratio.value === 'original') {
const { width, height } = transformManager.cropImageSize;
// Account for rotation when comparing to original
if (isRotated) {
currentRatioRotated = `${height}:${width}`;
}
currentRatioRotated = `${width}:${height}`;
}
currentRatioRotated = rotatedRatio(ratio);
const currentRatioRotated = rotatedRatio(ratio);
return transformManager.cropAspectRatio === currentRatioRotated;
}