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 @@