title: "The keyword yield is reserved" eslint error
body: <p>I'm attempting to use Webpack 1.13.12 and eslint 3.11.0 and eslint-plugin-promise 3.4.0.  I'm trying to use the answer <a href="https://stackoverflow.com/questions/35921605/using-yield-with-superagent-returns-request-object-instead-of-response">in this question</a> to get Superagent to yield the result of a web service call.</p>
  
  <pre><code>import agent from 'superagent';
  require('superagent-as-promised')(agent);
  import Promise from 'promise';
  
  const API_URL = 'http://localhost/services/merchant';
  
  export function createVendorCall() {
      const responsePromise = yield Promise.resolve(agent.put(`${API_URL}/create`));
  
      let response = responsePromise.next();
  
      return response.body;
  }
  </code></pre>
  
  <p>When I attempt to lint this, eslint complains that <code>The keyword 'yield' is reserved.</code>  I've tried setting <code>require-yield</code> to 0 in my .eslintrc.json file, but it still won't lint.  Using inline comments to disable eslint doesn't work either.</p>
  
  <p>What should I do?  Am I using Superagent the wrong way, or is there a rule I have to disable?</p>
  
  <p>EDIT: This question was marked as a duplicate of <a href="https://stackoverflow.com/questions/20834113/syntaxerror-unexpected-identifier-generators-in-es6">this question</a>.  That question, however, was not using a linter and had a different error message.  The problem here is that eslint is flagging what appears to be valid syntax as an error.</p>