JSLint's issue with 'window' as a global variable

Viewed 39450

So I'm using JSLint to try and detect errors. I turn some options off I don't like, but I don't see any way to enable being able to use the window global variable. Well, there is the Yahoo Widget option, but that's overkill.

What's the deal with using 'window', why would JSLint say that is causing errors?

5 Answers

If you dont want to specify this in every file you can set it globally in your eslintrc config file like this:

"globals": {
    "window": true,
}
Related