diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 15:05:48 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 15:05:48 +0300 |
commit | 020e6eabcc0a3b7a16110b37ea821e130d860249 (patch) | |
tree | bc9f99887161a1451b603b13ff2af448990ea6a3 | |
parent | 263c8c736ea385144b2f3ff02d6abf8d62f50aa9 (diff) | |
download | eslint-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.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 6 |
2 files changed, 7 insertions, 1 deletions
@@ -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", { |