Apply prettier config

This commit is contained in:
Leonid Logvinov
2017-12-22 15:05:32 +01:00
parent 9a96e8c704
commit e744e4cd98
284 changed files with 6783 additions and 6205 deletions

View File

@@ -1,7 +1,7 @@
import * as Lint from 'tslint';
import * as ts from 'typescript';
import {AsyncSuffixWalker} from './walkers/async_suffix';
import { AsyncSuffixWalker } from './walkers/async_suffix';
export class Rule extends Lint.Rules.AbstractRule {
public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {

View File

@@ -13,7 +13,9 @@ export class AsyncSuffixWalker extends Lint.RuleWalker {
const returnTypeName = (node.type as ts.TypeReferenceNode).typeName.getText();
if (returnTypeName === 'Promise' && !methodName.endsWith('Async')) {
const failure = this.createFailure(
methodNameNode.getStart(), methodNameNode.getWidth(), AsyncSuffixWalker.FAILURE_STRING,
methodNameNode.getStart(),
methodNameNode.getWidth(),
AsyncSuffixWalker.FAILURE_STRING,
);
this.addFailure(failure);
}