aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:05:48 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:05:48 +0300
commit020e6eabcc0a3b7a16110b37ea821e130d860249 (patch)
treebc9f99887161a1451b603b13ff2af448990ea6a3
parent263c8c736ea385144b2f3ff02d6abf8d62f50aa9 (diff)
downloadeslint-config-020e6eabcc0a3b7a16110b37ea821e130d860249.tar.xz
eslint-config-020e6eabcc0a3b7a16110b37ea821e130d860249.zip
feat(eslint): Rule "no-eval"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json6
2 files changed, 7 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index ec25ed2..1647231 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -111,7 +111,7 @@
- [ ] "no-empty-function"
- [ ] "no-empty-pattern"
- [ ] "no-eq-null"
-- [ ] "no-eval"
+- [X] "no-eval"
- [ ] "no-ex-assign"
- [ ] "no-extend-native"
- [ ] "no-extra-bind"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 30f12c6..ac29da4 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -69,6 +69,12 @@
"no-debugger": [
"error"
],
+ "no-eval": [
+ "error",
+ {
+ "allowIndirect": false
+ }
+ ],
"no-multi-spaces": [
"error",
{