Bump prettier to v1.13.2
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user