mirror of
https://github.com/electron/electron.git
synced 2026-01-10 07:58:08 -05:00
👷 Put ESLint's mind at ease
This commit is contained in:
@@ -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().`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user