feat: 更新 VSCode 配置,添加 oxc 插件,调整 eslint 配置,优化构建和类型检查命令
Some checks failed
/ playwright (push) Failing after 2m19s
/ depcheck (push) Successful in 1m30s
/ build-and-deploy-to-vercel (push) Successful in 1m29s

This commit is contained in:
严浩
2024-12-25 23:44:18 +08:00
parent eed0f4f3f4
commit 49e18facda
12 changed files with 341 additions and 168 deletions

View File

@ -41,7 +41,7 @@ export function Plugins() {
exclude: ['**/__*', '**/__*/**/*'],
getRouteName: (routeNode) => getPascalCaseRouteName(routeNode),
logs: false,
extensions: ['.page.vue', '.md'],
extensions: ['.page.vue', '.page.md'],
}),
vue: Vue({ include: [/\.vue$/, /\.md$/] }),
vueJsx: VueJsx(), // 如有需要
@ -74,6 +74,7 @@ export function Plugins() {
{
// add any other imports you were relying on
'vue-router/auto': ['useLink'],
'consola/browser': ['consola'],
},
],
dirs: [
@ -148,8 +149,7 @@ export function Plugins() {
}),
);
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const unused = () => {
const _unused = () => {
plugins.push(
// https://github.com/unplugin/unplugin-vue-components/issues/664$0
// https://github.com/VaJoy/vite-plugin-cdn-import-async$0