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