We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 92b6d17 commit 5c96387Copy full SHA for 5c96387
1 file changed
lib/rules/template-no-whitespace-for-layout.js
@@ -27,10 +27,10 @@ module.exports = {
27
28
return {
29
GlimmerTextNode(node) {
30
- // Upstream ember-template-lint only visits body text; its HBS parser
31
- // exposes attribute values as strings rather than TextNode children.
32
- // ember-eslint-parser emits them as GlimmerTextNode children of a
33
- // GlimmerAttrNode, so skip those to match upstream scope.
+ // Only flag body text, not attribute values. ember-eslint-parser
+ // emits attribute values as GlimmerTextNode children of a
+ // GlimmerAttrNode; skip those so only element body whitespace is
+ // checked.
34
if (node.parent?.type === 'GlimmerAttrNode') {
35
return;
36
}
0 commit comments