Upgrade to current JSHint

This also allows us to move our settings to .jshintrc for better IDE &
command-line integration - simply type "jshint" in the directory and it
will use the same options.
This commit is contained in:
Chris Adams 2013-06-18 17:18:47 -04:00
parent dc81cde4ab
commit 6a214347d6
3 changed files with 16 additions and 13 deletions

14
.jshintrc Normal file
View File

@ -0,0 +1,14 @@
{
"browser": true,
"curly": true,
"eqeqeq": false,
"loopfunc": false,
"noarg": true,
"trailing": true,
"undef": true,
"unused": true,
"globals": {
"OpenSeadragon": true
}
}

View File

@ -147,18 +147,7 @@ module.exports = function(grunt) {
}, },
jshint: { jshint: {
options: { options: {
browser: true, jshintrc: '.jshintrc'
curly: true,
eqeqeq: false,
loopfunc: false,
noarg: true,
trailing: true,
undef: true,
unused: true,
globals: {
OpenSeadragon: true
}
}, },
beforeconcat: sources, beforeconcat: sources,
afterconcat: [ distribution ] afterconcat: [ distribution ]

View File

@ -6,7 +6,7 @@
"grunt": "~0.4.0", "grunt": "~0.4.0",
"grunt-contrib-compress": "~0.5.0", "grunt-contrib-compress": "~0.5.0",
"grunt-contrib-concat": "~0.1.2", "grunt-contrib-concat": "~0.1.2",
"grunt-contrib-jshint": "~0.1.1", "grunt-contrib-jshint": "~0.6.0",
"grunt-contrib-uglify": "~0.2.2", "grunt-contrib-uglify": "~0.2.2",
"grunt-contrib-qunit": "~0.2.0", "grunt-contrib-qunit": "~0.2.0",
"grunt-contrib-connect": "~0.1.2", "grunt-contrib-connect": "~0.1.2",