You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/template-no-potential-path-strings.md
+11-50Lines changed: 11 additions & 50 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,69 +2,30 @@
2
2
3
3
<!-- end auto-generated rule header -->
4
4
5
-
Disallow potential path strings that should be dynamic values in templates.
6
-
7
-
## Rule Details
8
-
9
5
It might happen sometimes that `{{` and `}}` are forgotten when invoking a component, and the string that is passed was actually supposed to be a property path or argument.
10
6
11
-
This rule warns about attribute values and text content that look like they should be dynamic paths. Specifically, it catches:
12
-
13
-
-**Attribute values** that start with `this.` or `@` (e.g. `<img src="this.picture">` or `<img src="@img">`)
14
-
-**Text content** that contains path-like strings (e.g. `<div>this.propertyName</div>` or `<div>foo.bar</div>`)
7
+
This rule warns about all arguments and attributes that start with `this.` or `@`, but are missing the surrounding `{{` and `}}` characters.
0 commit comments