Just make a comment in your script like that:
/*global window */
... your script goes here
This comment will tell JSLint that window
is defined somewhere else.
See: http://www.JSLint.com/lint.html,
JSLint also recognizes a /* global */
comment that can indicate to JSLint that variables used in this file were defined in other files. The comment can contain a comma separated list of names. Each name can optionally be followed by a colon and either true or false, true indicated that the variable may be assigned to by this file, and false indicating that assignment is not allowed which is the default.
When you want window to be global by default without having to apply the comment to your script, you can add predef:["window"]
to the object literal parameter inside the JSLINT
function of your local jslint.js
file.
BTW, I'm using predef:["$","window"]
to have jQuery global as well.
Update:
This answer was correct back in 2009. As of now you should use the
solution /*jslint browser: true*/
provided by Matt Clarkson.