mirror of https://github.com/zulip/zulip.git
eslint: change space-before-blocks from warning to error and fix violations
This commit is contained in:
parent
4491ea8d6b
commit
b8fc3f0e65
|
@ -179,7 +179,7 @@
|
||||||
"case": { "after": true }
|
"case": { "after": true }
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
"space-before-blocks": 1,
|
"space-before-blocks": 2,
|
||||||
"strict": 1,
|
"strict": 1,
|
||||||
"unnecessary-strict": 0,
|
"unnecessary-strict": 0,
|
||||||
"use-isnan": 2,
|
"use-isnan": 2,
|
||||||
|
|
|
@ -790,7 +790,7 @@ function _setup_page() {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
var emoji_status = $('#admin-emoji-status');
|
var emoji_status = $('#admin-emoji-status');
|
||||||
var emoji = {};
|
var emoji = {};
|
||||||
$(this).serializeArray().map(function (x){emoji[x.name] = x.value;});
|
$(this).serializeArray().map(function (x) {emoji[x.name] = x.value;});
|
||||||
|
|
||||||
channel.put({
|
channel.put({
|
||||||
url: "/json/realm/emoji",
|
url: "/json/realm/emoji",
|
||||||
|
@ -842,7 +842,7 @@ function _setup_page() {
|
||||||
pattern_status.hide();
|
pattern_status.hide();
|
||||||
format_status.hide();
|
format_status.hide();
|
||||||
var filter = {};
|
var filter = {};
|
||||||
$(this).serializeArray().map(function (x){filter[x.name] = x.value;});
|
$(this).serializeArray().map(function (x) {filter[x.name] = x.value;});
|
||||||
|
|
||||||
channel.post({
|
channel.post({
|
||||||
url: "/json/realm/filters",
|
url: "/json/realm/filters",
|
||||||
|
|
Loading…
Reference in New Issue