<!--
  Please provide a clear and concise description of what the bug is. Include
  screenshots if needed. Please test using the latest version of the relevant
  React packages to make sure your issue has not already been fixed.
-->

**Version:** eslint-plugin-react-hooks@1.7.0

## Steps To Reproduce

1. Create a component with local state
2. Create a useEffect with a variable inside, that points to the `typeof` of the state variable

<!--
  Your bug will get fixed much faster if we can run your code and it doesn't
  have dependencies other than React. Issues without reproduction steps or
  code examples may be immediately closed as not actionable.
-->

Link to code example:

https://codesandbox.io/s/nervous-williamson-2i99l?file=/src/App.tsx:210-261

## The current behavior
`react-exhaustive-deps` complains that the state variable should be included in the dependency list

## The expected behavior
`react-exhaustive-deps` shouldn't complain that the state variable should be included in the dependency list because it's value is never used.
},
    {
      code: normalizeIndent`
        function Hello() {
          const [state, setState] = useState(0);
          useEffect(() => {
            const handleResize = () => setState(window.innerWidth);
            window.addEventListener('resize', handleResize);
            return () => window.removeEventListener('resize', handleResize);
          });
        }
      `,
    },
    
    {
      code: normalizeIndent`
        function Example({ prop }) {
          const bar = useEffect(<T>(a: T): Hello => {
            prop();
          }, [prop]);
        }
      `,
    },
    
    {
      code: normalizeIndent`
        function Example() {
          useEffect(() => {
            arguments
          }, [])