summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 00:34:37 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 00:34:37 +0300
commit3a8aa43fb935e37e60edae5ca3982844222b8ced (patch)
tree0eaaba896fab0b4a3c4ca4894f50aa7d8164b909
parente5250261a7a7aa0febfb68ccfda94db45cebf226 (diff)
downloadeslint-config-3a8aa43fb935e37e60edae5ca3982844222b8ced.tar.xz
eslint-config-3a8aa43fb935e37e60edae5ca3982844222b8ced.zip
feat(eslint): Rule "no-iterator"
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 cd883eb..3e695a9 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -132,7 +132,7 @@
- [ ] "no-invalid-regexp"
- [ ] "no-invalid-this"
- [ ] "no-irregular-whitespace"
-- [ ] "no-iterator"
+- [X] "no-iterator"
- [ ] "no-label-var"
- [ ] "no-labels"
- [ ] "no-lone-blocks"
diff --git a/src/rules/default.json b/src/rules/default.json
index a0527c9..73490d2 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -248,6 +248,9 @@
"no-implied-eval": [
"error"
],
+ "no-iterator": [
+ "error"
+ ],
"no-magic-numbers": [
"warn",
{