From 9a518ccf7e50deb0ce80bd8b332baff6e6881278 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 12:02:05 +0400 Subject: feat(eslint): Rule "no-use-before-define" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 9ffc03a..333f140 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -206,7 +206,7 @@ - [ ] "no-unused-expressions" - [ ] "no-unused-labels" - [X] "no-unused-vars" -- [ ] "no-use-before-define" +- [X] "no-use-before-define" - [ ] "no-useless-backreference" - [X] "no-useless-call" - [ ] "no-useless-catch" diff --git a/src/rules/default.json b/src/rules/default.json index 98937aa..233828e 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -397,6 +397,14 @@ "vars": "all" } ], + "no-use-before-define": [ + "error", + { + "classes": true, + "functions": true, + "variables": true + } + ], "no-useless-call": [ "error" ], -- cgit v1.2.3