Skip to content

Commit

Permalink
chore: migrate to eslint v9 (#1333)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored Apr 22, 2024
1 parent fab61e6 commit 1f5894a
Show file tree
Hide file tree
Showing 99 changed files with 2,582 additions and 3,215 deletions.
6 changes: 0 additions & 6 deletions .eslintignore

This file was deleted.

10 changes: 0 additions & 10 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { defineBuildConfig } from 'unbuild'

export default defineBuildConfig({
externals: [
'ipx'
]
'ipx',
],
})
2 changes: 0 additions & 2 deletions docs/.eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions docs/.eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion docs/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ export default defineAppConfig({
ui: {
primary: 'green',
gray: 'slate',
}
},
})
81 changes: 68 additions & 13 deletions docs/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ useServerSeoMeta({
useHead({
htmlAttrs: {
lang: 'en',
}
},
})
const links = [{
label: 'Documentation',
Expand Down Expand Up @@ -44,18 +44,46 @@ watch(() => search.value?.commandPaletteRef?.query, debounce((query) => {
<template>
<UHeader :links="links">
<template #logo>
<Logo />
<TheLogo />
</template>
<template #right>
<UColorModeButton v-if="!$colorMode.forced" />
<UButton aria-label="Nuxt Website" icon="i-simple-icons-nuxtdotjs" to="https://nuxt.com" color="gray" variant="ghost" />
<UButton aria-label="Nuxt on X" icon="i-simple-icons-x" to="https://x.com/nuxt_js" color="gray" variant="ghost" />
<UButton aria-label="Nuxt Image on GitHub" icon="i-simple-icons-github" to="https://github.com/nuxt/image" color="gray" variant="ghost" />
<UButton
aria-label="Nuxt Website"
icon="i-simple-icons-nuxtdotjs"
to="https://nuxt.com"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt on X"
icon="i-simple-icons-x"
to="https://x.com/nuxt_js"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt Image on GitHub"
icon="i-simple-icons-github"
to="https://github.com/nuxt/image"
color="gray"
variant="ghost"
/>
</template>
<!-- Mobile panel -->
<template v-if="$route.path !== '/'" #panel>
<LazyUContentSearchButton size="md" class="w-full mb-4" />
<LazyUNavigationTree :links="mapContentNavigation(navigation)" default-open :multiple="false" />
<template
v-if="$route.path !== '/'"
#panel
>
<LazyUContentSearchButton
size="md"
class="w-full mb-4"
/>
<LazyUNavigationTree
:links="mapContentNavigation(navigation)"
default-open
:multiple="false"
/>
</template>
</UHeader>
<NuxtLayout>
Expand All @@ -64,19 +92,46 @@ watch(() => search.value?.commandPaletteRef?.query, debounce((query) => {
<UFooter :links="links">
<template #left>
<span class="text-sm">
Published under <NuxtLink to="https://github.com/nuxt/image" target="_blank" class="underline">
Published under <NuxtLink
to="https://github.com/nuxt/image"
target="_blank"
class="underline"
>
MIT License
</NuxtLink>
</span>
</template>
<template #right>
<UColorModeButton v-if="!$colorMode.forced" />
<UButton aria-label="Nuxt Website" icon="i-simple-icons-nuxtdotjs" to="https://nuxt.com" color="gray" variant="ghost" />
<UButton aria-label="Nuxt on X" icon="i-simple-icons-x" to="https://x.com/nuxt_js" color="gray" variant="ghost" />
<UButton aria-label="Nuxt Image on GitHub" icon="i-simple-icons-github" to="https://github.com/nuxt/image" color="gray" variant="ghost" />
<UButton
aria-label="Nuxt Website"
icon="i-simple-icons-nuxtdotjs"
to="https://nuxt.com"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt on X"
icon="i-simple-icons-x"
to="https://x.com/nuxt_js"
color="gray"
variant="ghost"
/>
<UButton
aria-label="Nuxt Image on GitHub"
icon="i-simple-icons-github"
to="https://github.com/nuxt/image"
color="gray"
variant="ghost"
/>
</template>
</UFooter>
<ClientOnly>
<LazyUContentSearch ref="search" :files="files" :navigation="navigation" :links="links" />
<LazyUContentSearch
ref="search"
:files="files"
:navigation="navigation"
:links="links"
/>
</ClientOnly>
</template>
5 changes: 4 additions & 1 deletion docs/components/AdsCarbon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ onMounted(() => {
</script>

<template>
<div ref="carbonads" class="carbon" />
<div
ref="carbonads"
class="carbon"
/>
</template>

<style lang="postcss">
Expand Down
23 changes: 0 additions & 23 deletions docs/components/Gradient.vue

This file was deleted.

67 changes: 0 additions & 67 deletions docs/components/Illustration.vue

This file was deleted.

Loading

0 comments on commit 1f5894a

Please sign in to comment.