lib/rules/lines-around-comment.js
function getCommentLineNums(comments) {
    const lines = [];

    comments.forEach(token => {
        const start = token.loc.start.line;
        const end = token.loc.end.line;

        lines.push(start, end);
    });
    return lines;
}
function getCommentLineNums(comments) {
    const lines = [];

    comments.forEach(token => {
        const start = token.loc.start.line;
        const end = token.loc.end.line;

        lines.push(start, end);
    });
    return lines;
}
function getCommentLineNums ( comments ) { const lines = [ ] ; comments . forEach ( token => { const start = token . loc . start . line ; const end = token . loc . end . line ; lines . push ( start , end ) ; } ) ; return lines ; }
Return an array with with any line numbers that contain comments.
@param {Array} comments An array of comment tokens.
@returns {Array} An array of line numbers.
Return an array with with any line numbers that contain comments .