title: How to not use the first parameter of a method call and still pass JSLint?
body: <p>I'm having to call a method with two parameters, but I'm only using the 2nd one. My code looks like this:</p>
  
  <pre><code>  function trapEvent(resolve, reject) {
  
      event_callback = function (evt) {
        evt.stopPropagation();
        if (allowDefault !== true) {
          evt.preventDefault();
        }
        cancelResolver();
        callback_promise = new Promise()
          .cancellable()
          .then(function () {
            return callback(evt);
          })
          .then(null, function (error) {
            if (!(error instanceof Promise.CancellationError)) {
              canceller();
              reject(error);
            }
          });
      };
  
      util.startListenTo(target, type, event_callback, useCapture);
    }
  
    return new Promise(trapEvent, canceller);
  </code></pre>
  
  <p>As I'm "locking" my event inside a promise, which can only be rejected or cancelled, I'm never using the <code>resolve</code> method, which JSlint rightfully complains about. However, according to <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise" rel="nofollow">MDN es6 Promise spec</a>, I need to provide both <code>resolve</code> and <code>reject</code> in the Promise callback method.</p>
  
  <p><strong>Question:</strong><br>
  How can I make this method pass while keeping <code>resolve</code>?</p>