diff --git a/.eslintrc.js b/.eslintrc.js index 361cdf3..6142132 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -26,6 +26,7 @@ module.exports = { "import/extensions": 0, "import/no-extraneous-dependencies": ["error", { devDependencies: true }], "@typescript-eslint/triple-slash-reference": "off", + "@typescript-eslint/no-explicit-any": "off", }, settings: { "import/parsers": { diff --git a/src/components/layout/InView.tsx b/src/components/layout/InView.tsx index 3799228..b3dc15c 100644 --- a/src/components/layout/InView.tsx +++ b/src/components/layout/InView.tsx @@ -1,10 +1,4 @@ -/* -const headerEntry = useIntersectionObserver(headerRef, {}); - const isHeaderVisible = !!headerEntry?.isIntersecting; - */ - import { useEffect, useRef } from "preact/hooks"; - import useIntersectionObserver from "hooks/useIntersectionObserver"; type Props = { @@ -21,6 +15,7 @@ const InView = ({ onInView, ...props }: Props) => { if (isHeaderVisible) { onInView(); } + // eslint-disable-next-line react-hooks/exhaustive-deps }, [isHeaderVisible]); return
;