Skip to content

Files

Latest commit

 

History

History
16 lines (10 loc) · 522 Bytes

no-stateless-class.md

File metadata and controls

16 lines (10 loc) · 522 Bytes

Pattern: Stateless class

Issue: -

Description

Deprecated - This rule can be replaced with TSLint's no-unnecessary-class.

A stateless class represents a failure in the object oriented design of the system. A class without state is better modeled as a module or given some state. A stateless class is defined as a class with only static members and no parent class.

Further Reading