Add no else return tslint rule
This commit is contained in:
+8
-1
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"rulesDirectory": [
|
||||
"tslint-consistent-codestyle"
|
||||
],
|
||||
"rules": {
|
||||
"array-type": [
|
||||
true,
|
||||
@@ -86,6 +89,10 @@
|
||||
"check-type",
|
||||
"check-type-operator",
|
||||
"check-preblock"
|
||||
]
|
||||
],
|
||||
|
||||
"no-else-after-return": {
|
||||
"options": "allow-else-if"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user