Skip to content

Commit 16f3edd

Browse files
committed
chore: eslint
1 parent 5e0f815 commit 16f3edd

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

docs/content/4.advanced/2.type-helpers.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: "NuxtOpenFetch provides a set of types to help you with the develop
55

66
Sometimes you may need to use the types for query params, response body etc. NuxtOpenFetch provides a set of types to help you with this.
77

8-
Available type helpers:
8+
Available type helpers:
99
- `PetsRequestQuery`
1010
- `PetsResponse`
1111
- `PetsRequestBody`
@@ -21,9 +21,9 @@ type Status = PetsRequestQuery<'findPetsByStatus'>['status']
2121
const status = ref<Status>('available')
2222

2323
function transform(data: PetsResponse<'findPetsByStatus'>) {
24-
return data.map(item => ({
25-
...item,
26-
inStock: data.status === 'available'
24+
return data.map(item => ({
25+
...item,
26+
inStock: data.status === 'available'
2727
}))
2828
}
2929

@@ -35,4 +35,3 @@ const { data } = await usePets('/pet/findByStatus', {
3535
transform
3636
})
3737
```
38-

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
},
8383
throws: false,
84-
includeNuxtTypes: true
85-
}
84+
includeNuxtTypes: true,
85+
},
8686
})

0 commit comments

Comments
 (0)