lib/rules/quotes.js
function isUsingFeatureOfTemplateLiteral(node) {
            const hasTag = node.parent.type === "TaggedTemplateExpression" && node === node.parent.quasi;

            if (hasTag) {
                return true;
            }

            const hasStringInterpolation = node.expressions.length > 0;

            if (hasStringInterpolation) {
                return true;
            }

            const isMultilineString = node.quasis.length >= 1 && UNESCAPED_LINEBREAK_PATTERN.test(node.quasis[0].value.raw);

            if (isMultilineString) {
                return true;
            }

            return false;
        }
function isUsingFeatureOfTemplateLiteral(node) {
            const hasTag = node.parent.type === "TaggedTemplateExpression" && node === node.parent.quasi;

            if (hasTag) {
                return true;
            }

            const hasStringInterpolation = node.expressions.length > 0;

            if (hasStringInterpolation) {
                return true;
            }

            const isMultilineString = node.quasis.length >= 1 && UNESCAPED_LINEBREAK_PATTERN.test(node.quasis[0].value.raw);

            if (isMultilineString) {
                return true;
            }

            return false;
        }
function isUsingFeatureOfTemplateLiteral ( node ) { const hasTag = node . parent . type === "TaggedTemplateExpression" && node === node . parent . quasi ; if ( hasTag ) { return true ; } const hasStringInterpolation = node . expressions . length > 0 ; if ( hasStringInterpolation ) { return true ; } const isMultilineString = node . quasis . length >= 1 && UNESCAPED_LINEBREAK_PATTERN . test ( node . quasis [ 0 ] . value . raw ) ; if ( isMultilineString ) { return true ; } return false ; }
Checks whether or not a given TemplateLiteral node is actually using any of the special features provided by template literal strings.
@param {ASTNode} node - A TemplateLiteral node to check.
@returns {boolean} Whether or not the TemplateLiteral node is using any of the special features provided by template literal strings.
@private
Checks whether or not a given TemplateLiteral node is actually using any of the special features provided by template literal strings .