Turn on no-fallthrough rule (#11093)

* chore: turn on no-fallthrough

* chore: fix no-fallthrough errors
This commit is contained in:
Huáng Jùnliàng
2020-02-08 06:05:19 +09:00
committed by GitHub
parent 5e58903250
commit 0b3dea8f54
7 changed files with 14 additions and 7 deletions

View File

@@ -1058,7 +1058,7 @@ export default class ExpressionParser extends LValParser {
case tt.at:
this.parseDecorators();
// fall through
case tt._class:
node = this.startNode();
this.takeDecorators(node);
@@ -1111,7 +1111,7 @@ export default class ExpressionParser extends LValParser {
return this.finishNode(node, "PipelinePrimaryTopicReference");
}
}
// fall through
default:
throw this.unexpected();
}