Skip to content

Commit 59c44fe

Browse files
committed
fix: eslint
1 parent 3b0071d commit 59c44fe

File tree

15 files changed

+116
-113
lines changed

15 files changed

+116
-113
lines changed

docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ Add this module to your `nuxt.config.ts`:
112112

113113
```ts
114114
export default defineNuxtConfig({
115-
...
116115
modules: [
117-
...
118116
'@nuxthq/studio'
119117
]
120118
})

docs/app/app.config.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ export default defineAppConfig({
55
footer: {
66
bottom: {
77
left: 'text-sm text-gray-500 dark:text-gray-400',
8-
wrapper: 'border-t border-gray-200 dark:border-gray-800'
9-
}
10-
}
8+
wrapper: 'border-t border-gray-200 dark:border-gray-800',
9+
},
10+
},
1111
},
1212
seo: {
13-
siteName: 'Nuxt Open Fetch'
13+
siteName: 'Nuxt Open Fetch',
1414
},
1515
header: {
1616
logo: {
1717
alt: '',
1818
light: '',
19-
dark: ''
19+
dark: '',
2020
},
2121
search: true,
2222
colorMode: true,
2323
links: [{
2424
'icon': 'i-simple-icons-github',
2525
'to': 'https://github.com/enkot/nuxt-open-fetch',
2626
'target': '_blank',
27-
'aria-label': 'Nuxt Open Fetch'
28-
}]
27+
'aria-label': 'Nuxt Open Fetch',
28+
}],
2929
},
3030
footer: {
3131
credits: 'Copyright © 2024',
@@ -34,13 +34,13 @@ export default defineAppConfig({
3434
'icon': 'i-simple-icons-nuxtdotjs',
3535
'to': 'https://nuxt.com',
3636
'target': '_blank',
37-
'aria-label': 'Nuxt Website'
37+
'aria-label': 'Nuxt Website',
3838
}, {
3939
'icon': 'i-simple-icons-github',
4040
'to': 'https://github.com/enkot/nuxt-open-fetch',
4141
'target': '_blank',
42-
'aria-label': 'Nuxt Open Fetch'
43-
}]
42+
'aria-label': 'Nuxt Open Fetch',
43+
}],
4444
},
4545
toc: {
4646
title: 'Table of Contents',
@@ -50,18 +50,18 @@ export default defineAppConfig({
5050
icon: 'i-heroicons-star',
5151
label: 'Star on GitHub',
5252
to: 'https://github.com/enkot/nuxt-open-fetch',
53-
target: '_blank'
53+
target: '_blank',
5454
}, {
5555
icon: 'i-simple-icons-typescript',
5656
label: 'OpenAPI TypeScript',
5757
to: 'https://openapi-ts.pages.dev/',
58-
target: '_blank'
58+
target: '_blank',
5959
}, {
6060
icon: 'i-simple-icons-nuxtdotjs',
6161
label: 'Nuxt Website',
6262
to: 'https://nuxt.com',
63-
target: '_blank'
64-
}]
65-
}
66-
}
63+
target: '_blank',
64+
}],
65+
},
66+
},
6767
})

docs/app/app.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,27 @@ const { seo } = useAppConfig()
77
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
88
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
99
default: () => [],
10-
server: false
10+
server: false,
1111
})
1212
1313
useHead({
1414
meta: [
15-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
15+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
1616
],
1717
link: [
18-
{ rel: 'icon', href: '/favicon.ico' }
18+
{ rel: 'icon', href: '/favicon.ico' },
1919
],
2020
htmlAttrs: {
21-
lang: 'en'
22-
}
21+
lang: 'en',
22+
},
2323
})
2424
2525
useSeoMeta({
2626
titleTemplate: `%s - ${seo?.siteName}`,
2727
ogSiteName: seo?.siteName,
2828
ogImage: 'https://nuxt-open-fetch.vercel.app/cover.png',
2929
twitterImage: 'https://nuxt-open-fetch.vercel.app/cover.png',
30-
twitterCard: 'summary_large_image'
30+
twitterCard: 'summary_large_image',
3131
})
3232
3333
provide('navigation', navigation)

docs/app/components/OgImage/OgImageDocs.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
<script setup lang="ts">
22
defineOptions({
3-
inheritAttrs: false
3+
inheritAttrs: false,
44
})
55
66
defineProps({
77
title: {
88
type: String,
9-
required: true
9+
required: true,
1010
},
1111
description: {
1212
type: String,
13-
required: true
14-
}
13+
required: true,
14+
},
1515
})
1616
</script>
1717

docs/app/error.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,25 @@ import type { NuxtError } from '#app'
55
defineProps({
66
error: {
77
type: Object as PropType<NuxtError>,
8-
required: true
9-
}
8+
required: true,
9+
},
1010
})
1111
1212
useHead({
1313
htmlAttrs: {
14-
lang: 'en'
15-
}
14+
lang: 'en',
15+
},
1616
})
1717
1818
useSeoMeta({
1919
title: 'Page not found',
20-
description: 'We are sorry but this page could not be found.'
20+
description: 'We are sorry but this page could not be found.',
2121
})
2222
2323
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
2424
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
2525
default: () => [],
26-
server: false
26+
server: false,
2727
})
2828
2929
provide('navigation', navigation)

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { withoutTrailingSlash } from 'ufo'
33
44
definePageMeta({
5-
layout: 'docs'
5+
layout: 'docs',
66
})
77
88
const route = useRoute()
@@ -16,14 +16,13 @@ if (!page.value) {
1616
const { data: surround } = await useAsyncData(`${route.path}-surround`, () => queryContent()
1717
.where({ _extension: 'md', navigation: { $ne: false } })
1818
.only(['title', 'description', '_path'])
19-
.findSurround(withoutTrailingSlash(route.path))
20-
)
19+
.findSurround(withoutTrailingSlash(route.path)))
2120
2221
useSeoMeta({
2322
title: page.value.title,
2423
ogTitle: `${page.value.title} - ${seo?.siteName}`,
2524
description: page.value.description,
26-
ogDescription: page.value.description
25+
ogDescription: page.value.description,
2726
})
2827
2928
defineOgImageComponent('Docs')
@@ -34,7 +33,7 @@ const links = computed(() => [toc?.bottom?.edit && {
3433
icon: 'i-heroicons-pencil-square',
3534
label: 'Edit this page',
3635
to: `${toc.bottom.edit}/${page?.value?._file}`,
37-
target: '_blank'
36+
target: '_blank',
3837
}, ...(toc?.bottom?.links || [])].filter(Boolean))
3938
</script>
4039

docs/app/pages/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ useSeoMeta({
66
title: page.value.title,
77
ogTitle: page.value.title,
88
description: page.value.description,
9-
ogDescription: page.value.description
9+
ogDescription: page.value.description,
1010
})
1111
</script>
1212

docs/nuxt.config.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,42 +11,42 @@ export default defineNuxtConfig({
1111
'@nuxt/ui',
1212
'@nuxthq/studio',
1313
'nuxt-og-image',
14-
'nuxt-open-fetch'
14+
'nuxt-open-fetch',
1515
],
1616

1717
devtools: {
18-
enabled: true
18+
enabled: true,
1919
},
2020

2121
site: {
22-
url: 'https://nuxt-open-fetch.vercel.app'
22+
url: 'https://nuxt-open-fetch.vercel.app',
2323
},
2424

2525
colorMode: {
26-
disableTransition: true
26+
disableTransition: true,
2727
},
2828

2929
routeRules: {
30-
'/api/search.json': { prerender: true }
30+
'/api/search.json': { prerender: true },
3131
},
3232

3333
future: {
34-
compatibilityVersion: 4
34+
compatibilityVersion: 4,
3535
},
3636

3737
compatibilityDate: '2024-07-11',
3838

3939
nitro: {
4040
prerender: {
4141
routes: [
42-
'/'
42+
'/',
4343
],
44-
crawlLinks: true
45-
}
44+
crawlLinks: true,
45+
},
4646
},
4747

4848
typescript: {
49-
strict: false
49+
strict: false,
5050
},
5151

5252
hooks: {
@@ -55,32 +55,32 @@ export default defineNuxtConfig({
5555
const globals = components.filter(c => ['UButton', 'UIcon'].includes(c.pascalName))
5656

5757
globals.forEach(c => c.global = true)
58-
}
58+
},
5959
},
6060

6161
eslint: {
6262
config: {
6363
stylistic: {
6464
commaDangle: 'never',
65-
braceStyle: '1tbs'
66-
}
67-
}
65+
braceStyle: '1tbs',
66+
},
67+
},
6868
},
6969

7070
openFetch: {
7171
disableNitroPlugin: true,
7272
clients: {
7373
pets: {
74-
baseURL: '/petsProxy'
75-
}
76-
}
74+
baseURL: '/petsProxy',
75+
},
76+
},
7777
},
7878

7979
twoslash: {
8080
floatingVueOptions: {
81-
classMarkdown: 'prose prose-primary dark:prose-invert'
81+
classMarkdown: 'prose prose-primary dark:prose-invert',
8282
},
83-
throws: false
83+
throws: false,
8484
// includeNuxtTypes: true
85-
}
85+
},
8686
})

0 commit comments

Comments
 (0)