Someone
Someone
NNuxt
Created by Someone on 1/21/2025 in #❓・help
eslintnuxt/nuxt-config-keys-order problem
I currently getting this error [Expected config key "extends" to come before "modules"eslintnuxt/nuxt-config-keys-order] With the configuration below...
export default defineNuxtConfig({
runtimeConfig: {
databaseUrl: '' // can be overridden by NUXT_DATABASE_URL environment variable
},

extends: ['@nuxt/ui-pro'],

modules: [
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxt/image',
'@nuxt/ui',
'@nuxtjs/supabase'
],

supabase: {
redirect: false // This is required otherwise will redirect to /login and break the app
},

devtools: {
enabled: true
},

routeRules: {
// Temporary workaround for prerender regression. see https://github.com/nuxt/nuxt/issues/27490
'/': { prerender: true }
},

future: {
compatibilityVersion: 4
},

compatibilityDate: '2024-07-11',

typescript: {
strict: false
},

eslint: {
config: {
stylistic: {
commaDangle: 'never',
braceStyle: '1tbs',
semi: true
}
}
}
});
export default defineNuxtConfig({
runtimeConfig: {
databaseUrl: '' // can be overridden by NUXT_DATABASE_URL environment variable
},

extends: ['@nuxt/ui-pro'],

modules: [
'@nuxt/content',
'@nuxt/eslint',
'@nuxt/fonts',
'@nuxt/image',
'@nuxt/ui',
'@nuxtjs/supabase'
],

supabase: {
redirect: false // This is required otherwise will redirect to /login and break the app
},

devtools: {
enabled: true
},

routeRules: {
// Temporary workaround for prerender regression. see https://github.com/nuxt/nuxt/issues/27490
'/': { prerender: true }
},

future: {
compatibilityVersion: 4
},

compatibilityDate: '2024-07-11',

typescript: {
strict: false
},

eslint: {
config: {
stylistic: {
commaDangle: 'never',
braceStyle: '1tbs',
semi: true
}
}
}
});
15 replies