diff options
author | Jha Naman <createnaman@gmail.com> | 2016-01-29 02:29:49 +0300 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2016-01-29 02:34:55 +0300 |
commit | d94c4539796d02dd0f54e9a3417b660195b844b0 (patch) | |
tree | 5068dfe49ab05f0d8d1b2088ff6fe5a3c17b5b60 | |
parent | 25068bf2c664e05d5ae48d8d2fb480ee572d3b97 (diff) | |
download | jquery-d94c4539796d02dd0f54e9a3417b660195b844b0.tar.gz jquery-d94c4539796d02dd0f54e9a3417b660195b844b0.zip |
Build: run linters on git-commit
Fixes gh-2577
Closes gh-2881
-rw-r--r-- | Gruntfile.js | 2 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 18aee7593..591af920d 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -224,4 +224,6 @@ module.exports = function( grunt ) { grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "remove_map_comment", "dist:*" ] ); grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] ); + + grunt.registerTask( "precommit_lint", [ "newer:jsonlint", "newer:jshint", "newer:jscs" ] ); }; diff --git a/package.json b/package.json index 67d7a1972..e515cff44 100644 --- a/package.json +++ b/package.json @@ -39,8 +39,10 @@ "grunt-git-authors": "3.1.0", "grunt-jscs": "2.6.0", "grunt-jsonlint": "1.0.7", + "grunt-newer": "1.1.1", "grunt-npmcopy": "0.1.0", "gzip-js": "0.3.2", + "husky": "0.10.2", "jsdom": "5.6.1", "load-grunt-tasks": "3.4.0", "native-promise-only": "0.8.1", |