Solving linter error no-undef for document : <p>I am using <code>airbnb</code> extension for linting my React Project. Now, in my <code>index.js</code> I have:</p>

<pre><code>import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

ReactDOM.render(
  &lt;App /&gt;,
  document.getElementById('root'),
);
</code></pre>

<p>linter says:</p>

<pre><code>no-undef 'document' is not defined.at line 8 col 3
</code></pre>

<p>How can I solve this problem?</p>
