Apply prettier config
This commit is contained in:
@@ -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[] {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user