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

@@ -616,7 +616,9 @@ export default class StatementParser extends ExpressionParser {
const kind = this.state.type.isLoop
? "loop"
: this.match(tt._switch) ? "switch" : null;
: this.match(tt._switch)
? "switch"
: null;
for (let i = this.state.labels.length - 1; i >= 0; i--) {
const label = this.state.labels[i];
if (label.statementStart === node.start) {

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;