lib/rules/multiline-comment-style.js
function convertToBlock(firstComment, commentLinesList) {
            const initialOffset = sourceCode.text.slice(firstComment.range[0] - firstComment.loc.start.column, firstComment.range[0]);
            const blockLines = commentLinesList.map(line => line.trim());

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

            return `/* ${blockLines.join(`\n${initialOffset}   `)} */`;
        }
function convertToBlock ( firstComment , commentLinesList ) { const initialOffset = sourceCode . text . slice ( firstComment . range [ 0 ] - firstComment . loc . start . column , firstComment . range [ 0 ] ) ; const blockLines = commentLinesList . map ( line => line . trim ( ) ) ; return ` ${ blockLines . join ( ` \n ${ initialOffset } ` ) } ` ; }
Converts a comment into bare-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 bare-block form
Converts a comment into bare - block form