title: Assign object to a variable before exporting as module default warning
body: <pre><code>    import axios from 'axios'
  
  const baseUrl = 'http://localhost:3001/persons';
  
  const getAll = () =&gt; {
      return axios.get(baseUrl);
  }
  
  const create = (newObject) =&gt; {
      return axios.post(baseUrl,newObject);
  }
  
  export default {
      getAll:getAll,
      create:create
  }
  </code></pre>
  <p>Using axios to fetch data from server(in reactjs from json server), everything works fine but console shows this warning:
  <code>Line 13:1:  Assign object to a variable before exporting as module default.</code>
  How to remove this warning??</p>