From 6a214347d6c9480287529cc70a1fdefc4088308b Mon Sep 17 00:00:00 2001 From: Chris Adams Date: Tue, 18 Jun 2013 17:18:47 -0400 Subject: [PATCH] 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. --- .jshintrc | 14 ++++++++++++++ Gruntfile.js | 13 +------------ package.json | 2 +- 3 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 .jshintrc diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 00000000..ef54d227 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,14 @@ +{ + "browser": true, + "curly": true, + "eqeqeq": false, + "loopfunc": false, + "noarg": true, + "trailing": true, + "undef": true, + "unused": true, + + "globals": { + "OpenSeadragon": true + } +} diff --git a/Gruntfile.js b/Gruntfile.js index c568ccce..9e34ccd5 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -147,18 +147,7 @@ module.exports = function(grunt) { }, jshint: { options: { - browser: true, - curly: true, - eqeqeq: false, - loopfunc: false, - noarg: true, - trailing: true, - undef: true, - unused: true, - - globals: { - OpenSeadragon: true - } + jshintrc: '.jshintrc' }, beforeconcat: sources, afterconcat: [ distribution ] diff --git a/package.json b/package.json index 5f9dd1a4..8c653ab4 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "grunt": "~0.4.0", "grunt-contrib-compress": "~0.5.0", "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-qunit": "~0.2.0", "grunt-contrib-connect": "~0.1.2",