eslint: change space-before-blocks from warning to error and fix violations

This commit is contained in:
Krzysztof Zbudniewek 2016-12-02 23:45:20 +01:00 committed by Tim Abbott
parent 4491ea8d6b
commit b8fc3f0e65
2 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@
"case": { "after": true }
}
}],
"space-before-blocks": 1,
"space-before-blocks": 2,
"strict": 1,
"unnecessary-strict": 0,
"use-isnan": 2,

View File

@ -790,7 +790,7 @@ function _setup_page() {
e.stopPropagation();
var emoji_status = $('#admin-emoji-status');
var emoji = {};
$(this).serializeArray().map(function (x){emoji[x.name] = x.value;});
$(this).serializeArray().map(function (x) {emoji[x.name] = x.value;});
channel.put({
url: "/json/realm/emoji",
@ -842,7 +842,7 @@ function _setup_page() {
pattern_status.hide();
format_status.hide();
var filter = {};
$(this).serializeArray().map(function (x){filter[x.name] = x.value;});
$(this).serializeArray().map(function (x) {filter[x.name] = x.value;});
channel.post({
url: "/json/realm/filters",