Skip to content

Commit 3ffcfb2

Browse files
committed
chore: lint fix
1 parent 2b7ee79 commit 3ffcfb2

File tree

2 files changed

+36
-37
lines changed

2 files changed

+36
-37
lines changed

docs/nuxt.config.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// https://nuxt.com/docs/api/configuration/nuxt-config
22
export default defineNuxtConfig({
3-
compatibilityDate: '2024-08-06',
43
// experimental: { buildCache: true },
54
extends: ['@nuxt/ui-pro'],
65
modules: [
@@ -15,22 +14,12 @@ export default defineNuxtConfig({
1514
'@nuxt/image',
1615
'@nuxt/scripts'
1716
],
17+
devtools: {
18+
enabled: true
19+
},
1820
colorMode: {
1921
preference: 'dark'
2022
},
21-
icon: {
22-
clientBundle: {
23-
scan: true
24-
}
25-
},
26-
hooks: {
27-
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
28-
'components:extend': (components) => {
29-
const globals = components.filter(c => ['UButton', 'UIcon'].includes(c.pascalName))
30-
31-
globals.forEach(c => c.global = true)
32-
}
33-
},
3423
routeRules: {
3524
'/': { prerender: true },
3625
'/api/search.json': { prerender: true },
@@ -46,6 +35,7 @@ export default defineNuxtConfig({
4635
'/docs/server/cache': { redirect: { statusCode: 301, to: '/docs/features/cache' } },
4736
'/docs/server/logs': { redirect: { statusCode: 301, to: '/docs/getting-started/server-logs' } }
4837
},
38+
compatibilityDate: '2024-08-06',
4939
nitro: {
5040
prerender: {
5141
crawlLinks: true,
@@ -54,14 +44,24 @@ export default defineNuxtConfig({
5444
autoSubfolderIndex: false
5545
}
5646
},
47+
typescript: {
48+
strict: false
49+
},
50+
hooks: {
51+
// Define `@nuxt/ui` components as global to use them in `.md` (feel free to add those you need)
52+
'components:extend': (components) => {
53+
const globals = components.filter(c => ['UButton', 'UIcon'].includes(c.pascalName))
54+
55+
globals.forEach(c => c.global = true)
56+
}
57+
},
5758
cloudflareAnalytics: {
5859
token: '469b1f7049f14941acef0d0262a07ab3',
5960
scriptPath: false
6061
},
61-
devtools: {
62-
enabled: true
63-
},
64-
typescript: {
65-
strict: false
62+
icon: {
63+
clientBundle: {
64+
scan: true
65+
}
6666
}
6767
})

playground/nuxt.config.ts

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,28 @@
22
import module from '../src/module'
33

44
export default defineNuxtConfig({
5-
future: { compatibilityVersion: 4 },
6-
devtools: { enabled: true },
7-
85
modules: [
96
'@nuxt/ui',
107
'@nuxtjs/mdc',
118
'@kgierke/nuxt-basic-auth',
129
module
1310
],
11+
devtools: { enabled: true },
12+
13+
routeRules: {
14+
'/cached': { prerender: true }
15+
},
16+
future: { compatibilityVersion: 4 },
17+
18+
// nitro: {
19+
// cloudflare: {
20+
// wrangler: {
21+
// compatibility_flags: ['nodejs_compat_v2']
22+
// }
23+
// }
24+
// },
25+
26+
compatibilityDate: '2024-08-08',
1427

1528
hub: {
1629
ai: true,
@@ -37,10 +50,6 @@ export default defineNuxtConfig({
3750
// projectUrl: ({ branch }) => branch === 'main' ? 'https://playground.nuxt.dev' : `https://${encodeHost(branch).replace(/\//g, '-')}.playground-to39.pages.dev`
3851
},
3952

40-
routeRules: {
41-
'/cached': { prerender: true }
42-
},
43-
4453
basicAuth: {
4554
enabled: process.env.NODE_ENV === 'production',
4655
allowedRoutes: ['/api/_hub/'],
@@ -50,15 +59,5 @@ export default defineNuxtConfig({
5059
password: process.env.NUXT_ADMIN_PASSWORD || 'admin'
5160
}
5261
]
53-
},
54-
55-
// nitro: {
56-
// cloudflare: {
57-
// wrangler: {
58-
// compatibility_flags: ['nodejs_compat_v2']
59-
// }
60-
// }
61-
// },
62-
63-
compatibilityDate: '2024-08-08'
62+
}
6463
})

0 commit comments

Comments
 (0)