Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

Commit

Permalink
fix tsc rule errors for fallthrough
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah Chen committed Mar 28, 2017
1 parent 3c42895 commit cd66e7c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/rules/noInferrableTypesRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class NoInferrableTypesWalker extends Lint.AbstractWalker<IOptions> {
hasModifier(node.modifiers, ts.SyntaxKind.ReadonlyKeyword)) {
break;
}
/* falls through*/
this.checkDeclaration(node as ts.VariableLikeDeclaration);
break;
case ts.SyntaxKind.VariableDeclaration:
this.checkDeclaration(node as ts.VariableLikeDeclaration);
}
Expand Down
3 changes: 2 additions & 1 deletion src/rules/noUnnecessaryQualifierRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class Walker extends Lint.ProgramAwareRuleWalker {
this.visitNamespaceAccess(node, expression, name);
break;
}
// falls through
super.visitNode(node);
break;
default:
super.visitNode(node);
}
Expand Down
3 changes: 2 additions & 1 deletion src/rules/trailingCommaRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ class TrailingCommaWalker extends Lint.AbstractWalker<Options> {
if ((node as ts.NewExpression).arguments === undefined) {
break;
}
// falls through
this.checkList((node as ts.CallExpression | ts.NewExpression).arguments!, node.end);
break;
case ts.SyntaxKind.CallExpression:
this.checkList((node as ts.CallExpression | ts.NewExpression).arguments!, node.end);
break;
Expand Down

0 comments on commit cd66e7c

Please sign in to comment.