lib/rules/lines-around-comment.js
function isCommentAtParentEnd(token, nodeType) {
            const parent = getParentNodeOfToken(token);

            return parent && isParentNodeType(parent, nodeType) &&
                    parent.loc.end.line - token.loc.end.line === 1;
        }
function isCommentAtParentEnd(token, nodeType) {
            const parent = getParentNodeOfToken(token);

            return parent && isParentNodeType(parent, nodeType) &&
                    parent.loc.end.line - token.loc.end.line === 1;
        }
function isCommentAtParentEnd ( token , nodeType ) { const parent = getParentNodeOfToken ( token ) ; return parent && isParentNodeType ( parent , nodeType ) && parent . loc . end . line - token . loc . end . line === 1 ; }
Returns whether or not comments are at the parent end or not.
@param {token} token The Comment token.
@param {string} nodeType The parent type to check against.
@returns {boolean} True if the comment is at parent end.
Returns whether or not comments are at the parent end or not .