Commit fcaef889 authored by Mike Sherov's avatar Mike Sherov Committed by Dave Methvin

Clean up jshintrc configs. Close gh-983.

parent 08e13454
{ {
"options": {
"curly": true, "curly": true,
"eqnull": true,
"eqeqeq": true, "eqeqeq": true,
"eqnull": true,
"expr": true, "expr": true,
"latedef": true, "latedef": true,
"noarg": true, "noarg": true,
"node": true,
"quotmark": "double", "quotmark": "double",
"smarttabs": true, "smarttabs": true,
"trailing": true, "trailing": true,
"undef": true "undef": true,
"unused": true
}
} }
...@@ -5,9 +5,6 @@ ...@@ -5,9 +5,6 @@
* *
*/ */
/*jshint node: true */
/*global config:true, task:true, process:true*/
module.exports = function( grunt ) { module.exports = function( grunt ) {
"use strict"; "use strict";
...@@ -24,15 +21,10 @@ module.exports = function( grunt ) { ...@@ -24,15 +21,10 @@ module.exports = function( grunt ) {
return data; return data;
} }
var task = grunt.task;
var file = grunt.file; var file = grunt.file;
var utils = grunt.utils;
var log = grunt.log; var log = grunt.log;
var verbose = grunt.verbose; var verbose = grunt.verbose;
var fail = grunt.fail;
var option = grunt.option;
var config = grunt.config; var config = grunt.config;
var template = grunt.template;
var distpaths = [ var distpaths = [
"dist/jquery.js", "dist/jquery.js",
"dist/jquery.min.js" "dist/jquery.min.js"
...@@ -99,7 +91,7 @@ module.exports = function( grunt ) { ...@@ -99,7 +91,7 @@ module.exports = function( grunt ) {
} }
return { return {
options: jshintrc(), grunt: jshintrc(),
dist: jshintrc( "src/" ), dist: jshintrc( "src/" ),
tests: jshintrc( "test/" ) tests: jshintrc( "test/" )
}; };
...@@ -260,8 +252,7 @@ module.exports = function( grunt ) { ...@@ -260,8 +252,7 @@ module.exports = function( grunt ) {
"Concatenate source (include/exclude modules with +/- flags), embed date/version", "Concatenate source (include/exclude modules with +/- flags), embed date/version",
function() { function() {
// Concat specified files. // Concat specified files.
var i, var compiled = "",
compiled = "",
modules = this.flags, modules = this.flags,
explicit = Object.keys(modules).length > 1, explicit = Object.keys(modules).length > 1,
optIn = !modules["*"], optIn = !modules["*"],
......
{ {
"options": { "options": {
"evil": true,
"browser": true, "browser": true,
"wsh": true, "curly": true,
"eqnull": true, "eqnull": true,
"evil": true,
"expr": true, "expr": true,
"curly": true, "maxerr": 100,
"trailing": true, "quotmark": "double",
"undef": true,
"smarttabs": true, "smarttabs": true,
"sub": true, "sub": true,
"maxerr": 100, "trailing": true,
"quotmark": "double" "undef": true,
"wsh": true
}, },
"globals": { "globals": {
"define": true, "define": true,
......
{ {
"options": { "options": {
"evil": true,
"browser": true, "browser": true,
"wsh": true, "curly": true,
"devel": true,
"eqnull": true, "eqnull": true,
"evil": true,
"expr": true, "expr": true,
"curly": true,
"trailing": true,
"undef": true,
"smarttabs": true,
"maxerr": 100, "maxerr": 100,
"quotmark": "double",
"smarttabs": true,
"sub": true, "sub": true,
"quotmark": "double" "trailing": true,
"undef": true,
"wsh": true
}, },
"globals": { "globals": {
"define": true, "define": true,
...@@ -24,7 +25,6 @@ ...@@ -24,7 +25,6 @@
"require": true, "require": true,
"file": true, "file": true,
"log": true, "log": true,
"console": true,
"QUnit": true, "QUnit": true,
"ok": true, "ok": true,
"equal": true, "equal": true,
......
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