eslint-plugin-etc
Version:
More general-purpose ESLint rules
16 lines (9 loc) • 446 B
Markdown
This rule forbids `enum` declarations. TypeScript enums generate code and that sometimes isn't what's wanted. Literal types can be used instead.
This rule has no options.
- [`no-const-enum`](./no-const-enum.md)
- [Enums](https://www.typescriptlang.org/docs/handbook/enums.html)
- [Don’t Export const enums](https://ncjamieson.com/dont-export-const-enums/)