style: fix some lint issues

Fix some lint issues
This commit is contained in:
Conicaw 2023-09-25 17:29:50 -05:00
parent bb8e7668d0
commit ffd7c98bf4
No known key found for this signature in database
GPG Key ID: 8DE10AC00159C418
14 changed files with 33 additions and 21 deletions

View File

@ -1,4 +1,7 @@
// Inspired by https://stackoverflow.com/a/60187886 // Inspired by https://stackoverflow.com/a/60187886
const path = require('node:path');
const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting');
module.exports = { module.exports = {
root: true, root: true,
env: { env: {
@ -29,5 +32,11 @@ module.exports = {
'vuejs-accessibility/media-has-caption': 'off', 'vuejs-accessibility/media-has-caption': 'off',
'vuejs-accessibility/click-events-have-key-events': 'off', 'vuejs-accessibility/click-events-have-key-events': 'off',
'vue/no-v-text-v-html-on-component': 'off', 'vue/no-v-text-v-html-on-component': 'off',
'vue/no-template-target-blank': 'off',
},
settings: {
...createAliasSetting({
'@': `${path.resolve(__dirname, './src')}`,
}),
}, },
}; };

View File

@ -12,7 +12,7 @@
<v-app-bar-nav-icon @click="SET_LEFT_SIDEBAR_OPEN" /> <v-app-bar-nav-icon @click="SET_LEFT_SIDEBAR_OPEN" />
<router-link <router-link
:to="{ name: 'RoomCreation'}" :to="{ name: 'RoomCreation' }"
> >
<picture> <picture>
<source <source

View File

@ -136,10 +136,10 @@
<v-list-item <v-list-item
:href=" :href="
'https://app.plex.tv/desktop#!/server/' + 'https://app.plex.tv/desktop#!/server/'
metadata.machineIdentifier + + metadata.machineIdentifier
'/details?key=' + + '/details?key='
metadata.key + metadata.key
" "
target="_blank" target="_blank"
> >

View File

@ -23,7 +23,7 @@
<v-img <v-img
:src="thumbUrl" :src="thumbUrl"
width="200" width="200"
:aspect-ratio="2/3" :aspect-ratio="2 / 3"
class="hidden-sm-and-down" class="hidden-sm-and-down"
/> />
</v-col> </v-col>

View File

@ -86,7 +86,7 @@
<script> <script>
import { mapActions, mapGetters } from 'vuex'; import { mapActions, mapGetters } from 'vuex';
import CAF from 'caf/core'; import { CAF } from 'caf';
import contentTitle from '@/mixins/contentTitle'; import contentTitle from '@/mixins/contentTitle';
import linkwithroom from '@/mixins/linkwithroom'; import linkwithroom from '@/mixins/linkwithroom';
import contentLink from '@/mixins/contentlink'; import contentLink from '@/mixins/contentlink';

View File

@ -94,7 +94,7 @@
</v-list-item-action> </v-list-item-action>
</v-list-item> </v-list-item>
<v-list-item @click="streamingProtocolSelectOpen=!streamingProtocolSelectOpen"> <v-list-item @click="streamingProtocolSelectOpen = !streamingProtocolSelectOpen">
<v-list-item-content> <v-list-item-content>
<v-list-item-title>Streaming Protocol</v-list-item-title> <v-list-item-title>Streaming Protocol</v-list-item-title>
@ -248,7 +248,7 @@
</v-list-item-content> </v-list-item-content>
</v-list-item> </v-list-item>
<v-list-item @click="syncModeSelectOpen=!syncModeSelectOpen"> <v-list-item @click="syncModeSelectOpen = !syncModeSelectOpen">
<v-list-item-content> <v-list-item-content>
<v-list-item-title>Syncing Method</v-list-item-title> <v-list-item-title>Syncing Method</v-list-item-title>
@ -296,7 +296,7 @@
<v-list-item <v-list-item
three-line three-line
@click="blockedServersSelectOpen=!blockedServersSelectOpen" @click="blockedServersSelectOpen = !blockedServersSelectOpen"
> >
<v-list-item-content> <v-list-item-content>
<v-list-item-title>Blocked Servers</v-list-item-title> <v-list-item-title>Blocked Servers</v-list-item-title>

View File

@ -42,7 +42,7 @@
<v-list-item <v-list-item
:router="true" :router="true"
:to="{name: 'SignOut'}" :to="{ name: 'SignOut' }"
> >
<v-list-item-icon> <v-list-item-icon>
<v-icon>cancel</v-icon> <v-icon>cancel</v-icon>

View File

@ -1,4 +1,4 @@
import CAF from 'caf/core'; import { CAF } from 'caf';
import promiseutils from '@/utils/promiseutils'; import promiseutils from '@/utils/promiseutils';
import contentTitleUtils from '@/utils/contenttitleutils'; import contentTitleUtils from '@/utils/contenttitleutils';
import { fetchXmlAndTransform } from '@/utils/fetchutils'; import { fetchXmlAndTransform } from '@/utils/fetchutils';

View File

@ -1,4 +1,4 @@
import CAF from 'caf/core'; import { CAF } from 'caf';
import { getRandomPlexId } from '@/utils/random'; import { getRandomPlexId } from '@/utils/random';
import { fetchJson, queryFetch } from '@/utils/fetchutils'; import { fetchJson, queryFetch } from '@/utils/fetchutils';

View File

@ -1,4 +1,4 @@
import CAF from 'caf/core'; import { CAF } from 'caf';
import eventhandlers from '@/store/modules/synclounge/eventhandlers'; import eventhandlers from '@/store/modules/synclounge/eventhandlers';
import { combineUrl, combineRelativeUrlParts } from '@/utils/combineurl'; import { combineUrl, combineRelativeUrlParts } from '@/utils/combineurl';
import { fetchJson } from '@/utils/fetchutils'; import { fetchJson } from '@/utils/fetchutils';

View File

@ -39,7 +39,7 @@
> >
<v-card <v-card
:to="linkWithRoom( :to="linkWithRoom(
{ name: 'PlexServer', params: { machineIdentifier: server.clientIdentifier }}, { name: 'PlexServer', params: { machineIdentifier: server.clientIdentifier } },
)" )"
style="background: rgb(0 0 0 / 60%);" style="background: rgb(0 0 0 / 60%);"
:title="server.name" :title="server.name"

View File

@ -25,10 +25,13 @@
:img="getArtLibrary(library)" :img="getArtLibrary(library)"
v-bind="attrs" v-bind="attrs"
flat flat
:to="linkWithRoom({ name: 'PlexLibrary', params: { :to="linkWithRoom({
name: 'PlexLibrary',
params: {
machineIdentifier: machineIdentifier, machineIdentifier: machineIdentifier,
sectionId: library.key, sectionId: library.key,
}})" },
})"
v-on="on" v-on="on"
> >
<div class="hidden-xs-only pa-2"> <div class="hidden-xs-only pa-2">

View File

@ -74,7 +74,7 @@
<v-spacer /> <v-spacer />
<v-btn :to="{name: 'AdvancedRoomWalkthrough'}"> <v-btn :to="{ name: 'AdvancedRoomWalkthrough' }">
Advanced Advanced
</v-btn> </v-btn>
</v-card-actions> </v-card-actions>

View File

@ -45,7 +45,7 @@
<script> <script>
import { mapActions, mapGetters, mapMutations } from 'vuex'; import { mapActions, mapGetters, mapMutations } from 'vuex';
import CAF from 'caf/core'; import { CAF } from 'caf';
import getCookie from '@/utils/getcookie'; import getCookie from '@/utils/getcookie';