This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
no-invalid-this
should allow this
in assigned methods
#1544
Labels
Bug Report
3.15.1
2.1.0-dev.2016-0907
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
the "this" keyword is disallowed outside of a class body
Expected behavior
No error.
The eslint rule with the same name allows for
this
references when assigning methods:I would expect this to be valid in TypeScript as well.
Specificying an explicit
this
parameter does not clear the error. I would consider this an acceptable alternative, if it worked.The text was updated successfully, but these errors were encountered: