-
-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Labels
Description
It has been requested that we support these use cases in the no-callback-in-promise rule
// TODO: support safe callbacks
// 'whatever.then((err) => { process.nextTick(() => cb()) })',
// 'whatever.then((err) => { setImmediate(() => cb())) })',
// 'whatever.then((err) => setImmediate(() => cb()))',
// 'whatever.then((err) => process.nextTick(() => cb()))',
// 'whatever.then((err) => process.nextTick(cb))',
// 'whatever.then((err) => setImmediate(cb))',
huynhducduy