aboutsummaryrefslogblamecommitdiffstats
path: root/packages/tslint-config/rules/asyncSuffixRule.ts
blob: 8af9d88d4456a432e95fd929ebbf52ff2a764a02 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                 
                                                           

                                                   


                                                                                                  
 
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()));
    }
}