diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 000000000..65a7d0588 --- /dev/null +++ b/.prettierignore @@ -0,0 +1 @@ +*.vue diff --git a/.vitepress/config.ts b/.vitepress/config.ts index bc6b2af29..13bc24f5d 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -737,6 +737,7 @@ export default defineConfigWithTheme({ markdown: { theme: 'github-dark', config(md) { + // @ts-expect-error - broken type output in vitepress md.use(headerPlugin) // .use(textAdPlugin) } diff --git a/.vitepress/headerMdPlugin.ts b/.vitepress/headerMdPlugin.ts index d7e6c7ba4..2a0db5348 100644 --- a/.vitepress/headerMdPlugin.ts +++ b/.vitepress/headerMdPlugin.ts @@ -19,8 +19,6 @@ export interface AugmentedHeader extends Header { } export const headerPlugin = (md: MarkdownIt) => { - md.core.ruler.enable('text_join') - md.renderer.rules.heading_open = (tokens, i, options, env, self) => { for (const child of tokens[i + 1].children!) { if (child.type === 'text' && child.content.endsWith('*')) { diff --git a/.vitepress/theme/components/Home.vue b/.vitepress/theme/components/Home.vue index 2ab0b8800..d1786f471 100644 --- a/.vitepress/theme/components/Home.vue +++ b/.vitepress/theme/components/Home.vue @@ -1,5 +1,5 @@ diff --git a/src/examples/ExampleRepl.vue b/src/examples/ExampleRepl.vue index fc56e9922..4247fb4b3 100644 --- a/src/examples/ExampleRepl.vue +++ b/src/examples/ExampleRepl.vue @@ -2,15 +2,7 @@ import { Repl, useStore, useVueImportMap } from '@vue/repl' import CodeMirror from '@vue/repl/codemirror-editor' import { data } from './examples.data' -import { - inject, - watchEffect, - version, - Ref, - onMounted, - ref, - onUnmounted -} from 'vue' +import { inject, watchEffect, Ref, onMounted, ref, onUnmounted } from 'vue' import { resolveSFCExample, resolveNoBuildExample, diff --git a/src/tutorial/TutorialRepl.vue b/src/tutorial/TutorialRepl.vue index 804dcd66d..a8ccac739 100644 --- a/src/tutorial/TutorialRepl.vue +++ b/src/tutorial/TutorialRepl.vue @@ -1,7 +1,7 @@