Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 439 Bytes

components-per-file.md

File metadata and controls

26 lines (19 loc) · 439 Bytes

components-per-file

Allows a maximum number of Components to be placed in a single file

Config

This rule requires a single argument – a "number" representing the maximum number of @Component() decorated classes allowed in a single file.

Config examples

{ "components-per-file": [true, 1] }

Schema

{
  "type": "array",
  "items": {
    "type": "number"
  },
  "minLength": 1,
  "maxLength": 1
}