How can i set an eslint rule for no-undefined?
<p>I am trying to make a simple function which will redirect the user to the home page, as the name say. I can't get rid of this error: </p>

<blockquote>
  <p>*ReferenceError: location is not defined</p>
</blockquote>

<p>Can someone help me with this, using eslint?</p>

<pre><code>export function goToHomePage() {
  location = '/';
}
</code></pre>

<p>I am using backbone.js MVC</p>