We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 578efad commit b76aef7Copy full SHA for b76aef7
2 files changed
lib/rules/template-tag-spacing.js
@@ -49,7 +49,10 @@ module.exports = {
49
if (never && hasWhitespace) {
50
context.report({
51
node,
52
- loc: tagToken.loc.start,
+ loc: {
53
+ start: tagToken.loc.end,
54
+ end: literalToken.loc.start
55
+ },
56
messageId: "unexpected",
57
fix(fixer) {
58
const comments = sourceCode.getCommentsBefore(node.quasi);
@@ -68,7 +71,10 @@ module.exports = {
68
71
} else if (!never && !hasWhitespace) {
69
72
70
73
74
75
+ start: node.loc.start,
76
77
78
messageId: "missing",
79
80
return fixer.insertTextAfter(tagToken, " ");
0 commit comments