mirror of https://github.com/zulip/zulip.git
eslint: change array-callback-return from warning to error.
This commit is contained in:
parent
690d72d35f
commit
abde152d9c
|
@ -120,7 +120,7 @@
|
|||
"numbers": false
|
||||
}],
|
||||
"no-array-constructor": "error",
|
||||
"array-callback-return": 1,
|
||||
"array-callback-return": "error",
|
||||
"template-curly-spacing": "error",
|
||||
"no-useless-escape": 1,
|
||||
"func-style": ["off", "expression"],
|
||||
|
|
|
@ -792,7 +792,9 @@ function _setup_page() {
|
|||
e.stopPropagation();
|
||||
var emoji_status = $('#admin-emoji-status');
|
||||
var emoji = {};
|
||||
$(this).serializeArray().map(function (x) {emoji[x.name] = x.value;});
|
||||
_.each($(this).serializeArray(), function (obj) {
|
||||
emoji[obj.name] = obj.value;
|
||||
});
|
||||
|
||||
channel.put({
|
||||
url: "/json/realm/emoji",
|
||||
|
@ -844,7 +846,9 @@ function _setup_page() {
|
|||
pattern_status.hide();
|
||||
format_status.hide();
|
||||
var filter = {};
|
||||
$(this).serializeArray().map(function (x) {filter[x.name] = x.value;});
|
||||
_.each($(this).serializeArray(), function (obj) {
|
||||
filter[obj.name] = obj.value;
|
||||
});
|
||||
|
||||
channel.post({
|
||||
url: "/json/realm/filters",
|
||||
|
|
Loading…
Reference in New Issue