aboutsummaryrefslogtreecommitdiffstats
path: root/packages/tslint-config/rules/asyncSuffixRule.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/tslint-config/rules/asyncSuffixRule.ts')
-rw-r--r--packages/tslint-config/rules/asyncSuffixRule.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/packages/tslint-config/rules/asyncSuffixRule.ts b/packages/tslint-config/rules/asyncSuffixRule.ts
new file mode 100644
index 000000000..c6ae5189c
--- /dev/null
+++ b/packages/tslint-config/rules/asyncSuffixRule.ts
@@ -0,0 +1,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()));
+ }
+}