From 95df3522a15631abc51a4295cae0ea401a8d4e1e Mon Sep 17 00:00:00 2001 From: Markus Hatvan Date: Tue, 14 Sep 2021 19:58:52 +0200 Subject: feat: add eslint-plugin-unicorn (#1936) --- src/webview/lib/Userscript.js | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'src/webview/lib/Userscript.js') diff --git a/src/webview/lib/Userscript.js b/src/webview/lib/Userscript.js index 2043d9fff..bed2b1ff8 100644 --- a/src/webview/lib/Userscript.js +++ b/src/webview/lib/Userscript.js @@ -28,7 +28,7 @@ export default class Userscript { * * @param {*} settings */ - // eslint-disable-next-line + // eslint-disable-next-line camelcase internal_setSettings(settings) { // This is needed to get a clean JS object from the settings itself to provide better accessibility // Otherwise this will be a mobX instance @@ -95,9 +95,7 @@ export default class Userscript { * @param {*} value */ set(key, value) { - window.localStorage.setItem( - `ferdi-user-${key}`, JSON.stringify(value), - ); + window.localStorage.setItem(`ferdi-user-${key}`, JSON.stringify(value)); } /** @@ -107,9 +105,7 @@ export default class Userscript { * @return Value of the key */ get(key) { - return JSON.parse(window.localStorage.getItem( - `ferdi-user-${key}`, - )); + return JSON.parse(window.localStorage.getItem(`ferdi-user-${key}`)); } /** -- cgit v1.2.3-70-g09d2