UNPKG

505 BTypeScriptView Raw
1import * as ts from "typescript";
2import { RuleFailure } from "./language/rule/rule";
3/**
4 * regex is: start of string followed by any amount of whitespace
5 * followed by tslint and colon
6 * followed by either "enable" or "disable"
7 * followed optionally by -line or -next-line
8 * followed by either colon, whitespace or end of string
9 */
10export declare const ENABLE_DISABLE_REGEX: RegExp;
11export declare function removeDisabledFailures(sourceFile: ts.SourceFile, failures: RuleFailure[]): RuleFailure[];