From 4a5af3ad9664859a8d22ac3408bdbc46c4c7ec5e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 00:10:20 +0400 Subject: feat(typescript): Rule "no-untyped-public-signature" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 249f663..c43d0f6 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -380,7 +380,7 @@ - [ ] "no-unnecessary-qualifier" - [ ] "no-unnecessary-type-arguments" - [ ] "no-unnecessary-type-assertion" -- [ ] "no-untyped-public-signature" +- [X] "no-untyped-public-signature" - [ ] "no-unused-expressions" - [ ] "no-unused-vars" - [ ] "no-unused-vars-experimental" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 55a5216..26bd453 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -67,6 +67,14 @@ "allowDefinitionFiles": true } ], + "@typescript-eslint/no-untyped-public-signature": [ + "error", + { + "ignoredMethods": [ + "constructor" + ] + } + ], "@typescript-eslint/quotes": [ "error", "double", -- cgit v1.2.3