UNPKG

561 BTypeScriptView Raw
1import { IRuleMetadata, RuleFailure } from 'tslint';
2import { AbstractRule } from 'tslint/lib/rules';
3import { SourceFile } from 'typescript';
4export declare class Rule extends AbstractRule {
5 static readonly metadata: IRuleMetadata;
6 static readonly FAILURE_STRING_ATTR = "Missing custom message identifier. For more information visit https://angular.io/guide/i18n";
7 static readonly FAILURE_STRING_TEXT = "Each element containing text node should have an i18n attribute";
8 apply(sourceFile: SourceFile): RuleFailure[];
9 isEnabled(): boolean;
10}