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

Commit cd91a60

Browse files
authored
feat(core): update rules [email protected] (#47)
1 parent 242e229 commit cd91a60

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ 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.12.0
34-
- [codelyzer] ^5.0.0
33+
- [TSLint] v5.15.0
34+
- [codelyzer] v5.0.0
3535

3636
## Table of contents:
3737
- [Getting started](#getting-started)
@@ -444,6 +444,11 @@ them is allowed by TypeScript*).
444444
"no-null-keyword": true
445445
```
446446

447+
- *Do not use* explicitly declared or implicitly returned **union types** with both **`null`** and **`undefined`** as members.
448+
```json
449+
"no-null-undefined-union": true
450+
```
451+
447452
- *Do not use* **non-null** assertions.
448453
```json
449454
"no-non-null-assertion": true

tslint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"no-unnecessary-type-assertion": true,
113113
"callable-types": true,
114114
"no-null-keyword": true,
115+
"no-null-undefined-union": true,
115116
"no-non-null-assertion": true,
116117
"array-type": [
117118
true,

0 commit comments

Comments
 (0)