Skip to content

Commit f2e48a4

Browse files
committed
chore: lint
1 parent 84b7cbc commit f2e48a4

File tree

3 files changed

+65
-63
lines changed

3 files changed

+65
-63
lines changed

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ export default antfu(
66
unocss: true,
77
formatters: true,
88
},
9-
nuxt,
9+
nuxt(),
1010
)

nuxt.config.ts

Lines changed: 53 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { execaSync } from 'execa'
22

3-
// https://nuxt.com/docs/api/configuration/nuxt-config
43
export default defineNuxtConfig({
54
modules: [
65
'@vueuse/nuxt',
@@ -18,27 +17,8 @@ export default defineNuxtConfig({
1817
'~/modules/template-loader',
1918
'~/modules/nuxt-link',
2019
],
21-
colorMode: {
22-
classSuffix: '',
23-
},
24-
site: {
25-
url: 'https://learn-dev.nuxt.com',
26-
},
27-
eslint: {
28-
config: {
29-
standalone: false,
30-
},
31-
},
32-
ogImage: {
33-
defaults: {
34-
component: 'OgImageDocs',
35-
props: {
36-
colorMode: 'dark',
37-
},
38-
},
39-
componentOptions: {
40-
global: true,
41-
},
20+
devtools: {
21+
enabled: true,
4222
},
4323
app: {
4424
head: {
@@ -51,17 +31,28 @@ export default defineNuxtConfig({
5131
],
5232
},
5333
},
54-
typescript: {
55-
includeWorkspace: true,
56-
tsConfig: {
57-
include: [
58-
'../content/**/.template/**/*.ts',
34+
site: {
35+
url: 'https://learn-dev.nuxt.com',
36+
},
37+
colorMode: {
38+
classSuffix: '',
39+
},
40+
content: {
41+
documentDriven: true,
42+
highlight: {
43+
theme: {
44+
default: 'vitesse-light',
45+
dark: 'vitesse-dark',
46+
},
47+
},
48+
markdown: {
49+
rehypePlugins: [
50+
'rehype-external-links',
5951
],
6052
},
61-
},
62-
63-
features: {
64-
inlineStyles: false,
53+
experimental: {
54+
search: {},
55+
},
6556
},
6657

6758
runtimeConfig: {
@@ -79,9 +70,16 @@ export default defineNuxtConfig({
7970
},
8071
},
8172
},
82-
devtools: {
83-
enabled: true,
73+
74+
features: {
75+
inlineStyles: false,
8476
},
77+
78+
experimental: {
79+
watcher: 'parcel',
80+
},
81+
82+
compatibilityDate: '2024-04-03',
8583
nitro: {
8684
routeRules: {
8785
'/**': {
@@ -115,27 +113,31 @@ export default defineNuxtConfig({
115113
],
116114
},
117115
},
118-
content: {
119-
documentDriven: true,
120-
highlight: {
121-
theme: {
122-
default: 'vitesse-light',
123-
dark: 'vitesse-dark',
124-
},
125-
},
126-
markdown: {
127-
rehypePlugins: [
128-
'rehype-external-links',
116+
typescript: {
117+
includeWorkspace: true,
118+
tsConfig: {
119+
include: [
120+
'../content/**/.template/**/*.ts',
129121
],
130122
},
131-
experimental: {
132-
search: {},
123+
},
124+
eslint: {
125+
config: {
126+
standalone: false,
127+
nuxt: {
128+
sortConfigKeys: true,
129+
},
133130
},
134131
},
135-
136-
experimental: {
137-
watcher: 'parcel',
132+
ogImage: {
133+
defaults: {
134+
component: 'OgImageDocs',
135+
props: {
136+
colorMode: 'dark',
137+
},
138+
},
139+
componentOptions: {
140+
global: true,
141+
},
138142
},
139-
140-
compatibilityDate: '2024-04-03',
141143
})

templates/basic/.layer-playground/nuxt.config.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,17 @@ import { version as versionVue } from 'vue'
44

55
export default defineNuxtConfig({
66
devtools: { enabled: false },
7+
css: [
8+
'~/.layer-playground/styles/base.css',
9+
],
10+
runtimeConfig: {
11+
public: {
12+
clientInfo: {
13+
versionVue,
14+
versionNuxt,
15+
},
16+
},
17+
},
718
vite: {
819
warmupEntry: false,
920
optimizeDeps: {
@@ -15,14 +26,6 @@ export default defineNuxtConfig({
1526
],
1627
},
1728
},
18-
runtimeConfig: {
19-
public: {
20-
clientInfo: {
21-
versionVue,
22-
versionNuxt,
23-
},
24-
},
25-
},
2629
typescript: {
2730
includeWorkspace: true,
2831
tsConfig: {
@@ -31,7 +34,4 @@ export default defineNuxtConfig({
3134
],
3235
},
3336
},
34-
css: [
35-
'~/.layer-playground/styles/base.css',
36-
],
3737
})

0 commit comments

Comments
 (0)