Alert is not defined in JSHint

Maybe you just started looking into jshint, or jsline for better JavaScript authoring, then when it comes to poorly debug or test something and you type alert(‘something’). This makes jshint unhappy, but can be useful sometimes, expecially if you have to debug something in old IE.

In jshit options the devel option allow you to use console.log and alerts without warnings. Personally I switch this setting only when really needed, to prevent annoying alerts or console logging in production.