aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules/asyncSuffixRule.ts
blob: 5215c71514e85877860cbee1b6cdfa6eb58b44b8 (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()));
    }
}