summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:37:14 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:37:14 +0300
commitdcea1fb8f525a912969d7d76d1a9105f1ab8300b (patch)
tree8e8633304d8d732e37f37192ec07613f2381c9ea
parent3a8aa43fb935e37e60edae5ca3982844222b8ced (diff)
downloadeslint-config-dcea1fb8f525a912969d7d76d1a9105f1ab8300b.tar.xz
eslint-config-dcea1fb8f525a912969d7d76d1a9105f1ab8300b.zip
feat(eslint): Rule "no-labels"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json3
2 files changed, 4 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 3e695a9..94a3ef0 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -134,7 +134,7 @@
- [ ] "no-irregular-whitespace"
- [X] "no-iterator"
- [ ] "no-label-var"
-- [ ] "no-labels"
+- [X] "no-labels"
- [ ] "no-lone-blocks"
- [ ] "no-lonely-if"
- [ ] "no-loop-func"
diff --git a/src/rules/default.json b/src/rules/default.json
index 73490d2..e50530f 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -251,6 +251,9 @@
"no-iterator": [
"error"
],
+ "no-labels": [
+ "error"
+ ],
"no-magic-numbers": [
"warn",
{