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

Commit

Permalink
feat(core): update rules [email protected] (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
fulls1z3 authored Jul 4, 2019
1 parent cd91a60 commit 9dc1ace
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ If you have questions, comments or suggestions, just create an issue on this rep
these rules with new insights, experiences and remarks in alignment with the updates on [TSLint] and [codelyzer].

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

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

- *Do not use* **else** blocks ending with a `break`, `continue`, `return` or `throw` statement.
```json
"unnecessary-else": true
"unnecessary-else": [
true,
{
"allow-else-if": true
}
]
```

- *Do not use* any *always* **truthy**/**falsy** condition in **boolean expressions** (*except right-hand operand `&&` or `||`*).
Expand Down
7 changes: 6 additions & 1 deletion tslint.json
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,12 @@
],
"no-tautology-expression": true,
"no-boolean-literal-compare": true,
"unnecessary-else": true,
"unnecessary-else": [
true,
{
"allow-else-if": true
}
]
"strict-boolean-expressions": [
true,
"allow-undefined-union",
Expand Down

0 comments on commit 9dc1ace

Please sign in to comment.