jshint/site — Issue #37: Options in url hash
Author: xavierm02
Created: 2012-01-07 16:32:27+00:00
State: open

Hi,

I'm starting to send links to JSHint to new JavaScripters on forums who have problems with variables declared several times, unused variables etc.
But they often get errors they don't understand about "use strict", functions declarations in functions and things they shouldn't be bothered with it at this point so I'd love having hash system to set the options. Something like this:
http://www.jshint.com/#strict=false
This way, I would be able to set just the options I need for them to see their errors.

Another use for it is that when you bookmark JSHint, you would set your default options at the same time and they would be saved. So you wouldn't need the /*jshint */ comment in every single file if you don't want to have to set all options every time you use JSHint.

Thanks in advance.