[unbound-method] rule triggered when binding a class method #700
Labels
bug
Something isn't working
good first issue
Good for newcomers
has pr
there is a PR raised to close this
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No error detected
Actual Result
Avoid referencing unbound methods which may cause unintentional scoping of
this@typescript-eslint/unbound-method
Additional Info
As far as I know this is a common pattern for binding event handlers. Could be related with #692
Versions
@typescript-eslint/eslint-plugin
1.11.0
@typescript-eslint/parser
1.11.0
TypeScript
3.5.3
ESLint
5.16.0
node
8.16.0
npm
6.10.0
The text was updated successfully, but these errors were encountered: