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
parent 2d731505
......@@ -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: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment