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

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

            return parent && isParentNodeType(parent, nodeType) &&
                    token.loc.start.line - parent.loc.start.line === 1;
        }
function isCommentAtParentStart ( token , nodeType ) { const parent = getParentNodeOfToken ( token ) ; return parent && isParentNodeType ( parent , nodeType ) && token . loc . start . line - parent . loc . start . line === 1 ; }
Returns whether or not comments are at the parent start 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 start.
Returns whether or not comments are at the parent start or not .