abstractRule.d.ts 551 B

12345678910111213
  1. import * as ts from "typescript";
  2. import { IOptions } from "../../lint";
  3. import { RuleWalker } from "../walker/ruleWalker";
  4. import { IRule, IDisabledInterval, RuleFailure } from "./rule";
  5. export declare abstract class AbstractRule implements IRule {
  6. private value;
  7. private options;
  8. constructor(ruleName: string, value: any, disabledIntervals: IDisabledInterval[]);
  9. getOptions(): IOptions;
  10. abstract apply(sourceFile: ts.SourceFile): RuleFailure[];
  11. applyWithWalker(walker: RuleWalker): RuleFailure[];
  12. isEnabled(): boolean;
  13. }