lib/rules/multiline-comment-style.js
function convertToStarredBlock(firstComment, commentLinesList) {
            const initialOffset = sourceCode.text.slice(firstComment.range[0] - firstComment.loc.start.column, firstComment.range[0]);
            const starredLines = commentLinesList.map(line => `${initialOffset} *${line}`);

            return `\n${starredLines.join("\n")}\n${initialOffset} `;
        }
function convertToStarredBlock(firstComment, commentLinesList) {
            const initialOffset = sourceCode.text.slice(firstComment.range[0] - firstComment.loc.start.column, firstComment.range[0]);
            const starredLines = commentLinesList.map(line => `${initialOffset} *${line}`);

            return `\n${starredLines.join("\n")}\n${initialOffset} `;
        }
function convertToStarredBlock ( firstComment , commentLinesList ) { const initialOffset = sourceCode . text . slice ( firstComment . range [ 0 ] - firstComment . loc . start . column , firstComment . range [ 0 ] ) ; const starredLines = commentLinesList . map ( line => ` ${ initialOffset } ${ line } ` ) ; return ` \n ${ starredLines . join ( "\n" ) } \n ${ initialOffset } ` ; }
Converts a comment into starred-block form
@param {Token} firstComment The first comment of the group being converted
@param {string[]} commentLinesList A list of lines to appear in the new starred-block comment
@returns {string} A representation of the comment value in starred-block form, excluding start and end markers
Converts a comment into starred - block form