code: function hasCommentAfter(node, sourceCode) {
    return sourceCode.getCommentsAfter(node)
      .some(comment => comment.loc.start.line === node.loc.end.line)
  }
docs: Checks whether `node` has a comment (that starts) on the same line as `node` (ends).