Bump prettier to v1.13.2

This commit is contained in:
Brian Ng
2018-05-29 10:00:45 -05:00
parent 62114b807b
commit 5895277b32
10 changed files with 49 additions and 28 deletions

View File

@@ -1327,7 +1327,9 @@ export default (superClass: Class<Parser>): Class<Parser> =>
const bodilessType =
type === "FunctionDeclaration"
? "TSDeclareFunction"
: type === "ClassMethod" ? "TSDeclareMethod" : undefined;
: type === "ClassMethod"
? "TSDeclareMethod"
: undefined;
if (bodilessType && !this.match(tt.braceL) && this.isLineTerminator()) {
this.finishNode(node, bodilessType);
return;