aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json8
2 files changed, 9 insertions, 1 deletions
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"
],