From 7e8cc22b0c6022d648df60a52a4a9496659ae16a Mon Sep 17 00:00:00 2001 From: Bastien Wirtz Date: Sun, 10 Mar 2024 14:19:43 +0100 Subject: chore: lint --- package.json | 1 + src/components/services/Rtorrent.vue | 5 ++--- yarn.lock | 5 +++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index e225532..3092b3d 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,7 @@ "yaml": "^2.4.1" }, "devDependencies": { + "@rushstack/eslint-patch": "^1.7.2", "@vitejs/plugin-vue": "^5.0.4", "@vue/eslint-config-prettier": "^9.0.0", "eslint": "^8.57.0", diff --git a/src/components/services/Rtorrent.vue b/src/components/services/Rtorrent.vue index 59dd843..337b8cb 100644 --- a/src/components/services/Rtorrent.vue +++ b/src/components/services/Rtorrent.vue @@ -125,9 +125,8 @@ export default { const headers = { "Content-Type": "text/xml" }; if (this.item.username && this.item.password) { - headers[ - "Authorization" - ] = `${this.item.username}:${this.item.password}`; + headers["Authorization"] = + `${this.item.username}:${this.item.password}`; } return fetch(`${this.item.xmlrpc.replace(/\/$/, "")}/RPC2`, { diff --git a/yarn.lock b/yarn.lock index d6a194d..574662f 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1376,6 +1376,11 @@ resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.12.1.tgz#cd8d175e001c212d5ac71c7827ef1d5c5e14494c" integrity sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q== +"@rushstack/eslint-patch@^1.7.2": + version "1.7.2" + resolved "https://registry.yarnpkg.com/@rushstack/eslint-patch/-/eslint-patch-1.7.2.tgz#2d4260033e199b3032a08b41348ac10de21c47e9" + integrity sha512-RbhOOTCNoCrbfkRyoXODZp75MlpiHMgbE5MEBZAnnnLyQNgrigEj4p0lzsMDyc1zVsJDLrivB58tgg3emX0eEA== + "@surma/rollup-plugin-off-main-thread@^2.2.3": version "2.2.3" resolved "https://registry.yarnpkg.com/@surma/rollup-plugin-off-main-thread/-/rollup-plugin-off-main-thread-2.2.3.tgz#ee34985952ca21558ab0d952f00298ad2190c053" -- cgit v1.2.3