Skip to content

Commit 926293a

Browse files
committed
fix: linting errors
1 parent 7a55c55 commit 926293a

File tree

8 files changed

+66
-29
lines changed

8 files changed

+66
-29
lines changed

docs/app.config.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ export default defineAppConfig({
88
colorMode: true,
99
links: [
1010
{
11-
icon: 'i-simple-icons-github',
12-
to: 'https://github.com/vueuse/motion',
13-
target: '_blank',
11+
'icon': 'i-simple-icons-github',
12+
'to': 'https://github.com/vueuse/motion',
13+
'target': '_blank',
1414
'aria-label': 'VueUse Motion',
1515
},
1616
],
@@ -21,9 +21,9 @@ export default defineAppConfig({
2121
colorMode: false,
2222
links: [
2323
{
24-
icon: 'i-simple-icons-github',
25-
to: 'https://github.com/vueuse/motion',
26-
target: '_blank',
24+
'icon': 'i-simple-icons-github',
25+
'to': 'https://github.com/vueuse/motion',
26+
'target': '_blank',
2727
'aria-label': 'VueUse Motion',
2828
},
2929
],

docs/components/content/PresetSection.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,6 @@ const { data } = await useAsyncData(`preset-${props.name}`, () =>
149149
flex-direction: column;
150150
}
151151
152-
153152
.content {
154153
display: flex;
155154
gap: 1em;

docs/components/global/CodeGroup.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ const selectedTab = computed(() => tabs.value.find((_, index) => index === selec
5858
is="button"
5959
v-for="(tab, index) in tabs"
6060
:key="index"
61-
:initial="{ scale: 1, transition: { stiffness: 250, mass: .5, damping: 5 }, }"
61+
:initial="{ scale: 1, transition: { stiffness: 250, mass: .5, damping: 5 } }"
6262
:hovered="{
63-
scale: 1.1,
64-
transition: { stiffness: 250, mass: .5, damping: 5 },
65-
}"
66-
:tapped="{
67-
scale: .95,
68-
transition: { stiffness: 250, mass: .5, damping: 5 },
69-
}"
63+
scale: 1.1,
64+
transition: { stiffness: 250, mass: .5, damping: 5 },
65+
}"
66+
:tapped="{
67+
scale: .95,
68+
transition: { stiffness: 250, mass: .5, damping: 5 },
69+
}"
7070
tabindex="-1"
7171
:class="[ui.tab.base, selectedIndex === index ? ui.tab.active : ui.tab.inactive]"
7272
@click="selectedIndex = index"

docs/content/index.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ hero:
2020
```
2121
2222
features:
23-
title: "Let's put things in motion"
23+
title: 'Let''s put things in motion'
2424

2525
items:
2626
- title: Smooth animations

docs/layouts/docs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const route = useRoute()
99
// console.log('/' + route.path.split('/').at(0))
1010
1111
const allNavigationTree = computed(() =>
12-
mapContentNavigation(navPageFromPath('/' + route.path.split('/').at(1), navigation?.value || [])?.children || []),
12+
mapContentNavigation(navPageFromPath(`/${route.path.split('/').at(1)}`, navigation?.value || [])?.children || []),
1313
)
1414
</script>
1515

docs/pages/api/[...slug].vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,23 @@ const UPageHeaderComponent = resolveComponent('UPageHeader')
5757
:description="page.description"
5858
:links="page.links"
5959
:headline="headline"
60-
/>
60+
>
61+
<template #headline>
62+
<Motion v-bind="$nuxt._appConfig.motions.headers.common">
63+
{{ headline }}
64+
</Motion>
65+
</template>
66+
<template #title>
67+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
68+
{{ page.title }}
69+
</Motion>
70+
</template>
71+
<template #description>
72+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
73+
{{ page.description }}
74+
</Motion>
75+
</template>
76+
</Motion>
6177

6278
<UPageBody prose>
6379
<ContentRenderer v-if="page.body" :value="page" />

docs/pages/features/[...slug].vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,22 @@ const UPageHeaderComponent = resolveComponent('UPageHeader')
5858
:links="page.links"
5959
:headline="headline"
6060
>
61-
<template #headline>
62-
<Motion v-bind="$nuxt._appConfig.motions.headers.common">{{ headline }}</Motion>
63-
</template>
64-
<template #title="{props}">
65-
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">{{ page.title }}</Motion>
66-
</template>
67-
<template #description>
68-
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">{{ page.description }}</Motion>
69-
</template>
70-
</Motion>
61+
<template #headline>
62+
<Motion v-bind="$nuxt._appConfig.motions.headers.common">
63+
{{ headline }}
64+
</Motion>
65+
</template>
66+
<template #title>
67+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
68+
{{ page.title }}
69+
</Motion>
70+
</template>
71+
<template #description>
72+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
73+
{{ page.description }}
74+
</Motion>
75+
</template>
76+
</Motion>
7177

7278
<UPageBody prose>
7379
<ContentRenderer v-if="page.body" :value="page" />

docs/pages/getting-started/[...slug].vue

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,23 @@ const UPageHeaderComponent = resolveComponent('UPageHeader')
5757
:description="page.description"
5858
:links="page.links"
5959
:headline="headline"
60-
/>
60+
>
61+
<template #headline>
62+
<Motion v-bind="$nuxt._appConfig.motions.headers.common">
63+
{{ headline }}
64+
</Motion>
65+
</template>
66+
<template #title>
67+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
68+
{{ page.title }}
69+
</Motion>
70+
</template>
71+
<template #description>
72+
<Motion v-bind="$nuxt._appConfig.motions.headers.h1">
73+
{{ page.description }}
74+
</Motion>
75+
</template>
76+
</Motion>
6177

6278
<UPageBody prose>
6379
<ContentRenderer v-if="page.body" :value="page" />

0 commit comments

Comments
 (0)