title: Can I have react-hooks/exhaustive-deps for a custom hook?
body: <p>I wrote this hook (there could be bugs, I haven't used it yet):</p>
  <pre><code>import { useCallback, useEffect } from 'react';
  import _throttle from 'lodash/throttle';
  
  export function useThrottledCallback(cb, delay, ...deps) {
    const callback = useCallback(_throttle(cb, delay), deps);
  
    useEffect(() =&gt; {
      const lastCallback = callback;
  
      return () =&gt; lastCallback.cancel();
    }, [callback]);
  
    return callback;
  }
  </code></pre>
  <p>Is there a way I can make the exhaustive-deps rule lint usages of this hook?</p>
  <pre><code>useThrottledCallback(() =&gt; (a + b + c)}, 100, [])
  </code></pre>
  <p>In this usage, I'd like to be notified that <code>a</code>, <code>b</code>, and <code>c</code> need to be in the dependency array.</p>