Closed
Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
- I have searched for related issues and found none that matched my issue.
- I have read the FAQ and my problem is not listed.
Playground Link
Repro Code
interface Bar {
a(): void;
}
class A implements Bar {
a(): void { }
private b(): void {}
}
ESLint Config
module.exports = {
"rules": {
"@typescript-eslint/class-methods-use-this": ["warn", {
"ignoreClassesThatImplementAnInterface": true
}]
}
}
tsconfig
Expected Result
I think the rule should warn about the implementation of A.b()
in the above code.
Because TypeScript's interface feature does not have any private
/protected
member as a part of it.
So the rule enabling ignoreClassesThatImplementAnInterface=true
should warn the case of that the implementation is not a part of interface.
Actual Result
In the above code, the rule does not warn about implementation of A.b()
.
Additional Info
No response