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

@ -17,7 +17,7 @@ definePage({
});
// https://cn.vuejs.org/guide/extras/render-function#typing-functional-components
// eslint-disable-next-line @typescript-eslint/no-unused-vars
const FComponent: import('vue').FunctionalComponent<{ prop: string }> = (props, context) => (
// <>
<div border="1 solid pink" text="pink">

View File

@ -1,6 +1,8 @@
<script setup lang="ts">
const VITE_BUILD_COMMIT = import.meta.env.VITE_BUILD_COMMIT;
import { routes } from 'vue-router/auto-routes';
consola.info('routes', routes);
</script>
<template>

View File

@ -1,5 +1,5 @@
export function install() {
if ((import.meta.env.MODE === 'development' || 1 === 1) && 0) {
if (import.meta.env.MODE === 'development' && '1' === ('2' as never)) {
// TODO: https://github.com/hu3dao/vite-plugin-debug/
// https://eruda.liriliri.io/zh/docs/#快速上手
import('eruda').then(({ default: eruda }) => {