aboutsummaryrefslogtreecommitdiffstats
path: root/grunt.js
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-10-16 11:26:14 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-10-16 11:28:11 -0400
commitfcaef889682d6724f7b8e662c66a7539a95ae3d8 (patch)
tree793c66ea0817f3bc9032c7fd5414e6c6c8d56560 /grunt.js
parent08e134548f70f24cb73f8e1b7a6da39b1995d0ac (diff)
downloadjquery-fcaef889682d6724f7b8e662c66a7539a95ae3d8.tar.gz
jquery-fcaef889682d6724f7b8e662c66a7539a95ae3d8.zip
Clean up jshintrc configs. Close gh-983.
Diffstat (limited to 'grunt.js')
-rw-r--r--grunt.js13
1 files changed, 2 insertions, 11 deletions
diff --git a/grunt.js b/grunt.js
index 9138925d7..ff44d9f70 100644
--- a/grunt.js
+++ b/grunt.js
@@ -5,9 +5,6 @@
*
*/
-/*jshint node: true */
-/*global config:true, task:true, process:true*/
-
module.exports = function( grunt ) {
"use strict";
@@ -24,15 +21,10 @@ module.exports = function( grunt ) {
return data;
}
- var task = grunt.task;
var file = grunt.file;
- var utils = grunt.utils;
var log = grunt.log;
var verbose = grunt.verbose;
- var fail = grunt.fail;
- var option = grunt.option;
var config = grunt.config;
- var template = grunt.template;
var distpaths = [
"dist/jquery.js",
"dist/jquery.min.js"
@@ -99,7 +91,7 @@ module.exports = function( grunt ) {
}
return {
- options: jshintrc(),
+ grunt: jshintrc(),
dist: jshintrc( "src/" ),
tests: jshintrc( "test/" )
};
@@ -260,8 +252,7 @@ module.exports = function( grunt ) {
"Concatenate source (include/exclude modules with +/- flags), embed date/version",
function() {
// Concat specified files.
- var i,
- compiled = "",
+ var compiled = "",
modules = this.flags,
explicit = Object.keys(modules).length > 1,
optIn = !modules["*"],