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

Edit tslint.json #2344

Merged
merged 2 commits into from
Mar 14, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -18,7 +18,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