enableDisableRules.d.ts 505B

123456789101112
  1. import * as ts from "typescript";
  2. import { 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. */
  10. export declare const ENABLE_DISABLE_REGEX: RegExp;
  11. export declare function removeDisabledFailures(sourceFile: ts.SourceFile, failures: RuleFailure[]): RuleFailure[];