From 3dc178d3063e83f25d2b48aa55036fd7318b16e3 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Fri, 27 Feb 2015 11:04:52 -0800 Subject: [PATCH] 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 --- .jshintrc | 1 + 1 file changed, 1 insertion(+) 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 } -- 2.20.1