diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-29 10:36:57 +0200 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2016-04-29 10:36:57 +0200 |
commit | d3a781d762913c55a7b9b97eb2fd38711a371f9a (patch) | |
tree | 2cc6e19b9237d21f9a45d672f4a5f64bf4165969 | |
parent | dbdc4b761b51c59c90e05fe2fb8977d2182ba992 (diff) | |
download | jquery-d3a781d762913c55a7b9b97eb2fd38711a371f9a.tar.gz jquery-d3a781d762913c55a7b9b97eb2fd38711a371f9a.zip |
Build: Don't lint the built file in the husky precommit hook
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
-rw-r--r-- | Gruntfile.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index c979f2822..3e81b6161 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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" ] ); }; |