<p dir="auto">React version:<br>
17.0.2</p>
<p dir="auto">eslint-plugin-react-hooks version:<br>
4.2.0</p>
<h2 dir="auto">Steps To Reproduce</h2>
<ol dir="auto">
<li>import useEfect from react library</li>
<li>type <code class="notranslate">useEfect(</code></li>
</ol>
<p dir="auto">Link to code example:<br>
<a href="https://github.com/LeonardoRick/podcastr">https://github.com/LeonardoRick/podcastr</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/17517057/115921727-4792ab00-a452-11eb-8b46-82b43dcd5600.png"><img src="https://user-images.githubusercontent.com/17517057/115921727-4792ab00-a452-11eb-8b46-82b43dcd5600.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">output:</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="[Error - 16:40:28] ESLint stack trace:
[Error - 16:40:28] TypeError: Cannot read property 'type' of undefined
Occurred while linting D:\GIT\podcastr\src\Components\Player\index.tsx:16
    at visitCallExpression (D:\GIT\podcastr\node_modules\eslint-plugin-react-hooks\cjs\eslint-plugin-react-hooks.development.js:1736:24)
    at D:\GIT\podcastr\node_modules\eslint\lib\linter\safe-emitter.js:45:58
    at Array.forEach (&lt;anonymous&gt;)
    at Object.emit (D:\GIT\podcastr\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (D:\GIT\podcastr\node_modules\eslint\lib\linter\node-event-generator.js:256:26)
    at NodeEventGenerator.applySelectors (D:\GIT\podcastr\node_modules\eslint\lib\linter\node-event-generator.js:285:22)
    at NodeEventGenerator.enterNode (D:\GIT\podcastr\node_modules\eslint\lib\linter\node-event-generator.js:299:14)
    at CodePathAnalyzer.enterNode (D:\GIT\podcastr\node_modules\eslint\lib\linter\code-path-analysis\code-path-analyzer.js:711:23)
    at D:\GIT\podcastr\node_modules\eslint\lib\linter\linter.js:954:32
    at Array.forEach (&lt;anonymous&gt;)"><pre class="notranslate">[Error - 16:40:28] ESLint stack trace:
[Error - 16:40:28] TypeError: Cannot <span class="pl-c1">read</span> property <span class="pl-s"><span class="pl-pds">'</span>type<span class="pl-pds">'</span></span> of undefined
Occurred <span class="pl-k">while</span> linting D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\s</span>rc<span class="pl-cce">\C</span>omponents<span class="pl-cce">\P</span>layer<span class="pl-cce">\i</span>ndex.tsx:16
    at visitCallExpression (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint-plugin-react-hooks<span class="pl-cce">\c</span>js<span class="pl-cce">\e</span>slint-plugin-react-hooks.development.js:1736:24)
    at D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\s</span>afe-emitter.js:45:58
    at Array.forEach (<span class="pl-k">&lt;</span>anonymous<span class="pl-k">&gt;</span>)
    at Object.emit (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\s</span>afe-emitter.js:45:38)
    at NodeEventGenerator.applySelector (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\n</span>ode-event-generator.js:256:26)
    at NodeEventGenerator.applySelectors (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\n</span>ode-event-generator.js:285:22)
    at NodeEventGenerator.enterNode (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\n</span>ode-event-generator.js:299:14)
    at CodePathAnalyzer.enterNode (D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\c</span>ode-path-analysis<span class="pl-cce">\c</span>ode-path-analyzer.js:711:23)
    at D:<span class="pl-cce">\G</span>IT<span class="pl-cce">\p</span>odcastr<span class="pl-cce">\n</span>ode_modules<span class="pl-cce">\e</span>slint<span class="pl-cce">\l</span>ib<span class="pl-cce">\l</span>inter<span class="pl-cce">\l</span>inter.js:954:32
    at Array.forEach (<span class="pl-k">&lt;</span>anonymous<span class="pl-k">&gt;</span>)</pre></div>
<p dir="auto">error line:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="      // eslint-plugin-react-hooks\cjs\eslint-plugin-react-hooks.development.js:1736:24:
      switch (callback.type) {"><pre class="notranslate">      <span class="pl-c">// eslint-plugin-react-hooks\cjs\eslint-plugin-react-hooks.development.js:1736:24:</span>
      <span class="pl-k">switch</span> <span class="pl-kos">(</span><span class="pl-s1">callback</span><span class="pl-kos">.</span><span class="pl-c1">type</span><span class="pl-kos">)</span> <span class="pl-kos">{</span><span class="pl-kos"></span></pre></div>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">No errors showing, since I'm currently typing the code</p>
<p dir="auto">eslint-plugin-react-hooks version: 4.2.0</p>
<h2 dir="auto">Steps To Reproduce</h2>
<p dir="auto">I know it shouldn't exist in production code, but it's annoying while editing some files.</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import React, { useEffect } from &quot;react&quot;;

const App = () =&gt; {
  useEffect(); // &lt;-
  return null;
};

export default App;"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-v">React</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-s1">useEffect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"react"</span><span class="pl-kos">;</span>

<span class="pl-k">const</span> <span class="pl-v">App</span> <span class="pl-c1">=</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-en">useEffect</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-c">// &lt;-</span>
  <span class="pl-k">return</span> <span class="pl-c1">null</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">;</span>

<span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-v">App</span><span class="pl-kos">;</span></pre></div>
<p dir="auto">Link to code example: <a href="https://codesandbox.io/s/polished-sun-3wr27?file=/src/App.js" rel="nofollow">https://codesandbox.io/s/polished-sun-3wr27?file=/src/App.js</a></p>
<h2 dir="auto">The current behavior</h2>
<p dir="auto">ESLint crashed.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="TypeError: Cannot read property 'type' of undefined"><pre class="notranslate"><code class="notranslate">TypeError: Cannot read property 'type' of undefined
</code></pre></div>
<h2 dir="auto">The expected behavior</h2>
<p dir="auto">ESLint doesn't crash but reports an error instead.</p>