diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-12-18 15:23:27 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-12-18 15:24:29 +0100 |
commit | 7deee6af72bfcf328fa09a28a1e68159cc58513f (patch) | |
tree | 1190f16a49e6976e3da30629553d5360f154c7ce /Gruntfile.js | |
parent | 2d7315051193212fca6e7d64a3de87d96977c418 (diff) | |
download | jquery-7deee6af72bfcf328fa09a28a1e68159cc58513f.tar.gz jquery-7deee6af72bfcf328fa09a28a1e68159cc58513f.zip |
Build: Upgrade to grunt-contrib-jshint 0.7.1 and squash subtasks
grunt-contrib-jshint 0.7.1 allows the jshintrc option to be set to true to have
it read the appropriate config file based on the file being checked. The only
place where we can’t use it is the check for dist/jquery.js that has the onevar
option removed.
Fixes #14504
Diffstat (limited to 'Gruntfile.js')
-rw-r--r-- | Gruntfile.js | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index 4030a3e65..1739ed5fb 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -80,27 +80,18 @@ module.exports = function( grunt ) { } }, jshint: { - src: { - src: "src/**/*.js", + all: { + src: [ + "src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/tasks/*", + "build/{bower-install,release-notes,release}.js" + ], options: { - jshintrc: "src/.jshintrc" + jshintrc: true } }, dist: { src: "dist/jquery.js", options: srcHintOptions - }, - grunt: { - src: [ "Gruntfile.js", "build/tasks/*", "build/{bower-install,release-notes,release}.js" ], - options: { - jshintrc: ".jshintrc" - } - }, - tests: { - src: "test/**/*.js", - options: { - jshintrc: "test/.jshintrc" - } } }, jscs: { |