no-extraneous-class
Configuration
rslint.config.ts
Rule Details
Disallows classes used as namespaces or that serve no purpose beyond wrapping static members, constructors, or being empty. In JavaScript and TypeScript, classes that contain only static members, only a constructor, or no members at all can typically be replaced with standalone functions, plain objects, or modules. This rule reports on classes that do not benefit from the class structure.
Examples of incorrect code for this rule:
Examples of correct code for this rule: