chore: enforce brackets for if clause and for/while loops

This commit is contained in:
Ilia Mashkov
2026-04-17 13:05:36 +03:00
parent cfaff46d59
commit 12e8bc0a89
25 changed files with 213 additions and 70 deletions
+3 -1
View File
@@ -136,7 +136,9 @@ const estimatedTotalSize = $derived.by(() => {
// Add estimated size for unloaded rows
const unloadedRows = totalRows - rowCount;
if (unloadedRows <= 0) return loadedSize;
if (unloadedRows <= 0) {
return loadedSize;
}
// Estimate the size of unloaded rows
const estimateFn = typeof itemHeight === 'function'