Skip to content

Commit 2ca025f

Browse files
chore: more cleanup
1 parent 82b3c78 commit 2ca025f

File tree

7 files changed

+10
-20
lines changed

7 files changed

+10
-20
lines changed

app/pages/blogs/[...slugs].vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script lang="ts">
2+
import { useDateFormat } from '@vueuse/core'
3+
24
import type { MinimalNode } from '@nuxt/content'
35
46
const ContentNotFound = defineComponent({

app/pages/blogs/index.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
<script setup lang="ts">
2+
import { useDateFormat } from '@vueuse/core'
3+
24
useSeoMeta({ title: 'Blogs' })
35
46
const { data: blogsList } = await useAsyncData('blogsList', () =>

content.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default defineContentConfig({
66
type: 'page',
77
source: 'blogs/**',
88
schema: z.object({
9-
date: z.string(),
9+
date: z.date(),
1010
}),
1111
}),
1212
},

eslint.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export default withNuxt(antfu({
3535
'alphabetize': { order: 'asc', caseInsensitive: true },
3636
},
3737
],
38+
39+
'perfectionist/sort-imports': 'off',
3840
},
3941
}, {
4042
files: ['**/*.md'],

nuxt.config.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ export default defineNuxtConfig({
3535
'@nuxtjs/color-mode',
3636
'@unocss/nuxt',
3737
'@nuxt/eslint',
38-
'@vueuse/nuxt',
3938
'@vite-pwa/nuxt',
4039
],
4140
devtools: {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@unocss/eslint-plugin": "^66.0.0",
2424
"@unocss/nuxt": "^66.0.0",
2525
"@vite-pwa/nuxt": "^1.0.0",
26-
"@vueuse/nuxt": "^13.1.0",
26+
"@vueuse/core": "^13.1.0",
2727
"eslint": "^9.25.1",
2828
"nuxt": "^3.16.2",
2929
"sass-embedded": "^1.87.0",

yarn.lock

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5903,7 +5903,7 @@ __metadata:
59035903
languageName: node
59045904
linkType: hard
59055905

5906-
"@vueuse/core@npm:13.1.0":
5906+
"@vueuse/core@npm:^13.1.0":
59075907
version: 13.1.0
59085908
resolution: "@vueuse/core@npm:13.1.0"
59095909
dependencies:
@@ -5923,21 +5923,6 @@ __metadata:
59235923
languageName: node
59245924
linkType: hard
59255925

5926-
"@vueuse/nuxt@npm:^13.1.0":
5927-
version: 13.1.0
5928-
resolution: "@vueuse/nuxt@npm:13.1.0"
5929-
dependencies:
5930-
"@nuxt/kit": "npm:^3.16.2"
5931-
"@vueuse/core": "npm:13.1.0"
5932-
"@vueuse/metadata": "npm:13.1.0"
5933-
local-pkg: "npm:^1.1.1"
5934-
peerDependencies:
5935-
nuxt: ^3.0.0 || ^4.0.0-0
5936-
vue: ^3.5.0
5937-
checksum: 10c0/468d99b47192f6cea2c0400435efb2822b7325164dbea53addf0b2dbc2441010edac870e913d549c0409a2850790b50e7b0c1158902dde8f5d36f8bf9d14e14c
5938-
languageName: node
5939-
linkType: hard
5940-
59415926
"@vueuse/shared@npm:13.1.0":
59425927
version: 13.1.0
59435928
resolution: "@vueuse/shared@npm:13.1.0"
@@ -10642,7 +10627,7 @@ __metadata:
1064210627
"@unocss/eslint-plugin": "npm:^66.0.0"
1064310628
"@unocss/nuxt": "npm:^66.0.0"
1064410629
"@vite-pwa/nuxt": "npm:^1.0.0"
10645-
"@vueuse/nuxt": "npm:^13.1.0"
10630+
"@vueuse/core": "npm:^13.1.0"
1064610631
eslint: "npm:^9.25.1"
1064710632
nuxt: "npm:^3.16.2"
1064810633
sass-embedded: "npm:^1.87.0"

0 commit comments

Comments
 (0)