criticizer
Version:
Linting for Angular applications, following angular.io/styleguide.
15 lines (11 loc) • 483 B
text/typescript
import * as Lint from 'tslint';
import {UsePropertyDecorator} from './propertyDecoratorBase';
export class Rule extends UsePropertyDecorator {
constructor(ruleName: string, value: any, disabledIntervals: Lint.IDisabledInterval[]) {
super({
decoratorName: ['HostBindings', 'HostListeners'],
propertyName: 'host',
errorMessage: 'Use @HostBindings and @HostListeners instead of the host property ($$06-03$$)'
}, ruleName, value, disabledIntervals);
}
}