Skip to content

Commit 8b6b6e0

Browse files
authored
chore: migrate to eslint v9 (#834)
1 parent e5e7719 commit 8b6b6e0

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1378
-531
lines changed

.eslintignore

-3
This file was deleted.

.eslintrc.cjs

-14
This file was deleted.

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"eslint.experimental.useFlatConfig": true
3+
}

docs/app.config.ts

+31-31
Original file line numberDiff line numberDiff line change
@@ -7,53 +7,53 @@ export default defineAppConfig({
77
footer: {
88
bottom: {
99
left: 'text-sm text-gray-500 dark:text-gray-400',
10-
wrapper: 'border-t border-gray-200 dark:border-gray-800'
11-
}
12-
}
10+
wrapper: 'border-t border-gray-200 dark:border-gray-800',
11+
},
12+
},
1313
},
1414
header: {
1515
logo: {
1616
light: {
17-
src: ''
17+
src: '',
1818
},
1919
dark: {
20-
src: ''
21-
}
20+
src: '',
21+
},
2222
},
2323
pkgVersion,
2424
search: true,
2525
colorMode: true,
2626
links: [{
27-
icon: 'i-simple-icons-github',
28-
to: 'https://github.com/nuxt-modules/tailwindcss',
29-
target: '_blank',
30-
'aria-label': 'Docs template on GitHub'
31-
}]
27+
'icon': 'i-simple-icons-github',
28+
'to': 'https://github.com/nuxt-modules/tailwindcss',
29+
'target': '_blank',
30+
'aria-label': 'Docs template on GitHub',
31+
}],
3232
},
3333
footer: {
3434
credits: 'Copyright © 2023',
3535
colorMode: false,
3636
links: [{
37-
icon: 'i-simple-icons-nuxtdotjs',
38-
to: 'https://nuxt.com',
39-
target: '_blank',
40-
'aria-label': 'Nuxt Website'
37+
'icon': 'i-simple-icons-nuxtdotjs',
38+
'to': 'https://nuxt.com',
39+
'target': '_blank',
40+
'aria-label': 'Nuxt Website',
4141
}, {
42-
icon: 'i-simple-icons-discord',
43-
to: 'https://discord.com/invite/ps2h6QT',
44-
target: '_blank',
45-
'aria-label': 'Nuxt Tailwind on Discord'
42+
'icon': 'i-simple-icons-discord',
43+
'to': 'https://discord.com/invite/ps2h6QT',
44+
'target': '_blank',
45+
'aria-label': 'Nuxt Tailwind on Discord',
4646
}, {
47-
icon: 'i-simple-icons-x',
48-
to: 'https://x.com/nuxt_js',
49-
target: '_blank',
50-
'aria-label': 'Nuxt on X'
47+
'icon': 'i-simple-icons-x',
48+
'to': 'https://x.com/nuxt_js',
49+
'target': '_blank',
50+
'aria-label': 'Nuxt on X',
5151
}, {
52-
icon: 'i-simple-icons-github',
53-
to: 'https://github.com/nuxt-modules/tailwindcss',
54-
target: '_blank',
55-
'aria-label': 'Nuxt Tailwind on GitHub'
56-
}]
52+
'icon': 'i-simple-icons-github',
53+
'to': 'https://github.com/nuxt-modules/tailwindcss',
54+
'target': '_blank',
55+
'aria-label': 'Nuxt Tailwind on GitHub',
56+
}],
5757
},
5858
toc: {
5959
title: 'Table of Contents',
@@ -75,7 +75,7 @@ export default defineAppConfig({
7575
label: 'Tailwind CSS docs',
7676
to: 'https://tailwindcss.com',
7777
target: '_blank',
78-
}]
79-
}
80-
}
78+
}],
79+
},
80+
},
8181
})

docs/app.vue

+10-7
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,24 @@ import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
44
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
55
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
66
default: () => [],
7-
server: false
7+
server: false,
88
})
99
1010
useHead({
1111
meta: [
12-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
12+
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
1313
],
1414
link: [
15-
{ rel: 'icon', href: '/favicon.ico' }
15+
{ rel: 'icon', href: '/favicon.ico' },
1616
],
1717
htmlAttrs: {
18-
lang: 'en'
19-
}
18+
lang: 'en',
19+
},
2020
})
2121
2222
useSeoMeta({
2323
ogSiteName: 'Nuxt TailwindCSS',
24-
twitterCard: 'summary_large_image'
24+
twitterCard: 'summary_large_image',
2525
})
2626
2727
provide('navigation', navigation)
@@ -39,7 +39,10 @@ provide('navigation', navigation)
3939
<AppFooter />
4040

4141
<ClientOnly>
42-
<LazyUDocsSearch :files="files" :navigation="navigation" />
42+
<LazyUDocsSearch
43+
:files="files"
44+
:navigation="navigation"
45+
/>
4346
</ClientOnly>
4447

4548
<UNotifications />

0 commit comments

Comments
 (0)