fix: typecheck & lint

This commit is contained in:
Neko Ayaka
2025-07-19 01:26:02 +08:00
parent 5cef90969a
commit c242179e9d
5 changed files with 8 additions and 10 deletions
@@ -1,10 +1,10 @@
<script setup lang="ts">
import { Screen } from '@proj-airi/stage-ui/components'
import { useLive2d } from '@proj-airi/stage-ui/stores'
import { useMouse } from '@vueuse/core'
import { storeToRefs } from 'pinia'
import { ref } from 'vue'
import { useLive2d } from '../../../../stores'
import { Screen } from '../../../Misc'
import { Live2DCanvas, Live2DModel } from '../../../Scenes'
const live2dCanvasRef = ref<InstanceType<typeof Live2DCanvas>>()
@@ -1,11 +1,11 @@
<script setup lang="ts">
import { useVRM } from '@proj-airi/stage-ui/stores'
import { OrbitControls } from '@tresjs/cientos'
import { TresCanvas } from '@tresjs/core'
import { useElementBounding } from '@vueuse/core'
import { storeToRefs } from 'pinia'
import { computed, ref } from 'vue'
import { ref } from 'vue'
import { useVRM } from '../../../../stores'
import { VRMModel } from '../../../Scenes'
const emit = defineEmits<{
@@ -14,7 +14,7 @@ const emit = defineEmits<{
}>()
const VRMContainerRef = ref<HTMLDivElement>()
const { width, height } = useElementBounding(VRMContainerRef)
const { modelFile, modelUrl, loadSource, selectedModel } = storeToRefs(useVRM())
const { selectedModel } = storeToRefs(useVRM())
const cameraPositionX = ref(-0.17)
const cameraPositionY = ref(0)
@@ -32,7 +32,6 @@ defineExpose({
modelRef.value?.setExpression(expression)
},
})
</script>
<template>
@@ -3,7 +3,7 @@ import { TransitionVertical } from '@proj-airi/ui'
import { OrbitControls } from '@tresjs/cientos'
import { TresCanvas } from '@tresjs/core'
import { storeToRefs } from 'pinia'
import { computed, ref } from 'vue'
import { ref } from 'vue'
import { useI18n } from 'vue-i18n'
import DataGuiRange from '../DataGui/Range.vue'
@@ -24,7 +24,7 @@ const emit = defineEmits<{
const show = ref(false)
const { modelFile, modelUrl, loadSource, selectedModel } = storeToRefs(useVRM())
const { selectedModel } = storeToRefs(useVRM())
const cameraPositionX = ref(-0.17)
const cameraPositionY = ref(0)
-1
View File
@@ -48,4 +48,3 @@ export const useVRM = defineStore('vrm', () => {
selectedModel, // Expose the new computed property
}
})
+1 -1
View File
@@ -9,7 +9,7 @@
"noUnusedParameters": true,
"noEmit": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"forceConsistentCasingInFileNames": false,
"isolatedModules": true,
"verbatimModuleSyntax": true,
"skipLibCheck": true