lib/rules/capitalized-comments.js
function isConsecutiveComment(comment) {
            const previousTokenOrComment = sourceCode.getTokenBefore(comment, { includeComments: true });

            return Boolean(
                previousTokenOrComment &&
                ["Block", "Line"].indexOf(previousTokenOrComment.type) !== -1
            );
        }
function isConsecutiveComment(comment) {
            const previousTokenOrComment = sourceCode.getTokenBefore(comment, { includeComments: true });

            return Boolean(
                previousTokenOrComment &&
                ["Block", "Line"].indexOf(previousTokenOrComment.type) !== -1
            );
        }
function isConsecutiveComment ( comment ) { const previousTokenOrComment = sourceCode . getTokenBefore ( comment , { includeComments : true } ) ; return Boolean ( previousTokenOrComment && [ "Block" , "Line" ] . indexOf ( previousTokenOrComment . type ) !== - 1 ) ; }
Determine if a comment follows another comment.

@param {ASTNode} comment The comment to check.
@returns {boolean} True if the comment follows a valid comment.
Determine if a comment follows another comment .