I find this rule quite useful so that we use undefined all the time. The rationale on the rule's documentation page is quite clear: https://palantir.github.io/tslint/rules/no-null-keyword/
8 lines
124 B
JSON
8 lines
124 B
JSON
{
|
|
"defaultSeverity": "error",
|
|
"rules": {
|
|
"no-var-keyword": true,
|
|
"prefer-const": true,
|
|
"no-null-keyword": true
|
|
}
|
|
}
|