Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 305 Bytes

no-const-enum.md

File metadata and controls

20 lines (14 loc) · 305 Bytes

Disallow the use of const enums (no-const-enum)

This rule disallows the use of const enums.

Rule Details

Examples of incorrect code for this rule:

const enum Foo {
  Bar = "Bar",
  Baz = "Baz",
}

Examples of correct code for this rule:

type Foo = "Bar" | "Baz";