Skip to content

Commit

Permalink
chore: migrate to eslint v9
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Apr 10, 2024
1 parent 4ecc5ad commit 020743d
Show file tree
Hide file tree
Showing 48 changed files with 1,376 additions and 513 deletions.
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

0 comments on commit 020743d

Please sign in to comment.