Search code examples
javascriptjslintlint

JSLint Bad option 'window:true'


I am currently configuring JS Lint for Visual Studio Code and I keep on getting this strange warning telling me that the global window setting is a "bad option" like so:

enter image description here

My JSLint comment is as follows:

/*global window: true */

No space between the * and g , and yet it shows me the warning anyways.

enter image description here

How can I fix this?


Solution

  • The list of globals is just a list. There's no : true involved.

    /*global window*/