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

Set "min-cases" for "prefer-switch" in tslint.json #2691

Merged
merged 1 commit into from
May 5, 2017
Merged
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
3 changes: 3 additions & 0 deletions tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
},
"extends": "tslint:all",
"rules": {
// TODO: remove this when tslint 5.3 released
"prefer-switch": [true, { "min-cases": 3 }],

// Don't want these
"newline-before-return": false,
"no-parameter-properties": false,
Expand Down