function checkCallExpression({ callee }, node) {
      if (
        isInPromise(context, node) &&
        callee.type === 'MemberExpression' &&
        callee.object.name === 'Promise'
      ) {
        if (callee.property.name === 'resolve') {
          context.report({ node, messageId: 'resolve' })
        } else if (!allowReject && callee.property.name === 'reject') {
          context.report({ node, messageId: 'reject' })
        }
      }
    }
Checks a call expression, reporting if necessary.
@param callExpression The call expression.
@param node The node to report.