angular-gettext-tools
angular-gettext-tools copied to clipboard
fix: update jshint exception switch to current jshint version
update the jshint exception switch to current (2.6.0) version for mixed quotation marks. As of jshint > 1.0 this exception is W110 instead of the used W100
How was this working before?
Jshint was throwing warnings and if you do have quite a few translations, linting your source got pretty annoying.
Ah yes. Well, I stand by my point that you should ignore generated files from linting.
This might happen again and it's totally pointless. Just don't lint machine-generated stuff, it's a waste of time.
Well, I stumbled across this as where were some exception switches in the code, however just old ones.
If we already add a JSHint directive to the generated JS, I suppose we should at least use the right directive :-)
But honestly, I would vote for not outputting any JSHint directives. Or maybe jshint:ignore
completely disabling jshint on the compiled file is the right choice, as one does not have influence on the global jshint settings of the developer and also one can't influence the generated code.