https://twitter.com/therealyashsriv/status/1219691914523545601

We shouldn't generate code that might cause browser or linting to complain.

https://github.com/facebook/react/blob/0cf22a56a18790ef34c71bef14f64695c0498619/packages/legacy-events/SyntheticEvent.js#L259

It's also just a confusing pattern at best.
node,
      declaredDependenciesNode,
      reactiveHook,
      reactiveHookName,
      isEffect,
    ) {
      if (isEffect && node.async) {
        reportProblem({
          node: node,
          message:
            `Effect callbacks are synchronous to prevent race conditions. ` +
            `Put the async function inside:\n\n` +
            'useEffect(() => {\n' +
            '  async function fetchData() {\n' +
            '     You can await here\n' +
            '    const response = await MyAPI.getData(someId);\n' +
            '     ...\n' +
            '  }\n' +
            '  fetchData();\n' +
            `}, [someId]);  Or [] if effect doesn't need props or state\n\n` +
            'Learn more about data fetching with Hooks: https:reactjs.org/link/hooks-data-fetching',
        });
      }
      
      const scope = scopeManager.acquire(node);