mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
Fix wrap-iife linter rule
This commit is contained in:
@@ -18,7 +18,6 @@
|
|||||||
"eqeqeq": "off",
|
"eqeqeq": "off",
|
||||||
"camelcase": "off",
|
"camelcase": "off",
|
||||||
"no-negated-condition": "off",
|
"no-negated-condition": "off",
|
||||||
"wrap-iife": "off",
|
|
||||||
"one-var-declaration-per-line": "off",
|
"one-var-declaration-per-line": "off",
|
||||||
"new-cap": "off",
|
"new-cap": "off",
|
||||||
"no-lonely-if": "off",
|
"no-lonely-if": "off",
|
||||||
|
|||||||
@@ -286,8 +286,8 @@
|
|||||||
define('helpers', exports);
|
define('helpers', exports);
|
||||||
}
|
}
|
||||||
|
|
||||||
})(
|
}(
|
||||||
typeof exports === 'object' ? exports :
|
typeof exports === 'object' ? exports :
|
||||||
typeof define === 'function' && define.amd ? {} :
|
typeof define === 'function' && define.amd ? {} :
|
||||||
helpers = {}
|
helpers = {}
|
||||||
);
|
));
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ define('settings/array', function () {
|
|||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
return $(document.createTextNode(separator));
|
return $(document.createTextNode(separator));
|
||||||
}
|
}
|
||||||
})();
|
}());
|
||||||
if (typeof attributes !== 'object') {
|
if (typeof attributes !== 'object') {
|
||||||
attributes = {};
|
attributes = {};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ define('settings/object', function () {
|
|||||||
} catch (_error) {
|
} catch (_error) {
|
||||||
return $(document.createTextNode(separator));
|
return $(document.createTextNode(separator));
|
||||||
}
|
}
|
||||||
})();
|
}());
|
||||||
element.empty();
|
element.empty();
|
||||||
if (typeof value !== 'object') {
|
if (typeof value !== 'object') {
|
||||||
value = {};
|
value = {};
|
||||||
|
|||||||
@@ -29,16 +29,16 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
module.exports = factory(require('string'), loadServer);
|
module.exports = factory(require('string'), loadServer);
|
||||||
})();
|
}());
|
||||||
} else {
|
} else {
|
||||||
window.translator = factory(window.string, loadClient);
|
window.translator = factory(window.string, loadClient);
|
||||||
}
|
}
|
||||||
})(function (string, load) {
|
}(function (string, load) {
|
||||||
'use strict';
|
'use strict';
|
||||||
var assign = Object.assign || jQuery.extend;
|
var assign = Object.assign || jQuery.extend;
|
||||||
function classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
function classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
||||||
|
|
||||||
var Translator = function () {
|
var Translator = (function () {
|
||||||
/**
|
/**
|
||||||
* Construct a new Translator object
|
* Construct a new Translator object
|
||||||
* @param {string} language - Language code for this translator instance
|
* @param {string} language - Language code for this translator instance
|
||||||
@@ -305,7 +305,7 @@
|
|||||||
Translator.cache = {};
|
Translator.cache = {};
|
||||||
|
|
||||||
return Translator;
|
return Translator;
|
||||||
}();
|
}());
|
||||||
|
|
||||||
var adaptor = {
|
var adaptor = {
|
||||||
/**
|
/**
|
||||||
@@ -453,4 +453,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
return adaptor;
|
return adaptor;
|
||||||
});
|
}));
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ if ('undefined' !== typeof window) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})(jQuery || {fn:{}});
|
}(jQuery || {fn:{}}));
|
||||||
|
|
||||||
(function(){
|
(function(){
|
||||||
// FIX FOR #1245 - https://github.com/NodeBB/NodeBB/issues/1245
|
// FIX FOR #1245 - https://github.com/NodeBB/NodeBB/issues/1245
|
||||||
@@ -109,7 +109,7 @@ if ('undefined' !== typeof window) {
|
|||||||
_clearMenus();
|
_clearMenus();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
})();
|
}());
|
||||||
|
|
||||||
overrides.overrideBootbox = function () {
|
overrides.overrideBootbox = function () {
|
||||||
require(['translator'], function(translator) {
|
require(['translator'], function(translator) {
|
||||||
|
|||||||
@@ -478,8 +478,8 @@
|
|||||||
window.utils = module.exports;
|
window.utils = module.exports;
|
||||||
}
|
}
|
||||||
|
|
||||||
})('undefined' === typeof module ? {
|
}('undefined' === typeof module ? {
|
||||||
module: {
|
module: {
|
||||||
exports: {}
|
exports: {}
|
||||||
}
|
}
|
||||||
} : module);
|
} : module));
|
||||||
|
|||||||
@@ -30,4 +30,4 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
return module;
|
return module;
|
||||||
})(exports);
|
}(exports));
|
||||||
@@ -224,4 +224,4 @@ var ratelimit = require('../middleware/ratelimit');
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
})(exports);
|
}(exports));
|
||||||
|
|||||||
Reference in New Issue
Block a user