Skip to content

Commit d3a781d

Browse files
committed
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 jquerygh-3091
1 parent dbdc4b7 commit d3a781d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,5 +217,5 @@ module.exports = function( grunt ) {
217217

218218
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
219219

220-
grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:jshint", "newer:jscs" ] );
220+
grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:jshint:all", "newer:jscs" ] );
221221
};

0 commit comments

Comments
 (0)