summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 23:05:32 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 23:05:32 +0300
commit933e1f6356267c273704aafb34b07ee9752dc826 (patch)
tree32949f6af454252de0f9b6826e2cc4621827f2d4
parente4814ec7a54eb944bad99650bed770c40a00ddee (diff)
downloadeslint-config-933e1f6356267c273704aafb34b07ee9752dc826.tar.xz
eslint-config-933e1f6356267c273704aafb34b07ee9752dc826.zip
feat(typescript): Rule "no-inferrable-types"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index f13631f..fd56686 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -363,7 +363,7 @@
- [ ] "no-floating-promises"
- [ ] "no-for-in-array"
- [ ] "no-implied-eval"
-- [ ] "no-inferrable-types"
+- [X] "no-inferrable-types"
- [X] "no-magic-numbers"
- [ ] "no-misused-new"
- [ ] "no-misused-promises"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 283cdb8..2093e2f 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -46,6 +46,9 @@
"ignoreRestArgs": false
}
],
+ "@typescript-eslint/no-inferrable-types": [
+ "off"
+ ],
"@typescript-eslint/no-magic-numbers": [
"warn",
{