src/language-js/comments.js/handleVariableDeclaratorComments
function handleVariableDeclaratorComments({
  comment,
  enclosingNode,
  followingNode,
}) {
  if (
    assignmentLikeNodeTypes.has(enclosingNode?.type) &&
    followingNode &&
    (complexExprNodeTypes.has(followingNode.type) || isBlockComment(comment))
  ) {
    addLeadingComment(followingNode, comment);
    return true;
  }
  return false;
}