ESlint no-return-assign

and no-restricted-modules
v1.18.x
Peter Jaszkowiak 8 years ago
parent 896c8c7343
commit ac2f69f7af

@ -93,9 +93,8 @@
"no-script-url": "off", "no-script-url": "off",
"no-path-concat": "off", "no-path-concat": "off",
"no-unused-expressions": "off", "no-unused-expressions": "off",
"no-restricted-module": "off", // "no-return-assign": "off",
"no-return-assign": "off", // "no-restricted-modules": "off",
"no-restricted-modules": "off",
// "object-curly-spacing": "off", // "object-curly-spacing": "off",
// "indent": "off", // "indent": "off",
// "padded-blocks": "off", // "padded-blocks": "off",

@ -239,7 +239,8 @@ define('settings', function () {
@param amount The amount of jobs to register. @param amount The amount of jobs to register.
*/ */
registerReadyJobs: function (amount) { registerReadyJobs: function (amount) {
return waitingJobs += amount; waitingJobs += amount;
return waitingJobs;
}, },
/** /**
Decreases the amount of jobs before settings are ready by given amount or 1. Decreases the amount of jobs before settings are ready by given amount or 1.

@ -61,7 +61,8 @@ define('settings/key', function () {
key.code = event.which; key.code = event.which;
key.char = convertKeyCodeToChar(key.code); key.char = convertKeyCodeToChar(key.code);
} }
return oldKey = key; oldKey = key;
return key;
} }
/** /**

@ -104,7 +104,8 @@ define('settings/object', function () {
var prop = property.data('prop'); var prop = property.data('prop');
var empty = helper.isTrue(property.data('empty')); var empty = helper.isTrue(property.data('empty'));
if (empty || (val !== void 0 && (val == null || val.length !== 0))) { if (empty || (val !== void 0 && (val == null || val.length !== 0))) {
return value[prop] = val; value[prop] = val;
return val;
} }
}); });
if (empty || Object.keys(value).length) { if (empty || Object.keys(value).length) {

Loading…
Cancel
Save