diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json index effe126..3092d98 100644 --- a/.eslintrc-auto-import.json +++ b/.eslintrc-auto-import.json @@ -1,305 +1,84 @@ { "globals": { - "Component": true, - "ComponentPublicInstance": true, - "ComputedRef": true, - "EffectScope": true, - "InjectionKey": true, - "PropType": true, - "Ref": true, - "VNode": true, - "computed": true, - "createApp": true, - "customRef": true, - "defineAsyncComponent": true, - "defineComponent": true, - "effectScope": true, - "getCurrentInstance": true, - "getCurrentScope": true, - "h": true, - "inject": true, - "isProxy": true, - "isReactive": true, - "isReadonly": true, - "isRef": true, - "markRaw": true, - "nextTick": true, - "onActivated": true, - "onBeforeMount": true, - "onBeforeRouteLeave": true, - "onBeforeRouteUpdate": true, - "onBeforeUnmount": true, - "onBeforeUpdate": true, - "onDeactivated": true, - "onErrorCaptured": true, - "onMounted": true, - "onRenderTracked": true, - "onRenderTriggered": true, - "onScopeDispose": true, - "onServerPrefetch": true, - "onUnmounted": true, - "onUpdated": true, - "provide": true, - "reactive": true, - "readonly": true, - "ref": true, - "resolveComponent": true, - "shallowReactive": true, - "shallowReadonly": true, - "shallowRef": true, - "toRaw": true, - "toRef": true, - "toRefs": true, - "toValue": true, - "triggerRef": true, - "unref": true, - "useAttrs": true, - "useCssModule": true, - "useCssVars": true, - "useLink": true, - "useRoute": true, - "useRouter": true, - "useSlots": true, - "watch": true, - "watchEffect": true, - "watchPostEffect": true, - "watchSyncEffect": true, - "asyncComputed": true, - "autoResetRef": true, - "computedAsync": true, - "computedEager": true, - "computedInject": true, - "computedWithControl": true, - "controlledComputed": true, - "controlledRef": true, - "createEventHook": true, - "createGlobalState": true, - "createInjectionState": true, - "createReactiveFn": true, - "createReusableTemplate": true, - "createSharedComposable": true, - "createTemplatePromise": true, - "createUnrefFn": true, - "debouncedRef": true, - "debouncedWatch": true, - "eagerComputed": true, - "extendRef": true, - "ignorableWatch": true, - "isDefined": true, - "makeDestructurable": true, - "onClickOutside": true, - "onKeyStroke": true, - "onLongPress": true, - "onStartTyping": true, - "pausableWatch": true, - "reactify": true, - "reactifyObject": true, - "reactiveComputed": true, - "reactiveOmit": true, - "reactivePick": true, - "refAutoReset": true, - "refDebounced": true, - "refDefault": true, - "refThrottled": true, - "refWithControl": true, - "resolveRef": true, - "resolveUnref": true, - "syncRef": true, - "syncRefs": true, - "templateRef": true, - "throttledRef": true, - "throttledWatch": true, - "toReactive": true, - "tryOnBeforeMount": true, - "tryOnBeforeUnmount": true, - "tryOnMounted": true, - "tryOnScopeDispose": true, - "tryOnUnmounted": true, - "unrefElement": true, - "until": true, - "useActiveElement": true, - "useAnimate": true, - "useArrayDifference": true, - "useArrayEvery": true, - "useArrayFilter": true, - "useArrayFind": true, - "useArrayFindIndex": true, - "useArrayFindLast": true, - "useArrayIncludes": true, - "useArrayJoin": true, - "useArrayMap": true, - "useArrayReduce": true, - "useArraySome": true, - "useArrayUnique": true, - "useAsyncQueue": true, - "useAsyncState": true, - "useBase64": true, - "useBattery": true, - "useBluetooth": true, - "useBreakpoints": true, - "useBroadcastChannel": true, - "useBrowserLocation": true, - "useCached": true, - "useClipboard": true, - "useCloned": true, - "useColorMode": true, - "useConfirmDialog": true, - "useCounter": true, - "useCssVar": true, - "useCurrentElement": true, - "useCycleList": true, - "useDark": true, - "useDateFormat": true, - "useDebounce": true, - "useDebounceFn": true, - "useDebouncedRefHistory": true, - "useDeviceMotion": true, - "useDeviceOrientation": true, - "useDevicePixelRatio": true, - "useDevicesList": true, - "useDisplayMedia": true, - "useDocumentVisibility": true, - "useDraggable": true, - "useDropZone": true, - "useElementBounding": true, - "useElementByPoint": true, - "useElementHover": true, - "useElementSize": true, - "useElementVisibility": true, - "useEventBus": true, - "useEventListener": true, - "useEventSource": true, - "useEyeDropper": true, - "useFavicon": true, - "useFetch": true, - "useFileDialog": true, - "useFileSystemAccess": true, - "useFocus": true, - "useFocusWithin": true, - "useFps": true, - "useFullscreen": true, - "useGamepad": true, - "useGeolocation": true, - "useIdle": true, - "useImage": true, - "useInfiniteScroll": true, - "useIntersectionObserver": true, - "useInterval": true, - "useIntervalFn": true, - "useKeyModifier": true, - "useLastChanged": true, - "useLocalStorage": true, - "useMagicKeys": true, - "useManualRefHistory": true, - "useMediaControls": true, - "useMediaQuery": true, - "useMemoize": true, - "useMemory": true, - "useMounted": true, - "useMouse": true, - "useMouseInElement": true, - "useMousePressed": true, - "useMutationObserver": true, - "useNavigatorLanguage": true, - "useNetwork": true, - "useNow": true, - "useObjectUrl": true, - "useOffsetPagination": true, - "useOnline": true, - "usePageLeave": true, - "useParallax": true, - "useParentElement": true, - "usePerformanceObserver": true, - "usePermission": true, - "usePointer": true, - "usePointerLock": true, - "usePointerSwipe": true, - "usePreferredColorScheme": true, - "usePreferredContrast": true, - "usePreferredDark": true, - "usePreferredLanguages": true, - "usePreferredReducedMotion": true, - "usePrevious": true, - "useRafFn": true, - "useRefHistory": true, - "useResizeObserver": true, - "useScreenOrientation": true, - "useScreenSafeArea": true, - "useScriptTag": true, - "useScroll": true, - "useScrollLock": true, - "useSessionStorage": true, - "useShare": true, - "useSorted": true, - "useSpeechRecognition": true, - "useSpeechSynthesis": true, - "useStepper": true, - "useStorage": true, - "useStorageAsync": true, - "useStyleTag": true, - "useSupported": true, - "useSwipe": true, - "useTemplateRefsList": true, - "useTextDirection": true, - "useTextSelection": true, - "useTextareaAutosize": true, - "useThrottle": true, - "useThrottleFn": true, - "useThrottledRefHistory": true, - "useTimeAgo": true, - "useTimeout": true, - "useTimeoutFn": true, - "useTimeoutPoll": true, - "useTimestamp": true, - "useTitle": true, - "useToNumber": true, - "useToString": true, - "useToggle": true, - "useTransition": true, - "useUrlSearchParams": true, - "useUserMedia": true, - "useVModel": true, - "useVModels": true, - "useVibrate": true, - "useVirtualList": true, - "useWakeLock": true, - "useWebNotification": true, - "useWebSocket": true, - "useWebWorker": true, - "useWebWorkerFn": true, - "useWindowFocus": true, - "useWindowScroll": true, - "useWindowSize": true, - "watchArray": true, - "watchAtMost": true, - "watchDebounced": true, - "watchDeep": true, - "watchIgnorable": true, - "watchImmediate": true, - "watchOnce": true, - "watchPausable": true, - "watchThrottled": true, - "watchTriggerable": true, - "watchWithFilter": true, - "whenever": true, - "WritableComputedRef": true, - "ExtractDefaultPropTypes": true, - "ExtractPropTypes": true, - "ExtractPublicPropTypes": true, - "injectLocal": true, - "provideLocal": true, - "useClipboardItems": true, - "acceptHMRUpdate": true, - "createPinia": true, - "defineStore": true, - "getActivePinia": true, - "mapActions": true, - "mapGetters": true, - "mapState": true, - "mapStores": true, - "mapWritableState": true, - "setActivePinia": true, - "setMapStoreSuffix": true, - "storeToRefs": true + "Component": false, + "ComponentPublicInstance": false, + "ComputedRef": false, + "EffectScope": false, + "ExtractDefaultPropTypes": false, + "ExtractPropTypes": false, + "ExtractPublicPropTypes": false, + "InjectionKey": false, + "PropType": false, + "Ref": false, + "VNode": false, + "WritableComputedRef": false, + "acceptHMRUpdate": false, + "computed": false, + "createApp": false, + "createPinia": false, + "customRef": false, + "defineAsyncComponent": false, + "defineComponent": false, + "defineStore": false, + "effectScope": false, + "getActivePinia": false, + "getCurrentInstance": false, + "getCurrentScope": false, + "h": false, + "inject": false, + "isProxy": false, + "isReactive": false, + "isReadonly": false, + "isRef": false, + "mapActions": false, + "mapGetters": false, + "mapState": false, + "mapStores": false, + "mapWritableState": false, + "markRaw": false, + "nextTick": false, + "onActivated": false, + "onBeforeMount": false, + "onBeforeRouteLeave": false, + "onBeforeRouteUpdate": false, + "onBeforeUnmount": false, + "onBeforeUpdate": false, + "onDeactivated": false, + "onErrorCaptured": false, + "onMounted": false, + "onRenderTracked": false, + "onRenderTriggered": false, + "onScopeDispose": false, + "onServerPrefetch": false, + "onUnmounted": false, + "onUpdated": false, + "provide": false, + "reactive": false, + "readonly": false, + "ref": false, + "resolveComponent": false, + "setActivePinia": false, + "setMapStoreSuffix": false, + "shallowReactive": false, + "shallowReadonly": false, + "shallowRef": false, + "storeToRefs": false, + "toRaw": false, + "toRef": false, + "toRefs": false, + "toValue": false, + "triggerRef": false, + "unref": false, + "useAttrs": false, + "useCssModule": false, + "useCssVars": false, + "useLink": false, + "useRoute": false, + "useRouter": false, + "useSlots": false, + "watch": false, + "watchEffect": false, + "watchPostEffect": false, + "watchSyncEffect": false } } diff --git a/build/plugins/unplugin.js b/build/plugins/unplugin.js index 8153119..8f9f3fa 100644 --- a/build/plugins/unplugin.js +++ b/build/plugins/unplugin.js @@ -6,7 +6,7 @@ export default function createVitePlugins() { return [ Icons({ autoInstall: true, compiler: 'vue3' }), AutoImport({ - imports: ['vue', 'vue-router', '@vueuse/core', 'pinia'], + imports: ['vue', 'vue-router', 'pinia'], include: [/\.[tj]sx?$/, /\.vue$/], // 匹配的文件,也就是哪些后缀的文件需要自动引入 // 可以选择auto-import.d.ts生成的位置,使用ts建议设置为'src/auto-import.d.ts' dts: false, // 会在根目录生成auto-imports.d.ts,里面可以看到自动导入的api @@ -16,9 +16,9 @@ export default function createVitePlugins() { // 下面两个是其他配置,默认即可 // 输出一份json文件,默认输出路径为./.eslintrc-auto-import.json eslintrc: { - enabled: true, + enabled: false, filepath: './.eslintrc-auto-import.json', // @default './.eslintrc-auto-import.json' - globalsPropValue: true // @default true 可设置 boolean | 'readonly' | 'readable' | 'writable' | 'writeable' + globalsPropValue: false // @default true 可设置 boolean | 'readonly' | 'readable' | 'writable' | 'writeable' } }), Components({ diff --git a/package.json b/package.json index d6e8da4..fe75ce9 100644 --- a/package.json +++ b/package.json @@ -18,11 +18,8 @@ "prepare": "husky install" }, "dependencies": { - "@vueuse/components": "10.6.1", - "@vueuse/core": "10.6.1", "axios": "1.6.5", "terser": "5.26.0", - "mockjs": "1.1.0", "dayjs": "1.11.10", "mitt": "3.0.1", "moment": "2.29.4", @@ -42,14 +39,14 @@ "vite-svg-loader": "4.0.0", "vite-plugin-restart": "0.4.0", "vite-plugin-vue-devtools": "7.0.10", - "vue": "3.3.9", + "vue": "3.4.13", "vue-router": "4.2.5" }, "devDependencies": { "@commitlint/cli": "17.8.1", "@commitlint/config-conventional": "17.8.1", "@vitejs/plugin-legacy": "4.1.1", - "@vitejs/plugin-vue": "4.5.2", + "@vitejs/plugin-vue": "5.0.3", "autoprefixer": "10.4.14", "eslint": "8.54.0", "eslint-config-prettier": "9.1.0",