lib/rules/prefer-template.js
function fixNonStringBinaryExpression(fixer, node) {
            const topBinaryExpr = getTopConcatBinaryExpression(node.parent);

            if (hasOctalEscapeSequence(topBinaryExpr)) {
                return null;
            }

            return fixer.replaceText(topBinaryExpr, getTemplateLiteral(topBinaryExpr, null, null));
        }
function fixNonStringBinaryExpression(fixer, node) {
            const topBinaryExpr = getTopConcatBinaryExpression(node.parent);

            if (hasOctalEscapeSequence(topBinaryExpr)) {
                return null;
            }

            return fixer.replaceText(topBinaryExpr, getTemplateLiteral(topBinaryExpr, null, null));
        }
function fixNonStringBinaryExpression ( fixer , node ) { const topBinaryExpr = getTopConcatBinaryExpression ( node . parent ) ; if ( hasOctalEscapeSequence ( topBinaryExpr ) ) { return null ; } return fixer . replaceText ( topBinaryExpr , getTemplateLiteral ( topBinaryExpr , null , null ) ) ; }
Returns a fixer object that converts a non-string binary expression to a template literal
@param {SourceCodeFixer} fixer The fixer object
@param {ASTNode} node A node that should be converted to a template literal
@returns {Object} A fix for this binary expression
Returns a fixer object that converts a non - string binary expression to a template literal