From: Roan Kattouw Date: Fri, 27 Feb 2015 19:04:52 +0000 (-0800) Subject: build: Work around jshint failure for global JSON object X-Git-Tag: 1.31.0-rc.0~12249 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/?a=commitdiff_plain;h=3dc178d3063e83f25d2b48aa55036fd7318b16e3;p=lhc%2Fweb%2Fwiklou.git build: Work around jshint failure for global JSON object jshint is now failing with errors about how it doesn't recognize the global 'JSON' object, even though we have browser:true set. This worked in 2.6.0 but broke in 2.6.1. Other people have reported similar but different problems with jshint: https://github.com/jshint/jshint/issues/2213 . It looks like 2.6.1 is a seriously broken release, but we can't work around it in package.json because grunt-contrib-jshint depends on 2.6.*, assuming that point releases are backwards compatible. Which they should be. Change-Id: I85bcf1c97f2f8c82e139ebf2f1b6c4248b72f45e --- diff --git a/.jshintrc b/.jshintrc index 92c8c4320c..d77ffb81f7 100644 --- a/.jshintrc +++ b/.jshintrc @@ -20,6 +20,7 @@ "globals": { "mediaWiki": true, + "JSON": true, "jQuery": false, "QUnit": false }