UNPKG

eslint-plugin-etc

Version:
16 lines (9 loc) 446 B
# Avoid enum declarations (`no-enum`) 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`](./no-const-enum.md) ## Further reading - [Enums](https://www.typescriptlang.org/docs/handbook/enums.html) - [Don’t Export const enums](https://ncjamieson.com/dont-export-const-enums/)