Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kakkokari-gtyih committed Aug 15, 2024
1 parent e00755c commit 8de08d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/components/HanaHanaModeSwitcher.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<template>
<div class="_gaps">
<div class="_gaps_s">
<input :class="$style.radio" type="radio" id="hana" name="hanamodeSwitcher" v-model="mode" value="hana">
<input id="hana" :class="$style.radio" type="radio" v-model="mode" name="hanamodeSwitcher" value="hana">

Check failure on line 4 in packages/frontend/src/components/HanaHanaModeSwitcher.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Attribute "v-model" should go before "type"
<label :class="$style.radioRoot" class="_gaps_s" for="hana">
<div :class="$style.radioTitle">
<div :class="$style.tick">
Expand All @@ -19,7 +19,7 @@
<div>{{ i18n.ts._hana._hanaModeSwitcher.hanaRecommend }}</div>
</div>
</label>
<input :class="$style.radio" type="radio" id="normal" name="hanamodeSwitcher" v-model="mode" value="normal">
<input id="normal" :class="$style.radio" type="radio" v-model="mode" name="hanamodeSwitcher" value="normal">

Check failure on line 22 in packages/frontend/src/components/HanaHanaModeSwitcher.vue

View workflow job for this annotation

GitHub Actions / lint (frontend)

Attribute "v-model" should go before "type"
<label :class="$style.radioRoot" class="_gaps_s" for="normal">
<div :class="$style.radioTitle">
<div :class="$style.tick">
Expand Down
1 change: 1 addition & 0 deletions packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ function switchTlIfNeeded() {
function isNotInList(src: 'hanami' | 'home' | 'local' | 'social' | 'global' | `list:${string}`): src is Exclude<typeof src, `list:${string}`> {
return !src.startsWith('list:');
}

if (isNotInList(src.value) && !availableBasicTimelines().includes(src.value)) {
src.value = availableBasicTimelines()[0];
}
Expand Down

0 comments on commit 8de08d0

Please sign in to comment.