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",