Pattern: Missing Promise
constructor before use
Issue: -
Ensure that Promise
is included fresh in each file instead of relying on the
existence of a native promise implementation. Helpful if you want to use
bluebird
or if you don't intend to use an ES6 Promise shim.
Example of correct code:
var Promise = require('bluebird')
var x = Promise.resolve('good')
Example of incorrect code:
var x = Promise.resolve('bad')