aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 11:04:05 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 11:04:05 +0300
commite5631d6bbbbc34fa4975424cd46ac1eadedf9880 (patch)
treeca2ae30110510882a22ec1fc533f2a8cbe18cf01
parent9a518ccf7e50deb0ce80bd8b332baff6e6881278 (diff)
downloadeslint-config-e5631d6bbbbc34fa4975424cd46ac1eadedf9880.tar.xz
eslint-config-e5631d6bbbbc34fa4975424cd46ac1eadedf9880.zip
feat(typescript): Rule "no-use-before-define"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/typescript/default.json13
2 files changed, 14 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 333f140..91e9d13 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -384,7 +384,7 @@
- [ ] "no-unused-expressions"
- [X] "no-unused-vars"
- [X] "no-unused-vars-experimental"
-- [ ] "no-use-before-define"
+- [X] "no-use-before-define"
- [X] "no-useless-constructor"
- [X] "no-var-requires"
- [ ] "prefer-as-const"
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"
],