noConsecutiveBlankLinesRule.d.ts 552B

1234567891011121314
  1. import * as ts from "typescript";
  2. import * as Lint from "../index";
  3. export declare class Rule extends Lint.Rules.AbstractRule {
  4. static DEFAULT_ALLOWED_BLANKS: number;
  5. static metadata: Lint.IRuleMetadata;
  6. static FAILURE_STRING_FACTORY(allowed: number): string;
  7. /**
  8. * Disable the rule if the option is provided but non-numeric or less than the minimum.
  9. */
  10. isEnabled(): boolean;
  11. apply(sourceFile: ts.SourceFile): Lint.RuleFailure[];
  12. }
  13. export declare function getTemplateRanges(sourceFile: ts.SourceFile): ts.TextRange[];