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
{{ message }}
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.
Since typescript 2.0 we can specify the type of this in functions. So technically this is not a variable (since it's not a real parameter) that can be shadowed. I'd like it to be exempted it from this rule.
The text was updated successfully, but these errors were encountered:
Thanks. My first instinct is to simply add an if statement in this rule's code to check for the first parameter and if it's name is "this". But I'm not very familiar with tslint's source code so there might be a more elegant solution, like having the parameter iterator ignore the this assignments - but that might conflict with other rules that do need to include it. Any thoughts on this?
Bug Report
4.4.2
2.1.6
TypeScript code being linted
with
tslint.json
configuration:Actual behavior
Expected behavior
Since typescript 2.0 we can specify the type of
this
in functions. So technicallythis
is not a variable (since it's not a real parameter) that can be shadowed. I'd like it to be exempted it from this rule.The text was updated successfully, but these errors were encountered: