MCPcopy Create free account
hub / github.com/angular/components /

Class

tools/tslint-rules/preferPlainEnumRule.ts:13–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11}
12
13class 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.');

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected