]> source.dussan.org Git - jquery.git/commitdiff
Build: Don't lint the built file in the husky precommit hook
authorMichał Gołębiowski <m.goleb@gmail.com>
Fri, 29 Apr 2016 08:36:57 +0000 (10:36 +0200)
committerMichał Gołębiowski <m.goleb@gmail.com>
Fri, 29 Apr 2016 08:36:57 +0000 (10:36 +0200)
The husky Git precommit hook was linting not only the source but also the
built file. Normally it's expected, we want to run basic checks on what's
built but in the precommit hook we're not building the file so we might
be linting some previous, broken version.

Fixes gh-3091

Gruntfile.js

index c979f282217ef9efa4ab7e2ddf44877c2d8d3bbd..3e81b6161d702c3fb443b10df332ce680a761c61 100644 (file)
@@ -217,5 +217,5 @@ module.exports = function( grunt ) {
 
        grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
 
-       grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:jshint", "newer:jscs" ] );
+       grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:jshint:all", "newer:jscs" ] );
 };