function checkSpacing(node){var tagToken=sourceCode.getTokenBefore(node.quasi);var literalToken=sourceCode.getFirstToken(node.quasi);var hasWhitespace=sourceCode.isSpaceBetweenTokens(tagToken,literalToken);if(never&&hasWhitespace){context.report({node:node,loc:tagToken.loc.start,message:"Unexpected space between template tag and template literal.",fix:function fix(fixer){var comments=sourceCode.getComments(node.quasi).leading;// Don't fix anything if there's a single line comment after the template tag
if(comments.some(function(comment){return comment.type==="Line";})){return null;}return fixer.replaceTextRange([tagToken.range[1],literalToken.range[0]],comments.reduce(function(text,comment){return text+sourceCode.getText(comment);},""));}});}else if(!never&&!hasWhitespace){context.report({node:node,loc:tagToken.loc.start,message:"Missing space between template tag and template literal.",fix:function fix(fixer){return fixer.insertTextAfter(tagToken," ");}});}}
Check if a space is present between a template tag and its literal
@param {ASTNode} node node to evaluate
@returns {void}
@private