Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Commit 9dc1ace

Browse files
authored
feat(core): update rules tslint@5.16 (#48)
1 parent cd91a60 commit 9dc1ace

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you have questions, comments or suggestions, just create an issue on this rep
3030
these rules with new insights, experiences and remarks in alignment with the updates on [TSLint] and [codelyzer].
3131

3232
**Note**: The following set of rules depend on:
33-
- [TSLint] v5.15.0
33+
- [TSLint] v5.16.0
3434
- [codelyzer] v5.0.0
3535

3636
## Table of contents:
@@ -577,7 +577,12 @@ them is allowed by TypeScript*).
577577

578578
- *Do not use* **else** blocks ending with a `break`, `continue`, `return` or `throw` statement.
579579
```json
580-
"unnecessary-else": true
580+
"unnecessary-else": [
581+
true,
582+
{
583+
"allow-else-if": true
584+
}
585+
]
581586
```
582587

583588
- *Do not use* any *always* **truthy**/**falsy** condition in **boolean expressions** (*except right-hand operand `&&` or `||`*).

tslint.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@
153153
],
154154
"no-tautology-expression": true,
155155
"no-boolean-literal-compare": true,
156-
"unnecessary-else": true,
156+
"unnecessary-else": [
157+
true,
158+
{
159+
"allow-else-if": true
160+
}
161+
]
157162
"strict-boolean-expressions": [
158163
true,
159164
"allow-undefined-union",

0 commit comments

Comments
 (0)