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
-3
View File
@@ -1,3 +0,0 @@
{
"extends": "next/core-web-vitals"
}
+8
View File
@@ -0,0 +1,8 @@
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
export default [
{
ignores: [".next/**", "node_modules/**", "src/gql/**", "next-env.d.ts"],
},
...nextCoreWebVitals,
];
+1 -1
View File
@@ -6,7 +6,7 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"lint": "eslint .",
"test": "vitest run",
"test:watch": "vitest",
"codegen": "graphql-codegen",
+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) => {