From ffd7c98bf49e7d3f5918f67a5d52a30be0c17bea Mon Sep 17 00:00:00 2001 From: Conicaw Date: Mon, 25 Sep 2023 17:29:50 -0500 Subject: [PATCH] style: fix some lint issues Fix some lint issues --- .eslintrc.js | 9 +++++++++ src/App.vue | 2 +- src/components/PlexItem.vue | 8 ++++---- src/components/PlexMediaLayout.vue | 2 +- src/components/SearchBar.vue | 2 +- src/components/TheSettingsDialog.vue | 6 +++--- src/components/TheSidebarLeft.vue | 2 +- src/store/modules/plexclients/actions.js | 2 +- src/store/modules/slplayer/actions.js | 2 +- src/store/modules/synclounge/actions.js | 2 +- src/views/PlexHome.vue | 2 +- src/views/PlexServer.vue | 11 +++++++---- src/views/RoomCreation.vue | 2 +- src/views/SignIn.vue | 2 +- 14 files changed, 33 insertions(+), 21 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index bf59f28a..eeec2d22 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,4 +1,7 @@ // Inspired by https://stackoverflow.com/a/60187886 +const path = require('node:path'); +const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting'); + module.exports = { root: true, env: { @@ -29,5 +32,11 @@ module.exports = { 'vuejs-accessibility/media-has-caption': 'off', 'vuejs-accessibility/click-events-have-key-events': 'off', 'vue/no-v-text-v-html-on-component': 'off', + 'vue/no-template-target-blank': 'off', + }, + settings: { + ...createAliasSetting({ + '@': `${path.resolve(__dirname, './src')}`, + }), }, }; diff --git a/src/App.vue b/src/App.vue index 4a339da6..1a4724c0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,7 +12,7 @@ diff --git a/src/components/PlexMediaLayout.vue b/src/components/PlexMediaLayout.vue index 12d9ed69..c354555b 100644 --- a/src/components/PlexMediaLayout.vue +++ b/src/components/PlexMediaLayout.vue @@ -23,7 +23,7 @@ diff --git a/src/components/SearchBar.vue b/src/components/SearchBar.vue index 2d6e2be9..282f900e 100644 --- a/src/components/SearchBar.vue +++ b/src/components/SearchBar.vue @@ -86,7 +86,7 @@