[class-methods-use-this] Prevent false positives with classes #52
Labels
enhancement: new plugin rule
New rule request for eslint-plugin
enhancement
New feature or request
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
I think it would be benefit to have a rule similar to
typescript/no-unused-vars
to preventclass-methods-use-this
from triggering on class methods where the method in base class (or additionally one of its descendants) doesn't usethis
, but one of the (other) subclasses does. For example, an abstract class may implement a method as just returning a default value, but the intention of the method is that some/most subclasses will have a concrete implementation that does usethis
.The text was updated successfully, but these errors were encountered: