npm update + fix linked to this update

found an issue with eslint when empty comments were used.
This commit is contained in:
jfh
2020-10-04 23:07:31 +02:00
parent e2493664ed
commit cfbb5a5ec8
15 changed files with 594 additions and 193 deletions

View File

@@ -24,7 +24,7 @@ let cbid = 0;
function getCallbackSetter (funcName) {
return function (...args) {
const that = this, // New callback
callbackID = this.send(funcName, args, function () { /* */ }); // The callback (currently it's nothing, but will be set later)
callbackID = this.send(funcName, args, function () { /* empty */ }); // The callback (currently it's nothing, but will be set later)
return function (newCallback) {
that.callbacks[callbackID] = newCallback; // Set callback

View File

@@ -37,8 +37,8 @@ const ns = {
if (!window.console) {
window.console = {
log (str) { /* */ },
dir (str) { /* */ }
log (str) { /* empty fn */ },
dir (str) { /* empty fn */ }
};
}

View File

@@ -82,13 +82,13 @@ const {
if (!window.console) {
window.console = {};
window.console.log = function (str) { /* */ };
window.console.dir = function (str) { /* */ };
window.console.log = function (str) { /* empty fn */ };
window.console.dir = function (str) { /* empty fn */ };
}
if (window.opera) {
window.console.log = function (str) { window.opera.postError(str); };
window.console.dir = function (str) { /* */ };
window.console.dir = function (str) { /* empty fn */ };
}
// Reenable after fixing eslint-plugin-jsdoc to handle
@@ -3890,7 +3890,7 @@ function hideCursor () {
* @returns {void}
*/
this.open = function () {
/* */
/* empty fn */
};
/**