Browse Source

:construction_worker: Put ESLint's mind at ease

Felix Rieseberg 7 years ago
parent
commit
93dc38a17b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      docs/tutorial/security.md

+ 2 - 0
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().`)
 }