Skip to content

Commit

Permalink
no-unbound-method: Add JSX test (palantir#2115)
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-hanson authored and nchen63 committed Jan 29, 2017
1 parent 26700c0 commit 2d07e23
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/rules/no-unbound-method/test.ts.lint
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,8 @@ i.foo;
~~~~~ [0]
i.bar;


<button onClick={c.method}>Click me!</button>;
~~~~~~~~ [0]

[0]: Avoid referencing unbound methods which may cause unintentional scoping of 'this'.

0 comments on commit 2d07e23

Please sign in to comment.