eslint/max-classes-per-file Pedantic ​
What it does ​
Enforce a maximum number of classes per file
Why is this bad? ​
Files containing multiple classes can often result in a less navigable and poorly structured codebase. Best practice is to keep each file limited to a single responsibility.
Example ​
javascript
class Foo {}
class Bar {}