From 93dc38a17b8016d20dacf3909adcc069d2b6066d Mon Sep 17 00:00:00 2001 From: Felix Rieseberg Date: Mon, 29 Jan 2018 16:27:41 -0800 Subject: [PATCH] :construction_worker: Put ESLint's mind at ease --- docs/tutorial/security.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/tutorial/security.md b/docs/tutorial/security.md index ef46d6edfd..f52f6a2aba 100644 --- a/docs/tutorial/security.md +++ b/docs/tutorial/security.md @@ -328,6 +328,8 @@ it bulletproof. Thus, if you do not need it, it is a good idea to disable it. ### How? ```js +// ESLint will warn about any use of eval(), even this one +// eslint-disable-next-line window.eval = global.eval = function () { throw new Error(`Sorry, this app does not support window.eval().`) }