From f82edcd7e78f96e33d107fc18c82a7ed21908831 Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 23 Mar 2018 16:15:59 +0200 Subject: [PATCH] quote-props: consistent-as-needed --- .eslintrc.yml | 2 +- client/js/keybinds.js | 2 +- src/plugins/changelog.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.eslintrc.yml b/.eslintrc.yml index 8df76f47..41c77f21 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -67,7 +67,7 @@ rules: prefer-const: error prefer-rest-params: error prefer-spread: error - quote-props: [error, as-needed] + quote-props: [error, consistent-as-needed] quotes: [error, double, avoid-escape] rest-spread-spacing: error semi-spacing: error diff --git a/client/js/keybinds.js b/client/js/keybinds.js index 354feda9..313c8eb8 100644 --- a/client/js/keybinds.js +++ b/client/js/keybinds.js @@ -139,7 +139,7 @@ const bracketWraps = { "*": "*", "`": "`", "~": "~", - _: "_", + "_": "_", }; inputTrap.bind(Object.keys(bracketWraps), function(e) { diff --git a/src/plugins/changelog.js b/src/plugins/changelog.js index 1879495f..fec9f8fb 100644 --- a/src/plugins/changelog.js +++ b/src/plugins/changelog.js @@ -25,7 +25,7 @@ function fetch(callback) { request.get({ uri: "https://api.github.com/repos/thelounge/thelounge/releases", headers: { - Accept: "application/vnd.github.v3.html", // Request rendered markdown + "Accept": "application/vnd.github.v3.html", // Request rendered markdown "User-Agent": pkg.name + "; +" + pkg.repository.git, // Identify the client }, }, (error, response, body) => {