feat: 更新模板

This commit is contained in:
2025-09-19 11:24:41 +08:00
parent bc2aff3a4b
commit 560367eeb5
15 changed files with 308 additions and 1831 deletions

View File

@@ -1,8 +1,17 @@
import {defineConfig} from 'vite'
import react from '@vitejs/plugin-react-swc'
import {defineConfig} from "vite";
import react from "@vitejs/plugin-react-swc";
import tsconfigPaths from "vite-tsconfig-paths";
import checker from "vite-plugin-checker";
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
})
plugins: [
react(),
tsconfigPaths(),
checker({
typescript: true, // 开启 TypeScript 检查
eslint: {
lintCommand: "eslint \"./src/**/*.{ts,tsx}\"", // 自定义 eslint 命令
},
})],
});