fix(lint): clear remaining biome errors (unused code, optional chains, non-null assertions, effect deps)

This commit is contained in:
SnapOtter
2026-06-21 01:49:48 +08:00
parent 7561f2a8c3
commit 19dc6ba554
20 changed files with 17 additions and 26 deletions
@@ -6,6 +6,7 @@ export function RouteAnnouncer() {
const isFirstRender = useRef(true);
const announcerRef = useRef<HTMLDivElement>(null);
// biome-ignore lint/correctness/useExhaustiveDependencies: pathname is the intentional trigger for re-announcing on route change
useEffect(() => {
if (isFirstRender.current) {
isFirstRender.current = false;