From c4e88083d27f431b595e96bda6a20dd7d162761d Mon Sep 17 00:00:00 2001 From: Michał Gołębiowski Date: Wed, 18 Dec 2013 15:23:27 +0100 Subject: Build: Upgrade to grunt-contrib-jshint 0.7.1 and squash subtasks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. (cherry-picked from 7deee6af72bfcf328fa09a28a1e68159cc58513f) Fixes #14504 --- Gruntfile.js | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'Gruntfile.js') diff --git a/Gruntfile.js b/Gruntfile.js index 759edfcf1..f49a93386 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -77,27 +77,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: { -- cgit v1.2.3