Commit 92b6d17
committed
Fix template-no-whitespace-for-layout false positive on attribute values
The rule's GlimmerTextNode visitor fired on attribute value text nodes
(e.g. `<div class="foo bar">`), reporting layout-whitespace violations
for consecutive spaces inside class lists and other attribute values.
Upstream ember-template-lint only visits body text, since its HBS
parser exposes attribute values differently. Skip GlimmerTextNodes
whose parent is a GlimmerAttrNode.1 parent b705850 commit 92b6d17
File tree
2 files changed
+10
-0
lines changed- lib/rules
- tests/lib/rules
2 files changed
+10
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
30 | 38 | | |
31 | 39 | | |
32 | 40 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments