template-lint icon indicating copy to clipboard operation
template-lint copied to clipboard

Catch usages of "this" in bindings

Open JoshMcCullough opened this issue 7 years ago • 0 comments

Either by copy/paste or unintentional manual entry, I've caught myself a few times doing something like this...

<a href.bind="this.something.url">...</a>
              ^^^^

... instead of ...

<a href.bind="something.url">...</a>

It'd be great if the linter could find instances of this within bindings and throw a warning.

JoshMcCullough avatar Nov 17 '17 18:11 JoshMcCullough