Commit ca752c9
committed
Fix
In the fuction `parseNodeRecursive` of `lib/util/ast.js`, the case for
TemplateListeral nodes would always recurse over `exp.right` for all
expressions in the template. However, these expressions are not
necessarily binary expressions. Removing the `.right` will make sure
that e.g. ConditionalExpressions are also checked.parseNodeRecursive: Correctly recurse into TemplateLiteral expressions1 parent 7fdbbdb commit ca752c9
File tree
3 files changed
+11
-1
lines changed- lib/util
- tests/lib/rules
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
192 | | - | |
| 192 | + | |
193 | 193 | | |
194 | 194 | | |
195 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
406 | 411 | | |
407 | 412 | | |
408 | 413 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
985 | 985 | | |
986 | 986 | | |
987 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
988 | 993 | | |
989 | 994 | | |
990 | 995 | | |
| |||
0 commit comments