Skip to content

Commit 690fd53

Browse files
committed
chore: upgrade deps
1 parent a958075 commit 690fd53

Some content is hidden

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

75 files changed

+851
-779
lines changed

build.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ import { defineBuildConfig } from 'unbuild'
33

44
export default defineBuildConfig({
55
entries: [
6-
'src/config.ts'
6+
'src/config.ts',
77
],
88
hooks: {
99
'rollup:done': () => {
1010
fs.writeFileSync('dist/config.cjs', 'module.exports = {}; module.exports.defineConfig = configs => configs', 'utf-8')
11-
}
11+
},
1212
},
1313
externals: [
14-
'hast'
15-
]
14+
'hast',
15+
],
1616
})

eslint.config.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// @ts-check
2+
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'
3+
4+
// Run `npx @eslint/config-inspector` to inspect the resolved config interactively
5+
export default createConfigForNuxt({
6+
features: {
7+
// Rules for module authors
8+
tooling: true,
9+
// Rules for formatting
10+
stylistic: true,
11+
},
12+
dirs: {
13+
src: [
14+
'./playground',
15+
'./examples/blog',
16+
],
17+
},
18+
})
19+
.append(
20+
{
21+
rules: {
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
'vue/multi-word-component-names': 'off',
24+
'@typescript-eslint/no-empty-object-type': 'off',
25+
'@typescript-eslint/unified-signatures': 'off',
26+
},
27+
},
28+
)

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"rehype-sort-attributes": "^5.0.1",
100100
"remark-emoji": "^5.0.2",
101101
"remark-gfm": "^4.0.1",
102-
"remark-mdc": "npm:remark-mdc-edge@3.6.0-29333381.8558577",
102+
"remark-mdc": "^3.8.0",
103103
"remark-parse": "^11.0.0",
104104
"remark-rehype": "^11.1.2",
105105
"remark-stringify": "^11.0.0",
@@ -113,21 +113,21 @@
113113
"vfile": "^6.0.3"
114114
},
115115
"devDependencies": {
116-
"@nuxt/devtools": "^3.0.0",
116+
"@nuxt/devtools": "^3.0.1",
117117
"@nuxt/eslint-config": "^1.10.0",
118118
"@nuxt/module-builder": "^1.0.2",
119119
"@nuxt/schema": "^4.2.0",
120120
"@nuxt/test-utils": "^3.20.1",
121121
"@nuxt/ui": "^4.1.0",
122122
"@nuxtjs/mdc": "link:.",
123-
"@types/node": "^24.9.2",
124-
"eslint": "^9.38.0",
123+
"@types/node": "^24.10.0",
124+
"eslint": "^9.39.0",
125125
"nuxt": "^4.2.0",
126126
"rehype": "^13.0.2",
127127
"release-it": "^19.0.5",
128128
"typescript": "5.9.3",
129-
"vitest": "^4.0.5",
130-
"vue-tsc": "^3.1.2"
129+
"vitest": "^4.0.6",
130+
"vue-tsc": "^3.1.3"
131131
},
132132
"resolutions": {
133133
"@nuxtjs/mdc": "workspace:*"

playground/app/app.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<UApp>
33
<div class="root">
4-
<NuxtLoadingIndicator color="#4ade80" :height="2" />
4+
<NuxtLoadingIndicator
5+
color="#4ade80"
6+
:height="2"
7+
/>
58
<NuxtPage />
69
</div>
710
</UApp>

playground/app/components/Editor.vue

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
2-
<div ref="editorContainer" class="h-full w-full" />
2+
<div
3+
ref="editorContainer"
4+
class="h-full w-full"
5+
/>
36
</template>
47

58
<script setup>
@@ -10,20 +13,20 @@ import { language as mdc } from '@nuxtlabs/monarch-mdc'
1013
const props = defineProps({
1114
code: {
1215
type: String,
13-
required: true
16+
required: true,
1417
},
1518
language: {
1619
type: String,
17-
default: 'mdc'
20+
default: 'mdc',
1821
},
1922
readOnly: {
2023
type: Boolean,
21-
default: false
24+
default: false,
2225
},
2326
theme: {
2427
type: String,
25-
default: 'vs-dark'
26-
}
28+
default: 'vs-dark',
29+
},
2730
})
2831
2932
const emit = defineEmits(['update:code'])
@@ -44,20 +47,20 @@ onMounted(async () => {
4447
automaticLayout: true,
4548
readOnly: props.readOnly,
4649
minimap: {
47-
enabled: false
50+
enabled: false,
4851
},
4952
fontSize: 14,
5053
lineNumbers: 'on',
5154
scrollBeyondLastLine: false,
5255
roundedSelection: false,
5356
padding: {
54-
top: 8
57+
top: 8,
5558
},
5659
bracketPairColorization: {
57-
enabled: true
60+
enabled: true,
5861
},
5962
formatOnPaste: true,
60-
formatOnType: true
63+
formatOnType: true,
6164
})
6265
6366
editor.onDidChangeModelContent(() => {

playground/app/components/PageNav.vue

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,40 @@
22
<nav class="p-1 flex gap-1 justify-between items-center border-b-2 border-b-gray-600 mb-2 px-5 py-4">
33
<ul class="flex gap-1">
44
<li>
5-
<UButton class="block" size="xs" to="/async-components">
5+
<UButton
6+
class="block"
7+
size="xs"
8+
to="/async-components"
9+
>
610
Simple Async Example
711
</UButton>
812
</li>
913
<li>
10-
<UButton class="block" size="xs" to="/async-components/advanced">
14+
<UButton
15+
class="block"
16+
size="xs"
17+
to="/async-components/advanced"
18+
>
1119
Advanced Async Example
1220
</UButton>
1321
</li>
1422
<li>
15-
<UButton class="block" size="xs" to="/async-components/no-async">
23+
<UButton
24+
class="block"
25+
size="xs"
26+
to="/async-components/no-async"
27+
>
1628
No Async Components
1729
</UButton>
1830
</li>
1931
</ul>
2032
<ul class="flex gap-1">
2133
<li>
22-
<UButton class="block" size="xs" to="/">
34+
<UButton
35+
class="block"
36+
size="xs"
37+
to="/"
38+
>
2339
Back to Playground
2440
</UButton>
2541
</li>

playground/app/components/global/PageSnippet.vue

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ const props = defineProps({
3535
* an empty `name` and avoid warnings.
3636
*/
3737
required: false,
38-
default: ''
39-
}
38+
default: '',
39+
},
4040
})
4141
4242
// Determine the snippet name
@@ -56,15 +56,15 @@ const fetchKey = computed((): string => `portal-snippet-${(snippetName.value ||
5656
const { transform, getCachedData } = serveCachedData()
5757
const { data: snippetData, error: snippetError } = await useFetch('/api/markdown', {
5858
query: {
59-
name: 'snippet'
59+
name: 'snippet',
6060
},
6161
// Reuse the same key to avoid re-fetching the document, e.g. `portal-page-about`
6262
key: fetchKey.value,
6363
dedupe: 'defer',
6464
immediate: !!snippetName.value, // Do not immediately fetch in case there's no snippet name
6565
retry: false, // Do not retry on 404 in case the snippet doesn't exist
6666
transform,
67-
getCachedData
67+
getCachedData,
6868
})
6969
7070
const nodes = [...snippetParentNodes.value].join('|')
@@ -79,7 +79,8 @@ const removeInvalidSnippets = (obj: Record<string, any>): Record<string, any> |
7979
return obj
8080
.map(item => removeInvalidSnippets(item))
8181
.filter(item => item !== null)
82-
} else if (typeof obj === 'object' && obj !== null) {
82+
}
83+
else if (typeof obj === 'object' && obj !== null) {
8384
// Check if the object has 'tag' property and the required 'props.name' condition
8485
if (
8586
obj.tag
@@ -124,15 +125,15 @@ const { data: ast } = await useAsyncData(`parsed-${fetchKey.value}`, async (): P
124125
// Return the MDCParserResult with the sanitized body
125126
return {
126127
...parsedDoc,
127-
body: processedBody as MDCRoot
128+
body: processedBody as MDCRoot,
128129
}
129130
}, {
130131
// Only parse if there is content and no error. Must be true to allow for async rendering
131132
immediate: !!snippetName.value && (!!sanitizedData && !!snippetData.value?.content) && !snippetError.value, // Do not immediately process the snippet data
132133
dedupe: 'defer',
133134
deep: false,
134135
transform,
135-
getCachedData
136+
getCachedData,
136137
})
137138
138139
if (snippetName.value && snippetError.value) {

playground/app/components/mdc/Hero.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<template>
22
<section class="pt-4">
33
<h1 class="text-4xl">
4-
<MDCSlot :use="$slots.default" unwrap="p" />
4+
<MDCSlot
5+
:use="$slots.default"
6+
unwrap="p"
7+
/>
58
</h1>
69
<MDCSlot :use="$slots.description" />
710
</section>
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
<template>
22
<div>
3-
<MDCSlot :use="$slots.default" unwrap="ul li" />
3+
<MDCSlot
4+
:use="$slots.default"
5+
unwrap="ul li"
6+
/>
47
</div>
58
</template>

0 commit comments

Comments
 (0)