Avoid enum declarations (no-enum)

October 20, 2020 · View on GitHub

This rule forbids enum declarations. TypeScript enums generate code and that sometimes isn't what's wanted. Literal types can be used instead.

Options

This rule has no options.

Related to

  • no-const-enum

Further reading

  • Enums
  • Don’t Export const enums

Contents

  1. 1Options
  2. 2Related to
  3. 3Further reading