(node: ts.EnumDeclaration)
| 12 | |
| 13 | class Walker extends Lint.RuleWalker { |
| 14 | override visitEnumDeclaration(node: ts.EnumDeclaration) { |
| 15 | if (node.modifiers?.some(({kind}) => kind === ts.SyntaxKind.ConstKeyword)) { |
| 16 | this.addFailureAtNode(node.name, 'Const enums are not allowed! Prefer plain `enum` instead.'); |
| 17 | } |
| 18 | |
| 19 | super.visitEnumDeclaration(node); |
| 20 | } |
| 21 | } |
nothing calls this directly
no outgoing calls
no test coverage detected