From 77985e07d0ba6a8274454c1a1d59a7a521d18177 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:22:52 +0400 Subject: feat(typescript): Rule "no-useless-constructor" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/typescript/default.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 5f55645..be8c3b6 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -385,7 +385,7 @@ - [X] "no-unused-vars" - [X] "no-unused-vars-experimental" - [ ] "no-use-before-define" -- [ ] "no-useless-constructor" +- [X] "no-useless-constructor" - [ ] "no-var-requires" - [ ] "prefer-as-const" - [ ] "prefer-for-of" diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 244b4a8..631bdf2 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -90,6 +90,9 @@ "@typescript-eslint/no-unused-vars-experimental": [ "error" ], + "@typescript-eslint/no-useless-constructor": [ + "error" + ], "@typescript-eslint/quotes": [ "error", "double", @@ -144,6 +147,9 @@ "no-unused-vars": [ "off" ], + "no-useless-constructor": [ + "off" + ], "quotes": [ "off" ], -- cgit v1.2.3