aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules/asyncSuffixRule.ts
blob: c6ae5189cbd64590b12d086457d877eefabab0e0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
import * as Lint from 'tslint';
import * as ts from 'typescript';

import {AsyncSuffixWalker} from './walkers/async_suffix';

export class Rule extends Lint.Rules.AbstractRule {
    public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
        return this.applyWithWalker(new AsyncSuffixWalker(sourceFile, this.getOptions()));
    }
}