feat(typescript): Rule "strict-boolean-expressions"

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
Valentin Popov 2020-02-13 22:56:47 +04:00
parent f49a9ddf66
commit d7fea402cf
Signed by: Valentin Popov
GPG Key ID: 269A00ACA90A8EA3
2 changed files with 9 additions and 1 deletions

View File

@ -406,7 +406,7 @@
- [ ] "return-await"
- [X] "semi"
- [ ] "space-before-function-paren"
- [ ] "strict-boolean-expressions"
- [X] "strict-boolean-expressions"
- [ ] "switch-exhaustiveness-check"
- [ ] "triple-slash-reference"
- [ ] "type-annotation-spacing"

View File

@ -61,6 +61,14 @@
"omitLastInOneLineBlock": false
}
],
"@typescript-eslint/strict-boolean-expressions": [
"error",
{
"allowNullable": false,
"allowSafe": false,
"ignoreRhs": false
}
],
"indent": [
"off"
],