<p dir="auto">React version: <code class="notranslate">16.13.0</code><br>
eslint-plugin-react-hooks version: <code class="notranslate">4.0.2</code></p>
<p dir="auto">When I upgraded from <code class="notranslate">^2.0.0</code> to <code class="notranslate">4.0.2</code>, this bug started happening:</p>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">When you optionally chain, there is a bug with <code class="notranslate">exhaustive-deps</code>:</p>
<ol dir="auto">
<li>With no optional chaining, there is no issue</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24969218/82704534-9aecef80-9c2a-11ea-8eb9-b312b7cb951a.png"><img width="463" alt="Screen Shot 2020-05-22 at 12 48 55 PM" src="https://user-images.githubusercontent.com/24969218/82704534-9aecef80-9c2a-11ea-8eb9-b312b7cb951a.png" style="max-width: 100%;"></a></p>
<ol start="2" dir="auto">
<li>With optional chaining, we see an eslint error</li>
</ol>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24969218/82704613-c8399d80-9c2a-11ea-91d0-b4f361114852.png"><img width="462" alt="Screen Shot 2020-05-22 at 12 50 12 PM" src="https://user-images.githubusercontent.com/24969218/82704613-c8399d80-9c2a-11ea-91d0-b4f361114852.png" style="max-width: 100%;"></a></p>
<p dir="auto">The error is</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="React Hook useEffect has a missing dependency: 'test?.includes'. Either include it or remove the dependency array. eslint(react-hooks/exhaustive-deps)"><pre class="notranslate"><code class="notranslate">React Hook useEffect has a missing dependency: 'test?.includes'. Either include it or remove the dependency array. eslint(react-hooks/exhaustive-deps)
</code></pre></div>
<p dir="auto">Which auto fixes to:<br>
<a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/24969218/82704749-19499180-9c2b-11ea-9b5b-c539ac7beb45.png"><img width="465" alt="Screen Shot 2020-05-22 at 12 52 25 PM" src="https://user-images.githubusercontent.com/24969218/82704749-19499180-9c2b-11ea-9b5b-c539ac7beb45.png" style="max-width: 100%;"></a></p>
<p dir="auto">(in addition to being incorrect, this causes issues with the eslint <code class="notranslate">eslint@typescript-eslint/unbound-method</code> rule)</p>
<p dir="auto">Please add these files with full license text to the NPM distribution packages. Unfortunately, from the legal standpoint, simply specifying the name of the license is not enough, because it's unclear where to get the EXACT (legally binding) text of that license. This is a major roadblock on our way to using the module, seriously.</p>
<p dir="auto">Thanks a lot for the great code, and thanks in advance for fixing this blocker.</p>