[no-invalid-this] False positive when using this to declare an attribute #2324
Labels
bug
Something isn't working
duplicate
This issue or pull request already exists
good first issue
Good for newcomers
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
No warning shown
Actual Result
Show warning "Unexpected 'this'" in the Example1 class
Additional Info
Example1 and Example2 classes are both valid TypeScript and generate identical JavaScript code.
Versions
@typescript-eslint/eslint-plugin
3.7.0
@typescript-eslint/parser
3.7.0
TypeScript
3.9.7
ESLint
7.5.0
node
v14.1.0
npm
6.14.4
The text was updated successfully, but these errors were encountered: