jquery/jquery — pull request #1185 by stevenbenner (2013-02-28 07:12:45+00:00)
Title: Changed .jshintrc predef lists to globals objects.

This change reverts part of the changes from commit 5dd8a90f734297d51ef74a6c4be23c2a4e43c4df where the globals objects were changed to be predef arrays. Of course this keeps the updated list of globals intact, as well as their order.

The predef array has been deprecated for some time now. The recommended way to describe global variables for JSHint is to define them in an object and pass that object to the linter.

I might be missing something somewhere else in the jQuery build/test process, but the grunt-contrib-jshint task [supports globals defined in the .jshintrc file](https://github.com/gruntjs/grunt-contrib-jshint/blob/1fb8000baccb1fedf51c55cdac56f86cac023ad1/tasks/jshint.js#L36) just fine. In fact internally it has actually been [converting the predef list to a globals object](https://github.com/gruntjs/grunt-contrib-jshint/blob/1fb8000baccb1fedf51c55cdac56f86cac023ad1/tasks/jshint.js#L28) for you.