Skip to content

Commit

Permalink
Adopt the nuxt-config-keys-order ESLint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
ThrRip committed Oct 15, 2024
1 parent fbb8854 commit d7d0d42
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 16 deletions.
7 changes: 5 additions & 2 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
*/

export default defineNuxtConfig({
compatibilityDate: '2024-07-19',

// Extensions
modules: [
'@nuxt/eslint'
],

// Feature flags
compatibilityDate: '2024-07-19',

// Tooling
eslint: {
config: {
stylistic: true
Expand Down
26 changes: 17 additions & 9 deletions packages/admin/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
*/

export default defineNuxtConfig({
// Nuxt
devtools: {
enabled: false
},

// Client
app: {
baseURL: '/admin/',
head: {
Expand All @@ -32,34 +38,36 @@ export default defineNuxtConfig({
'@fortawesome/fontawesome-svg-core/styles.css'
],

compatibilityDate: '2024-07-19',
// Runtime secrets
runtimeConfig: {
appSecureContext: true,
backendApiKey: ''
},

// Build
build: {
transpile: ['@fortawesome/vue-fontawesome']
},

// Development
devServer: {
host: '0.0.0.0',
port: 3001
},

devtools: {
enabled: false
},
// Feature flags
compatibilityDate: '2024-07-19',

// Nitro
nitro: {
preset: 'bun'
},

// Tooling
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {}
}
},

runtimeConfig: {
appSecureContext: true,
backendApiKey: ''
}
})
17 changes: 12 additions & 5 deletions packages/home/nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
*/

export default defineNuxtConfig({
// Nuxt
devtools: {
enabled: false
},

// Client
app: {
head: {
htmlAttrs: { lang: 'zh' },
Expand All @@ -32,24 +38,25 @@ export default defineNuxtConfig({
'@fortawesome/fontawesome-svg-core/styles.css'
],

compatibilityDate: '2024-07-19',

// Build
build: {
transpile: ['@fortawesome/vue-fontawesome']
},

// Development
devServer: {
host: '0.0.0.0'
},

devtools: {
enabled: false
},
// Feature flags
compatibilityDate: '2024-07-19',

// Nitro
nitro: {
preset: 'bun'
},

// Tooling
postcss: {
plugins: {
tailwindcss: {},
Expand Down

0 comments on commit d7d0d42

Please sign in to comment.