From b8fc3f0e65c4f527b3e8d52145a9ecba33f6834b Mon Sep 17 00:00:00 2001 From: Krzysztof Zbudniewek Date: Fri, 2 Dec 2016 23:45:20 +0100 Subject: [PATCH] eslint: change space-before-blocks from warning to error and fix violations --- .eslintrc.json | 2 +- static/js/admin.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 7b9ad29644..542a5cfa99 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -179,7 +179,7 @@ "case": { "after": true } } }], - "space-before-blocks": 1, + "space-before-blocks": 2, "strict": 1, "unnecessary-strict": 0, "use-isnan": 2, diff --git a/static/js/admin.js b/static/js/admin.js index ec477b2e98..2dc3b6f07c 100644 --- a/static/js/admin.js +++ b/static/js/admin.js @@ -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",