Commit 4faabdc
committed
fix(template-no-block-params-for-html-elements): switch to html-tags/svg-tags + scope
Replaces the inverse component-detection heuristic with a whitelist of
HTML and SVG tag names plus a scope check. With ember-tooling/ember-eslint-parser#189
populating block-param scope in HBS, lists + scope now works in both modes.
Custom elements and unknown lowercase tags remain accepted false negatives.1 parent da0ad2b commit 4faabdc
File tree
4 files changed
+15
-37
lines changed- lib/rules
- tests/lib/rules
4 files changed
+15
-37
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 4 | + | |
31 | 5 | | |
| 6 | + | |
32 | 7 | | |
33 | 8 | | |
34 | 9 | | |
| |||
51 | 26 | | |
52 | 27 | | |
53 | 28 | | |
54 | | - | |
55 | | - | |
| 29 | + | |
56 | 30 | | |
57 | 31 | | |
58 | 32 | | |
59 | | - | |
| 33 | + | |
| 34 | + | |
60 | 35 | | |
61 | 36 | | |
62 | 37 | | |
63 | 38 | | |
64 | 39 | | |
65 | 40 | | |
66 | | - | |
67 | 41 | | |
68 | 42 | | |
69 | 43 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
| 78 | + | |
78 | 79 | | |
79 | 80 | | |
80 | 81 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
| 20 | + | |
| 21 | + | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
0 commit comments