summaryrefslogtreecommitdiff
path: root/src/rules
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 21:56:47 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 21:56:47 +0300
commitd7fea402cf940e27be3f01ceeef1c8135ac43fb7 (patch)
tree091813b9e096c3f29b31d5b6ad9f5897c961bfee /src/rules
parentf49a9ddf6694d1542171c4ce8bd4ea153493319a (diff)
downloadeslint-config-d7fea402cf940e27be3f01ceeef1c8135ac43fb7.tar.xz
eslint-config-d7fea402cf940e27be3f01ceeef1c8135ac43fb7.zip
feat(typescript): Rule "strict-boolean-expressions"
Signed-off-by: Valentin Popov <info@valentineus.link>
Diffstat (limited to 'src/rules')
-rw-r--r--src/rules/typescript/default.json8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index d8596f5..40f5473 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -61,6 +61,14 @@
"omitLastInOneLineBlock": false
}
],
+ "@typescript-eslint/strict-boolean-expressions": [
+ "error",
+ {
+ "allowNullable": false,
+ "allowSafe": false,
+ "ignoreRhs": false
+ }
+ ],
"indent": [
"off"
],