Rule: max-classes-per-file

A file may not contain more than the specified number of classes

Rationale

Ensures that files have a single responsibility so that that classes each exist in their own files

Config

The one required argument is an integer indicating the maximum number of classes that can appear in a file.

Examples
"max-classes-per-file": [true, 1]
"max-classes-per-file": [true, 5]
Schema
{
  "type": "array",
  "items": [
    {
      "type": "number",
      "minimum": 1
    }
  ],
  "additionalItems": false,
  "minLength": 1,
  "maxLength": 2
}