Adjusted the jshint package to meet its own linting requirements. (#8825)

This commit is contained in:
Hugh Willson
2017-06-21 14:07:52 -04:00
committed by Ben Newman
parent d502d2c522
commit 2a3a01acb3

View File

@@ -1,5 +1,5 @@
var util = Npm.require('util');
var Future = Npm.require('fibers/future');
/* globals Npm, Plugin */
var jshint = Npm.require('jshint').JSHINT;
Plugin.registerLinter({
@@ -14,7 +14,7 @@ function JsHintLinter () {
// packageName -> { config (json),
// files: { [pathInPackage,arch] -> { hash, errors }}}
this._cacheByPackage = {};
};
}
var DEFAULT_CONFIG = JSON.stringify({
undef: true,
@@ -114,4 +114,3 @@ JsHintLinter.prototype.processFilesForPackage = function (files, options) {
});
}
};