From e5631d6bbbbc34fa4975424cd46ac1eadedf9880 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:04:05 +0400 Subject: feat(typescript): Rule "no-use-before-define" Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src') diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 39ea233..913d9be 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -90,6 +90,16 @@ "@typescript-eslint/no-unused-vars-experimental": [ "error" ], + "@typescript-eslint/no-use-before-define": [ + "error", + { + "classes": true, + "enums": true, + "functions": true, + "typedefs": true, + "variables": true + } + ], "@typescript-eslint/no-useless-constructor": [ "error" ], @@ -150,6 +160,9 @@ "no-unused-vars": [ "off" ], + "no-use-before-define": [ + "off" + ], "no-useless-constructor": [ "off" ], -- cgit v1.2.3