Open MaKleSoft opened 10 years ago
When I initially wrote this plugin, jshint didn't have that functionality IIRC. I'd be more than happy if we switched over to the new implementation.
Linting JS inside HTML should work properly now. It'd still be nice to switch to jshint's extract
method. At the moment, js is regexed out of the markup.
Fixed by https://github.com/victorporof/Sublime-JSHint/commit/5a24960ae9323fcd726c0da5d7ea09b59760a93a
Relevant code that wasn't used anymore: https://github.com/victorporof/Sublime-JSHint/blob/master/scripts/run.js#L67
Linting inline JavaScript in HTML files does not seem to work for me in SublimeText 2. I noticed that you are extracting the JavaScript 'manually'. Why not use the functionality provided by jshint itself?
See http://www.jshint.com/docs/cli/