mirror of
https://github.com/ArthurDanjou/nuxt-starter.git
synced 2026-01-14 12:14:38 +01:00
Lint code
This commit is contained in:
98
nuxt.config.ts
Normal file
98
nuxt.config.ts
Normal file
@@ -0,0 +1,98 @@
|
||||
export default defineNuxtConfig({
|
||||
future: { compatibilityVersion: 4 },
|
||||
|
||||
// Nuxt App
|
||||
app: {
|
||||
pageTransition: { name: 'page', mode: 'out-in' },
|
||||
head: {
|
||||
templateParams: {
|
||||
separator: '•',
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
// Nuxt Modules
|
||||
modules: [
|
||||
'@nuxthub/core',
|
||||
'@nuxt/ui',
|
||||
'@nuxt/content',
|
||||
'@vueuse/nuxt',
|
||||
'@nuxtjs/google-fonts',
|
||||
'@nuxthq/studio',
|
||||
'@nuxt/image',
|
||||
'@nuxtjs/i18n',
|
||||
'@pinia/nuxt',
|
||||
'@pinia-plugin-persistedstate/nuxt',
|
||||
'nuxt-auth-utils',
|
||||
],
|
||||
|
||||
// Nuxt Hub
|
||||
hub: {
|
||||
cache: true,
|
||||
kv: true,
|
||||
database: true,
|
||||
analytics: true,
|
||||
},
|
||||
|
||||
// Nuxt Content
|
||||
content: {
|
||||
highlight: {
|
||||
theme: 'github-dark',
|
||||
},
|
||||
},
|
||||
|
||||
// Nuxt Color Mode
|
||||
colorMode: {
|
||||
preference: 'system',
|
||||
fallback: 'light',
|
||||
},
|
||||
|
||||
// Nuxt Devtools
|
||||
devtools: {
|
||||
enabled: true,
|
||||
timeline: { enabled: true },
|
||||
},
|
||||
|
||||
// Nuxt I18N
|
||||
i18n: {
|
||||
strategy: 'no_prefix',
|
||||
locales: [
|
||||
{
|
||||
code: 'en',
|
||||
iso: 'en-EN',
|
||||
icon: 'i-twemoji-flag-united-kingdom',
|
||||
},
|
||||
{
|
||||
code: 'fr',
|
||||
iso: 'fr-FR',
|
||||
icon: 'i-twemoji-flag-france',
|
||||
},
|
||||
],
|
||||
defaultLocale: 'en',
|
||||
},
|
||||
|
||||
// Nuxt Google Fonts
|
||||
googleFonts: {
|
||||
display: 'swap',
|
||||
families: {
|
||||
'Inter': [400, 500, 600, 700, 800, 900],
|
||||
'DM Sans': [400, 500, 600, 700, 800, 900],
|
||||
},
|
||||
},
|
||||
|
||||
// Nitro
|
||||
nitro: {
|
||||
experimental: {
|
||||
openAPI: true,
|
||||
},
|
||||
},
|
||||
|
||||
// Nuxt Env
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
test: '',
|
||||
},
|
||||
},
|
||||
|
||||
compatibilityDate: '2024-07-23',
|
||||
})
|
||||
Reference in New Issue
Block a user