aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 23:10:20 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 23:11:14 +0300
commit4a5af3ad9664859a8d22ac3408bdbc46c4c7ec5e (patch)
treee7bf8709b7420d17bf311fc379db228d30eb443a
parent07a5bddd6b41c94c86dd492eaf1d775d16aaf70e (diff)
downloadeslint-config-4a5af3ad9664859a8d22ac3408bdbc46c4c7ec5e.tar.xz
eslint-config-4a5af3ad9664859a8d22ac3408bdbc46c4c7ec5e.zip
feat(typescript): Rule "no-untyped-public-signature"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json8
2 files changed, 9 insertions, 1 deletions
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",