src/common/util.js/hasNodeIgnoreComment
function hasNodeIgnoreComment(node) {
  return (
    node &&
    ((node.comments &&
      node.comments.length > 0 &&
      node.comments.some(
        (comment) => isNodeIgnoreComment(comment) && !comment.unignore
      )) ||
      node.prettierIgnore)
  );
}