[no-this-alias] does not detect all cases of aliasing this
to local variable
#4690
Closed
3 tasks done
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
enhancement
New feature or request
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
Repro
Expected Result
3:5 error Unexpected aliasing of 'this' to local variable @typescript-eslint/no-this-alias
Actual Result
No error or warning.
Additional Info
https://github.com/sindresorhus/eslint-plugin-unicorn catches this with unicorn/no-this-assignment
Versions
@typescript-eslint/eslint-plugin
15.5.0
@typescript-eslint/parser
15.5.0
TypeScript
4.6.2
ESLint
8.9.0
node
16.13.2
The text was updated successfully, but these errors were encountered: