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

Commit

Permalink
Edit tslint.json (#2344)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajafff authored and nchen63 committed Mar 14, 2017
1 parent 4f1d667 commit 2dad217
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/rules/noInferrableTypesRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ class NoInferrableTypesWalker extends Lint.AbstractWalker<IOptions> {
/* falls through*/
case ts.SyntaxKind.VariableDeclaration:
this.checkDeclaration(node as ts.VariableLikeDeclaration);
default:
}
return ts.forEachChild(node, cb);
};
Expand Down
2 changes: 1 addition & 1 deletion src/rules/noUnnecessaryQualifierRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class Walker extends Lint.ProgramAwareRuleWalker {
this.visitNamespaceAccess(node, expression, name);
break;
}
// fall through
// falls through
default:
super.visitNode(node);
}
Expand Down
2 changes: 1 addition & 1 deletion src/rules/strictTypePredicatesRule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ function getTypePredicateOneWay(left: ts.Expression, right: ts.Expression, isStr
if ((right as ts.Identifier).originalKeywordKind === ts.SyntaxKind.UndefinedKeyword) {
return nullOrUndefined(undefinedFlags);
}

return undefined;
default:
return undefined;
}
Expand Down
4 changes: 3 additions & 1 deletion test/rules/_integration/enable-disable/tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
"comment-format": [
true,
"check-space"
]
],
"no-switch-case-fall-through": true,
"switch-default": false
}
}
2 changes: 2 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
"no-default-export": true,
"no-empty-interface": true,
"no-string-throw": true,
"no-switch-case-fall-through": true,
"prefer-const": true,
"switch-default": false,
"variable-name": [true,
"ban-keywords",
"check-format",
Expand Down

0 comments on commit 2dad217

Please sign in to comment.