Closed loadx closed 10 years ago
Woops the finally was left over from before, likewise the instance var. Sorted, cheers for the heads up :)
throw
will exit the process
and it also works with node domains
Awesome, i wasn't aware of that behaviour ill get it patched and push soon.
Patched, Apologies for the delay :(
Nice work @loadx.
@paulmillr Would it be possible to get a version bump for this on npm?
@jas have you tried out the master branch? Can you confirm for us everything is working as you'd expect?
@es128 Using a .jshintrc
and the warn_only
option are both working as intended. The only issue is Brunch the CoffeeScript source file was not compiled into /lib
so I had to compile it manually to test.
@jas You want to run jshint on compiled CoffeeScript? Why?
Or do you just mean that was your workaround for testing the plugin in an all-coffee project?
@es128 Sorry, my mistake. What I meant was when I installed from the master
branch via npm, the module wasn't compiled to JS. Looks like this happens when publishing to npm though. https://github.com/brunch/jshint-brunch/blob/master/package.json#L13 This might be confusing for others using the git version — might be better to use postinstall
instead of prepublish
?
Ah, now I understand. postinstall
would require coffee-script
to be installed globally for each client, or as a dependency of each plugin, so we don't do that. We just try to keep the up-to-date compiled version in the repo (although I may be experimenting soon with having brunch require the coffee source directly to avoid all compiling).
Adds support for reading .jshintrc files.
Added option warn_only, if set to true then build process is no longer halted by jshint errors and a warning message is displayed instead.