From 2cb3cc32edb324469fb0ee2d50d545808c7b2e94 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 22:33:16 +0400 Subject: feat(typescript): Rule "no-explicit-any" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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", -- cgit v1.2.3