Skip to content

Commit ae134ca

Browse files
committed
fix: lint
1 parent 7d8d0e4 commit ae134ca

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

docs/app/components/content/landing/LandingHero.vue

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { motion, AnimatePresence, MotionConfig } from 'motion-v'
3-
import { useElementSize, useClipboard } from '@vueuse/core'
2+
import { useClipboard, useElementSize } from '@vueuse/core'
3+
import { AnimatePresence, motion, MotionConfig } from 'motion-v'
44
// @ts-expect-error yaml is not typed
55
import hero from './hero.yml'
66
@@ -15,9 +15,12 @@ const currentCode = computed(() => tabs[currentTab.value]?.code.trim() ?? '')
1515
const lineCount = computed(() => currentCode.value.split('\n').length)
1616
1717
function getLang(filename: string) {
18-
if (filename.endsWith('.ts')) return 'ts'
19-
if (filename.endsWith('.vue')) return 'vue'
20-
if (filename.endsWith('.js')) return 'js'
18+
if (filename.endsWith('.ts'))
19+
return 'ts'
20+
if (filename.endsWith('.vue'))
21+
return 'vue'
22+
if (filename.endsWith('.js'))
23+
return 'js'
2124
return 'ts'
2225
}
2326
@@ -143,7 +146,7 @@ function getCodeBlock(tab: { name: string, code: string }) {
143146
{{ tab.name }}
144147
<motion.div
145148
v-if="currentTab === index"
146-
layoutId="tab-code-preview"
149+
layout-id="tab-code-preview"
147150
class="bg-stone-800 absolute inset-0 -z-10 rounded-full"
148151
/>
149152
</button>
@@ -204,7 +207,9 @@ function getCodeBlock(tab: { name: string, code: string }) {
204207
<svg xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 24 24">
205208
<path fill="currentColor" d="M10 20H8V4h2v2h2v3h2v2h2v2h-2v2h-2v3h-2z" />
206209
</svg>
207-
<p class="text-sm">Demo</p>
210+
<p class="text-sm">
211+
Demo
212+
</p>
208213
</NuxtLink>
209214
</motion.div>
210215
</div>

0 commit comments

Comments
 (0)