title: Eslint Parsing error: Unexpected token
body: <p>I'm getting the error <code>Parsing error: Unexpected token ..</code> from <strong>eslint</strong> for this snippet. What's wrong with that?</p>
  
  <pre><code>const Public = ({ loggingIn, authenticated, component, ...rest }) =&gt; (
      &lt;Route {...rest} render={(props) =&gt; {
          if (loggingIn) return &lt;div&gt;&lt;/div&gt;
          return !authenticated
              ? (React.createElement(component, { ...props, loggingIn, authenticated }))
              : (&lt;Redirect to="/" /&gt;);
      }} /&gt;
  )
  </code></pre>