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
@@ -46,7 +46,9 @@ let isAboveMiddle = $state(false);
let containerWidth = $state(0);
const checkPosition = throttle(() => {
if (!wrapper) return;
if (!wrapper) {
return;
}
const rect = wrapper.getBoundingClientRect();
const viewportMiddle = innerHeight / 2;