From 3903a6f754fed13ec7b9c2071ef28cdda3e5e415 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Tue, 19 Sep 2023 19:05:25 +0900 Subject: [PATCH] =?UTF-8?q?typecheck=E3=82=92=E3=83=87=E3=83=95=E3=82=A9?= =?UTF-8?q?=E3=83=AB=E3=83=88=E3=81=A7vue-tsc=E3=81=AB=20(#1567)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 ------ package.json | 3 +-- vite.config.ts | 3 +-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index c9b1e52ea3..629b03bb40 100644 --- a/README.md +++ b/README.md @@ -154,15 +154,9 @@ typos ## 型チェック TypeScript の型チェックを行います。 -※ 現在チェック方法は 2 種類ありますが、将来的に 1 つになります。 ```bash -# .tsのみ型チェック npm run typecheck - -# .vueも含めて型チェック -# ※ 現状、大量にエラーが検出されます。 -npm run typecheck:vue-tsc ``` ## Markdownlint diff --git a/package.json b/package.json index 0cf2e0a6bb..c41fb40575 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,7 @@ "lint": "eslint --ext .js,.vue,.ts *.config.* src tests build", "fmt": "eslint --ext .js,.vue,.ts *.config.* src tests build --fix", "markdownlint": "markdownlint --ignore node_modules/ --ignore dist/ --ignore dist_electron/ ./", - "typecheck": "tsc --noEmit", - "typecheck:vue-tsc": "vue-tsc --noEmit", + "typecheck": "vue-tsc --noEmit", "electron:build": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js", "electron:build_dir": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js --dir", "electron:build_pnever": "cross-env VITE_TARGET=electron vite build && electron-builder --config electron-builder.config.js --publish never", diff --git a/vite.config.ts b/vite.config.ts index 41031b4410..ae02b19d76 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -84,8 +84,7 @@ export default defineConfig((options) => { lintCommand: "eslint --ext .ts,.vue .", }, typescript: true, - // FIXME: vue-tscの型エラーを解決したら有効化する - // vueTsc: true, + vueTsc: true, }), isElectron && electron({