Skip to content

Commit cc2f45e

Browse files
committed
fix(lint): nuxt config key order
1 parent 7abfdc6 commit cc2f45e

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

demo/nuxt.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ export default defineNuxtConfig({
1212
},
1313
},
1414

15+
compatibilityDate: '2024-09-01',
16+
1517
supabase: {
1618
redirectOptions: {
1719
login: '/',
1820
callback: '/confirm',
1921
},
2022
},
21-
22-
compatibilityDate: '2024-09-01',
2323
})

docs/nuxt.config.ts

+18-18
Original file line numberDiff line numberDiff line change
@@ -10,36 +10,36 @@ export default defineNuxtConfig({
1010
'@nuxtlabs/github-module',
1111
'@nuxtjs/plausible',
1212
],
13+
// Devtools / Typescript
14+
devtools: { enabled: true },
15+
// Essential for OgImage on `nuxt generate`
16+
// https://github.com/harlan-zw/nuxt-og-image/blob/c89fd4e29f56eeb00b12bc0d7e4bcb82ab459cae/src/module.ts#L127C16-L127C16
17+
site: {
18+
url: 'https://nuxt-ui-pro-template-docs.vercel.app',
19+
},
1320
ui: {
1421
icons: ['heroicons', 'simple-icons'],
1522
},
16-
// Fonts
17-
fontMetrics: {
18-
fonts: ['DM Sans'],
19-
},
20-
googleFonts: {
21-
display: 'swap',
22-
download: true,
23-
families: {
24-
'DM+Sans': [400, 500, 600, 700],
25-
},
26-
},
2723
nitro: {
2824
prerender: {
2925
routes: [
3026
'/api/search.json',
3127
],
3228
},
3329
},
34-
// Essential for OgImage on `nuxt generate`
35-
// https://github.com/harlan-zw/nuxt-og-image/blob/c89fd4e29f56eeb00b12bc0d7e4bcb82ab459cae/src/module.ts#L127C16-L127C16
36-
site: {
37-
url: 'https://nuxt-ui-pro-template-docs.vercel.app',
38-
},
39-
// Devtools / Typescript
40-
devtools: { enabled: true },
4130
typescript: { strict: false },
31+
// Fonts
32+
fontMetrics: {
33+
fonts: ['DM Sans'],
34+
},
4235
github: {
4336
repo: 'nuxt-modules/supabase',
4437
},
38+
googleFonts: {
39+
display: 'swap',
40+
download: true,
41+
families: {
42+
'DM+Sans': [400, 500, 600, 700],
43+
},
44+
},
4545
})

playground/nuxt.config.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
export default defineNuxtConfig({
22
modules: ['../src/module'],
33

4+
compatibilityDate: '2024-07-05',
5+
6+
nitro: {
7+
routeRules: {
8+
'/clientonly': { ssr: false },
9+
},
10+
},
11+
412
supabase: {
513
// cookieOptions: {
614
// name: 'test',
@@ -21,12 +29,4 @@ export default defineNuxtConfig({
2129
exclude: ['/unprotected', '/public/*'],
2230
},
2331
},
24-
25-
nitro: {
26-
routeRules: {
27-
'/clientonly': { ssr: false },
28-
},
29-
},
30-
31-
compatibilityDate: '2024-07-05',
3232
})

pnpm-lock.yaml

+11-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)