🚫 This rule is disabled in the following configs: ✅ flat/recommended
, ✅
recommended
.
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.
const Promise = require('bluebird')
const x = Promise.resolve('good')
const x = Promise.resolve('bad')