Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: migrate to eslint v9 #834

Merged
merged 3 commits into from
Apr 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.cjs

This file was deleted.

3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.experimental.useFlatConfig": true
}
62 changes: 31 additions & 31 deletions docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,53 +7,53 @@ export default defineAppConfig({
footer: {
bottom: {
left: 'text-sm text-gray-500 dark:text-gray-400',
wrapper: 'border-t border-gray-200 dark:border-gray-800'
}
}
wrapper: 'border-t border-gray-200 dark:border-gray-800',
},
},
},
header: {
logo: {
light: {
src: ''
src: '',
},
dark: {
src: ''
}
src: '',
},
},
pkgVersion,
search: true,
colorMode: true,
links: [{
icon: 'i-simple-icons-github',
to: 'https://github.com/nuxt-modules/tailwindcss',
target: '_blank',
'aria-label': 'Docs template on GitHub'
}]
'icon': 'i-simple-icons-github',
'to': 'https://github.com/nuxt-modules/tailwindcss',
'target': '_blank',
'aria-label': 'Docs template on GitHub',
}],
},
footer: {
credits: 'Copyright © 2023',
colorMode: false,
links: [{
icon: 'i-simple-icons-nuxtdotjs',
to: 'https://nuxt.com',
target: '_blank',
'aria-label': 'Nuxt Website'
'icon': 'i-simple-icons-nuxtdotjs',
'to': 'https://nuxt.com',
'target': '_blank',
'aria-label': 'Nuxt Website',
}, {
icon: 'i-simple-icons-discord',
to: 'https://discord.com/invite/ps2h6QT',
target: '_blank',
'aria-label': 'Nuxt Tailwind on Discord'
'icon': 'i-simple-icons-discord',
'to': 'https://discord.com/invite/ps2h6QT',
'target': '_blank',
'aria-label': 'Nuxt Tailwind on Discord',
}, {
icon: 'i-simple-icons-x',
to: 'https://x.com/nuxt_js',
target: '_blank',
'aria-label': 'Nuxt on X'
'icon': 'i-simple-icons-x',
'to': 'https://x.com/nuxt_js',
'target': '_blank',
'aria-label': 'Nuxt on X',
}, {
icon: 'i-simple-icons-github',
to: 'https://github.com/nuxt-modules/tailwindcss',
target: '_blank',
'aria-label': 'Nuxt Tailwind on GitHub'
}]
'icon': 'i-simple-icons-github',
'to': 'https://github.com/nuxt-modules/tailwindcss',
'target': '_blank',
'aria-label': 'Nuxt Tailwind on GitHub',
}],
},
toc: {
title: 'Table of Contents',
Expand All @@ -75,7 +75,7 @@ export default defineAppConfig({
label: 'Tailwind CSS docs',
to: 'https://tailwindcss.com',
target: '_blank',
}]
}
}
}],
},
},
})
17 changes: 10 additions & 7 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,24 @@ import type { ParsedContent } from '@nuxt/content/dist/runtime/types'
const { data: navigation } = await useAsyncData('navigation', () => fetchContentNavigation())
const { data: files } = useLazyFetch<ParsedContent[]>('/api/search.json', {
default: () => [],
server: false
server: false,
})

useHead({
meta: [
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
],
link: [
{ rel: 'icon', href: '/favicon.ico' }
{ rel: 'icon', href: '/favicon.ico' },
],
htmlAttrs: {
lang: 'en'
}
lang: 'en',
},
})

useSeoMeta({
ogSiteName: 'Nuxt TailwindCSS',
twitterCard: 'summary_large_image'
twitterCard: 'summary_large_image',
})

provide('navigation', navigation)
Expand All @@ -39,7 +39,10 @@ provide('navigation', navigation)
<AppFooter />

<ClientOnly>
<LazyUDocsSearch :files="files" :navigation="navigation" />
<LazyUDocsSearch
:files="files"
:navigation="navigation"
/>
</ClientOnly>

<UNotifications />
Expand Down
Loading