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.

(cherry-picked from 7deee6af)

Fixes #14504
parent 15d245ff
...@@ -77,27 +77,18 @@ module.exports = function( grunt ) { ...@@ -77,27 +77,18 @@ module.exports = function( grunt ) {
} }
}, },
jshint: { jshint: {
src: { all: {
src: "src/**/*.js", src: [
"src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/tasks/*",
"build/{bower-install,release-notes,release}.js"
],
options: { options: {
jshintrc: "src/.jshintrc" jshintrc: true
} }
}, },
dist: { dist: {
src: "dist/jquery.js", src: "dist/jquery.js",
options: srcHintOptions 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: { 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