title: how to fix `error 'JSX' is not defined no-undef` after upgrade to typescript 4.4.2
body: <p>I have lots of error <code>error  'x' is not defined no-undef</code> after upgrade to typescript 4.4.2 from typescript 3.8.2. one of example is <code>error  'JSX' is not defined                no-undef</code> and I take a deeper look, most of is from <code>declarations.d.ts</code> how can I solve it?</p>
  <pre><code>&quot;typescript&quot;: &quot;4.4.2&quot;
  &quot;@typescript-eslint/eslint-plugin&quot;: &quot;4.31.0&quot;,
  &quot;@typescript-eslint/parser&quot;: &quot;4.31.0&quot;,
  </code></pre>