Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 404 Bytes

no-class-inheritance.md

File metadata and controls

18 lines (15 loc) · 404 Bytes

typescript-inheritance/no-class-inheritance

This rule forbids usage of class inheritance except inheritance of abstract classes.

You can forbid usage of inheritance completely by setting noInheritanceOfAbstractClasses option:

{
  "rules": {
    "typescript-inheritance/no-class-inheritance": [
      "error",
      {
        "noInheritanceOfAbstractClasses": true
      }
    ]
  }
}