ESLint – “window” is not defined. How to allow global variables in package.json
I am assigning a property to the global window object, but when I run eslint, I get this: “window” is not defined I see this here in the eslint docs: the following defines window as a global variable for code that should not trigger the rule being tested: valid: [ { code: “window.alert()”, globals: [ … Read more