isInsideTimeout = (node) => {
  const isFunctionExpression =
    node.type === 'FunctionExpression' ||
    node.type === 'ArrowFunctionExpression'
  const parent = node.parent || {}
  const callee = parent.callee || {}
  const name = (callee.property && callee.property.name) || callee.name || ''
  const parentIsTimeout = TIMEOUT_WHITELIST.includes(name)
  const isInCB = isFunctionExpression && parentIsTimeout
  return isInCB
}
Rule: no-callback-in-promise
Avoid calling back inside of a promise