SublimeLinter/SublimeLinter — pull request #285 by circusbred (2012-11-02 01:50:55+00:00)
Title: Support for JSLint "globals" directive

`predef` is a legacy directive that is no longer [documented](http://www.jshint.com/docs/).

`globals` is the third, optional parameter to `JSHINT`. It should be undefined or an object with its keys being the global and value either `true` (overridable) or `false` (read-only).

This should allow `.jshintrc` or user settings with a "globals" option to work properly without warnings. Example config:

```JSON
{
"browser": true,
"undef": true,
"globals": {
"cats": true,
"dogs": false
}
}
```

```JavaScript
cats = dogs; // OK

dogs = cats; // Warning: Read only
```