Skip to content

Latest commit

 

History

History
14 lines (8 loc) · 583 Bytes

File metadata and controls

14 lines (8 loc) · 583 Bytes

require-compound-type-alias

Requires to make a type alias for all union and intersection types. If these are used in "raw" forms it might be tempting to just copy&paste them around the code. However, this brings sort of a source code pollution and unnecessary changes on several parts when these compound types need to be changed.

Options

The rule has a string option:

  • "never"
  • "always"

The default value is "always".