Skip to content

Commit eefb7c6

Browse files
committed
chore: jsHint active apis
1 parent 838b172 commit eefb7c6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/extensions/default/JSLint/JSHint.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ define(function (require, exports, module) {
4545
window._JsHintExtensionReadyToIntegTest = true;
4646
});
4747
}
48-
IndexingWorker.loadScriptInWorker(`${module.uri}/../worker/jshint-helper.js`);
48+
IndexingWorker.loadScriptInWorker(`${module.uri}/../worker/jslint-helper.js`);
4949

5050
let prefs = PreferencesManager.getExtensionPrefs("jshint"),
5151
projectSpecificOptions = null,
@@ -218,6 +218,10 @@ define(function (require, exports, module) {
218218
});
219219
}
220220

221+
function isJSHintConfigActive() {
222+
return !!(jsHintConfigFileErrorMessage || projectSpecificOptions);
223+
}
224+
221225
function _isFileInArray(fileToCheck, fileArray){
222226
if(!fileArray){
223227
return false;
@@ -256,4 +260,6 @@ define(function (require, exports, module) {
256260
&& fullPath && !fullPath.endsWith(".min.js");
257261
}
258262
});
263+
264+
exports.isJSHintConfigActive = isJSHintConfigActive;
259265
});
File renamed without changes.

0 commit comments

Comments
 (0)