@masknet/eslint-plugin
Version:
eslint plugin for masknet
38 lines (25 loc) • 473 B
Markdown
<!-- begin title -->
# `@masknet/type/no-const-enum`
Disallow use constants enumerate
<!-- end title -->
## Rule Details
### :x: Incorrect
```ts
const enum Foo {
Bar,
}
```
### :white_check_mark: Correct
```ts
enum Foo {
Bar,
}
```
## Attributes
<!-- begin attributes -->
- [ ] :white_check_mark: Recommended
- [x] :wrench: Fixable
- [ ] :bulb: Suggestions
- [ ] :gear: Configurable
- [ ] :thought_balloon: Requires type information
<!-- end attributes -->