abstractRule.d.ts
602 Bytes
import * as ts from "typescript";
import { IOptions } from "../../lint";
import { RuleWalker } from "../walker/ruleWalker";
import { IDisabledInterval, IRule, IRuleMetadata, RuleFailure } from "./rule";
export declare abstract class AbstractRule implements IRule {
private value;
static metadata: IRuleMetadata;
private options;
constructor(ruleName: string, value: any, disabledIntervals: IDisabledInterval[]);
getOptions(): IOptions;
abstract apply(sourceFile: ts.SourceFile): RuleFailure[];
applyWithWalker(walker: RuleWalker): RuleFailure[];
isEnabled(): boolean;
}