title: Replace Promise
body: <p>I have a piece of code like this:</p>
  
  <pre><code>export default function imageProcessing() {
    return async function (ctx, next) {
      /* some code is here */
      const request = new Promise(resolve =&gt; protocol.get(imageUrl, resolve));
      const result = await request;
      if (result.statusCode &gt;= 400) {
        ctx.status = result.statusCode;
        return next();
      }
      ctx.status = result.statusCode;
      /* some more code in between */
      ctx.type = `image/${format}`;
      ctx.body = result.pipe(transformer);
    };
  }
  </code></pre>
  
  <p>Eslint is showing me some error(because promise is not allowed).
  Error:</p>
  
  <blockquote>
    <p>ESLint: Promise is not supported in Opera Mobile 12, Opera Mini all,
    IE Mobile 10, IE 9, Blackberry Browser 7 (compat/compat)</p>
  </blockquote>
  
  <p>I can't modify/avoid that because it is strictly prohibited. How can I replace Promise? Can someone rectify this?</p>