lib/rules/no-multi-spaces-in-script.js
function formatReportedCommentValue(token) {
            const valueLines = token.value.split("\n")
            const value = valueLines[0]
            const formattedValue = `${value.slice(0, 12)}...`

            return valueLines.length === 1 && value.length <= 12
                ? value
                : formattedValue
        }
function formatReportedCommentValue(token) {
            const valueLines = token.value.split("\n")
            const value = valueLines[0]
            const formattedValue = `${value.slice(0, 12)}...`

            return valueLines.length === 1 && value.length <= 12
                ? value
                : formattedValue
        }
function formatReportedCommentValue ( token ) { const valueLines = token . value . split ( "\n" ) const value = valueLines [ 0 ] const formattedValue = ` ${ value . slice ( 0 , 12 ) } ` return valueLines . length === 1 && value . length <= 12 ? value : formattedValue }
Formats value of given comment token for error message by truncating its length.
@param {Token} token comment token
@returns {string} formatted value
@private
Formats value of given comment token for error message by truncating its length .