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