-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issueenhancementNew feature or requestNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin
Description
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have read the FAQ and my problem is not listed.
Repro
{
"rules": {
"@typescript-eslint/no-this-alias": "error",
}
}
let that;
that = this;
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
package | version |
---|---|
@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 |
Metadata
Metadata
Assignees
Labels
accepting prsGo ahead, send a pull request that resolves this issueGo ahead, send a pull request that resolves this issueenhancementNew feature or requestNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin