Permalink
Browse files

hint: allow custom globals in configuration

  • Loading branch information...
1 parent 6d1eac2 commit 682d094a7a8f75be1a7adb773f34856e7e6c917a @rauchg rauchg committed with brentlintner Aug 24, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/hint.js
View
@@ -21,7 +21,7 @@ function _lint(file, results, config, data) {
// Remove potential Unicode Byte Order Mark.
buffer = buffer.replace(/^\uFEFF/, '');
- if (!jshint.JSHINT(buffer, config)) {
+ if (!jshint.JSHINT(buffer, config, config['globals'])) {
jshint.JSHINT.errors.forEach(function (error) {
if (error) {
results.push({file: file, error: error});

0 comments on commit 682d094

Please sign in to comment.