title: Why do I get 'Unexpected use of 'location' no-restricted-globals'?
body: <p>In my reactjs code I got:</p>
  
  <pre><code>const {
    children,
    location: { pathname },
  } = this.props;
  
  let path = location.pathname;
  </code></pre>
  
  <p>Also using the react router module in this component. How to fix this error?</p>