diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 11:02:05 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 11:02:05 +0300 |
commit | 9a518ccf7e50deb0ce80bd8b332baff6e6881278 (patch) | |
tree | 5e0b43c563f875ba267120032ab63c79c8071c50 | |
parent | 059976ca5a189f20c42875346021246b5789907f (diff) | |
download | eslint-config-9a518ccf7e50deb0ce80bd8b332baff6e6881278.tar.xz eslint-config-9a518ccf7e50deb0ce80bd8b332baff6e6881278.zip |
feat(eslint): Rule "no-use-before-define"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" ], |