From 020e6eabcc0a3b7a16110b37ea821e130d860249 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 16:05:48 +0400 Subject: feat(eslint): Rule "no-eval" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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", { -- cgit v1.2.3