chore: 🚀 pre-commit增加vue-tscvue-tsc校验

This commit is contained in:
weisheng 2024-03-18 23:00:10 +08:00
parent 201e7a12b9
commit 2dcda5f40c
4 changed files with 2 additions and 10 deletions

0
.husky/commit-msg Normal file → Executable file
View File

0
.husky/pre-commit Normal file → Executable file
View File

View File

@ -130,7 +130,8 @@
"ios >= 9"
],
"lint-staged": {
"*.{js,ts,vue}": "eslint --fix --ext .js,.vue,.ts src"
"*.{js,ts,vue}": "eslint --fix --ext .js,.vue,.ts src",
"*.{ts,vue}": "vue-tsc --noEmit"
},
"uni-app": {
"scripts": {

View File

@ -1,12 +1,3 @@
<!--
* @Author: weisheng
* @Date: 2023-03-09 19:23:03
* @LastEditTime: 2023-08-16 00:02:08
* @LastEditors: weisheng
* @Description:
* @FilePath: \wot-design-uni\src\App.vue
* 记得注释
-->
<script setup lang="ts">
import { onLaunch, onShow, onHide, onThemeChange } from '@dcloudio/uni-app'
import { useDark } from './store'