web: migrate eslint to flat config, replacing removed next lint

This commit is contained in:
2026-08-31 02:50:00 +02:00
parent 2a0e17e039
commit 6d0932e44c
5 changed files with 11 additions and 4 deletions
+1
View File
@@ -36,6 +36,7 @@ export const Header = () => {
// hide menu on path change
useEffect(() => {
// eslint-disable-next-line react-hooks/set-state-in-effect -- intentional: close the menu when navigation changes the path
setShowMenu(false);
}, [pathname]);
@@ -24,6 +24,7 @@ export function SearchShell({
const [inputValue, setInputValue] = useState(initialQuery);
const [isPending, startTransition] = useTransition();
const lastPushedRef = useRef(initialQuery);
// eslint-disable-next-line react-hooks/refs -- deliberate: compares against the last debounced push; a stale read only briefly extends the spinner
const fetching = isPending || inputValue !== lastPushedRef.current;
const pushQuery = useDebouncedCallback((next: string) => {