refactor: update package.json and improve ESLint configuration
- Removed outdated Vue CLI plugins and added new ESLint rules and plugins for better TypeScript support. - Enhanced ESLint configuration with parser options and overrides for Vue files. feat: refactor router configuration for improved readability - Reformatted router configuration for better structure and clarity. - Ensured consistent use of async component imports and updated route definitions. chore: update TypeScript configuration for better compatibility - Adjusted tsconfig.json to target ES2020 and include necessary libraries. - Added a new tsconfig.node.json for Node.js specific configurations. fix: update Vite configuration for proper asset handling - Modified vite.config.js to specify input for Rollup, ensuring correct asset management.
This commit is contained in:
57
src/shims-vue.d.ts
vendored
57
src/shims-vue.d.ts
vendored
@@ -1,21 +1,38 @@
|
||||
/* eslint-disable */
|
||||
declare module '*.vue' {
|
||||
import type { DefineComponent } from 'vue'
|
||||
const component: DefineComponent<{}, {}, any>
|
||||
export default component
|
||||
/// <reference types="vite/client" />
|
||||
|
||||
declare module "*.vue" {
|
||||
import type { DefineComponent } from "vue";
|
||||
const component: DefineComponent<{}, {}, any>;
|
||||
export default component;
|
||||
}
|
||||
|
||||
interface ImportMetaEnv {
|
||||
readonly VITE_APP_TITLE: string;
|
||||
readonly VITE_APP_BASE_URL: string;
|
||||
readonly BASE_URL: string;
|
||||
// 更多环境变量...
|
||||
}
|
||||
|
||||
interface ImportMeta {
|
||||
readonly env: ImportMetaEnv;
|
||||
}
|
||||
|
||||
// 第三方库声明
|
||||
declare module "@ans1998/vue3-color";
|
||||
declare module "three";
|
||||
declare module "three/examples/jsm/controls/OrbitControls";
|
||||
declare module "three/examples/jsm/postprocessing/EffectComposer";
|
||||
declare module "three/examples/jsm/postprocessing/RenderPass";
|
||||
declare module "three/examples/jsm/postprocessing/OutlinePass";
|
||||
|
||||
// 全局变量声明
|
||||
declare global {
|
||||
var ColorThief: any;
|
||||
var EyeDropper: any;
|
||||
interface Window {
|
||||
ColorThief: any;
|
||||
EyeDropper: any;
|
||||
google: any;
|
||||
gc?: () => void;
|
||||
}
|
||||
}
|
||||
// declare module '@vue/runtime-core' {
|
||||
// //全局this注册方法或者公用属性
|
||||
// interface ComponentCustomProperties {
|
||||
// // 调整成你要使用到的属性,在这里进行注册
|
||||
// // GO: any
|
||||
// }
|
||||
// }
|
||||
declare module '@ans1998/vue3-color'
|
||||
declare var ColorThief: any;
|
||||
declare var EyeDropper: any;
|
||||
declare module 'three'
|
||||
declare module 'OrbitControls'
|
||||
declare module 'EffectComposer'
|
||||
declare module 'RenderPass'
|
||||
declare module 'OutlinePass'
|
||||
|
||||
Reference in New Issue
Block a user