aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 21:33:16 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 21:33:16 +0300
commit2cb3cc32edb324469fb0ee2d50d545808c7b2e94 (patch)
treec0d87e5fbfeb390287c5a3c7778a8f60e324492e
parent1b2f53b28a26d8919a6ffddfa12720c804782436 (diff)
downloadeslint-config-2cb3cc32edb324469fb0ee2d50d545808c7b2e94.tar.xz
eslint-config-2cb3cc32edb324469fb0ee2d50d545808c7b2e94.zip
feat(typescript): Rule "no-explicit-any"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 5223d8f..73ad9c8 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -355,7 +355,7 @@
- [ ] "no-dynamic-delete"
- [ ] "no-empty-function"
- [X] "no-empty-interface"
-- [ ] "no-explicit-any"
+- [X] "no-explicit-any"
- [ ] "no-extra-non-null-assertion"
- [ ] "no-extra-parens"
- [ ] "no-extra-semi"
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json
index 5786671..d8596f5 100644
--- a/src/rules/typescript/default.json
+++ b/src/rules/typescript/default.json
@@ -39,6 +39,13 @@
"allowSingleExtends": false
}
],
+ "@typescript-eslint/no-explicit-any": [
+ "warn",
+ {
+ "fixToUnknown": false,
+ "ignoreRestArgs": false
+ }
+ ],
"@typescript-eslint/quotes": [
"error",
"double",