-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Closed
Labels
enhancementNew 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
context: sveltejs/eslint-plugin-svelte3#102 (comment)
reproduction: https://github.com/frederikhors/issueWithThisAny
{
"rules": {
"@typescript-eslint/no-unsafe-call": 2,
"@typescript-eslint/no-unsafe-member-access": 2
}
}
export const store = () => {
const methods = {
OnInit() {
this.Login();
},
Login() {
//
},
async Logout() {
//
},
};
return methods;
};
Expected Result
Reporting with message that tells the user this
is type any
because noImplicitThis
is not enabled
Actual Result
No extra tips
Additional Info
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin |
4.17.0 |
@typescript-eslint/parser |
4.17.0 |
TypeScript |
4.2.3 |
ESLint |
7.22.0 |
node |
14.16.0 |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestpackage: eslint-pluginIssues related to @typescript-eslint/eslint-pluginIssues related to @typescript-eslint/eslint-plugin