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

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

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