title: Return const -- Expected to return a value at the end of arrow function
body: <p>I have a component that sets up a service and I need to receive that service in other components of my application.</p>
  <p>Here's the setup code:</p>
  <pre><code>export const setupRemote = () =&gt; {
    if (isRemoteAvailable) {
      try {
        ...
  
        const allowAppInstance = SetupConfig.start(remoteInstance);
  
        window.setup = {
          someconfig: anothercode,
          code: somecode,
        };
      } catch (e) {
        console.error(e);
      }
    }
  };
  </code></pre>
  <p>I need to return the <strong>const allowAppInstance</strong>, and I tried to do that</p>
  <pre><code>export const setupRemote = () =&gt; {
    if (isRemoteAvailable) {
      try {
        ...
  
        const allowAppInstance = SetupConfig.start(remoteInstance);
  
        window.setup = {
          someconfig: anothercode,
          code: somecode,
        };
  
        return { 
           allowAppInstance
        }
      } catch (e) {
        console.error(e);
      }
    }
  };
  </code></pre>
  <p>But I can't use the return, in es-lint this error occurs <em>-- Expected to return a value at the end of arrow function</em></p>
  <p>How can I return this const to use in other parts of my application?</p>